1. Packages
  2. Packages
  3. Google Cloud (GCP) Classic
  4. API Docs
  5. networkconnectivity
  6. Transport
Viewing docs for Google Cloud v9.22.0
published on Friday, May 1, 2026 by Pulumi
gcp logo
Viewing docs for Google Cloud v9.22.0
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:

    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.
    RemoteProfile string
    Resource URL of the remoteTransportProfile that this Transport is connecting to.
    AdminEnabled 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.
    AdvertisedRoutes List<string>
    List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.
    AutoAccept 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 effectiveLabels for all of the labels present on the resource.
    MtuLimit 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.
    ProvidedActivationKey string
    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.
    PscRoutingEnabled bool
    Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub.
    RemoteAccountId string
    The user supplied account id for the CSP associated with the remote profile.
    StackType 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.
    RemoteProfile string
    Resource URL of the remoteTransportProfile that this Transport is connecting to.
    AdminEnabled 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.
    AdvertisedRoutes []string
    List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.
    AutoAccept 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 effectiveLabels for all of the labels present on the resource.
    MtuLimit 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.
    ProvidedActivationKey string
    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.
    PscRoutingEnabled bool
    Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub.
    RemoteAccountId string
    The user supplied account id for the CSP associated with the remote profile.
    StackType 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.
    remoteProfile String
    Resource URL of the remoteTransportProfile that this Transport is connecting to.
    adminEnabled 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.
    advertisedRoutes List<String>
    List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.
    autoAccept 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 effectiveLabels for all of the labels present on the resource.
    mtuLimit 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.
    providedActivationKey String
    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.
    pscRoutingEnabled Boolean
    Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub.
    remoteAccountId String
    The user supplied account id for the CSP associated with the remote profile.
    stackType 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.
    remoteProfile string
    Resource URL of the remoteTransportProfile that this Transport is connecting to.
    adminEnabled 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.
    advertisedRoutes string[]
    List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.
    autoAccept 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 effectiveLabels for all of the labels present on the resource.
    mtuLimit 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.
    providedActivationKey string
    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.
    pscRoutingEnabled boolean
    Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub.
    remoteAccountId string
    The user supplied account id for the CSP associated with the remote profile.
    stackType 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 effectiveLabels for 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_key str
    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_enabled bool
    Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub.
    remote_account_id str
    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.
    remoteProfile String
    Resource URL of the remoteTransportProfile that this Transport is connecting to.
    adminEnabled 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.
    advertisedRoutes List<String>
    List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.
    autoAccept 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 effectiveLabels for all of the labels present on the resource.
    mtuLimit 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.
    providedActivationKey String
    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.
    pscRoutingEnabled Boolean
    Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub.
    remoteAccountId String
    The user supplied account id for the CSP associated with the remote profile.
    stackType 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:

    EffectiveLabels 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.
    GeneratedActivationKey string
    [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.
    PeeringNetwork 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.
    PulumiLabels 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.
    EffectiveLabels 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.
    GeneratedActivationKey string
    [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.
    PeeringNetwork 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.
    PulumiLabels 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.
    effectiveLabels 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.
    generatedActivationKey String
    [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.
    peeringNetwork 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.
    pulumiLabels 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.
    effectiveLabels {[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.
    generatedActivationKey string
    [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.
    peeringNetwork 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.
    pulumiLabels {[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_key str
    [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.
    effectiveLabels Map<String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    generatedActivationKey String
    [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.
    peeringNetwork 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.
    pulumiLabels 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) -> Transport
    func 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.
    The following state arguments are supported:
    AdminEnabled 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.
    AdvertisedRoutes List<string>
    List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.
    AutoAccept 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.
    EffectiveLabels 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.
    GeneratedActivationKey string
    [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 effectiveLabels for all of the labels present on the resource.
    MtuLimit 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.
    PeeringNetwork 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.
    ProvidedActivationKey string
    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.
    PscRoutingEnabled bool
    Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub.
    PulumiLabels 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.
    RemoteAccountId string
    The user supplied account id for the CSP associated with the remote profile.
    RemoteProfile string
    Resource URL of the remoteTransportProfile that this Transport is connecting to.
    StackType string
    IP version stack for the established connectivity. Possible values are: IPV4_IPV6, IPV4_ONLY.
    State string
    [Output Only] State of the underlying connectivity.
    AdminEnabled 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.
    AdvertisedRoutes []string
    List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.
    AutoAccept 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.
    EffectiveLabels 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.
    GeneratedActivationKey string
    [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 effectiveLabels for all of the labels present on the resource.
    MtuLimit 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.
    PeeringNetwork 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.
    ProvidedActivationKey string
    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.
    PscRoutingEnabled bool
    Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub.
    PulumiLabels 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.
    RemoteAccountId string
    The user supplied account id for the CSP associated with the remote profile.
    RemoteProfile string
    Resource URL of the remoteTransportProfile that this Transport is connecting to.
    StackType string
    IP version stack for the established connectivity. Possible values are: IPV4_IPV6, IPV4_ONLY.
    State string
    [Output Only] State of the underlying connectivity.
    adminEnabled 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.
    advertisedRoutes List<String>
    List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.
    autoAccept 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.
    effectiveLabels 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.
    generatedActivationKey String
    [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 effectiveLabels for all of the labels present on the resource.
    mtuLimit 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.
    peeringNetwork 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.
    providedActivationKey String
    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.
    pscRoutingEnabled Boolean
    Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub.
    pulumiLabels 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.
    remoteAccountId String
    The user supplied account id for the CSP associated with the remote profile.
    remoteProfile String
    Resource URL of the remoteTransportProfile that this Transport is connecting to.
    stackType String
    IP version stack for the established connectivity. Possible values are: IPV4_IPV6, IPV4_ONLY.
    state String
    [Output Only] State of the underlying connectivity.
    adminEnabled 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.
    advertisedRoutes string[]
    List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.
    autoAccept 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.
    effectiveLabels {[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.
    generatedActivationKey string
    [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 effectiveLabels for all of the labels present on the resource.
    mtuLimit 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.
    peeringNetwork 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.
    providedActivationKey string
    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.
    pscRoutingEnabled boolean
    Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub.
    pulumiLabels {[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.
    remoteAccountId string
    The user supplied account id for the CSP associated with the remote profile.
    remoteProfile string
    Resource URL of the remoteTransportProfile that this Transport is connecting to.
    stackType 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_key str
    [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 effectiveLabels for 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_key str
    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_enabled bool
    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_id str
    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.
    adminEnabled 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.
    advertisedRoutes List<String>
    List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.
    autoAccept 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.
    effectiveLabels Map<String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    generatedActivationKey String
    [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 effectiveLabels for all of the labels present on the resource.
    mtuLimit 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.
    peeringNetwork 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.
    providedActivationKey String
    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.
    pscRoutingEnabled Boolean
    Controls whether a Routing VPC Spoke should be created and attached to the NCC Hub.
    pulumiLabels 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.
    remoteAccountId String
    The user supplied account id for the CSP associated with the remote profile.
    remoteProfile String
    Resource URL of the remoteTransportProfile that this Transport is connecting to.
    stackType 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-beta Terraform Provider.
    gcp logo
    Viewing docs for Google Cloud v9.22.0
    published on Friday, May 1, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.