Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Core.getCrossConnect
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides details about a specific Cross Connect resource in Oracle Cloud Infrastructure Core service.
Gets the specified cross-connect’s information.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCrossConnect = oci.Core.getCrossConnect({
crossConnectId: testCrossConnectOciCoreCrossConnect.id,
});
import pulumi
import pulumi_oci as oci
test_cross_connect = oci.Core.get_cross_connect(cross_connect_id=test_cross_connect_oci_core_cross_connect["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Core.GetCrossConnect(ctx, &core.GetCrossConnectArgs{
CrossConnectId: testCrossConnectOciCoreCrossConnect.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testCrossConnect = Oci.Core.GetCrossConnect.Invoke(new()
{
CrossConnectId = testCrossConnectOciCoreCrossConnect.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.CoreFunctions;
import com.pulumi.oci.Core.inputs.GetCrossConnectArgs;
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 testCrossConnect = CoreFunctions.getCrossConnect(GetCrossConnectArgs.builder()
.crossConnectId(testCrossConnectOciCoreCrossConnect.id())
.build());
}
}
variables:
testCrossConnect:
fn::invoke:
Function: oci:Core:getCrossConnect
Arguments:
crossConnectId: ${testCrossConnectOciCoreCrossConnect.id}
Using getCrossConnect
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 getCrossConnect(args: GetCrossConnectArgs, opts?: InvokeOptions): Promise<GetCrossConnectResult>
function getCrossConnectOutput(args: GetCrossConnectOutputArgs, opts?: InvokeOptions): Output<GetCrossConnectResult>
def get_cross_connect(cross_connect_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCrossConnectResult
def get_cross_connect_output(cross_connect_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCrossConnectResult]
func GetCrossConnect(ctx *Context, args *GetCrossConnectArgs, opts ...InvokeOption) (*GetCrossConnectResult, error)
func GetCrossConnectOutput(ctx *Context, args *GetCrossConnectOutputArgs, opts ...InvokeOption) GetCrossConnectResultOutput
> Note: This function is named GetCrossConnect
in the Go SDK.
public static class GetCrossConnect
{
public static Task<GetCrossConnectResult> InvokeAsync(GetCrossConnectArgs args, InvokeOptions? opts = null)
public static Output<GetCrossConnectResult> Invoke(GetCrossConnectInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCrossConnectResult> getCrossConnect(GetCrossConnectArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getCrossConnect:getCrossConnect
arguments:
# arguments dictionary
The following arguments are supported:
- Cross
Connect stringId - The OCID of the cross-connect.
- Cross
Connect stringId - The OCID of the cross-connect.
- cross
Connect StringId - The OCID of the cross-connect.
- cross
Connect stringId - The OCID of the cross-connect.
- cross_
connect_ strid - The OCID of the cross-connect.
- cross
Connect StringId - The OCID of the cross-connect.
getCrossConnect Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment containing the cross-connect group.
- Cross
Connect stringGroup Id - The OCID of the cross-connect group this cross-connect belongs to (if any).
- Cross
Connect stringId - Customer
Reference stringName - A reference name or identifier for the physical fiber connection that this cross-connect uses.
- Dictionary<string, object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Far
Cross stringConnect Or Cross Connect Group Id - Dictionary<string, object>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- The cross-connect's Oracle ID (OCID).
- Is
Active bool - Location
Name string - The name of the FastConnect location where this cross-connect is installed.
- Macsec
Properties List<GetCross Connect Macsec Property> - Properties used for MACsec (if capable).
- Near
Cross stringConnect Or Cross Connect Group Id - Oci
Logical stringDevice Name - The FastConnect device that terminates the logical connection. This device might be different than the device that terminates the physical connection.
- Oci
Physical stringDevice Name - The FastConnect device that terminates the physical connection.
- Port
Name string - A string identifying the meet-me room port for this cross-connect.
- Port
Speed stringShape Name - The port speed for this cross-connect. Example:
10 Gbps
- State string
- The cross-connect's current state.
- Time
Created string - The date and time the cross-connect was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Compartment
Id string - The OCID of the compartment containing the cross-connect group.
- Cross
Connect stringGroup Id - The OCID of the cross-connect group this cross-connect belongs to (if any).
- Cross
Connect stringId - Customer
Reference stringName - A reference name or identifier for the physical fiber connection that this cross-connect uses.
- map[string]interface{}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Far
Cross stringConnect Or Cross Connect Group Id - map[string]interface{}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- The cross-connect's Oracle ID (OCID).
- Is
Active bool - Location
Name string - The name of the FastConnect location where this cross-connect is installed.
- Macsec
Properties []GetCross Connect Macsec Property - Properties used for MACsec (if capable).
- Near
Cross stringConnect Or Cross Connect Group Id - Oci
Logical stringDevice Name - The FastConnect device that terminates the logical connection. This device might be different than the device that terminates the physical connection.
- Oci
Physical stringDevice Name - The FastConnect device that terminates the physical connection.
- Port
Name string - A string identifying the meet-me room port for this cross-connect.
- Port
Speed stringShape Name - The port speed for this cross-connect. Example:
10 Gbps
- State string
- The cross-connect's current state.
- Time
Created string - The date and time the cross-connect was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id String - The OCID of the compartment containing the cross-connect group.
- cross
Connect StringGroup Id - The OCID of the cross-connect group this cross-connect belongs to (if any).
- cross
Connect StringId - customer
Reference StringName - A reference name or identifier for the physical fiber connection that this cross-connect uses.
- Map<String,Object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- far
Cross StringConnect Or Cross Connect Group Id - Map<String,Object>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- The cross-connect's Oracle ID (OCID).
- is
Active Boolean - location
Name String - The name of the FastConnect location where this cross-connect is installed.
- macsec
Properties List<GetCross Connect Macsec Property> - Properties used for MACsec (if capable).
- near
Cross StringConnect Or Cross Connect Group Id - oci
Logical StringDevice Name - The FastConnect device that terminates the logical connection. This device might be different than the device that terminates the physical connection.
- oci
Physical StringDevice Name - The FastConnect device that terminates the physical connection.
- port
Name String - A string identifying the meet-me room port for this cross-connect.
- port
Speed StringShape Name - The port speed for this cross-connect. Example:
10 Gbps
- state String
- The cross-connect's current state.
- time
Created String - The date and time the cross-connect was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id string - The OCID of the compartment containing the cross-connect group.
- cross
Connect stringGroup Id - The OCID of the cross-connect group this cross-connect belongs to (if any).
- cross
Connect stringId - customer
Reference stringName - A reference name or identifier for the physical fiber connection that this cross-connect uses.
- {[key: string]: any}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- far
Cross stringConnect Or Cross Connect Group Id - {[key: string]: any}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id string
- The cross-connect's Oracle ID (OCID).
- is
Active boolean - location
Name string - The name of the FastConnect location where this cross-connect is installed.
- macsec
Properties GetCross Connect Macsec Property[] - Properties used for MACsec (if capable).
- near
Cross stringConnect Or Cross Connect Group Id - oci
Logical stringDevice Name - The FastConnect device that terminates the logical connection. This device might be different than the device that terminates the physical connection.
- oci
Physical stringDevice Name - The FastConnect device that terminates the physical connection.
- port
Name string - A string identifying the meet-me room port for this cross-connect.
- port
Speed stringShape Name - The port speed for this cross-connect. Example:
10 Gbps
- state string
- The cross-connect's current state.
- time
Created string - The date and time the cross-connect was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment_
id str - The OCID of the compartment containing the cross-connect group.
- cross_
connect_ strgroup_ id - The OCID of the cross-connect group this cross-connect belongs to (if any).
- cross_
connect_ strid - customer_
reference_ strname - A reference name or identifier for the physical fiber connection that this cross-connect uses.
- Mapping[str, Any]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- far_
cross_ strconnect_ or_ cross_ connect_ group_ id - Mapping[str, Any]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id str
- The cross-connect's Oracle ID (OCID).
- is_
active bool - location_
name str - The name of the FastConnect location where this cross-connect is installed.
- macsec_
properties Sequence[core.Get Cross Connect Macsec Property] - Properties used for MACsec (if capable).
- near_
cross_ strconnect_ or_ cross_ connect_ group_ id - oci_
logical_ strdevice_ name - The FastConnect device that terminates the logical connection. This device might be different than the device that terminates the physical connection.
- oci_
physical_ strdevice_ name - The FastConnect device that terminates the physical connection.
- port_
name str - A string identifying the meet-me room port for this cross-connect.
- port_
speed_ strshape_ name - The port speed for this cross-connect. Example:
10 Gbps
- state str
- The cross-connect's current state.
- time_
created str - The date and time the cross-connect was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id String - The OCID of the compartment containing the cross-connect group.
- cross
Connect StringGroup Id - The OCID of the cross-connect group this cross-connect belongs to (if any).
- cross
Connect StringId - customer
Reference StringName - A reference name or identifier for the physical fiber connection that this cross-connect uses.
- Map<Any>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- far
Cross StringConnect Or Cross Connect Group Id - Map<Any>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- The cross-connect's Oracle ID (OCID).
- is
Active Boolean - location
Name String - The name of the FastConnect location where this cross-connect is installed.
- macsec
Properties List<Property Map> - Properties used for MACsec (if capable).
- near
Cross StringConnect Or Cross Connect Group Id - oci
Logical StringDevice Name - The FastConnect device that terminates the logical connection. This device might be different than the device that terminates the physical connection.
- oci
Physical StringDevice Name - The FastConnect device that terminates the physical connection.
- port
Name String - A string identifying the meet-me room port for this cross-connect.
- port
Speed StringShape Name - The port speed for this cross-connect. Example:
10 Gbps
- state String
- The cross-connect's current state.
- time
Created String - The date and time the cross-connect was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
Supporting Types
GetCrossConnectMacsecProperty
- Encryption
Cipher string - Type of encryption cipher suite to use for the MACsec connection.
- Is
Unprotected boolTraffic Allowed - Indicates whether unencrypted traffic is allowed if MACsec Key Agreement protocol (MKA) fails.
- Primary
Keys List<GetCross Connect Macsec Property Primary Key> - An object defining the Secrets-in-Vault OCIDs representing the MACsec key.
- State string
- The cross-connect's current state.
- Encryption
Cipher string - Type of encryption cipher suite to use for the MACsec connection.
- Is
Unprotected boolTraffic Allowed - Indicates whether unencrypted traffic is allowed if MACsec Key Agreement protocol (MKA) fails.
- Primary
Keys []GetCross Connect Macsec Property Primary Key - An object defining the Secrets-in-Vault OCIDs representing the MACsec key.
- State string
- The cross-connect's current state.
- encryption
Cipher String - Type of encryption cipher suite to use for the MACsec connection.
- is
Unprotected BooleanTraffic Allowed - Indicates whether unencrypted traffic is allowed if MACsec Key Agreement protocol (MKA) fails.
- primary
Keys List<GetCross Connect Macsec Property Primary Key> - An object defining the Secrets-in-Vault OCIDs representing the MACsec key.
- state String
- The cross-connect's current state.
- encryption
Cipher string - Type of encryption cipher suite to use for the MACsec connection.
- is
Unprotected booleanTraffic Allowed - Indicates whether unencrypted traffic is allowed if MACsec Key Agreement protocol (MKA) fails.
- primary
Keys GetCross Connect Macsec Property Primary Key[] - An object defining the Secrets-in-Vault OCIDs representing the MACsec key.
- state string
- The cross-connect's current state.
- encryption_
cipher str - Type of encryption cipher suite to use for the MACsec connection.
- is_
unprotected_ booltraffic_ allowed - Indicates whether unencrypted traffic is allowed if MACsec Key Agreement protocol (MKA) fails.
- primary_
keys Sequence[core.Get Cross Connect Macsec Property Primary Key] - An object defining the Secrets-in-Vault OCIDs representing the MACsec key.
- state str
- The cross-connect's current state.
- encryption
Cipher String - Type of encryption cipher suite to use for the MACsec connection.
- is
Unprotected BooleanTraffic Allowed - Indicates whether unencrypted traffic is allowed if MACsec Key Agreement protocol (MKA) fails.
- primary
Keys List<Property Map> - An object defining the Secrets-in-Vault OCIDs representing the MACsec key.
- state String
- The cross-connect's current state.
GetCrossConnectMacsecPropertyPrimaryKey
- Connectivity
Association stringKey Secret Id - Secret OCID containing the Connectivity Association Key (CAK) of this MACsec key.
- Connectivity
Association stringKey Secret Version - The secret version of the
connectivityAssociationKey
secret in Vault. - Connectivity
Association stringName Secret Id - Secret OCID containing the Connectivity association Key Name (CKN) of this MACsec key.
- Connectivity
Association stringName Secret Version - The secret version of the connectivity association name secret in Vault.
- Connectivity
Association stringKey Secret Id - Secret OCID containing the Connectivity Association Key (CAK) of this MACsec key.
- Connectivity
Association stringKey Secret Version - The secret version of the
connectivityAssociationKey
secret in Vault. - Connectivity
Association stringName Secret Id - Secret OCID containing the Connectivity association Key Name (CKN) of this MACsec key.
- Connectivity
Association stringName Secret Version - The secret version of the connectivity association name secret in Vault.
- connectivity
Association StringKey Secret Id - Secret OCID containing the Connectivity Association Key (CAK) of this MACsec key.
- connectivity
Association StringKey Secret Version - The secret version of the
connectivityAssociationKey
secret in Vault. - connectivity
Association StringName Secret Id - Secret OCID containing the Connectivity association Key Name (CKN) of this MACsec key.
- connectivity
Association StringName Secret Version - The secret version of the connectivity association name secret in Vault.
- connectivity
Association stringKey Secret Id - Secret OCID containing the Connectivity Association Key (CAK) of this MACsec key.
- connectivity
Association stringKey Secret Version - The secret version of the
connectivityAssociationKey
secret in Vault. - connectivity
Association stringName Secret Id - Secret OCID containing the Connectivity association Key Name (CKN) of this MACsec key.
- connectivity
Association stringName Secret Version - The secret version of the connectivity association name secret in Vault.
- connectivity_
association_ strkey_ secret_ id - Secret OCID containing the Connectivity Association Key (CAK) of this MACsec key.
- connectivity_
association_ strkey_ secret_ version - The secret version of the
connectivityAssociationKey
secret in Vault. - connectivity_
association_ strname_ secret_ id - Secret OCID containing the Connectivity association Key Name (CKN) of this MACsec key.
- connectivity_
association_ strname_ secret_ version - The secret version of the connectivity association name secret in Vault.
- connectivity
Association StringKey Secret Id - Secret OCID containing the Connectivity Association Key (CAK) of this MACsec key.
- connectivity
Association StringKey Secret Version - The secret version of the
connectivityAssociationKey
secret in Vault. - connectivity
Association StringName Secret Id - Secret OCID containing the Connectivity association Key Name (CKN) of this MACsec key.
- connectivity
Association StringName Secret Version - The secret version of the connectivity association name secret in Vault.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi