1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. edgenetwork
  5. InterconnectAttachment
Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi

gcp.edgenetwork.InterconnectAttachment

Explore with Pulumi AI

A Distributed Cloud Edge interconnect attachment, which connects routers to the northbound network.

To get more information about InterconnectAttachment, see:

Example Usage

Edgenetwork Interconnect Attachment

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const exampleNetwork = new gcp.edgenetwork.Network("example_network", {
    networkId: "example-network",
    location: "us-west1",
    zone: "",
    description: "Example network.",
    mtu: 9000,
});
const exampleInterconnectAttachment = new gcp.edgenetwork.InterconnectAttachment("example_interconnect_attachment", {
    interconnectAttachmentId: "example-interconnect-attachment",
    location: "us-west1",
    zone: "",
    description: "Example interconnect attachment.",
    network: exampleNetwork.id,
    interconnect: "11111111-2222-3333-4444-555555555555",
    vlanId: 55,
    mtu: 9000,
    labels: {
        environment: "dev",
    },
});
Copy
import pulumi
import pulumi_gcp as gcp

example_network = gcp.edgenetwork.Network("example_network",
    network_id="example-network",
    location="us-west1",
    zone="",
    description="Example network.",
    mtu=9000)
example_interconnect_attachment = gcp.edgenetwork.InterconnectAttachment("example_interconnect_attachment",
    interconnect_attachment_id="example-interconnect-attachment",
    location="us-west1",
    zone="",
    description="Example interconnect attachment.",
    network=example_network.id,
    interconnect="11111111-2222-3333-4444-555555555555",
    vlan_id=55,
    mtu=9000,
    labels={
        "environment": "dev",
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/edgenetwork"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleNetwork, err := edgenetwork.NewNetwork(ctx, "example_network", &edgenetwork.NetworkArgs{
			NetworkId:   pulumi.String("example-network"),
			Location:    pulumi.String("us-west1"),
			Zone:        pulumi.String(""),
			Description: pulumi.String("Example network."),
			Mtu:         pulumi.Int(9000),
		})
		if err != nil {
			return err
		}
		_, err = edgenetwork.NewInterconnectAttachment(ctx, "example_interconnect_attachment", &edgenetwork.InterconnectAttachmentArgs{
			InterconnectAttachmentId: pulumi.String("example-interconnect-attachment"),
			Location:                 pulumi.String("us-west1"),
			Zone:                     pulumi.String(""),
			Description:              pulumi.String("Example interconnect attachment."),
			Network:                  exampleNetwork.ID(),
			Interconnect:             pulumi.String("11111111-2222-3333-4444-555555555555"),
			VlanId:                   pulumi.Int(55),
			Mtu:                      pulumi.Int(9000),
			Labels: pulumi.StringMap{
				"environment": pulumi.String("dev"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var exampleNetwork = new Gcp.EdgeNetwork.Network("example_network", new()
    {
        NetworkId = "example-network",
        Location = "us-west1",
        Zone = "",
        Description = "Example network.",
        Mtu = 9000,
    });

    var exampleInterconnectAttachment = new Gcp.EdgeNetwork.InterconnectAttachment("example_interconnect_attachment", new()
    {
        InterconnectAttachmentId = "example-interconnect-attachment",
        Location = "us-west1",
        Zone = "",
        Description = "Example interconnect attachment.",
        Network = exampleNetwork.Id,
        Interconnect = "11111111-2222-3333-4444-555555555555",
        VlanId = 55,
        Mtu = 9000,
        Labels = 
        {
            { "environment", "dev" },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.edgenetwork.Network;
import com.pulumi.gcp.edgenetwork.NetworkArgs;
import com.pulumi.gcp.edgenetwork.InterconnectAttachment;
import com.pulumi.gcp.edgenetwork.InterconnectAttachmentArgs;
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) {
        var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
            .networkId("example-network")
            .location("us-west1")
            .zone("")
            .description("Example network.")
            .mtu(9000)
            .build());

        var exampleInterconnectAttachment = new InterconnectAttachment("exampleInterconnectAttachment", InterconnectAttachmentArgs.builder()
            .interconnectAttachmentId("example-interconnect-attachment")
            .location("us-west1")
            .zone("")
            .description("Example interconnect attachment.")
            .network(exampleNetwork.id())
            .interconnect("11111111-2222-3333-4444-555555555555")
            .vlanId(55)
            .mtu(9000)
            .labels(Map.of("environment", "dev"))
            .build());

    }
}
Copy
resources:
  exampleInterconnectAttachment:
    type: gcp:edgenetwork:InterconnectAttachment
    name: example_interconnect_attachment
    properties:
      interconnectAttachmentId: example-interconnect-attachment
      location: us-west1
      zone: ""
      description: Example interconnect attachment.
      network: ${exampleNetwork.id}
      interconnect: 11111111-2222-3333-4444-555555555555
      vlanId: 55
      mtu: 9000
      labels:
        environment: dev
  exampleNetwork:
    type: gcp:edgenetwork:Network
    name: example_network
    properties:
      networkId: example-network
      location: us-west1
      zone: ""
      description: Example network.
      mtu: 9000
Copy

Create InterconnectAttachment Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new InterconnectAttachment(name: string, args: InterconnectAttachmentArgs, opts?: CustomResourceOptions);
@overload
def InterconnectAttachment(resource_name: str,
                           args: InterconnectAttachmentArgs,
                           opts: Optional[ResourceOptions] = None)

@overload
def InterconnectAttachment(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           interconnect: Optional[str] = None,
                           interconnect_attachment_id: Optional[str] = None,
                           location: Optional[str] = None,
                           network: Optional[str] = None,
                           vlan_id: Optional[int] = None,
                           zone: Optional[str] = None,
                           description: Optional[str] = None,
                           labels: Optional[Mapping[str, str]] = None,
                           mtu: Optional[int] = None,
                           project: Optional[str] = None)
func NewInterconnectAttachment(ctx *Context, name string, args InterconnectAttachmentArgs, opts ...ResourceOption) (*InterconnectAttachment, error)
public InterconnectAttachment(string name, InterconnectAttachmentArgs args, CustomResourceOptions? opts = null)
public InterconnectAttachment(String name, InterconnectAttachmentArgs args)
public InterconnectAttachment(String name, InterconnectAttachmentArgs args, CustomResourceOptions options)
type: gcp:edgenetwork:InterconnectAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. InterconnectAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. InterconnectAttachmentArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. InterconnectAttachmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. InterconnectAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. InterconnectAttachmentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var gcpInterconnectAttachmentResource = new Gcp.EdgeNetwork.InterconnectAttachment("gcpInterconnectAttachmentResource", new()
{
    Interconnect = "string",
    InterconnectAttachmentId = "string",
    Location = "string",
    Network = "string",
    VlanId = 0,
    Zone = "string",
    Description = "string",
    Labels = 
    {
        { "string", "string" },
    },
    Mtu = 0,
    Project = "string",
});
Copy
example, err := edgenetwork.NewInterconnectAttachment(ctx, "gcpInterconnectAttachmentResource", &edgenetwork.InterconnectAttachmentArgs{
	Interconnect:             pulumi.String("string"),
	InterconnectAttachmentId: pulumi.String("string"),
	Location:                 pulumi.String("string"),
	Network:                  pulumi.String("string"),
	VlanId:                   pulumi.Int(0),
	Zone:                     pulumi.String("string"),
	Description:              pulumi.String("string"),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Mtu:     pulumi.Int(0),
	Project: pulumi.String("string"),
})
Copy
var gcpInterconnectAttachmentResource = new InterconnectAttachment("gcpInterconnectAttachmentResource", InterconnectAttachmentArgs.builder()
    .interconnect("string")
    .interconnectAttachmentId("string")
    .location("string")
    .network("string")
    .vlanId(0)
    .zone("string")
    .description("string")
    .labels(Map.of("string", "string"))
    .mtu(0)
    .project("string")
    .build());
Copy
gcp_interconnect_attachment_resource = gcp.edgenetwork.InterconnectAttachment("gcpInterconnectAttachmentResource",
    interconnect="string",
    interconnect_attachment_id="string",
    location="string",
    network="string",
    vlan_id=0,
    zone="string",
    description="string",
    labels={
        "string": "string",
    },
    mtu=0,
    project="string")
Copy
const gcpInterconnectAttachmentResource = new gcp.edgenetwork.InterconnectAttachment("gcpInterconnectAttachmentResource", {
    interconnect: "string",
    interconnectAttachmentId: "string",
    location: "string",
    network: "string",
    vlanId: 0,
    zone: "string",
    description: "string",
    labels: {
        string: "string",
    },
    mtu: 0,
    project: "string",
});
Copy
type: gcp:edgenetwork:InterconnectAttachment
properties:
    description: string
    interconnect: string
    interconnectAttachmentId: string
    labels:
        string: string
    location: string
    mtu: 0
    network: string
    project: string
    vlanId: 0
    zone: string
Copy

InterconnectAttachment 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 InterconnectAttachment resource accepts the following input properties:

Interconnect
This property is required.
Changes to this property will trigger replacement.
string
The ID of the underlying interconnect that this attachment's traffic will traverse through.
InterconnectAttachmentId
This property is required.
Changes to this property will trigger replacement.
string
A unique ID that identifies this interconnect attachment.


Location
This property is required.
Changes to this property will trigger replacement.
string
The Google Cloud region to which the target Distributed Cloud Edge zone belongs.
Network
This property is required.
Changes to this property will trigger replacement.
string
The ID of the network to which this interconnect attachment belongs. Must be of the form: projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}
VlanId
This property is required.
Changes to this property will trigger replacement.
int
VLAN ID provided by user. Must be site-wise unique.
Zone
This property is required.
Changes to this property will trigger replacement.
string
The name of the target Distributed Cloud Edge zone.
Description Changes to this property will trigger replacement. string
A free-text description of the resource. Max length 1024 characters.
Labels Dictionary<string, string>

Labels associated with this resource.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

Mtu Changes to this property will trigger replacement. int
IP (L3) MTU value of the virtual edge cloud. Default value is 1500. Possible values are: 1500, 9000.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Interconnect
This property is required.
Changes to this property will trigger replacement.
string
The ID of the underlying interconnect that this attachment's traffic will traverse through.
InterconnectAttachmentId
This property is required.
Changes to this property will trigger replacement.
string
A unique ID that identifies this interconnect attachment.


Location
This property is required.
Changes to this property will trigger replacement.
string
The Google Cloud region to which the target Distributed Cloud Edge zone belongs.
Network
This property is required.
Changes to this property will trigger replacement.
string
The ID of the network to which this interconnect attachment belongs. Must be of the form: projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}
VlanId
This property is required.
Changes to this property will trigger replacement.
int
VLAN ID provided by user. Must be site-wise unique.
Zone
This property is required.
Changes to this property will trigger replacement.
string
The name of the target Distributed Cloud Edge zone.
Description Changes to this property will trigger replacement. string
A free-text description of the resource. Max length 1024 characters.
Labels map[string]string

Labels associated with this resource.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

Mtu Changes to this property will trigger replacement. int
IP (L3) MTU value of the virtual edge cloud. Default value is 1500. Possible values are: 1500, 9000.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
interconnect
This property is required.
Changes to this property will trigger replacement.
String
The ID of the underlying interconnect that this attachment's traffic will traverse through.
interconnectAttachmentId
This property is required.
Changes to this property will trigger replacement.
String
A unique ID that identifies this interconnect attachment.


location
This property is required.
Changes to this property will trigger replacement.
String
The Google Cloud region to which the target Distributed Cloud Edge zone belongs.
network
This property is required.
Changes to this property will trigger replacement.
String
The ID of the network to which this interconnect attachment belongs. Must be of the form: projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}
vlanId
This property is required.
Changes to this property will trigger replacement.
Integer
VLAN ID provided by user. Must be site-wise unique.
zone
This property is required.
Changes to this property will trigger replacement.
String
The name of the target Distributed Cloud Edge zone.
description Changes to this property will trigger replacement. String
A free-text description of the resource. Max length 1024 characters.
labels Map<String,String>

Labels associated with this resource.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

mtu Changes to this property will trigger replacement. Integer
IP (L3) MTU value of the virtual edge cloud. Default value is 1500. Possible values are: 1500, 9000.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
interconnect
This property is required.
Changes to this property will trigger replacement.
string
The ID of the underlying interconnect that this attachment's traffic will traverse through.
interconnectAttachmentId
This property is required.
Changes to this property will trigger replacement.
string
A unique ID that identifies this interconnect attachment.


location
This property is required.
Changes to this property will trigger replacement.
string
The Google Cloud region to which the target Distributed Cloud Edge zone belongs.
network
This property is required.
Changes to this property will trigger replacement.
string
The ID of the network to which this interconnect attachment belongs. Must be of the form: projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}
vlanId
This property is required.
Changes to this property will trigger replacement.
number
VLAN ID provided by user. Must be site-wise unique.
zone
This property is required.
Changes to this property will trigger replacement.
string
The name of the target Distributed Cloud Edge zone.
description Changes to this property will trigger replacement. string
A free-text description of the resource. Max length 1024 characters.
labels {[key: string]: string}

