published on Friday, May 1, 2026 by Pulumi
published on Friday, May 1, 2026 by Pulumi
The Transport resource is a top-level resource used by customers to control Partner Cross-Cloud Interconnect (CCI) connections.
Warning: This resource is in beta, and should be used with the terraform-provider-google-beta provider. See Provider Versions for more details on beta resources.
To get more information about Transport, see:
- API documentation
- How-to Guides
Example Usage
Network Connectivity Transport Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const project = gcp.organizations.getProject({});
const primary_network = new gcp.compute.Network("primary-network", {
name: "tf-test-my-vpc-network_82591",
autoCreateSubnetworks: false,
});
const primary = new gcp.networkconnectivity.Transport("primary", {
name: "tf-test-basic-transport_24243",
region: "us-east4",
description: "A sample transport",
remoteProfile: project.then(project => `https://networkconnectivity.googleapis.com/v1beta/${project.id}/locations/us-east4/remoteTransportProfiles/aws-us-east-1`),
network: primary_network.name,
bandwidth: "BPS_1G",
remoteAccountId: "123",
labels: {
"label-one": "value-one",
},
});
import pulumi
import pulumi_gcp as gcp
project = gcp.organizations.get_project()
primary_network = gcp.compute.Network("primary-network",
name="tf-test-my-vpc-network_82591",
auto_create_subnetworks=False)
primary = gcp.networkconnectivity.Transport("primary",
name="tf-test-basic-transport_24243",
region="us-east4",
description="A sample transport",
remote_profile=f"https://networkconnectivity.googleapis.com/v1beta/{project.id}/locations/us-east4/remoteTransportProfiles/aws-us-east-1",
network=primary_network.name,
bandwidth="BPS_1G",
remote_account_id="123",
labels={
"label-one": "value-one",
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/networkconnectivity"
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
project, err := organizations.LookupProject(ctx, &organizations.LookupProjectArgs{}, nil)
if err != nil {
return err
}
primary_network, err := compute.NewNetwork(ctx, "primary-network", &compute.NetworkArgs{
Name: pulumi.String("tf-test-my-vpc-network_82591"),
AutoCreateSubnetworks: pulumi.Bool(false),
})
if err != nil {
return err
}
_, err = networkconnectivity.NewTransport(ctx, "primary", &networkconnectivity.TransportArgs{
Name: pulumi.String("tf-test-basic-transport_24243"),
Region: pulumi.String("us-east4"),
Description: pulumi.String("A sample transport"),
RemoteProfile: pulumi.Sprintf("https://networkconnectivity.googleapis.com/v1beta/%v/locations/us-east4/remoteTransportProfiles/aws-us-east-1", project.Id),
Network: primary_network.Name,
Bandwidth: pulumi.String("BPS_1G"),
RemoteAccountId: pulumi.String("123"),
Labels: pulumi.StringMap{
"label-one": pulumi.String("value-one"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var project = Gcp.Organizations.GetProject.Invoke();
var primary_network = new Gcp.Compute.Network("primary-network", new()
{
Name = "tf-test-my-vpc-network_82591",
AutoCreateSubnetworks = false,
});
var primary = new Gcp.NetworkConnectivity.Transport("primary", new()
{
Name = "tf-test-basic-transport_24243",
Region = "us-east4",
Description = "A sample transport",
RemoteProfile = $"https://networkconnectivity.googleapis.com/v1beta/{project.Apply(getProjectResult => getProjectResult.Id)}/locations/us-east4/remoteTransportProfiles/aws-us-east-1",
Network = primary_network.Name,
Bandwidth = "BPS_1G",
RemoteAccountId = "123",
Labels =
{
{ "label-one", "value-one" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.OrganizationsFunctions;
import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.networkconnectivity.Transport;
import com.pulumi.gcp.networkconnectivity.TransportArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var project = OrganizationsFunctions.getProject(GetProjectArgs.builder()
.build());
var primary_network = new Network("primary-network", NetworkArgs.builder()
.name("tf-test-my-vpc-network_82591")
.autoCreateSubnetworks(false)
.build());
var primary = new Transport("primary", TransportArgs.builder()
.name("tf-test-basic-transport_24243")
.region("us-east4")
.description("A sample transport")
.remoteProfile(String.format("https://networkconnectivity.googleapis.com/v1beta/%s/locations/us-east4/remoteTransportProfiles/aws-us-east-1", project.id()))
.network(primary_network.name())
.bandwidth("BPS_1G")
.remoteAccountId("123")
.labels(Map.of("label-one", "value-one"))
.build());
}
}
resources:
primary-network:
type: gcp:compute:Network
properties:
name: tf-test-my-vpc-network_82591
autoCreateSubnetworks: false
primary:
type: gcp:networkconnectivity:Transport
properties:
name: tf-test-basic-transport_24243
region: us-east4
description: A sample transport
remoteProfile: https://networkconnectivity.googleapis.com/v1beta/${project.id}/locations/us-east4/remoteTransportProfiles/aws-us-east-1
network: ${["primary-network"].name}
bandwidth: BPS_1G
remoteAccountId: '123'
labels:
label-one: value-one
variables:
project:
fn::invoke:
function: gcp:organizations:getProject
arguments: {}
Create Transport Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Transport(name: string, args: TransportArgs, opts?: CustomResourceOptions);@overload
def Transport(resource_name: str,
args: TransportArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Transport(resource_name: str,
opts: Optional[ResourceOptions] = None,
network: Optional[str] = None,
remote_profile: Optional[str] = None,
region: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
hub: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
mtu_limit: Optional[int] = None,
admin_enabled: Optional[bool] = None,
bandwidth: Optional[str] = None,
description: Optional[str] = None,
provided_activation_key: Optional[str] = None,
psc_routing_enabled: Optional[bool] = None,
auto_accept: Optional[bool] = None,
remote_account_id: Optional[str] = None,
advertised_routes: Optional[Sequence[str]] = None,
stack_type: Optional[str] = None)func NewTransport(ctx *Context, name string, args TransportArgs, opts ...ResourceOption) (*Transport, error)public Transport(string name, TransportArgs args, CustomResourceOptions? opts = null)
public Transport(String name, TransportArgs args)
public Transport(String name, TransportArgs args, CustomResourceOptions options)
type: gcp:networkconnectivity:Transport
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TransportArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TransportArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TransportArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TransportArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TransportArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Transport Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Transport resource accepts the following input properties:
- Network string
- Resource URL of the Network that will be peered with this Transport. This field must be provided during resource creation and cannot be changed.
- Region string
- The region of this resource. This is required to construct the resource name, but is not sent to the API since the region is already contained in the parent field.
- Remote
Profile string - Resource URL of the remoteTransportProfile that this Transport is connecting to.
- Admin
Enabled bool - Administrative state of the underlying connectivity. If set to true (default), connectivity should be available between your environments. If set to false, the connectivity over these links is disabled. Disabling your Transport does not affect billing, and retains the underlying network bandwidth associated with the connectivity.
- Advertised
Routes List<string> - List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.
- Auto
Accept bool - Controls whether resources proposed by the Transport are automatically accepted on behalf of the user.
- Bandwidth string
- Bandwidth of the Transport. This must be one of the supported bandwidths for the remote profile.
- Description string
- An optional description of this resource.
- Hub string
- The NCC Hub that the Transport should attach to. The hub must be in the same project as the Transport.
- Labels Dictionary<string, string>
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - Mtu
Limit int - [Output only] The maximum transmission unit (MTU) of a packet that can be sent over this transport.
- Name string
- Name of the resource, see google.aip.dev/122 for resource naming.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Provided
Activation stringKey - Key used for establishing a connection with the remote transport. This key can only be provided if the profile supports an INPUT key flow and the resource is in the PENDING_KEY state.
- Psc
Routing boolEnabled - Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub.
- Remote
Account stringId - The user supplied account id for the CSP associated with the remote profile.
- Stack
Type string - IP version stack for the established connectivity.
Possible values are:
IPV4_IPV6,IPV4_ONLY.
- Network string
- Resource URL of the Network that will be peered with this Transport. This field must be provided during resource creation and cannot be changed.
- Region string
- The region of this resource. This is required to construct the resource name, but is not sent to the API since the region is already contained in the parent field.
- Remote
Profile string - Resource URL of the remoteTransportProfile that this Transport is connecting to.
- Admin
Enabled bool - Administrative state of the underlying connectivity. If set to true (default), connectivity should be available between your environments. If set to false, the connectivity over these links is disabled. Disabling your Transport does not affect billing, and retains the underlying network bandwidth associated with the connectivity.
- Advertised
Routes []string - List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.
- Auto
Accept bool - Controls whether resources proposed by the Transport are automatically accepted on behalf of the user.
- Bandwidth string
- Bandwidth of the Transport. This must be one of the supported bandwidths for the remote profile.
- Description string
- An optional description of this resource.
- Hub string
- The NCC Hub that the Transport should attach to. The hub must be in the same project as the Transport.
- Labels map[string]string
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - Mtu
Limit int - [Output only] The maximum transmission unit (MTU) of a packet that can be sent over this transport.
- Name string
- Name of the resource, see google.aip.dev/122 for resource naming.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Provided
Activation stringKey - Key used for establishing a connection with the remote transport. This key can only be provided if the profile supports an INPUT key flow and the resource is in the PENDING_KEY state.
- Psc
Routing boolEnabled - Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub.
- Remote
Account stringId - The user supplied account id for the CSP associated with the remote profile.
- Stack
Type string - IP version stack for the established connectivity.
Possible values are:
IPV4_IPV6,IPV4_ONLY.
- network String
- Resource URL of the Network that will be peered with this Transport. This field must be provided during resource creation and cannot be changed.
- region String
- The region of this resource. This is required to construct the resource name, but is not sent to the API since the region is already contained in the parent field.
- remote
Profile String - Resource URL of the remoteTransportProfile that this Transport is connecting to.
- admin
Enabled Boolean - Administrative state of the underlying connectivity. If set to true (default), connectivity should be available between your environments. If set to false, the connectivity over these links is disabled. Disabling your Transport does not affect billing, and retains the underlying network bandwidth associated with the connectivity.
- advertised
Routes List<String> - List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.
- auto
Accept Boolean - Controls whether resources proposed by the Transport are automatically accepted on behalf of the user.
- bandwidth String
- Bandwidth of the Transport. This must be one of the supported bandwidths for the remote profile.
- description String
- An optional description of this resource.
- hub String
- The NCC Hub that the Transport should attach to. The hub must be in the same project as the Transport.
- labels Map<String,String>
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - mtu
Limit Integer - [Output only] The maximum transmission unit (MTU) of a packet that can be sent over this transport.
- name String
- Name of the resource, see google.aip.dev/122 for resource naming.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- provided
Activation StringKey - Key used for establishing a connection with the remote transport. This key can only be provided if the profile supports an INPUT key flow and the resource is in the PENDING_KEY state.
- psc
Routing BooleanEnabled - Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub.
- remote
Account StringId - The user supplied account id for the CSP associated with the remote profile.
- stack
Type String - IP version stack for the established connectivity.
Possible values are:
IPV4_IPV6,IPV4_ONLY.
- network string
- Resource URL of the Network that will be peered with this Transport. This field must be provided during resource creation and cannot be changed.
- region string
- The region of this resource. This is required to construct the resource name, but is not sent to the API since the region is already contained in the parent field.
- remote
Profile string - Resource URL of the remoteTransportProfile that this Transport is connecting to.
- admin
Enabled boolean - Administrative state of the underlying connectivity. If set to true (default), connectivity should be available between your environments. If set to false, the connectivity over these links is disabled. Disabling your Transport does not affect billing, and retains the underlying network bandwidth associated with the connectivity.
- advertised
Routes string[] - List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.
- auto
Accept boolean - Controls whether resources proposed by the Transport are automatically accepted on behalf of the user.
- bandwidth string
- Bandwidth of the Transport. This must be one of the supported bandwidths for the remote profile.
- description string
- An optional description of this resource.
- hub string
- The NCC Hub that the Transport should attach to. The hub must be in the same project as the Transport.
- labels {[key: string]: string}
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - mtu
Limit number - [Output only] The maximum transmission unit (MTU) of a packet that can be sent over this transport.
- name string
- Name of the resource, see google.aip.dev/122 for resource naming.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- provided
Activation stringKey - Key used for establishing a connection with the remote transport. This key can only be provided if the profile supports an INPUT key flow and the resource is in the PENDING_KEY state.
- psc
Routing booleanEnabled - Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub.
- remote
Account stringId - The user supplied account id for the CSP associated with the remote profile.
- stack
Type string - IP version stack for the established connectivity.
Possible values are:
IPV4_IPV6,IPV4_ONLY.
- network str
- Resource URL of the Network that will be peered with this Transport. This field must be provided during resource creation and cannot be changed.
- region str
- The region of this resource. This is required to construct the resource name, but is not sent to the API since the region is already contained in the parent field.
- remote_
profile str - Resource URL of the remoteTransportProfile that this Transport is connecting to.
- admin_
enabled bool - Administrative state of the underlying connectivity. If set to true (default), connectivity should be available between your environments. If set to false, the connectivity over these links is disabled. Disabling your Transport does not affect billing, and retains the underlying network bandwidth associated with the connectivity.
- advertised_
routes Sequence[str] - List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.
- auto_
accept bool - Controls whether resources proposed by the Transport are automatically accepted on behalf of the user.
- bandwidth str
- Bandwidth of the Transport. This must be one of the supported bandwidths for the remote profile.
- description str
- An optional description of this resource.
- hub str
- The NCC Hub that the Transport should attach to. The hub must be in the same project as the Transport.
- labels Mapping[str, str]
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - mtu_
limit int - [Output only] The maximum transmission unit (MTU) of a packet that can be sent over this transport.
- name str
- Name of the resource, see google.aip.dev/122 for resource naming.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- provided_
activation_ strkey - Key used for establishing a connection with the remote transport. This key can only be provided if the profile supports an INPUT key flow and the resource is in the PENDING_KEY state.
- psc_
routing_ boolenabled - Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub.
- remote_
account_ strid - The user supplied account id for the CSP associated with the remote profile.
- stack_
type str - IP version stack for the established connectivity.
Possible values are:
IPV4_IPV6,IPV4_ONLY.
- network String
- Resource URL of the Network that will be peered with this Transport. This field must be provided during resource creation and cannot be changed.
- region String
- The region of this resource. This is required to construct the resource name, but is not sent to the API since the region is already contained in the parent field.
- remote
Profile String - Resource URL of the remoteTransportProfile that this Transport is connecting to.
- admin
Enabled Boolean - Administrative state of the underlying connectivity. If set to true (default), connectivity should be available between your environments. If set to false, the connectivity over these links is disabled. Disabling your Transport does not affect billing, and retains the underlying network bandwidth associated with the connectivity.
- advertised
Routes List<String> - List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.
- auto
Accept Boolean - Controls whether resources proposed by the Transport are automatically accepted on behalf of the user.
- bandwidth String
- Bandwidth of the Transport. This must be one of the supported bandwidths for the remote profile.
- description String
- An optional description of this resource.
- hub String
- The NCC Hub that the Transport should attach to. The hub must be in the same project as the Transport.
- labels Map<String>
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - mtu
Limit Number - [Output only] The maximum transmission unit (MTU) of a packet that can be sent over this transport.
- name String
- Name of the resource, see google.aip.dev/122 for resource naming.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- provided
Activation StringKey - Key used for establishing a connection with the remote transport. This key can only be provided if the profile supports an INPUT key flow and the resource is in the PENDING_KEY state.
- psc
Routing BooleanEnabled - Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub.
- remote
Account StringId - The user supplied account id for the CSP associated with the remote profile.
- stack
Type String - IP version stack for the established connectivity.
Possible values are:
IPV4_IPV6,IPV4_ONLY.
Outputs
All input properties are implicitly available as output properties. Additionally, the Transport resource produces the following output properties:
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Generated
Activation stringKey - [Output only] Google-generated activation key. This is only output if the selected profile supports an OUTPUT key flow. Inputting this to the provider is only valid while the resource is in a PENDING_KEY state. Once the provider has accepted the key, the resource will move to the CONFIGURING state.
- Id string
- The provider-assigned unique ID for this managed resource.
- Peering
Network string - VPC Network URI that was created for the VPC Peering connection to the provided
network. If VPC Peering is disconnected, this can be used to re-establish. - Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- State string
- [Output Only] State of the underlying connectivity.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Generated
Activation stringKey - [Output only] Google-generated activation key. This is only output if the selected profile supports an OUTPUT key flow. Inputting this to the provider is only valid while the resource is in a PENDING_KEY state. Once the provider has accepted the key, the resource will move to the CONFIGURING state.
- Id string
- The provider-assigned unique ID for this managed resource.
- Peering
Network string - VPC Network URI that was created for the VPC Peering connection to the provided
network. If VPC Peering is disconnected, this can be used to re-establish. - Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- State string
- [Output Only] State of the underlying connectivity.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- generated
Activation StringKey - [Output only] Google-generated activation key. This is only output if the selected profile supports an OUTPUT key flow. Inputting this to the provider is only valid while the resource is in a PENDING_KEY state. Once the provider has accepted the key, the resource will move to the CONFIGURING state.
- id String
- The provider-assigned unique ID for this managed resource.
- peering
Network String - VPC Network URI that was created for the VPC Peering connection to the provided
network. If VPC Peering is disconnected, this can be used to re-establish. - pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- state String
- [Output Only] State of the underlying connectivity.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- generated
Activation stringKey - [Output only] Google-generated activation key. This is only output if the selected profile supports an OUTPUT key flow. Inputting this to the provider is only valid while the resource is in a PENDING_KEY state. Once the provider has accepted the key, the resource will move to the CONFIGURING state.
- id string
- The provider-assigned unique ID for this managed resource.
- peering
Network string - VPC Network URI that was created for the VPC Peering connection to the provided
network. If VPC Peering is disconnected, this can be used to re-establish. - pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- state string
- [Output Only] State of the underlying connectivity.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- generated_
activation_ strkey - [Output only] Google-generated activation key. This is only output if the selected profile supports an OUTPUT key flow. Inputting this to the provider is only valid while the resource is in a PENDING_KEY state. Once the provider has accepted the key, the resource will move to the CONFIGURING state.
- id str
- The provider-assigned unique ID for this managed resource.
- peering_
network str - VPC Network URI that was created for the VPC Peering connection to the provided
network. If VPC Peering is disconnected, this can be used to re-establish. - pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- state str
- [Output Only] State of the underlying connectivity.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- generated
Activation StringKey - [Output only] Google-generated activation key. This is only output if the selected profile supports an OUTPUT key flow. Inputting this to the provider is only valid while the resource is in a PENDING_KEY state. Once the provider has accepted the key, the resource will move to the CONFIGURING state.
- id String
- The provider-assigned unique ID for this managed resource.
- peering
Network String - VPC Network URI that was created for the VPC Peering connection to the provided
network. If VPC Peering is disconnected, this can be used to re-establish. - pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- state String
- [Output Only] State of the underlying connectivity.
Look up Existing Transport Resource
Get an existing Transport resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TransportState, opts?: CustomResourceOptions): Transport@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
admin_enabled: Optional[bool] = None,
advertised_routes: Optional[Sequence[str]] = None,
auto_accept: Optional[bool] = None,
bandwidth: Optional[str] = None,
description: Optional[str] = None,
effective_labels: Optional[Mapping[str, str]] = None,
generated_activation_key: Optional[str] = None,
hub: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
mtu_limit: Optional[int] = None,
name: Optional[str] = None,
network: Optional[str] = None,
peering_network: Optional[str] = None,
project: Optional[str] = None,
provided_activation_key: Optional[str] = None,
psc_routing_enabled: Optional[bool] = None,
pulumi_labels: Optional[Mapping[str, str]] = None,
region: Optional[str] = None,
remote_account_id: Optional[str] = None,
remote_profile: Optional[str] = None,
stack_type: Optional[str] = None,
state: Optional[str] = None) -> Transportfunc GetTransport(ctx *Context, name string, id IDInput, state *TransportState, opts ...ResourceOption) (*Transport, error)public static Transport Get(string name, Input<string> id, TransportState? state, CustomResourceOptions? opts = null)public static Transport get(String name, Output<String> id, TransportState state, CustomResourceOptions options)resources: _: type: gcp:networkconnectivity:Transport get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Admin
Enabled bool - Administrative state of the underlying connectivity. If set to true (default), connectivity should be available between your environments. If set to false, the connectivity over these links is disabled. Disabling your Transport does not affect billing, and retains the underlying network bandwidth associated with the connectivity.
- Advertised
Routes List<string> - List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.
- Auto
Accept bool - Controls whether resources proposed by the Transport are automatically accepted on behalf of the user.
- Bandwidth string
- Bandwidth of the Transport. This must be one of the supported bandwidths for the remote profile.
- Description string
- An optional description of this resource.
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Generated
Activation stringKey - [Output only] Google-generated activation key. This is only output if the selected profile supports an OUTPUT key flow. Inputting this to the provider is only valid while the resource is in a PENDING_KEY state. Once the provider has accepted the key, the resource will move to the CONFIGURING state.
- Hub string
- The NCC Hub that the Transport should attach to. The hub must be in the same project as the Transport.
- Labels Dictionary<string, string>
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - Mtu
Limit int - [Output only] The maximum transmission unit (MTU) of a packet that can be sent over this transport.
- Name string
- Name of the resource, see google.aip.dev/122 for resource naming.
- Network string
- Resource URL of the Network that will be peered with this Transport. This field must be provided during resource creation and cannot be changed.
- Peering
Network string - VPC Network URI that was created for the VPC Peering connection to the provided
network. If VPC Peering is disconnected, this can be used to re-establish. - Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Provided
Activation stringKey - Key used for establishing a connection with the remote transport. This key can only be provided if the profile supports an INPUT key flow and the resource is in the PENDING_KEY state.
- Psc
Routing boolEnabled - Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Region string
- The region of this resource. This is required to construct the resource name, but is not sent to the API since the region is already contained in the parent field.
- Remote
Account stringId - The user supplied account id for the CSP associated with the remote profile.
- Remote
Profile string - Resource URL of the remoteTransportProfile that this Transport is connecting to.
- Stack
Type string - IP version stack for the established connectivity.
Possible values are:
IPV4_IPV6,IPV4_ONLY. - State string
- [Output Only] State of the underlying connectivity.
- Admin
Enabled bool - Administrative state of the underlying connectivity. If set to true (default), connectivity should be available between your environments. If set to false, the connectivity over these links is disabled. Disabling your Transport does not affect billing, and retains the underlying network bandwidth associated with the connectivity.
- Advertised
Routes []string - List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.
- Auto
Accept bool - Controls whether resources proposed by the Transport are automatically accepted on behalf of the user.
- Bandwidth string
- Bandwidth of the Transport. This must be one of the supported bandwidths for the remote profile.
- Description string
- An optional description of this resource.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Generated
Activation stringKey - [Output only] Google-generated activation key. This is only output if the selected profile supports an OUTPUT key flow. Inputting this to the provider is only valid while the resource is in a PENDING_KEY state. Once the provider has accepted the key, the resource will move to the CONFIGURING state.
- Hub string
- The NCC Hub that the Transport should attach to. The hub must be in the same project as the Transport.
- Labels map[string]string
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - Mtu
Limit int - [Output only] The maximum transmission unit (MTU) of a packet that can be sent over this transport.
- Name string
- Name of the resource, see google.aip.dev/122 for resource naming.
- Network string
- Resource URL of the Network that will be peered with this Transport. This field must be provided during resource creation and cannot be changed.
- Peering
Network string - VPC Network URI that was created for the VPC Peering connection to the provided
network. If VPC Peering is disconnected, this can be used to re-establish. - Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Provided
Activation stringKey - Key used for establishing a connection with the remote transport. This key can only be provided if the profile supports an INPUT key flow and the resource is in the PENDING_KEY state.
- Psc
Routing boolEnabled - Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Region string
- The region of this resource. This is required to construct the resource name, but is not sent to the API since the region is already contained in the parent field.
- Remote
Account stringId - The user supplied account id for the CSP associated with the remote profile.
- Remote
Profile string - Resource URL of the remoteTransportProfile that this Transport is connecting to.
- Stack
Type string - IP version stack for the established connectivity.
Possible values are:
IPV4_IPV6,IPV4_ONLY. - State string
- [Output Only] State of the underlying connectivity.
- admin
Enabled Boolean - Administrative state of the underlying connectivity. If set to true (default), connectivity should be available between your environments. If set to false, the connectivity over these links is disabled. Disabling your Transport does not affect billing, and retains the underlying network bandwidth associated with the connectivity.
- advertised
Routes List<String> - List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.
- auto
Accept Boolean - Controls whether resources proposed by the Transport are automatically accepted on behalf of the user.
- bandwidth String
- Bandwidth of the Transport. This must be one of the supported bandwidths for the remote profile.
- description String
- An optional description of this resource.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- generated
Activation StringKey - [Output only] Google-generated activation key. This is only output if the selected profile supports an OUTPUT key flow. Inputting this to the provider is only valid while the resource is in a PENDING_KEY state. Once the provider has accepted the key, the resource will move to the CONFIGURING state.
- hub String
- The NCC Hub that the Transport should attach to. The hub must be in the same project as the Transport.
- labels Map<String,String>
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - mtu
Limit Integer - [Output only] The maximum transmission unit (MTU) of a packet that can be sent over this transport.
- name String
- Name of the resource, see google.aip.dev/122 for resource naming.
- network String
- Resource URL of the Network that will be peered with this Transport. This field must be provided during resource creation and cannot be changed.
- peering
Network String - VPC Network URI that was created for the VPC Peering connection to the provided
network. If VPC Peering is disconnected, this can be used to re-establish. - project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- provided
Activation StringKey - Key used for establishing a connection with the remote transport. This key can only be provided if the profile supports an INPUT key flow and the resource is in the PENDING_KEY state.
- psc
Routing BooleanEnabled - Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- region String
- The region of this resource. This is required to construct the resource name, but is not sent to the API since the region is already contained in the parent field.
- remote
Account StringId - The user supplied account id for the CSP associated with the remote profile.
- remote
Profile String - Resource URL of the remoteTransportProfile that this Transport is connecting to.
- stack
Type String - IP version stack for the established connectivity.
Possible values are:
IPV4_IPV6,IPV4_ONLY. - state String
- [Output Only] State of the underlying connectivity.
- admin
Enabled boolean - Administrative state of the underlying connectivity. If set to true (default), connectivity should be available between your environments. If set to false, the connectivity over these links is disabled. Disabling your Transport does not affect billing, and retains the underlying network bandwidth associated with the connectivity.
- advertised
Routes string[] - List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.
- auto
Accept boolean - Controls whether resources proposed by the Transport are automatically accepted on behalf of the user.
- bandwidth string
- Bandwidth of the Transport. This must be one of the supported bandwidths for the remote profile.
- description string
- An optional description of this resource.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- generated
Activation stringKey - [Output only] Google-generated activation key. This is only output if the selected profile supports an OUTPUT key flow. Inputting this to the provider is only valid while the resource is in a PENDING_KEY state. Once the provider has accepted the key, the resource will move to the CONFIGURING state.
- hub string
- The NCC Hub that the Transport should attach to. The hub must be in the same project as the Transport.
- labels {[key: string]: string}
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - mtu
Limit number - [Output only] The maximum transmission unit (MTU) of a packet that can be sent over this transport.
- name string
- Name of the resource, see google.aip.dev/122 for resource naming.
- network string
- Resource URL of the Network that will be peered with this Transport. This field must be provided during resource creation and cannot be changed.
- peering
Network string - VPC Network URI that was created for the VPC Peering connection to the provided
network. If VPC Peering is disconnected, this can be used to re-establish. - project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- provided
Activation stringKey - Key used for establishing a connection with the remote transport. This key can only be provided if the profile supports an INPUT key flow and the resource is in the PENDING_KEY state.
- psc
Routing booleanEnabled - Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- region string
- The region of this resource. This is required to construct the resource name, but is not sent to the API since the region is already contained in the parent field.
- remote
Account stringId - The user supplied account id for the CSP associated with the remote profile.
- remote
Profile string - Resource URL of the remoteTransportProfile that this Transport is connecting to.
- stack
Type string - IP version stack for the established connectivity.
Possible values are:
IPV4_IPV6,IPV4_ONLY. - state string
- [Output Only] State of the underlying connectivity.
- admin_
enabled bool - Administrative state of the underlying connectivity. If set to true (default), connectivity should be available between your environments. If set to false, the connectivity over these links is disabled. Disabling your Transport does not affect billing, and retains the underlying network bandwidth associated with the connectivity.
- advertised_
routes Sequence[str] - List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.
- auto_
accept bool - Controls whether resources proposed by the Transport are automatically accepted on behalf of the user.
- bandwidth str
- Bandwidth of the Transport. This must be one of the supported bandwidths for the remote profile.
- description str
- An optional description of this resource.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- generated_
activation_ strkey - [Output only] Google-generated activation key. This is only output if the selected profile supports an OUTPUT key flow. Inputting this to the provider is only valid while the resource is in a PENDING_KEY state. Once the provider has accepted the key, the resource will move to the CONFIGURING state.
- hub str
- The NCC Hub that the Transport should attach to. The hub must be in the same project as the Transport.
- labels Mapping[str, str]
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - mtu_
limit int - [Output only] The maximum transmission unit (MTU) of a packet that can be sent over this transport.
- name str
- Name of the resource, see google.aip.dev/122 for resource naming.
- network str
- Resource URL of the Network that will be peered with this Transport. This field must be provided during resource creation and cannot be changed.
- peering_
network str - VPC Network URI that was created for the VPC Peering connection to the provided
network. If VPC Peering is disconnected, this can be used to re-establish. - project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- provided_
activation_ strkey - Key used for establishing a connection with the remote transport. This key can only be provided if the profile supports an INPUT key flow and the resource is in the PENDING_KEY state.
- psc_
routing_ boolenabled - Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- region str
- The region of this resource. This is required to construct the resource name, but is not sent to the API since the region is already contained in the parent field.
- remote_
account_ strid - The user supplied account id for the CSP associated with the remote profile.
- remote_
profile str - Resource URL of the remoteTransportProfile that this Transport is connecting to.
- stack_
type str - IP version stack for the established connectivity.
Possible values are:
IPV4_IPV6,IPV4_ONLY. - state str
- [Output Only] State of the underlying connectivity.
- admin
Enabled Boolean - Administrative state of the underlying connectivity. If set to true (default), connectivity should be available between your environments. If set to false, the connectivity over these links is disabled. Disabling your Transport does not affect billing, and retains the underlying network bandwidth associated with the connectivity.
- advertised
Routes List<String> - List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.
- auto
Accept Boolean - Controls whether resources proposed by the Transport are automatically accepted on behalf of the user.
- bandwidth String
- Bandwidth of the Transport. This must be one of the supported bandwidths for the remote profile.
- description String
- An optional description of this resource.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- generated
Activation StringKey - [Output only] Google-generated activation key. This is only output if the selected profile supports an OUTPUT key flow. Inputting this to the provider is only valid while the resource is in a PENDING_KEY state. Once the provider has accepted the key, the resource will move to the CONFIGURING state.
- hub String
- The NCC Hub that the Transport should attach to. The hub must be in the same project as the Transport.
- labels Map<String>
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - mtu
Limit Number - [Output only] The maximum transmission unit (MTU) of a packet that can be sent over this transport.
- name String
- Name of the resource, see google.aip.dev/122 for resource naming.
- network String
- Resource URL of the Network that will be peered with this Transport. This field must be provided during resource creation and cannot be changed.
- peering
Network String - VPC Network URI that was created for the VPC Peering connection to the provided
network. If VPC Peering is disconnected, this can be used to re-establish. - project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- provided
Activation StringKey - Key used for establishing a connection with the remote transport. This key can only be provided if the profile supports an INPUT key flow and the resource is in the PENDING_KEY state.
- psc
Routing BooleanEnabled - Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- region String
- The region of this resource. This is required to construct the resource name, but is not sent to the API since the region is already contained in the parent field.
- remote
Account StringId - The user supplied account id for the CSP associated with the remote profile.
- remote
Profile String - Resource URL of the remoteTransportProfile that this Transport is connecting to.
- stack
Type String - IP version stack for the established connectivity.
Possible values are:
IPV4_IPV6,IPV4_ONLY. - state String
- [Output Only] State of the underlying connectivity.
Import
Transport can be imported using any of these accepted formats:
projects/{{project}}/locations/{{region}}/transports/{{name}}{{project}}/{{region}}/{{name}}{{region}}/{{name}}{{name}}
When using the pulumi import command, Transport can be imported using one of the formats above. For example:
$ pulumi import gcp:networkconnectivity/transport:Transport default projects/{{project}}/locations/{{region}}/transports/{{name}}
$ pulumi import gcp:networkconnectivity/transport:Transport default {{project}}/{{region}}/{{name}}
$ pulumi import gcp:networkconnectivity/transport:Transport default {{region}}/{{name}}
$ pulumi import gcp:networkconnectivity/transport:Transport default {{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.
published on Friday, May 1, 2026 by Pulumi
