Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Core.getCrossConnectGroups
Explore with Pulumi AI
This data source provides the list of Cross Connect Groups in Oracle Cloud Infrastructure Core service.
Lists the cross-connect groups in the specified compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCrossConnectGroups = oci.Core.getCrossConnectGroups({
    compartmentId: compartmentId,
    displayName: crossConnectGroupDisplayName,
    state: crossConnectGroupState,
});
import pulumi
import pulumi_oci as oci
test_cross_connect_groups = oci.Core.get_cross_connect_groups(compartment_id=compartment_id,
    display_name=cross_connect_group_display_name,
    state=cross_connect_group_state)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/core"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := core.GetCrossConnectGroups(ctx, &core.GetCrossConnectGroupsArgs{
			CompartmentId: compartmentId,
			DisplayName:   pulumi.StringRef(crossConnectGroupDisplayName),
			State:         pulumi.StringRef(crossConnectGroupState),
		}, 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 testCrossConnectGroups = Oci.Core.GetCrossConnectGroups.Invoke(new()
    {
        CompartmentId = compartmentId,
        DisplayName = crossConnectGroupDisplayName,
        State = crossConnectGroupState,
    });
});
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.GetCrossConnectGroupsArgs;
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 testCrossConnectGroups = CoreFunctions.getCrossConnectGroups(GetCrossConnectGroupsArgs.builder()
            .compartmentId(compartmentId)
            .displayName(crossConnectGroupDisplayName)
            .state(crossConnectGroupState)
            .build());
    }
}
variables:
  testCrossConnectGroups:
    fn::invoke:
      function: oci:Core:getCrossConnectGroups
      arguments:
        compartmentId: ${compartmentId}
        displayName: ${crossConnectGroupDisplayName}
        state: ${crossConnectGroupState}
Using getCrossConnectGroups
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 getCrossConnectGroups(args: GetCrossConnectGroupsArgs, opts?: InvokeOptions): Promise<GetCrossConnectGroupsResult>
function getCrossConnectGroupsOutput(args: GetCrossConnectGroupsOutputArgs, opts?: InvokeOptions): Output<GetCrossConnectGroupsResult>def get_cross_connect_groups(compartment_id: Optional[str] = None,
                             display_name: Optional[str] = None,
                             filters: Optional[Sequence[GetCrossConnectGroupsFilter]] = None,
                             state: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetCrossConnectGroupsResult
def get_cross_connect_groups_output(compartment_id: Optional[pulumi.Input[str]] = None,
                             display_name: Optional[pulumi.Input[str]] = None,
                             filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetCrossConnectGroupsFilterArgs]]]] = None,
                             state: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetCrossConnectGroupsResult]func GetCrossConnectGroups(ctx *Context, args *GetCrossConnectGroupsArgs, opts ...InvokeOption) (*GetCrossConnectGroupsResult, error)