Labels associated with this resource.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

mtu Changes to this property will trigger replacement. number
IP (L3) MTU value of the virtual edge cloud. Default value is 1500. Possible values are: 1500, 9000.
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
interconnect
This property is required.
Changes to this property will trigger replacement.
str
The ID of the underlying interconnect that this attachment's traffic will traverse through.
interconnect_attachment_id
This property is required.
Changes to this property will trigger replacement.
str
A unique ID that identifies this interconnect attachment.


location
This property is required.
Changes to this property will trigger replacement.
str
The Google Cloud region to which the target Distributed Cloud Edge zone belongs.
network
This property is required.
Changes to this property will trigger replacement.
str
The ID of the network to which this interconnect attachment belongs. Must be of the form: projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}
vlan_id
This property is required.
Changes to this property will trigger replacement.
int
VLAN ID provided by user. Must be site-wise unique.
zone
This property is required.
Changes to this property will trigger replacement.
str
The name of the target Distributed Cloud Edge zone.
description Changes to this property will trigger replacement. str
A free-text description of the resource. Max length 1024 characters.
labels Mapping[str, str]

Labels associated with this resource.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

mtu Changes to this property will trigger replacement. int
IP (L3) MTU value of the virtual edge cloud. Default value is 1500. Possible values are: 1500, 9000.
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
interconnect
This property is required.
Changes to this property will trigger replacement.
String
The ID of the underlying interconnect that this attachment's traffic will traverse through.
interconnectAttachmentId
This property is required.
Changes to this property will trigger replacement.
String
A unique ID that identifies this interconnect attachment.


location
This property is required.
Changes to this property will trigger replacement.
String
The Google Cloud region to which the target Distributed Cloud Edge zone belongs.
network
This property is required.
Changes to this property will trigger replacement.
String
The ID of the network to which this interconnect attachment belongs. Must be of the form: projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}
vlanId
This property is required.
Changes to this property will trigger replacement.
Number
VLAN ID provided by user. Must be site-wise unique.
zone
This property is required.
Changes to this property will trigger replacement.
String
The name of the target Distributed Cloud Edge zone.
description Changes to this property will trigger replacement. String
A free-text description of the resource. Max length 1024 characters.
labels Map<String>

Labels associated with this resource.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

mtu Changes to this property will trigger replacement. Number
IP (L3) MTU value of the virtual edge cloud. Default value is 1500. Possible values are: 1500, 9000.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Outputs

All input properties are implicitly available as output properties. Additionally, the InterconnectAttachment resource produces the following output properties:

CreateTime string
The time when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.
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.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The canonical name of this resource, with format projects/{{project}}/locations/{{location}}/zones/{{zone}}/interconnectAttachments/{{interconnect_attachment_id}}
PulumiLabels Dictionary<string, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
UpdateTime string
The time when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.
CreateTime string
The time when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.
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.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The canonical name of this resource, with format projects/{{project}}/locations/{{location}}/zones/{{zone}}/interconnectAttachments/{{interconnect_attachment_id}}
PulumiLabels map[string]string
The combination of labels configured directly on the resource and default labels configured on the provider.
UpdateTime string
The time when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.
createTime String
The time when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.
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.
id String
The provider-assigned unique ID for this managed resource.
name String
The canonical name of this resource, with format projects/{{project}}/locations/{{location}}/zones/{{zone}}/interconnectAttachments/{{interconnect_attachment_id}}
pulumiLabels Map<String,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
updateTime String
The time when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.
createTime string
The time when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.
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.
id string
The provider-assigned unique ID for this managed resource.
name string
The canonical name of this resource, with format projects/{{project}}/locations/{{location}}/zones/{{zone}}/interconnectAttachments/{{interconnect_attachment_id}}
pulumiLabels {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
updateTime string
The time when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.
create_time str
The time when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.
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.
id str
The provider-assigned unique ID for this managed resource.
name str
The canonical name of this resource, with format projects/{{project}}/locations/{{location}}/zones/{{zone}}/interconnectAttachments/{{interconnect_attachment_id}}
pulumi_labels Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
update_time str
The time when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.
createTime String
The time when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.
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.
id String
The provider-assigned unique ID for this managed resource.
name String
The canonical name of this resource, with format projects/{{project}}/locations/{{location}}/zones/{{zone}}/interconnectAttachments/{{interconnect_attachment_id}}
pulumiLabels Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.
updateTime String
The time when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.

Look up Existing InterconnectAttachment Resource

Get an existing InterconnectAttachment 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?: InterconnectAttachmentState, opts?: CustomResourceOptions): InterconnectAttachment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        create_time: Optional[str] = None,
        description: Optional[str] = None,
        effective_labels: Optional[Mapping[str, str]] = None,
        interconnect: Optional[str] = None,
        interconnect_attachment_id: Optional[str] = None,
        labels: Optional[Mapping[str, str]] = None,
        location: Optional[str] = None,
        mtu: Optional[int] = None,
        name: Optional[str] = None,
        network: Optional[str] = None,
        project: Optional[str] = None,
        pulumi_labels: Optional[Mapping[str, str]] = None,
        update_time: Optional[str] = None,
        vlan_id: Optional[int] = None,
        zone: Optional[str] = None) -> InterconnectAttachment
func GetInterconnectAttachment(ctx *Context, name string, id IDInput, state *InterconnectAttachmentState, opts ...ResourceOption) (*InterconnectAttachment, error)
public static InterconnectAttachment Get(string name, Input<string> id, InterconnectAttachmentState? state, CustomResourceOptions? opts = null)
public static InterconnectAttachment get(String name, Output<String> id, InterconnectAttachmentState state, CustomResourceOptions options)
resources:  _:    type: gcp:edgenetwork:InterconnectAttachment    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
CreateTime string
The time when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.
Description Changes to this property will trigger replacement. string
A free-text description of the resource. Max length 1024 characters.
EffectiveLabels Changes to this property will trigger replacement. 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.
Interconnect Changes to this property will trigger replacement. string
The ID of the underlying interconnect that this attachment's traffic will traverse through.
InterconnectAttachmentId Changes to this property will trigger replacement. string
A unique ID that identifies this interconnect attachment.


Labels Dictionary<string, string>

Labels associated with this resource.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

Location Changes to this property will trigger replacement. string
The Google Cloud region to which the target Distributed Cloud Edge zone belongs.
Mtu Changes to this property will trigger replacement. int
IP (L3) MTU value of the virtual edge cloud. Default value is 1500. Possible values are: 1500, 9000.
Name string
The canonical name of this resource, with format projects/{{project}}/locations/{{location}}/zones/{{zone}}/interconnectAttachments/{{interconnect_attachment_id}}
Network Changes to this property will trigger replacement. string
The ID of the network to which this interconnect attachment belongs. Must be of the form: projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
PulumiLabels Dictionary<string, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
UpdateTime string
The time when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.
VlanId Changes to this property will trigger replacement. int
VLAN ID provided by user. Must be site-wise unique.
Zone Changes to this property will trigger replacement. string
The name of the target Distributed Cloud Edge zone.
CreateTime string
The time when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.
Description Changes to this property will trigger replacement. string
A free-text description of the resource. Max length 1024 characters.
EffectiveLabels Changes to this property will trigger replacement. 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.
Interconnect Changes to this property will trigger replacement. string
The ID of the underlying interconnect that this attachment's traffic will traverse through.
InterconnectAttachmentId Changes to this property will trigger replacement. string
A unique ID that identifies this interconnect attachment.


Labels map[string]string

Labels associated with this resource.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

Location Changes to this property will trigger replacement. string
The Google Cloud region to which the target Distributed Cloud Edge zone belongs.
Mtu Changes to this property will trigger replacement. int
IP (L3) MTU value of the virtual edge cloud. Default value is 1500. Possible values are: 1500, 9000.
Name string
The canonical name of this resource, with format projects/{{project}}/locations/{{location}}/zones/{{zone}}/interconnectAttachments/{{interconnect_attachment_id}}
Network Changes to this property will trigger replacement. string
The ID of the network to which this interconnect attachment belongs. Must be of the form: projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
PulumiLabels map[string]string
The combination of labels configured directly on the resource and default labels configured on the provider.
UpdateTime string
The time when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.
VlanId Changes to this property will trigger replacement. int
VLAN ID provided by user. Must be site-wise unique.
Zone Changes to this property will trigger replacement. string
The name of the target Distributed Cloud Edge zone.
createTime String
The time when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.
description Changes to this property will trigger replacement. String
A free-text description of the resource. Max length 1024 characters.
effectiveLabels Changes to this property will trigger replacement. 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.
interconnect Changes to this property will trigger replacement. String
The ID of the underlying interconnect that this attachment's traffic will traverse through.
interconnectAttachmentId Changes to this property will trigger replacement. String
A unique ID that identifies this interconnect attachment.


labels Map<String,String>

Labels associated with this resource.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

location Changes to this property will trigger replacement. String
The Google Cloud region to which the target Distributed Cloud Edge zone belongs.
mtu Changes to this property will trigger replacement. Integer
IP (L3) MTU value of the virtual edge cloud. Default value is 1500. Possible values are: 1500, 9000.
name String
The canonical name of this resource, with format projects/{{project}}/locations/{{location}}/zones/{{zone}}/interconnectAttachments/{{interconnect_attachment_id}}
network Changes to this property will trigger replacement. String
The ID of the network to which this interconnect attachment belongs. Must be of the form: projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumiLabels Map<String,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
updateTime String
The time when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.
vlanId Changes to this property will trigger replacement. Integer
VLAN ID provided by user. Must be site-wise unique.
zone Changes to this property will trigger replacement. String
The name of the target Distributed Cloud Edge zone.
createTime string
The time when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.
description Changes to this property will trigger replacement. string
A free-text description of the resource. Max length 1024 characters.
effectiveLabels Changes to this property will trigger replacement. {[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.
interconnect Changes to this property will trigger replacement. string
The ID of the underlying interconnect that this attachment's traffic will traverse through.
interconnectAttachmentId Changes to this property will trigger replacement. string
A unique ID that identifies this interconnect attachment.


labels {[key: string]: string}

Labels associated with this resource.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

location Changes to this property will trigger replacement. string
The Google Cloud region to which the target Distributed Cloud Edge zone belongs.
mtu Changes to this property will trigger replacement. number
IP (L3) MTU value of the virtual edge cloud. Default value is 1500. Possible values are: 1500, 9000.
name string
The canonical name of this resource, with format projects/{{project}}/locations/{{location}}/zones/{{zone}}/interconnectAttachments/{{interconnect_attachment_id}}
network Changes to this property will trigger replacement. string
The ID of the network to which this interconnect attachment belongs. Must be of the form: projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumiLabels {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
updateTime string
The time when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.
vlanId Changes to this property will trigger replacement. number
VLAN ID provided by user. Must be site-wise unique.
zone Changes to this property will trigger replacement. string
The name of the target Distributed Cloud Edge zone.
create_time str
The time when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.
description Changes to this property will trigger replacement. str
A free-text description of the resource. Max length 1024 characters.
effective_labels Changes to this property will trigger replacement. 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.
interconnect Changes to this property will trigger replacement. str
The ID of the underlying interconnect that this attachment's traffic will traverse through.
interconnect_attachment_id Changes to this property will trigger replacement. str
A unique ID that identifies this interconnect attachment.


labels Mapping[str, str]

Labels associated with this resource.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

location Changes to this property will trigger replacement. str
The Google Cloud region to which the target Distributed Cloud Edge zone belongs.
mtu Changes to this property will trigger replacement. int
IP (L3) MTU value of the virtual edge cloud. Default value is 1500. Possible values are: 1500, 9000.
name str
The canonical name of this resource, with format projects/{{project}}/locations/{{location}}/zones/{{zone}}/interconnectAttachments/{{interconnect_attachment_id}}
network Changes to this property will trigger replacement. str
The ID of the network to which this interconnect attachment belongs. Must be of the form: projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumi_labels Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
update_time str
The time when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.
vlan_id Changes to this property will trigger replacement. int
VLAN ID provided by user. Must be site-wise unique.
zone Changes to this property will trigger replacement. str
The name of the target Distributed Cloud Edge zone.
createTime String
The time when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.
description Changes to this property will trigger replacement. String
A free-text description of the resource. Max length 1024 characters.
effectiveLabels Changes to this property will trigger replacement. Map<String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
interconnect Changes to this property will trigger replacement. String
The ID of the underlying interconnect that this attachment's traffic will traverse through.
interconnectAttachmentId Changes to this property will trigger replacement. String
A unique ID that identifies this interconnect attachment.


labels Map<String>

Labels associated with this resource.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

location Changes to this property will trigger replacement. String
The Google Cloud region to which the target Distributed Cloud Edge zone belongs.
mtu Changes to this property will trigger replacement. Number
IP (L3) MTU value of the virtual edge cloud. Default value is 1500. Possible values are: 1500, 9000.
name String
The canonical name of this resource, with format projects/{{project}}/locations/{{location}}/zones/{{zone}}/interconnectAttachments/{{interconnect_attachment_id}}
network Changes to this property will trigger replacement. String
The ID of the network to which this interconnect attachment belongs. Must be of the form: projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumiLabels Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.
updateTime String
The time when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z and 2014-10-02T15:01:23.045123456Z.
vlanId Changes to this property will trigger replacement. Number
VLAN ID provided by user. Must be site-wise unique.
zone Changes to this property will trigger replacement. String
The name of the target Distributed Cloud Edge zone.

Import

InterconnectAttachment can be imported using any of these accepted formats:

  • projects/{{project}}/locations/{{location}}/zones/{{zone}}/interconnectAttachment/{{interconnect_attachment_id}}

  • {{project}}/{{location}}/{{zone}}/{{interconnect_attachment_id}}

  • {{location}}/{{zone}}/{{interconnect_attachment_id}}

  • {{location}}/{{interconnect_attachment_id}}

  • {{name}}

When using the pulumi import command, InterconnectAttachment can be imported using one of the formats above. For example:

$ pulumi import gcp:edgenetwork/interconnectAttachment:InterconnectAttachment default projects/{{project}}/locations/{{location}}/zones/{{zone}}/interconnectAttachment/{{interconnect_attachment_id}}
Copy
$ pulumi import gcp:edgenetwork/interconnectAttachment:InterconnectAttachment default {{project}}/{{location}}/{{zone}}/{{interconnect_attachment_id}}
Copy
$ pulumi import gcp:edgenetwork/interconnectAttachment:InterconnectAttachment default {{location}}/{{zone}}/{{interconnect_attachment_id}}
Copy
$ pulumi import gcp:edgenetwork/interconnectAttachment:InterconnectAttachment default {{location}}/{{interconnect_attachment_id}}
Copy
$ pulumi import gcp:edgenetwork/interconnectAttachment:InterconnectAttachment default {{name}}
Copy

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.