OutboundNetworkConnection defines a private connection between a Salesforce org and a third-party data service. "Outbound" means that callouts, or requests to an external service, leave Salesforce. The metadata describes the network configuration and the connection's provisioning state.
This type is separate from NamedCredential. A named credential can reference an outbound network connection, but the connection does not reference the named credential. Also, an active connection is not necessarily ready for use: read isActive together with status.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
The component's metadata name, inherited from the base metadata type. Use this name when selecting the component in a manifest. |
connectionType |
Required. Identifies the provider connection type. AwsPrivateLink represents AWS PrivateLink connectivity. DataCloudPrivateConnection is reserved for internal use. |
isActive |
Required boolean. Records whether the connection is active. A value of true does not establish that provisioning has reached Ready. |
status |
Required. Records the provisioning lifecycle state. The documented values are Unprovisioned, Allocation, PendingAcceptance, PendingActivation, RejectedRemotely, DeletedRemotely, TeardownInProgress, and Ready. There is an allocation-state spelling discrepancy described below. |
outboundNetworkConnProperties |
A repeated structure of OutboundNetworkConnProperty name-value pairs containing provider-specific connection properties. |
propertyName |
Required within each property entry. The documented AWS properties are AwsVpcEndpointServiceName, Region, and AwsVpcEndpointId. Names matching DataCloudPrivateNetwork* are reserved for internal use. |
propertyValue |
Required within each property entry. Contains the value for its propertyName. For example, a Region value can be us-west-2; this is an example, not a default. |
label |
Required. The user-friendly label for the connection. |
description |
A description of the connection, limited to 255 characters. |
Behavior and Constraints
Activation and provisioning are separate states
A connection initially has status set to Unprovisioned. Status transitions occur automatically after an administrator performs a Provision, Sync, or Teardown action. A connection can have isActive set to true while its status remains Unprovisioned.
Do not reduce the lifecycle to an active/inactive check. PendingAcceptance, PendingActivation, RejectedRemotely, DeletedRemotely, TeardownInProgress, and Ready represent materially different conditions. The active flag alone does not establish provisioning readiness.
AWS endpoint configuration and endpoint identity differ
For AwsPrivateLink, the properties have distinct roles:
-
AwsVpcEndpointServiceNameidentifies the customer's endpoint service running in an AWS Virtual Private Cloud (VPC). -
Regionidentifies the region hosting that VPC. -
AwsVpcEndpointIdis the unique endpoint ID supplied by Salesforce after an outbound AWS PrivateLink connection is created. Its value is read-only whenstatusisReady.
The customer's endpoint service name and the Salesforce-provided endpoint ID are not substitutes. The first describes the service to connect to; the second identifies an endpoint produced by provisioning. Represent each property as its own outboundNetworkConnProperties entry with a propertyName and propertyValue.
DataCloudPrivateConnection and property names matching DataCloudPrivateNetwork* are reserved for internal use, not customer configuration choices.
Deployment and Retrieval
Components use the .outboundNetworkConnection suffix and reside in the outboundNetworkConnections folder. In package.xml, use OutboundNetworkConnection as the type name and the component's metadata name as a member. This type also supports the wildcard member *.
When interpreting retrieved metadata or preparing a deployment, distinguish endpoint configuration from provisioning output. In particular, AwsVpcEndpointServiceName and Region describe the service location, while AwsVpcEndpointId identifies the Salesforce-provided endpoint. The endpoint ID is read-only in the Ready state. An active flag in the metadata does not establish that provisioning has completed.
For a change or removal, include the relevant NamedCredential components in the dependency scope: those whose actual outboundNetworkConnection values reference this connection. The existence of the reference does not establish that a named credential is currently used for callouts or that connectivity succeeds.
Relationships
The integration dependency runs from NamedCredential to OutboundNetworkConnection. Inspect the named credential's reference value to identify affected components; the outbound network connection does not contain a reverse list of named credentials.
Referenced By
-
NamedCredential:outboundNetworkConnection.
Documentation Inconsistencies
The Salesforce field documentation lists Allocation as a status value, while the exposed status enumeration uses Allocating. Do not assume these spellings are interchangeable serialized values when interpreting or preparing metadata.
Reported Issues
- Direct Apex queries were reported unavailable for
OutboundNetworkConnectionandOutboundNetworkConnPropertyin a 2021 discussion of Tooling API objects: the answer listed both as unavailable in the ApexSchemanamespace and therefore not queryable in Apex. This report concerns Apex query access, not Metadata API retrieval. See the Apex queryability discussion.
Common Questions
Why is my outbound network connection active but still Unprovisioned?
isActive and status record different states. A connection can be active while still Unprovisioned. Status transitions occur automatically after an administrator performs a Provision, Sync, or Teardown action.
How do I retrieve OutboundNetworkConnection metadata?
Select the component under the OutboundNetworkConnection type in package.xml, or use * to select all components of this type. Component files use the .outboundNetworkConnection suffix in the outboundNetworkConnections folder.
Are AwsVpcEndpointServiceName and AwsVpcEndpointId the same value?
No. AwsVpcEndpointServiceName identifies the customer's endpoint service in an AWS VPC. AwsVpcEndpointId identifies the endpoint supplied by Salesforce after creation and is read-only when the connection is Ready.
Which dependencies matter when changing or removing an outbound network connection?
Inspect NamedCredential components whose outboundNetworkConnection value references the connection. Those references identify the relevant dependency scope, but do not prove live callout usage or successful connectivity.