func GetCrossConnectGroupsOutput(ctx *Context, args *GetCrossConnectGroupsOutputArgs, opts ...InvokeOption) GetCrossConnectGroupsResultOutput> Note: This function is named GetCrossConnectGroups in the Go SDK.
public static class GetCrossConnectGroups 
{
    public static Task<GetCrossConnectGroupsResult> InvokeAsync(GetCrossConnectGroupsArgs args, InvokeOptions? opts = null)
    public static Output<GetCrossConnectGroupsResult> Invoke(GetCrossConnectGroupsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCrossConnectGroupsResult> getCrossConnectGroups(GetCrossConnectGroupsArgs args, InvokeOptions options)
public static Output<GetCrossConnectGroupsResult> getCrossConnectGroups(GetCrossConnectGroupsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Core/getCrossConnectGroups:getCrossConnectGroups
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the compartment.
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- Filters
List<GetCross Connect Groups Filter> 
- State string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- CompartmentId string
- The OCID of the compartment.
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- Filters
[]GetCross Connect Groups Filter 
- State string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- compartmentId String
- The OCID of the compartment.
- displayName String
- A filter to return only resources that match the given display name exactly.
- filters
List<GetCross Connect Groups Filter> 
- state String
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- compartmentId string
- The OCID of the compartment.
- displayName string
- A filter to return only resources that match the given display name exactly.
- filters
GetCross Connect Groups Filter[] 
- state string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- compartment_id str
- The OCID of the compartment.
- display_name str
- A filter to return only resources that match the given display name exactly.
- filters
Sequence[GetCross Connect Groups Filter] 
- state str
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- compartmentId String
- The OCID of the compartment.
- displayName String
- A filter to return only resources that match the given display name exactly.
- filters List<Property Map>
- state String
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
getCrossConnectGroups Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment containing the cross-connect group.
- CrossConnect List<GetGroups Cross Connect Groups Cross Connect Group> 
- The list of cross_connect_groups.
- Id string
- The provider-assigned unique ID for this managed resource.
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
List<GetCross Connect Groups Filter> 
- State string
- The cross-connect group's current state.
- CompartmentId string
- The OCID of the compartment containing the cross-connect group.
- CrossConnect []GetGroups Cross Connect Groups Cross Connect Group 
- The list of cross_connect_groups.
- Id string
- The provider-assigned unique ID for this managed resource.
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
[]GetCross Connect Groups Filter 
- State string
- The cross-connect group's current state.
- compartmentId String
- The OCID of the compartment containing the cross-connect group.
- crossConnect List<GetGroups Cross Connect Groups Cross Connect Group> 
- The list of cross_connect_groups.
- id String
- The provider-assigned unique ID for this managed resource.
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
List<GetCross Connect Groups Filter> 
- state String
- The cross-connect group's current state.
- compartmentId string
- The OCID of the compartment containing the cross-connect group.
- crossConnect GetGroups Cross Connect Groups Cross Connect Group[] 
- The list of cross_connect_groups.
- id string
- The provider-assigned unique ID for this managed resource.
- displayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
GetCross Connect Groups Filter[] 
- state string
- The cross-connect group's current state.
- compartment_id str
- The OCID of the compartment containing the cross-connect group.
- cross_connect_ Sequence[Getgroups Cross Connect Groups Cross Connect Group] 
- The list of cross_connect_groups.
- id str
- The provider-assigned unique ID for this managed resource.
- display_name str
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Sequence[GetCross Connect Groups Filter] 
- state str
- The cross-connect group's current state.
- compartmentId String
- The OCID of the compartment containing the cross-connect group.
- crossConnect List<Property Map>Groups 
- The list of cross_connect_groups.
- id String
- The provider-assigned unique ID for this managed resource.
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters List<Property Map>
- state String
- The cross-connect group's current state.
Supporting Types
GetCrossConnectGroupsCrossConnectGroup      
- CompartmentId string
- The OCID of the compartment.
- CustomerReference stringName 
- A reference name or identifier for the physical fiber connection that this cross-connect group uses.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- Dictionary<string, string>
- 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 group's Oracle ID (OCID).
- MacsecProperties List<GetCross Connect Groups Cross Connect Group Macsec Property> 
- Properties used for MACsec (if capable).
- OciLogical stringDevice Name 
- The FastConnect device that terminates the logical connection. This device might be different than the device that terminates the physical connection.
- OciPhysical stringDevice Name 
- The FastConnect device that terminates the physical connection.
- State string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- TimeCreated string
- The date and time the cross-connect group was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- CompartmentId string
- The OCID of the compartment.
- CustomerReference stringName 
- A reference name or identifier for the physical fiber connection that this cross-connect group uses.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- map[string]string
- 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 group's Oracle ID (OCID).
- MacsecProperties []GetCross Connect Groups Cross Connect Group Macsec Property 
- Properties used for MACsec (if capable).
- OciLogical stringDevice Name 
- The FastConnect device that terminates the logical connection. This device might be different than the device that terminates the physical connection.
- OciPhysical stringDevice Name 
- The FastConnect device that terminates the physical connection.
- State string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- TimeCreated string
- The date and time the cross-connect group was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- compartmentId String
- The OCID of the compartment.
- customerReference StringName 
- A reference name or identifier for the physical fiber connection that this cross-connect group uses.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName String
- A filter to return only resources that match the given display name exactly.
- Map<String,String>
- 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 group's Oracle ID (OCID).
- macsecProperties List<GetCross Connect Groups Cross Connect Group Macsec Property> 
- Properties used for MACsec (if capable).
- ociLogical StringDevice Name 
- The FastConnect device that terminates the logical connection. This device might be different than the device that terminates the physical connection.
- ociPhysical StringDevice Name 
- The FastConnect device that terminates the physical connection.
- state String
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- timeCreated String
- The date and time the cross-connect group was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- compartmentId string
- The OCID of the compartment.
- customerReference stringName 
- A reference name or identifier for the physical fiber connection that this cross-connect group uses.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName string
- A filter to return only resources that match the given display name exactly.
- {[key: string]: string}
- 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 group's Oracle ID (OCID).
- macsecProperties GetCross Connect Groups Cross Connect Group Macsec Property[] 
- Properties used for MACsec (if capable).
- ociLogical stringDevice Name 
- The FastConnect device that terminates the logical connection. This device might be different than the device that terminates the physical connection.
- ociPhysical stringDevice Name 
- The FastConnect device that terminates the physical connection.
- state string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- timeCreated string
- The date and time the cross-connect group was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- compartment_id str
- The OCID of the compartment.
- customer_reference_ strname 
- A reference name or identifier for the physical fiber connection that this cross-connect group uses.
- Mapping[str, str]
- 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 filter to return only resources that match the given display name exactly.
- Mapping[str, str]
- 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 group's Oracle ID (OCID).
- macsec_properties Sequence[GetCross Connect Groups Cross Connect Group Macsec Property] 
- Properties used for MACsec (if capable).
- 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.
- state str
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- time_created str
- The date and time the cross-connect group was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- compartmentId String
- The OCID of the compartment.
- customerReference StringName 
- A reference name or identifier for the physical fiber connection that this cross-connect group uses.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName String
- A filter to return only resources that match the given display name exactly.
- Map<String>
- 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 group's Oracle ID (OCID).
- macsecProperties List<Property Map>
- Properties used for MACsec (if capable).
- ociLogical StringDevice Name 
- The FastConnect device that terminates the logical connection. This device might be different than the device that terminates the physical connection.
- ociPhysical StringDevice Name 
- The FastConnect device that terminates the physical connection.
- state String
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- timeCreated String
- The date and time the cross-connect group was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
GetCrossConnectGroupsCrossConnectGroupMacsecProperty        
- EncryptionCipher string
- Type of encryption cipher suite to use for the MACsec connection.
- IsUnprotected boolTraffic Allowed 
- Indicates whether unencrypted traffic is allowed if MACsec Key Agreement protocol (MKA) fails.
- PrimaryKeys List<GetCross Connect Groups Cross Connect Group Macsec Property Primary Key> 
- An object defining the Secrets-in-Vault OCIDs representing the MACsec key.
- State string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- EncryptionCipher string
- Type of encryption cipher suite to use for the MACsec connection.
- IsUnprotected boolTraffic Allowed 
- Indicates whether unencrypted traffic is allowed if MACsec Key Agreement protocol (MKA) fails.
- PrimaryKeys []GetCross Connect Groups Cross Connect Group Macsec Property Primary Key 
- An object defining the Secrets-in-Vault OCIDs representing the MACsec key.
- State string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- encryptionCipher String
- Type of encryption cipher suite to use for the MACsec connection.
- isUnprotected BooleanTraffic Allowed 
- Indicates whether unencrypted traffic is allowed if MACsec Key Agreement protocol (MKA) fails.
- primaryKeys List<GetCross Connect Groups Cross Connect Group Macsec Property Primary Key> 
- An object defining the Secrets-in-Vault OCIDs representing the MACsec key.
- state String
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- encryptionCipher string
- Type of encryption cipher suite to use for the MACsec connection.
- isUnprotected booleanTraffic Allowed 
- Indicates whether unencrypted traffic is allowed if MACsec Key Agreement protocol (MKA) fails.
- primaryKeys GetCross Connect Groups Cross Connect Group Macsec Property Primary Key[] 
- An object defining the Secrets-in-Vault OCIDs representing the MACsec key.
- state string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- 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[GetCross Connect Groups Cross Connect Group Macsec Property Primary Key] 
- An object defining the Secrets-in-Vault OCIDs representing the MACsec key.
- state str
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- encryptionCipher String
- Type of encryption cipher suite to use for the MACsec connection.
- isUnprotected BooleanTraffic Allowed 
- Indicates whether unencrypted traffic is allowed if MACsec Key Agreement protocol (MKA) fails.
- primaryKeys List<Property Map>
- An object defining the Secrets-in-Vault OCIDs representing the MACsec key.
- state String
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
GetCrossConnectGroupsCrossConnectGroupMacsecPropertyPrimaryKey          
- ConnectivityAssociation stringKey Secret Id 
- Secret OCID containing the Connectivity Association Key (CAK) of this MACsec key.
- ConnectivityAssociation stringKey Secret Version 
- The secret version of the connectivityAssociationKeysecret in Vault.
- ConnectivityAssociation stringName Secret Id 
- Secret OCID containing the Connectivity association Key Name (CKN) of this MACsec key.
- ConnectivityAssociation stringName Secret Version 
- The secret version of the connectivity association name secret in Vault.
- ConnectivityAssociation stringKey Secret Id 
- Secret OCID containing the Connectivity Association Key (CAK) of this MACsec key.
- ConnectivityAssociation stringKey Secret Version 
- The secret version of the connectivityAssociationKeysecret in Vault.
- ConnectivityAssociation stringName Secret Id 
- Secret OCID containing the Connectivity association Key Name (CKN) of this MACsec key.
- ConnectivityAssociation stringName Secret Version 
- The secret version of the connectivity association name secret in Vault.
- connectivityAssociation StringKey Secret Id 
- Secret OCID containing the Connectivity Association Key (CAK) of this MACsec key.
- connectivityAssociation StringKey Secret Version 
- The secret version of the connectivityAssociationKeysecret in Vault.
- connectivityAssociation StringName Secret Id 
- Secret OCID containing the Connectivity association Key Name (CKN) of this MACsec key.
- connectivityAssociation StringName Secret Version 
- The secret version of the connectivity association name secret in Vault.
- connectivityAssociation stringKey Secret Id 
- Secret OCID containing the Connectivity Association Key (CAK) of this MACsec key.
- connectivityAssociation stringKey Secret Version 
- The secret version of the connectivityAssociationKeysecret in Vault.
- connectivityAssociation stringName Secret Id 
- Secret OCID containing the Connectivity association Key Name (CKN) of this MACsec key.
- connectivityAssociation 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 connectivityAssociationKeysecret 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.
- connectivityAssociation StringKey Secret Id 
- Secret OCID containing the Connectivity Association Key (CAK) of this MACsec key.
- connectivityAssociation StringKey Secret Version 
- The secret version of the connectivityAssociationKeysecret in Vault.
- connectivityAssociation StringName Secret Id 
- Secret OCID containing the Connectivity association Key Name (CKN) of this MACsec key.
- connectivityAssociation StringName Secret Version 
- The secret version of the connectivity association name secret in Vault.
GetCrossConnectGroupsFilter    
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.