equinix.metal.VirtualCircuit
Explore with Pulumi AI
Use this resource to associate VLAN with a Dedicated Port from Equinix Fabric - software-defined interconnections.
See the Virtual Routing and Forwarding documentation for product details and API reference material.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Equinix = Pulumi.Equinix;
return await Deployment.RunAsync(() =>
{
var projectId = "52000fb2-ee46-4673-93a8-de2c2bdba33c";
var connId = "73f12f29-3e19-43a0-8e90-ae81580db1e0";
var test = Equinix.Metal.GetInterconnection.Invoke(new()
{
ConnectionId = connId,
});
var testVlan = new Equinix.Metal.Vlan("testVlan", new()
{
ProjectId = projectId,
Metro = test.Apply(getInterconnectionResult => getInterconnectionResult.Metro),
});
var testVirtualCircuit = new Equinix.Metal.VirtualCircuit("testVirtualCircuit", new()
{
ConnectionId = connId,
ProjectId = projectId,
PortId = test.Apply(getInterconnectionResult => getInterconnectionResult.Ports[0]?.Id),
VlanId = testVlan.Id,
NniVlan = 1056,
});
});
package main
import (
"github.com/equinix/pulumi-equinix/sdk/go/equinix/metal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
projectId := "52000fb2-ee46-4673-93a8-de2c2bdba33c"
connId := "73f12f29-3e19-43a0-8e90-ae81580db1e0"
test, err := metal.LookupInterconnection(ctx, &metal.LookupInterconnectionArgs{
ConnectionId: connId,
}, nil)
if err != nil {
return err
}
testVlan, err := metal.NewVlan(ctx, "testVlan", &metal.VlanArgs{
ProjectId: pulumi.String(projectId),
Metro: pulumi.String(test.Metro),
})
if err != nil {
return err
}
_, err = metal.NewVirtualCircuit(ctx, "testVirtualCircuit", &metal.VirtualCircuitArgs{
ConnectionId: pulumi.String(connId),
ProjectId: pulumi.String(projectId),
PortId: pulumi.String(test.Ports[0].Id),
VlanId: testVlan.ID(),
NniVlan: pulumi.Int(1056),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.equinix.metal.MetalFunctions;
import com.pulumi.equinix.metal.inputs.GetInterconnectionArgs;
import com.pulumi.equinix.metal.Vlan;
import com.pulumi.equinix.metal.VlanArgs;
import com.pulumi.equinix.metal.VirtualCircuit;
import com.pulumi.equinix.metal.VirtualCircuitArgs;
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 projectId = "52000fb2-ee46-4673-93a8-de2c2bdba33c";
final var connId = "73f12f29-3e19-43a0-8e90-ae81580db1e0";
final var test = MetalFunctions.getInterconnection(GetInterconnectionArgs.builder()
.connectionId(connId)
.build());
var testVlan = new Vlan("testVlan", VlanArgs.builder()
.projectId(projectId)
.metro(test.applyValue(getInterconnectionResult -> getInterconnectionResult.metro()))
.build());
var testVirtualCircuit = new VirtualCircuit("testVirtualCircuit", VirtualCircuitArgs.builder()
.connectionId(connId)
.projectId(projectId)
.portId(test.applyValue(getInterconnectionResult -> getInterconnectionResult.ports()[0].id()))
.vlanId(testVlan.id())
.nniVlan(1056)
.build());
}
}
import pulumi
import pulumi_equinix as equinix
project_id = "52000fb2-ee46-4673-93a8-de2c2bdba33c"
conn_id = "73f12f29-3e19-43a0-8e90-ae81580db1e0"
test = equinix.metal.get_interconnection_output(connection_id=conn_id)
test_vlan = equinix.metal.Vlan("testVlan",
project_id=project_id,
metro=test.metro)
test_virtual_circuit = equinix.metal.VirtualCircuit("testVirtualCircuit",
connection_id=conn_id,
project_id=project_id,
port_id=test.ports[0].id,
vlan_id=test_vlan.id,
nni_vlan=1056)
import * as pulumi from "@pulumi/pulumi";
import * as equinix from "@equinix-labs/pulumi-equinix";
import * as equinix from "@pulumi/equinix";
const projectId = "52000fb2-ee46-4673-93a8-de2c2bdba33c";
const connId = "73f12f29-3e19-43a0-8e90-ae81580db1e0";
const test = equinix.metal.getInterconnectionOutput({
connectionId: connId,
});
const testVlan = new equinix.metal.Vlan("testVlan", {
projectId: projectId,
metro: test.apply(test => test.metro),
});
const testVirtualCircuit = new equinix.metal.VirtualCircuit("testVirtualCircuit", {
connectionId: connId,
projectId: projectId,
portId: test.apply(test => test.ports?.[0]?.id),
vlanId: testVlan.id,
nniVlan: 1056,
});
resources:
testVlan:
type: equinix:metal:Vlan
name: test
properties:
projectId: ${projectId}
metro: ${test.metro}
testVirtualCircuit:
type: equinix:metal:VirtualCircuit
name: test
properties:
connectionId: ${connId}
projectId: ${projectId}
portId: ${test.ports[0].id}
vlanId: ${testVlan.id}
nniVlan: 1056
variables:
projectId: 52000fb2-ee46-4673-93a8-de2c2bdba33c
connId: 73f12f29-3e19-43a0-8e90-ae81580db1e0
test:
fn::invoke:
Function: equinix:metal:getInterconnection
Arguments:
connectionId: ${connId}
Create VirtualCircuit Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VirtualCircuit(name: string, args: VirtualCircuitArgs, opts?: CustomResourceOptions);
@overload
def VirtualCircuit(resource_name: str,
args: VirtualCircuitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VirtualCircuit(resource_name: str,
opts: Optional[ResourceOptions] = None,
port_id: Optional[str] = None,
project_id: Optional[str] = None,
nni_vlan: Optional[int] = None,
customer_ip: Optional[str] = None,
md5: Optional[str] = None,
metal_ip: Optional[str] = None,
metal_ipv6: Optional[str] = None,
name: Optional[str] = None,
connection_id: Optional[str] = None,
peer_asn: Optional[int] = None,
customer_ipv6: Optional[str] = None,
description: Optional[str] = None,
speed: Optional[str] = None,
subnet: Optional[str] = None,
subnet_ipv6: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
virtual_circuit_id: Optional[str] = None,
vlan_id: Optional[str] = None,
vrf_id: Optional[str] = None)
func NewVirtualCircuit(ctx *Context, name string, args VirtualCircuitArgs, opts ...ResourceOption) (*VirtualCircuit, error)
public VirtualCircuit(string name, VirtualCircuitArgs args, CustomResourceOptions? opts = null)
public VirtualCircuit(String name, VirtualCircuitArgs args)
public VirtualCircuit(String name, VirtualCircuitArgs args, CustomResourceOptions options)
type: equinix:metal:VirtualCircuit
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 VirtualCircuitArgs
- 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 VirtualCircuitArgs
- 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 VirtualCircuitArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VirtualCircuitArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VirtualCircuitArgs
- 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 virtualCircuitResource = new Equinix.Metal.VirtualCircuit("virtualCircuitResource", new()
{
PortId = "string",
ProjectId = "string",
NniVlan = 0,
CustomerIp = "string",
Md5 = "string",
MetalIp = "string",
MetalIpv6 = "string",
Name = "string",
ConnectionId = "string",
PeerAsn = 0,
CustomerIpv6 = "string",
Description = "string",
Speed = "string",
Subnet = "string",
SubnetIpv6 = "string",
Tags = new[]
{
"string",
},
VirtualCircuitId = "string",
VlanId = "string",
VrfId = "string",
});
example, err := metal.NewVirtualCircuit(ctx, "virtualCircuitResource", &metal.VirtualCircuitArgs{
PortId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
NniVlan: pulumi.Int(0),
CustomerIp: pulumi.String("string"),
Md5: pulumi.String("string"),
MetalIp: pulumi.String("string"),
MetalIpv6: pulumi.String("string"),
Name: pulumi.String("string"),
ConnectionId: pulumi.String("string"),
PeerAsn: pulumi.Int(0),
CustomerIpv6: pulumi.String("string"),
Description: pulumi.String("string"),
Speed: pulumi.String("string"),
Subnet: pulumi.String("string"),
SubnetIpv6: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
VirtualCircuitId: pulumi.String("string"),
VlanId: pulumi.String("string"),
VrfId: pulumi.String("string"),
})
var virtualCircuitResource = new VirtualCircuit("virtualCircuitResource", VirtualCircuitArgs.builder()
.portId("string")
.projectId("string")
.nniVlan(0)
.customerIp("string")
.md5("string")
.metalIp("string")
.metalIpv6("string")
.name("string")
.connectionId("string")
.peerAsn(0)
.customerIpv6("string")
.description("string")
.speed("string")
.subnet("string")
.subnetIpv6("string")
.tags("string")
.virtualCircuitId("string")
.vlanId("string")
.vrfId("string")
.build());
virtual_circuit_resource = equinix.metal.VirtualCircuit("virtualCircuitResource",
port_id="string",
project_id="string",
nni_vlan=0,
customer_ip="string",
md5="string",
metal_ip="string",
metal_ipv6="string",
name="string",
connection_id="string",
peer_asn=0,
customer_ipv6="string",
description="string",
speed="string",
subnet="string",
subnet_ipv6="string",
tags=["string"],
virtual_circuit_id="string",
vlan_id="string",
vrf_id="string")
const virtualCircuitResource = new equinix.metal.VirtualCircuit("virtualCircuitResource", {
portId: "string",
projectId: "string",
nniVlan: 0,
customerIp: "string",
md5: "string",
metalIp: "string",
metalIpv6: "string",
name: "string",
connectionId: "string",
peerAsn: 0,
customerIpv6: "string",
description: "string",
speed: "string",
subnet: "string",
subnetIpv6: "string",
tags: ["string"],
virtualCircuitId: "string",
vlanId: "string",
vrfId: "string",
});
type: equinix:metal:VirtualCircuit
properties:
connectionId: string
customerIp: string
customerIpv6: string
description: string
md5: string
metalIp: string
metalIpv6: string
name: string
nniVlan: 0
peerAsn: 0
portId: string
projectId: string
speed: string
subnet: string
subnetIpv6: string
tags:
- string
virtualCircuitId: string
vlanId: string
vrfId: string
VirtualCircuit 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 VirtualCircuit resource accepts the following input properties:
- Port
Id string - UUID of the Connection Port where the VC is scoped to
- Project
Id string - UUID of the Project where the VC is scoped to
- Connection
Id string - UUID of Connection where the VC is scoped to. Only used for dedicated connections
- Customer
Ip string - The Customer IP address which the CSR switch will peer with. Will default to the other usable IP in the subnet.
- Customer
Ipv6 string - The Customer IPv6 address which the CSR switch will peer with. Will default to the other usable IP in the IPv6 subnet.
- Description string
- Description of the Virtual Circuit resource
- Md5 string
- The password that can be set for the VRF BGP peer
- Metal
Ip string - The Metal IP address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the subnet.
- Metal
Ipv6 string - The Metal IPv6 address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the IPv6 subnet.
- Name string
- Name of the Virtual Circuit resource
- Nni
Vlan int - Equinix Metal network-to-network VLAN ID (optional when the connection has mode=tunnel)
- Peer
Asn int - The BGP ASN of the peer. The same ASN may be the used across several VCs, but it cannot be the same as the local_asn of the VRF.
- Speed string
- Description of the Virtual Circuit speed. This is for information purposes and is computed when the connection type is shared.
- Subnet string
- A subnet from one of the IP blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /30 or /31. * For a /31 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /30 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- Subnet
Ipv6 string - A subnet from one of the IPv6 blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /126 or /127. * For a /127 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /126 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- List<string>
- Tags attached to the virtual circuit
- Virtual
Circuit stringId - UUID of an existing VC to configure. Used in the case of shared interconnections where the VC has already been created.
- Vlan
Id string - UUID of the VLAN to associate
- Vrf
Id string - UUID of the VRF to associate
- Port
Id string - UUID of the Connection Port where the VC is scoped to
- Project
Id string - UUID of the Project where the VC is scoped to
- Connection
Id string - UUID of Connection where the VC is scoped to. Only used for dedicated connections
- Customer
Ip string - The Customer IP address which the CSR switch will peer with. Will default to the other usable IP in the subnet.
- Customer
Ipv6 string - The Customer IPv6 address which the CSR switch will peer with. Will default to the other usable IP in the IPv6 subnet.
- Description string
- Description of the Virtual Circuit resource
- Md5 string
- The password that can be set for the VRF BGP peer
- Metal
Ip string - The Metal IP address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the subnet.
- Metal
Ipv6 string - The Metal IPv6 address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the IPv6 subnet.
- Name string
- Name of the Virtual Circuit resource
- Nni
Vlan int - Equinix Metal network-to-network VLAN ID (optional when the connection has mode=tunnel)
- Peer
Asn int - The BGP ASN of the peer. The same ASN may be the used across several VCs, but it cannot be the same as the local_asn of the VRF.
- Speed string
- Description of the Virtual Circuit speed. This is for information purposes and is computed when the connection type is shared.
- Subnet string
- A subnet from one of the IP blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /30 or /31. * For a /31 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /30 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- Subnet
Ipv6 string - A subnet from one of the IPv6 blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /126 or /127. * For a /127 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /126 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- []string
- Tags attached to the virtual circuit
- Virtual
Circuit stringId - UUID of an existing VC to configure. Used in the case of shared interconnections where the VC has already been created.
- Vlan
Id string - UUID of the VLAN to associate
- Vrf
Id string - UUID of the VRF to associate
- port
Id String - UUID of the Connection Port where the VC is scoped to
- project
Id String - UUID of the Project where the VC is scoped to
- connection
Id String - UUID of Connection where the VC is scoped to. Only used for dedicated connections
- customer
Ip String - The Customer IP address which the CSR switch will peer with. Will default to the other usable IP in the subnet.
- customer
Ipv6 String - The Customer IPv6 address which the CSR switch will peer with. Will default to the other usable IP in the IPv6 subnet.
- description String
- Description of the Virtual Circuit resource
- md5 String
- The password that can be set for the VRF BGP peer
- metal
Ip String - The Metal IP address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the subnet.
- metal
Ipv6 String - The Metal IPv6 address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the IPv6 subnet.
- name String
- Name of the Virtual Circuit resource
- nni
Vlan Integer - Equinix Metal network-to-network VLAN ID (optional when the connection has mode=tunnel)
- peer
Asn Integer - The BGP ASN of the peer. The same ASN may be the used across several VCs, but it cannot be the same as the local_asn of the VRF.
- speed String
- Description of the Virtual Circuit speed. This is for information purposes and is computed when the connection type is shared.
- subnet String
- A subnet from one of the IP blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /30 or /31. * For a /31 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /30 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- subnet
Ipv6 String - A subnet from one of the IPv6 blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /126 or /127. * For a /127 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /126 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- List<String>
- Tags attached to the virtual circuit
- virtual
Circuit StringId - UUID of an existing VC to configure. Used in the case of shared interconnections where the VC has already been created.
- vlan
Id String - UUID of the VLAN to associate
- vrf
Id String - UUID of the VRF to associate
- port
Id string - UUID of the Connection Port where the VC is scoped to
- project
Id string - UUID of the Project where the VC is scoped to
- connection
Id string - UUID of Connection where the VC is scoped to. Only used for dedicated connections
- customer
Ip string - The Customer IP address which the CSR switch will peer with. Will default to the other usable IP in the subnet.
- customer
Ipv6 string - The Customer IPv6 address which the CSR switch will peer with. Will default to the other usable IP in the IPv6 subnet.
- description string
- Description of the Virtual Circuit resource
- md5 string
- The password that can be set for the VRF BGP peer
- metal
Ip string - The Metal IP address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the subnet.
- metal
Ipv6 string - The Metal IPv6 address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the IPv6 subnet.
- name string
- Name of the Virtual Circuit resource
- nni
Vlan number - Equinix Metal network-to-network VLAN ID (optional when the connection has mode=tunnel)
- peer
Asn number - The BGP ASN of the peer. The same ASN may be the used across several VCs, but it cannot be the same as the local_asn of the VRF.
- speed string
- Description of the Virtual Circuit speed. This is for information purposes and is computed when the connection type is shared.
- subnet string
- A subnet from one of the IP blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /30 or /31. * For a /31 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /30 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- subnet
Ipv6 string - A subnet from one of the IPv6 blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /126 or /127. * For a /127 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /126 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- string[]
- Tags attached to the virtual circuit
- virtual
Circuit stringId - UUID of an existing VC to configure. Used in the case of shared interconnections where the VC has already been created.
- vlan
Id string - UUID of the VLAN to associate
- vrf
Id string - UUID of the VRF to associate
- port_
id str - UUID of the Connection Port where the VC is scoped to
- project_
id str - UUID of the Project where the VC is scoped to
- connection_
id str - UUID of Connection where the VC is scoped to. Only used for dedicated connections
- customer_
ip str - The Customer IP address which the CSR switch will peer with. Will default to the other usable IP in the subnet.
- customer_
ipv6 str - The Customer IPv6 address which the CSR switch will peer with. Will default to the other usable IP in the IPv6 subnet.
- description str
- Description of the Virtual Circuit resource
- md5 str
- The password that can be set for the VRF BGP peer
- metal_
ip str - The Metal IP address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the subnet.
- metal_
ipv6 str - The Metal IPv6 address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the IPv6 subnet.
- name str
- Name of the Virtual Circuit resource
- nni_
vlan int - Equinix Metal network-to-network VLAN ID (optional when the connection has mode=tunnel)
- peer_
asn int - The BGP ASN of the peer. The same ASN may be the used across several VCs, but it cannot be the same as the local_asn of the VRF.
- speed str
- Description of the Virtual Circuit speed. This is for information purposes and is computed when the connection type is shared.
- subnet str
- A subnet from one of the IP blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /30 or /31. * For a /31 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /30 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- subnet_
ipv6 str - A subnet from one of the IPv6 blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /126 or /127. * For a /127 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /126 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- Sequence[str]
- Tags attached to the virtual circuit
- virtual_
circuit_ strid - UUID of an existing VC to configure. Used in the case of shared interconnections where the VC has already been created.
- vlan_
id str - UUID of the VLAN to associate
- vrf_
id str - UUID of the VRF to associate
- port
Id String - UUID of the Connection Port where the VC is scoped to
- project
Id String - UUID of the Project where the VC is scoped to
- connection
Id String - UUID of Connection where the VC is scoped to. Only used for dedicated connections
- customer
Ip String - The Customer IP address which the CSR switch will peer with. Will default to the other usable IP in the subnet.
- customer
Ipv6 String - The Customer IPv6 address which the CSR switch will peer with. Will default to the other usable IP in the IPv6 subnet.
- description String
- Description of the Virtual Circuit resource
- md5 String
- The password that can be set for the VRF BGP peer
- metal
Ip String - The Metal IP address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the subnet.
- metal
Ipv6 String - The Metal IPv6 address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the IPv6 subnet.
- name String
- Name of the Virtual Circuit resource
- nni
Vlan Number - Equinix Metal network-to-network VLAN ID (optional when the connection has mode=tunnel)
- peer
Asn Number - The BGP ASN of the peer. The same ASN may be the used across several VCs, but it cannot be the same as the local_asn of the VRF.
- speed String
- Description of the Virtual Circuit speed. This is for information purposes and is computed when the connection type is shared.
- subnet String
- A subnet from one of the IP blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /30 or /31. * For a /31 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /30 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- subnet
Ipv6 String - A subnet from one of the IPv6 blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /126 or /127. * For a /127 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /126 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- List<String>
- Tags attached to the virtual circuit
- virtual
Circuit StringId - UUID of an existing VC to configure. Used in the case of shared interconnections where the VC has already been created.
- vlan
Id String - UUID of the VLAN to associate
- vrf
Id String - UUID of the VRF to associate
Outputs
All input properties are implicitly available as output properties. Additionally, the VirtualCircuit resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Nni
Vnid int - Nni VLAN ID parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
- Status string
- Status of the virtual circuit resource
- Vnid int
- VNID VLAN parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
- Id string
- The provider-assigned unique ID for this managed resource.
- Nni
Vnid int - Nni VLAN ID parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
- Status string
- Status of the virtual circuit resource
- Vnid int
- VNID VLAN parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
- id String
- The provider-assigned unique ID for this managed resource.
- nni
Vnid Integer - Nni VLAN ID parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
- status String
- Status of the virtual circuit resource
- vnid Integer
- VNID VLAN parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
- id string
- The provider-assigned unique ID for this managed resource.
- nni
Vnid number - Nni VLAN ID parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
- status string
- Status of the virtual circuit resource
- vnid number
- VNID VLAN parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
- id str
- The provider-assigned unique ID for this managed resource.
- nni_
vnid int - Nni VLAN ID parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
- status str
- Status of the virtual circuit resource
- vnid int
- VNID VLAN parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
- id String
- The provider-assigned unique ID for this managed resource.
- nni
Vnid Number - Nni VLAN ID parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
- status String
- Status of the virtual circuit resource
- vnid Number
- VNID VLAN parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
Look up Existing VirtualCircuit Resource
Get an existing VirtualCircuit 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?: VirtualCircuitState, opts?: CustomResourceOptions): VirtualCircuit
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
connection_id: Optional[str] = None,
customer_ip: Optional[str] = None,
customer_ipv6: Optional[str] = None,
description: Optional[str] = None,
md5: Optional[str] = None,
metal_ip: Optional[str] = None,
metal_ipv6: Optional[str] = None,
name: Optional[str] = None,
nni_vlan: Optional[int] = None,
nni_vnid: Optional[int] = None,
peer_asn: Optional[int] = None,
port_id: Optional[str] = None,
project_id: Optional[str] = None,
speed: Optional[str] = None,
status: Optional[str] = None,
subnet: Optional[str] = None,
subnet_ipv6: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
virtual_circuit_id: Optional[str] = None,
vlan_id: Optional[str] = None,
vnid: Optional[int] = None,
vrf_id: Optional[str] = None) -> VirtualCircuit
func GetVirtualCircuit(ctx *Context, name string, id IDInput, state *VirtualCircuitState, opts ...ResourceOption) (*VirtualCircuit, error)
public static VirtualCircuit Get(string name, Input<string> id, VirtualCircuitState? state, CustomResourceOptions? opts = null)
public static VirtualCircuit get(String name, Output<String> id, VirtualCircuitState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Connection
Id string - UUID of Connection where the VC is scoped to. Only used for dedicated connections
- Customer
Ip string - The Customer IP address which the CSR switch will peer with. Will default to the other usable IP in the subnet.
- Customer
Ipv6 string - The Customer IPv6 address which the CSR switch will peer with. Will default to the other usable IP in the IPv6 subnet.
- Description string
- Description of the Virtual Circuit resource
- Md5 string
- The password that can be set for the VRF BGP peer
- Metal
Ip string - The Metal IP address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the subnet.
- Metal
Ipv6 string - The Metal IPv6 address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the IPv6 subnet.
- Name string
- Name of the Virtual Circuit resource
- Nni
Vlan int - Equinix Metal network-to-network VLAN ID (optional when the connection has mode=tunnel)
- Nni
Vnid int - Nni VLAN ID parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
- Peer
Asn int - The BGP ASN of the peer. The same ASN may be the used across several VCs, but it cannot be the same as the local_asn of the VRF.
- Port
Id string - UUID of the Connection Port where the VC is scoped to
- Project
Id string - UUID of the Project where the VC is scoped to
- Speed string
- Description of the Virtual Circuit speed. This is for information purposes and is computed when the connection type is shared.
- Status string
- Status of the virtual circuit resource
- Subnet string
- A subnet from one of the IP blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /30 or /31. * For a /31 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /30 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- Subnet
Ipv6 string - A subnet from one of the IPv6 blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /126 or /127. * For a /127 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /126 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- List<string>
- Tags attached to the virtual circuit
- Virtual
Circuit stringId - UUID of an existing VC to configure. Used in the case of shared interconnections where the VC has already been created.
- Vlan
Id string - UUID of the VLAN to associate
- Vnid int
- VNID VLAN parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
- Vrf
Id string - UUID of the VRF to associate
- Connection
Id string - UUID of Connection where the VC is scoped to. Only used for dedicated connections
- Customer
Ip string - The Customer IP address which the CSR switch will peer with. Will default to the other usable IP in the subnet.
- Customer
Ipv6 string - The Customer IPv6 address which the CSR switch will peer with. Will default to the other usable IP in the IPv6 subnet.
- Description string
- Description of the Virtual Circuit resource
- Md5 string
- The password that can be set for the VRF BGP peer
- Metal
Ip string - The Metal IP address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the subnet.
- Metal
Ipv6 string - The Metal IPv6 address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the IPv6 subnet.
- Name string
- Name of the Virtual Circuit resource
- Nni
Vlan int - Equinix Metal network-to-network VLAN ID (optional when the connection has mode=tunnel)
- Nni
Vnid int - Nni VLAN ID parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
- Peer
Asn int - The BGP ASN of the peer. The same ASN may be the used across several VCs, but it cannot be the same as the local_asn of the VRF.
- Port
Id string - UUID of the Connection Port where the VC is scoped to
- Project
Id string - UUID of the Project where the VC is scoped to
- Speed string
- Description of the Virtual Circuit speed. This is for information purposes and is computed when the connection type is shared.
- Status string
- Status of the virtual circuit resource
- Subnet string
- A subnet from one of the IP blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /30 or /31. * For a /31 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /30 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- Subnet
Ipv6 string - A subnet from one of the IPv6 blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /126 or /127. * For a /127 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /126 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- []string
- Tags attached to the virtual circuit
- Virtual
Circuit stringId - UUID of an existing VC to configure. Used in the case of shared interconnections where the VC has already been created.
- Vlan
Id string - UUID of the VLAN to associate
- Vnid int
- VNID VLAN parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
- Vrf
Id string - UUID of the VRF to associate
- connection
Id String - UUID of Connection where the VC is scoped to. Only used for dedicated connections
- customer
Ip String - The Customer IP address which the CSR switch will peer with. Will default to the other usable IP in the subnet.
- customer
Ipv6 String - The Customer IPv6 address which the CSR switch will peer with. Will default to the other usable IP in the IPv6 subnet.
- description String
- Description of the Virtual Circuit resource
- md5 String
- The password that can be set for the VRF BGP peer
- metal
Ip String - The Metal IP address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the subnet.
- metal
Ipv6 String - The Metal IPv6 address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the IPv6 subnet.
- name String
- Name of the Virtual Circuit resource
- nni
Vlan Integer - Equinix Metal network-to-network VLAN ID (optional when the connection has mode=tunnel)
- nni
Vnid Integer - Nni VLAN ID parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
- peer
Asn Integer - The BGP ASN of the peer. The same ASN may be the used across several VCs, but it cannot be the same as the local_asn of the VRF.
- port
Id String - UUID of the Connection Port where the VC is scoped to
- project
Id String - UUID of the Project where the VC is scoped to
- speed String
- Description of the Virtual Circuit speed. This is for information purposes and is computed when the connection type is shared.
- status String
- Status of the virtual circuit resource
- subnet String
- A subnet from one of the IP blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /30 or /31. * For a /31 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /30 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- subnet
Ipv6 String - A subnet from one of the IPv6 blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /126 or /127. * For a /127 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /126 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- List<String>
- Tags attached to the virtual circuit
- virtual
Circuit StringId - UUID of an existing VC to configure. Used in the case of shared interconnections where the VC has already been created.
- vlan
Id String - UUID of the VLAN to associate
- vnid Integer
- VNID VLAN parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
- vrf
Id String - UUID of the VRF to associate
- connection
Id string - UUID of Connection where the VC is scoped to. Only used for dedicated connections
- customer
Ip string - The Customer IP address which the CSR switch will peer with. Will default to the other usable IP in the subnet.
- customer
Ipv6 string - The Customer IPv6 address which the CSR switch will peer with. Will default to the other usable IP in the IPv6 subnet.
- description string
- Description of the Virtual Circuit resource
- md5 string
- The password that can be set for the VRF BGP peer
- metal
Ip string - The Metal IP address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the subnet.
- metal
Ipv6 string - The Metal IPv6 address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the IPv6 subnet.
- name string
- Name of the Virtual Circuit resource
- nni
Vlan number - Equinix Metal network-to-network VLAN ID (optional when the connection has mode=tunnel)
- nni
Vnid number - Nni VLAN ID parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
- peer
Asn number - The BGP ASN of the peer. The same ASN may be the used across several VCs, but it cannot be the same as the local_asn of the VRF.
- port
Id string - UUID of the Connection Port where the VC is scoped to
- project
Id string - UUID of the Project where the VC is scoped to
- speed string
- Description of the Virtual Circuit speed. This is for information purposes and is computed when the connection type is shared.
- status string
- Status of the virtual circuit resource
- subnet string
- A subnet from one of the IP blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /30 or /31. * For a /31 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /30 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- subnet
Ipv6 string - A subnet from one of the IPv6 blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /126 or /127. * For a /127 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /126 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- string[]
- Tags attached to the virtual circuit
- virtual
Circuit stringId - UUID of an existing VC to configure. Used in the case of shared interconnections where the VC has already been created.
- vlan
Id string - UUID of the VLAN to associate
- vnid number
- VNID VLAN parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
- vrf
Id string - UUID of the VRF to associate
- connection_
id str - UUID of Connection where the VC is scoped to. Only used for dedicated connections
- customer_
ip str - The Customer IP address which the CSR switch will peer with. Will default to the other usable IP in the subnet.
- customer_
ipv6 str - The Customer IPv6 address which the CSR switch will peer with. Will default to the other usable IP in the IPv6 subnet.
- description str
- Description of the Virtual Circuit resource
- md5 str
- The password that can be set for the VRF BGP peer
- metal_
ip str - The Metal IP address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the subnet.
- metal_
ipv6 str - The Metal IPv6 address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the IPv6 subnet.
- name str
- Name of the Virtual Circuit resource
- nni_
vlan int - Equinix Metal network-to-network VLAN ID (optional when the connection has mode=tunnel)
- nni_
vnid int - Nni VLAN ID parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
- peer_
asn int - The BGP ASN of the peer. The same ASN may be the used across several VCs, but it cannot be the same as the local_asn of the VRF.
- port_
id str - UUID of the Connection Port where the VC is scoped to
- project_
id str - UUID of the Project where the VC is scoped to
- speed str
- Description of the Virtual Circuit speed. This is for information purposes and is computed when the connection type is shared.
- status str
- Status of the virtual circuit resource
- subnet str
- A subnet from one of the IP blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /30 or /31. * For a /31 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /30 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- subnet_
ipv6 str - A subnet from one of the IPv6 blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /126 or /127. * For a /127 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /126 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- Sequence[str]
- Tags attached to the virtual circuit
- virtual_
circuit_ strid - UUID of an existing VC to configure. Used in the case of shared interconnections where the VC has already been created.
- vlan_
id str - UUID of the VLAN to associate
- vnid int
- VNID VLAN parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
- vrf_
id str - UUID of the VRF to associate
- connection
Id String - UUID of Connection where the VC is scoped to. Only used for dedicated connections
- customer
Ip String - The Customer IP address which the CSR switch will peer with. Will default to the other usable IP in the subnet.
- customer
Ipv6 String - The Customer IPv6 address which the CSR switch will peer with. Will default to the other usable IP in the IPv6 subnet.
- description String
- Description of the Virtual Circuit resource
- md5 String
- The password that can be set for the VRF BGP peer
- metal
Ip String - The Metal IP address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the subnet.
- metal
Ipv6 String - The Metal IPv6 address for the SVI (Switch Virtual Interface) of the VirtualCircuit. Will default to the first usable IP in the IPv6 subnet.
- name String
- Name of the Virtual Circuit resource
- nni
Vlan Number - Equinix Metal network-to-network VLAN ID (optional when the connection has mode=tunnel)
- nni
Vnid Number - Nni VLAN ID parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
- peer
Asn Number - The BGP ASN of the peer. The same ASN may be the used across several VCs, but it cannot be the same as the local_asn of the VRF.
- port
Id String - UUID of the Connection Port where the VC is scoped to
- project
Id String - UUID of the Project where the VC is scoped to
- speed String
- Description of the Virtual Circuit speed. This is for information purposes and is computed when the connection type is shared.
- status String
- Status of the virtual circuit resource
- subnet String
- A subnet from one of the IP blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /30 or /31. * For a /31 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /30 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- subnet
Ipv6 String - A subnet from one of the IPv6 blocks associated with the VRF that we will help create an IP reservation for. Can only be either a /126 or /127. * For a /127 block, it will only have two IP addresses, which will be used for the metalip and customerip. * For a /126 block, it will have four IP addresses, but the first and last IP addresses are not usable. We will default to the first usable IP address for the metal_ip.
- List<String>
- Tags attached to the virtual circuit
- virtual
Circuit StringId - UUID of an existing VC to configure. Used in the case of shared interconnections where the VC has already been created.
- vlan
Id String - UUID of the VLAN to associate
- vnid Number
- VNID VLAN parameter, see https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/
- vrf
Id String - UUID of the VRF to associate
Package Details
- Repository
- equinix equinix/pulumi-equinix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
equinix
Terraform Provider.