1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getCrossConnectLocations
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.Core.getCrossConnectLocations

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

This data source provides the list of Cross Connect Locations in Oracle Cloud Infrastructure Core service.

Lists the available FastConnect locations for cross-connect installation. You need this information so you can specify your desired location when you create a cross-connect.

Example Usage

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

const testCrossConnectLocations = oci.Core.getCrossConnectLocations({
    compartmentId: compartmentId,
});
Copy
import pulumi
import pulumi_oci as oci

test_cross_connect_locations = oci.Core.get_cross_connect_locations(compartment_id=compartment_id)
Copy
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.GetCrossConnectLocations(ctx, &core.GetCrossConnectLocationsArgs{
			CompartmentId: compartmentId,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testCrossConnectLocations = Oci.Core.GetCrossConnectLocations.Invoke(new()
    {
        CompartmentId = compartmentId,
    });

});
Copy
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.GetCrossConnectLocationsArgs;
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 testCrossConnectLocations = CoreFunctions.getCrossConnectLocations(GetCrossConnectLocationsArgs.builder()
            .compartmentId(compartmentId)
            .build());

    }
}
Copy
variables:
  testCrossConnectLocations:
    fn::invoke:
      function: oci:Core:getCrossConnectLocations
      arguments:
        compartmentId: ${compartmentId}
Copy

Using getCrossConnectLocations

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 getCrossConnectLocations(args: GetCrossConnectLocationsArgs, opts?: InvokeOptions): Promise<GetCrossConnectLocationsResult>
function getCrossConnectLocationsOutput(args: GetCrossConnectLocationsOutputArgs, opts?: InvokeOptions): Output<GetCrossConnectLocationsResult>
Copy
def get_cross_connect_locations(compartment_id: Optional[str] = None,
                                filters: Optional[Sequence[_core.GetCrossConnectLocationsFilter]] = None,
                                opts: Optional[InvokeOptions] = None) -> GetCrossConnectLocationsResult
def get_cross_connect_locations_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetCrossConnectLocationsFilterArgs]]]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetCrossConnectLocationsResult]
Copy
func GetCrossConnectLocations(ctx *Context, args *GetCrossConnectLocationsArgs, opts ...InvokeOption) (*GetCrossConnectLocationsResult, error)
func GetCrossConnectLocationsOutput(ctx *Context, args *GetCrossConnectLocationsOutputArgs, opts ...InvokeOption) GetCrossConnectLocationsResultOutput
Copy

> Note: This function is named GetCrossConnectLocations in the Go SDK.

public static class GetCrossConnectLocations 
{
    public static Task<GetCrossConnectLocationsResult> InvokeAsync(GetCrossConnectLocationsArgs args, InvokeOptions? opts = null)
    public static Output<GetCrossConnectLocationsResult> Invoke(GetCrossConnectLocationsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetCrossConnectLocationsResult> getCrossConnectLocations(GetCrossConnectLocationsArgs args, InvokeOptions options)
public static Output<GetCrossConnectLocationsResult> getCrossConnectLocations(GetCrossConnectLocationsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Core/getCrossConnectLocations:getCrossConnectLocations
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID of the compartment.
Filters Changes to this property will trigger replacement. List<GetCrossConnectLocationsFilter>
CompartmentId This property is required. string
The OCID of the compartment.
Filters Changes to this property will trigger replacement. []GetCrossConnectLocationsFilter
compartmentId This property is required. String
The OCID of the compartment.
filters Changes to this property will trigger replacement. List<GetCrossConnectLocationsFilter>
compartmentId This property is required. string
The OCID of the compartment.
filters Changes to this property will trigger replacement. GetCrossConnectLocationsFilter[]
compartment_id This property is required. str
The OCID of the compartment.
filters Changes to this property will trigger replacement. Sequence[core.GetCrossConnectLocationsFilter]
compartmentId This property is required. String
The OCID of the compartment.
filters Changes to this property will trigger replacement. List<Property Map>

getCrossConnectLocations Result

The following output properties are available:

CompartmentId string
CrossConnectLocations List<GetCrossConnectLocationsCrossConnectLocation>
The list of cross_connect_locations.
Id string
The provider-assigned unique ID for this managed resource.
Filters List<GetCrossConnectLocationsFilter>
CompartmentId string
CrossConnectLocations []GetCrossConnectLocationsCrossConnectLocation
The list of cross_connect_locations.
Id string
The provider-assigned unique ID for this managed resource.
Filters []GetCrossConnectLocationsFilter
compartmentId String
crossConnectLocations List<GetCrossConnectLocationsCrossConnectLocation>
The list of cross_connect_locations.
id String
The provider-assigned unique ID for this managed resource.
filters List<GetCrossConnectLocationsFilter>
compartmentId string
crossConnectLocations GetCrossConnectLocationsCrossConnectLocation[]
The list of cross_connect_locations.
id string
The provider-assigned unique ID for this managed resource.
filters GetCrossConnectLocationsFilter[]
compartment_id str
cross_connect_locations Sequence[core.GetCrossConnectLocationsCrossConnectLocation]
The list of cross_connect_locations.
id str
The provider-assigned unique ID for this managed resource.
filters Sequence[core.GetCrossConnectLocationsFilter]
compartmentId String
crossConnectLocations List<Property Map>
The list of cross_connect_locations.
id String
The provider-assigned unique ID for this managed resource.
filters List<Property Map>

Supporting Types

GetCrossConnectLocationsCrossConnectLocation

Description This property is required. string
A description of the location.
Name This property is required. string
The name of the location. Example: CyrusOne, Chandler, AZ
Description This property is required. string
A description of the location.
Name This property is required. string
The name of the location. Example: CyrusOne, Chandler, AZ
description This property is required. String
A description of the location.
name This property is required. String
The name of the location. Example: CyrusOne, Chandler, AZ
description This property is required. string
A description of the location.
name This property is required. string
The name of the location. Example: CyrusOne, Chandler, AZ
description This property is required. str
A description of the location.
name This property is required. str
The name of the location. Example: CyrusOne, Chandler, AZ
description This property is required. String
A description of the location.
name This property is required. String
The name of the location. Example: CyrusOne, Chandler, AZ

GetCrossConnectLocationsFilter

Name This property is required. string
The name of the location. Example: CyrusOne, Chandler, AZ
Values This property is required. List<string>
Regex bool
Name This property is required. string
The name of the location. Example: CyrusOne, Chandler, AZ
Values This property is required. []string
Regex bool
name This property is required. String
The name of the location. Example: CyrusOne, Chandler, AZ
values This property is required. List<String>
regex Boolean
name This property is required. string
The name of the location. Example: CyrusOne, Chandler, AZ
values This property is required. string[]
regex boolean
name This property is required. str
The name of the location. Example: CyrusOne, Chandler, AZ
values This property is required. Sequence[str]
regex bool
name This property is required. String
The name of the location. Example: CyrusOne, Chandler, AZ
values This property is required. List<String>
regex Boolean

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 v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi