Equinix v0.18.0 published on Monday, Sep 23, 2024 by Equinix
equinix.metal.getInterconnection
Explore with Pulumi AI
Use this data source to retrieve a connection resource
Equinix Metal connection with with Service Token A-side / Z-side (service_token_type) is not generally available and may not be enabled yet for your organization.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as equinix from "@pulumi/equinix";
const example = equinix.metal.getInterconnection({
connectionId: "4347e805-eb46-4699-9eb9-5c116e6a017d",
});
import pulumi
import pulumi_equinix as equinix
example = equinix.metal.get_interconnection(connection_id="4347e805-eb46-4699-9eb9-5c116e6a017d")
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 {
_, err := metal.LookupInterconnection(ctx, &metal.LookupInterconnectionArgs{
ConnectionId: "4347e805-eb46-4699-9eb9-5c116e6a017d",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Equinix = Pulumi.Equinix;
return await Deployment.RunAsync(() =>
{
var example = Equinix.Metal.GetInterconnection.Invoke(new()
{
ConnectionId = "4347e805-eb46-4699-9eb9-5c116e6a017d",
});
});
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 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 example = MetalFunctions.getInterconnection(GetInterconnectionArgs.builder()
.connectionId("4347e805-eb46-4699-9eb9-5c116e6a017d")
.build());
}
}
variables:
example:
fn::invoke:
Function: equinix:metal:getInterconnection
Arguments:
connectionId: 4347e805-eb46-4699-9eb9-5c116e6a017d
Using getInterconnection
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getInterconnection(args: GetInterconnectionArgs, opts?: InvokeOptions): Promise<GetInterconnectionResult>
function getInterconnectionOutput(args: GetInterconnectionOutputArgs, opts?: InvokeOptions): Output<GetInterconnectionResult>
def get_interconnection(connection_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInterconnectionResult
def get_interconnection_output(connection_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInterconnectionResult]
func LookupInterconnection(ctx *Context, args *LookupInterconnectionArgs, opts ...InvokeOption) (*LookupInterconnectionResult, error)
func LookupInterconnectionOutput(ctx *Context, args *LookupInterconnectionOutputArgs, opts ...InvokeOption) LookupInterconnectionResultOutput
> Note: This function is named LookupInterconnection
in the Go SDK.
public static class GetInterconnection
{
public static Task<GetInterconnectionResult> InvokeAsync(GetInterconnectionArgs args, InvokeOptions? opts = null)
public static Output<GetInterconnectionResult> Invoke(GetInterconnectionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInterconnectionResult> getInterconnection(GetInterconnectionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: equinix:metal/getInterconnection:getInterconnection
arguments:
# arguments dictionary
The following arguments are supported:
- Connection
Id string - ID of the connection resource.
- Connection
Id string - ID of the connection resource.
- connection
Id String - ID of the connection resource.
- connection
Id string - ID of the connection resource.
- connection_
id str - ID of the connection resource.
- connection
Id String - ID of the connection resource.
getInterconnection Result
The following output properties are available:
- string
- Fabric Authorization Code to configure the Metal-Fabric Integration connection in Equinix Fabric with the equinix.fabric.Connection resource or from the Equinix Fabric Portal.
- Connection
Id string - Contact
Email string - The preferred email used for communication and notifications about the Equinix Fabric interconnection.
- Description string
- Description of the connection resource.
- Facility string
- (Deprecated) Slug of a facility to which the connection belongs. Use metro instead; read the facility to metro migration guide
- Id string
- Port UUID.
- Metro string
- Slug of a metro to which the connection belongs.
- Mode string
- Mode for connections in IBX facilities with the dedicated type - standard or tunnel.
- Name string
- Port name.
- Organization
Id string - ID of the organization where the connection is scoped to.
- Ports
List<Get
Interconnection Port> - List of connection ports - primary (
ports[0]
) and secondary (ports[1]
) - Project
Id string - ID of project to which the connection belongs.
- Redundancy string
- Connection redundancy, reduntant or primary.
- Service
Token stringType - Type of service token, a_side or z_side. One available in shared connection.
- Service
Tokens List<GetInterconnection Service Token> - List of connection service tokens with attributes
- Speed string
- Port speed in bits per second.
- Status string
- Port status.
- List<string>
- String list of tags.
- Token string
- (Deprecated) Fabric Token required to configure the connection in Equinix Fabric with the equinix.fabric.Connection resource or from the Equinix Fabric Portal. If your organization already has connection service tokens enabled, use
service_tokens
instead. - Type string
- Token type,
a_side
orz_side
. - Vlans List<int>
- Attached VLANs. Only available in shared connection. One vlan for Primary/Single connection and two vlans for Redundant connection.
- Vrfs List<string>
- string
- Fabric Authorization Code to configure the Metal-Fabric Integration connection in Equinix Fabric with the equinix.fabric.Connection resource or from the Equinix Fabric Portal.
- Connection
Id string - Contact
Email string - The preferred email used for communication and notifications about the Equinix Fabric interconnection.
- Description string
- Description of the connection resource.
- Facility string
- (Deprecated) Slug of a facility to which the connection belongs. Use metro instead; read the facility to metro migration guide
- Id string
- Port UUID.
- Metro string
- Slug of a metro to which the connection belongs.
- Mode string
- Mode for connections in IBX facilities with the dedicated type - standard or tunnel.
- Name string
- Port name.
- Organization
Id string - ID of the organization where the connection is scoped to.
- Ports
[]Get
Interconnection Port - List of connection ports - primary (
ports[0]
) and secondary (ports[1]
) - Project
Id string - ID of project to which the connection belongs.
- Redundancy string
- Connection redundancy, reduntant or primary.
- Service
Token stringType - Type of service token, a_side or z_side. One available in shared connection.
- Service
Tokens []GetInterconnection Service Token - List of connection service tokens with attributes
- Speed string
- Port speed in bits per second.
- Status string
- Port status.
- []string
- String list of tags.
- Token string
- (Deprecated) Fabric Token required to configure the connection in Equinix Fabric with the equinix.fabric.Connection resource or from the Equinix Fabric Portal. If your organization already has connection service tokens enabled, use
service_tokens
instead. - Type string
- Token type,
a_side
orz_side
. - Vlans []int
- Attached VLANs. Only available in shared connection. One vlan for Primary/Single connection and two vlans for Redundant connection.
- Vrfs []string
- String
- Fabric Authorization Code to configure the Metal-Fabric Integration connection in Equinix Fabric with the equinix.fabric.Connection resource or from the Equinix Fabric Portal.
- connection
Id String - contact
Email String - The preferred email used for communication and notifications about the Equinix Fabric interconnection.
- description String
- Description of the connection resource.
- facility String
- (Deprecated) Slug of a facility to which the connection belongs. Use metro instead; read the facility to metro migration guide
- id String
- Port UUID.
- metro String
- Slug of a metro to which the connection belongs.
- mode String
- Mode for connections in IBX facilities with the dedicated type - standard or tunnel.
- name String
- Port name.
- organization
Id String - ID of the organization where the connection is scoped to.
- ports
List<Get
Interconnection Port> - List of connection ports - primary (
ports[0]
) and secondary (ports[1]
) - project
Id String - ID of project to which the connection belongs.
- redundancy String
- Connection redundancy, reduntant or primary.
- service
Token StringType - Type of service token, a_side or z_side. One available in shared connection.
- service
Tokens List<GetInterconnection Service Token> - List of connection service tokens with attributes
- speed String
- Port speed in bits per second.
- status String
- Port status.
- List<String>
- String list of tags.
- token String
- (Deprecated) Fabric Token required to configure the connection in Equinix Fabric with the equinix.fabric.Connection resource or from the Equinix Fabric Portal. If your organization already has connection service tokens enabled, use
service_tokens
instead. - type String
- Token type,
a_side
orz_side
. - vlans List<Integer>
- Attached VLANs. Only available in shared connection. One vlan for Primary/Single connection and two vlans for Redundant connection.
- vrfs List<String>
- string
- Fabric Authorization Code to configure the Metal-Fabric Integration connection in Equinix Fabric with the equinix.fabric.Connection resource or from the Equinix Fabric Portal.
- connection
Id string - contact
Email string - The preferred email used for communication and notifications about the Equinix Fabric interconnection.
- description string
- Description of the connection resource.
- facility string
- (Deprecated) Slug of a facility to which the connection belongs. Use metro instead; read the facility to metro migration guide
- id string
- Port UUID.
- metro string
- Slug of a metro to which the connection belongs.
- mode string
- Mode for connections in IBX facilities with the dedicated type - standard or tunnel.
- name string
- Port name.
- organization
Id string - ID of the organization where the connection is scoped to.
- ports
Get
Interconnection Port[] - List of connection ports - primary (
ports[0]
) and secondary (ports[1]
) - project
Id string - ID of project to which the connection belongs.
- redundancy string
- Connection redundancy, reduntant or primary.
- service
Token stringType - Type of service token, a_side or z_side. One available in shared connection.
- service
Tokens GetInterconnection Service Token[] - List of connection service tokens with attributes
- speed string
- Port speed in bits per second.
- status string
- Port status.
- string[]
- String list of tags.
- token string
- (Deprecated) Fabric Token required to configure the connection in Equinix Fabric with the equinix.fabric.Connection resource or from the Equinix Fabric Portal. If your organization already has connection service tokens enabled, use
service_tokens
instead. - type string
- Token type,
a_side
orz_side
. - vlans number[]
- Attached VLANs. Only available in shared connection. One vlan for Primary/Single connection and two vlans for Redundant connection.
- vrfs string[]
- str
- Fabric Authorization Code to configure the Metal-Fabric Integration connection in Equinix Fabric with the equinix.fabric.Connection resource or from the Equinix Fabric Portal.
- connection_
id str - contact_
email str - The preferred email used for communication and notifications about the Equinix Fabric interconnection.
- description str
- Description of the connection resource.
- facility str
- (Deprecated) Slug of a facility to which the connection belongs. Use metro instead; read the facility to metro migration guide
- id str
- Port UUID.
- metro str
- Slug of a metro to which the connection belongs.
- mode str
- Mode for connections in IBX facilities with the dedicated type - standard or tunnel.
- name str
- Port name.
- organization_
id str - ID of the organization where the connection is scoped to.
- ports
Sequence[Get
Interconnection Port] - List of connection ports - primary (
ports[0]
) and secondary (ports[1]
) - project_
id str - ID of project to which the connection belongs.
- redundancy str
- Connection redundancy, reduntant or primary.
- service_
token_ strtype - Type of service token, a_side or z_side. One available in shared connection.
- service_
tokens Sequence[GetInterconnection Service Token] - List of connection service tokens with attributes
- speed str
- Port speed in bits per second.
- status str
- Port status.
- Sequence[str]
- String list of tags.
- token str
- (Deprecated) Fabric Token required to configure the connection in Equinix Fabric with the equinix.fabric.Connection resource or from the Equinix Fabric Portal. If your organization already has connection service tokens enabled, use
service_tokens
instead. - type str
- Token type,
a_side
orz_side
. - vlans Sequence[int]
- Attached VLANs. Only available in shared connection. One vlan for Primary/Single connection and two vlans for Redundant connection.
- vrfs Sequence[str]
- String
- Fabric Authorization Code to configure the Metal-Fabric Integration connection in Equinix Fabric with the equinix.fabric.Connection resource or from the Equinix Fabric Portal.
- connection
Id String - contact
Email String - The preferred email used for communication and notifications about the Equinix Fabric interconnection.
- description String
- Description of the connection resource.
- facility String
- (Deprecated) Slug of a facility to which the connection belongs. Use metro instead; read the facility to metro migration guide
- id String
- Port UUID.
- metro String
- Slug of a metro to which the connection belongs.
- mode String
- Mode for connections in IBX facilities with the dedicated type - standard or tunnel.
- name String
- Port name.
- organization
Id String - ID of the organization where the connection is scoped to.
- ports List<Property Map>
- List of connection ports - primary (
ports[0]
) and secondary (ports[1]
) - project
Id String - ID of project to which the connection belongs.
- redundancy String
- Connection redundancy, reduntant or primary.
- service
Token StringType - Type of service token, a_side or z_side. One available in shared connection.
- service
Tokens List<Property Map> - List of connection service tokens with attributes
- speed String
- Port speed in bits per second.
- status String
- Port status.
- List<String>
- String list of tags.
- token String
- (Deprecated) Fabric Token required to configure the connection in Equinix Fabric with the equinix.fabric.Connection resource or from the Equinix Fabric Portal. If your organization already has connection service tokens enabled, use
service_tokens
instead. - type String
- Token type,
a_side
orz_side
. - vlans List<Number>
- Attached VLANs. Only available in shared connection. One vlan for Primary/Single connection and two vlans for Redundant connection.
- vrfs List<String>
Supporting Types
GetInterconnectionPort
- Id string
- Port UUID.
- Link
Status string - Port link status.
- Name string
- Port name.
- Role string
- Port role - primary or secondary.
- Speed int
- Port speed in bits per second.
- Status string
- Port status.
- Virtual
Circuit List<string>Ids - List of IDs of virtual cicruits attached to this port.
- Id string
- Port UUID.
- Link
Status string - Port link status.
- Name string
- Port name.
- Role string
- Port role - primary or secondary.
- Speed int
- Port speed in bits per second.
- Status string
- Port status.
- Virtual
Circuit []stringIds - List of IDs of virtual cicruits attached to this port.
- id String
- Port UUID.
- link
Status String - Port link status.
- name String
- Port name.
- role String
- Port role - primary or secondary.
- speed Integer
- Port speed in bits per second.
- status String
- Port status.
- virtual
Circuit List<String>Ids - List of IDs of virtual cicruits attached to this port.
- id string
- Port UUID.
- link
Status string - Port link status.
- name string
- Port name.
- role string
- Port role - primary or secondary.
- speed number
- Port speed in bits per second.
- status string
- Port status.
- virtual
Circuit string[]Ids - List of IDs of virtual cicruits attached to this port.
- id str
- Port UUID.
- link_
status str - Port link status.
- name str
- Port name.
- role str
- Port role - primary or secondary.
- speed int
- Port speed in bits per second.
- status str
- Port status.
- virtual_
circuit_ Sequence[str]ids - List of IDs of virtual cicruits attached to this port.
- id String
- Port UUID.
- link
Status String - Port link status.
- name String
- Port name.
- role String
- Port role - primary or secondary.
- speed Number
- Port speed in bits per second.
- status String
- Port status.
- virtual
Circuit List<String>Ids - List of IDs of virtual cicruits attached to this port.
GetInterconnectionServiceToken
- expires_
at str - Expiration date of the service token.
- id str
- Port UUID.
- max_
allowed_ strspeed - Maximum allowed speed for the service token, string like in the
speed
attribute. - role str
- Port role - primary or secondary.
- state str
- type str
- Token type,
a_side
orz_side
.
Package Details
- Repository
- equinix equinix/pulumi-equinix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
equinix
Terraform Provider.