1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. compute
  5. getInterconnectLocations
Google Cloud v9.3.0 published on Tuesday, Oct 7, 2025 by Pulumi

gcp.compute.getInterconnectLocations

Deploy with Pulumi
gcp logo
Google Cloud v9.3.0 published on Tuesday, Oct 7, 2025 by Pulumi

    Get a list of interconnect locations. For more information see the official API documentation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const all = gcp.compute.getInterconnectLocations({});
    export const interconnectLocations = all.then(all => all.locations);
    
    import pulumi
    import pulumi_gcp as gcp
    
    all = gcp.compute.get_interconnect_locations()
    pulumi.export("interconnectLocations", all.locations)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/compute"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		all, err := compute.GetInterconnectLocations(ctx, &compute.GetInterconnectLocationsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("interconnectLocations", all.Locations)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var all = Gcp.Compute.GetInterconnectLocations.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["interconnectLocations"] = all.Apply(getInterconnectLocationsResult => getInterconnectLocationsResult.Locations),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.ComputeFunctions;
    import com.pulumi.gcp.compute.inputs.GetInterconnectLocationsArgs;
    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 all = ComputeFunctions.getInterconnectLocations(GetInterconnectLocationsArgs.builder()
                .build());
    
            ctx.export("interconnectLocations", all.locations());
        }
    }
    
    variables:
      all:
        fn::invoke:
          function: gcp:compute:getInterconnectLocations
          arguments: {}
    outputs:
      interconnectLocations: ${all.locations}
    

    Using getInterconnectLocations

    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 getInterconnectLocations(args: GetInterconnectLocationsArgs, opts?: InvokeOptions): Promise<GetInterconnectLocationsResult>
    function getInterconnectLocationsOutput(args: GetInterconnectLocationsOutputArgs, opts?: InvokeOptions): Output<GetInterconnectLocationsResult>
    def get_interconnect_locations(project: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetInterconnectLocationsResult
    def get_interconnect_locations_output(project: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetInterconnectLocationsResult]
    func GetInterconnectLocations(ctx *Context, args *GetInterconnectLocationsArgs, opts ...InvokeOption) (*GetInterconnectLocationsResult, error)
    func GetInterconnectLocationsOutput(ctx *Context, args *GetInterconnectLocationsOutputArgs, opts ...InvokeOption) GetInterconnectLocationsResultOutput

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

    public static class GetInterconnectLocations 
    {
        public static Task<GetInterconnectLocationsResult> InvokeAsync(GetInterconnectLocationsArgs args, InvokeOptions? opts = null)
        public static Output<GetInterconnectLocationsResult> Invoke(GetInterconnectLocationsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInterconnectLocationsResult> getInterconnectLocations(GetInterconnectLocationsArgs args, InvokeOptions options)
    public static Output<GetInterconnectLocationsResult> getInterconnectLocations(GetInterconnectLocationsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcp:compute/getInterconnectLocations:getInterconnectLocations
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Project string
    The project in which the resource belongs. If it is not provided, the provider project is used.
    Project string
    The project in which the resource belongs. If it is not provided, the provider project is used.
    project String
    The project in which the resource belongs. If it is not provided, the provider project is used.
    project string
    The project in which the resource belongs. If it is not provided, the provider project is used.
    project str
    The project in which the resource belongs. If it is not provided, the provider project is used.
    project String
    The project in which the resource belongs. If it is not provided, the provider project is used.

    getInterconnectLocations Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Locations List<GetInterconnectLocationsLocation>
    A list of interconnect locations. Each location will have the following attributes:
    Project string
    Id string
    The provider-assigned unique ID for this managed resource.
    Locations []GetInterconnectLocationsLocation
    A list of interconnect locations. Each location will have the following attributes:
    Project string
    id String
    The provider-assigned unique ID for this managed resource.
    locations List<GetInterconnectLocationsLocation>
    A list of interconnect locations. Each location will have the following attributes:
    project String
    id string
    The provider-assigned unique ID for this managed resource.
    locations GetInterconnectLocationsLocation[]
    A list of interconnect locations. Each location will have the following attributes:
    project string
    id str
    The provider-assigned unique ID for this managed resource.
    locations Sequence[GetInterconnectLocationsLocation]
    A list of interconnect locations. Each location will have the following attributes:
    project str
    id String
    The provider-assigned unique ID for this managed resource.
    locations List<Property Map>
    A list of interconnect locations. Each location will have the following attributes:
    project String

    Supporting Types

    GetInterconnectLocationsLocation

    Address string
    The postal address of the Point of Presence.
    AvailabilityZone string
    The availability zone for this InterconnectLocation.
    AvailableFeatures List<string>
    A list of features available at this InterconnectLocation.
    AvailableLinkTypes List<string>
    A list of link types available at this InterconnectLocation.
    City string
    The city for this location.
    Continent string
    The continent for this location.
    Description string
    A textual description of the resource.
    FacilityProvider string
    The name of the provider for this facility.
    FacilityProviderFacilityId string
    A provider-assigned Identifier for this facility.
    Name string
    PeeringdbFacilityId string
    The PeeringDB facility ID for this facility.
    SelfLink string
    The URI of the created resource.
    Status string
    The status of this InterconnectLocation.
    SupportsPzs bool
    Reserved for future use.
    Address string
    The postal address of the Point of Presence.
    AvailabilityZone string
    The availability zone for this InterconnectLocation.
    AvailableFeatures []string
    A list of features available at this InterconnectLocation.
    AvailableLinkTypes []string
    A list of link types available at this InterconnectLocation.
    City string
    The city for this location.
    Continent string
    The continent for this location.
    Description string
    A textual description of the resource.
    FacilityProvider string
    The name of the provider for this facility.
    FacilityProviderFacilityId string
    A provider-assigned Identifier for this facility.
    Name string
    PeeringdbFacilityId string
    The PeeringDB facility ID for this facility.
    SelfLink string
    The URI of the created resource.
    Status string
    The status of this InterconnectLocation.
    SupportsPzs bool
    Reserved for future use.
    address String
    The postal address of the Point of Presence.
    availabilityZone String
    The availability zone for this InterconnectLocation.
    availableFeatures List<String>
    A list of features available at this InterconnectLocation.
    availableLinkTypes List<String>
    A list of link types available at this InterconnectLocation.
    city String
    The city for this location.
    continent String
    The continent for this location.
    description String
    A textual description of the resource.
    facilityProvider String
    The name of the provider for this facility.
    facilityProviderFacilityId String
    A provider-assigned Identifier for this facility.
    name String
    peeringdbFacilityId String
    The PeeringDB facility ID for this facility.
    selfLink String
    The URI of the created resource.
    status String
    The status of this InterconnectLocation.
    supportsPzs Boolean
    Reserved for future use.
    address string
    The postal address of the Point of Presence.
    availabilityZone string
    The availability zone for this InterconnectLocation.
    availableFeatures string[]
    A list of features available at this InterconnectLocation.
    availableLinkTypes string[]
    A list of link types available at this InterconnectLocation.
    city string
    The city for this location.
    continent string
    The continent for this location.
    description string
    A textual description of the resource.
    facilityProvider string
    The name of the provider for this facility.
    facilityProviderFacilityId string
    A provider-assigned Identifier for this facility.
    name string
    peeringdbFacilityId string
    The PeeringDB facility ID for this facility.
    selfLink string
    The URI of the created resource.
    status string
    The status of this InterconnectLocation.
    supportsPzs boolean
    Reserved for future use.
    address str
    The postal address of the Point of Presence.
    availability_zone str
    The availability zone for this InterconnectLocation.
    available_features Sequence[str]
    A list of features available at this InterconnectLocation.
    available_link_types Sequence[str]
    A list of link types available at this InterconnectLocation.
    city str
    The city for this location.
    continent str
    The continent for this location.
    description str
    A textual description of the resource.
    facility_provider str
    The name of the provider for this facility.
    facility_provider_facility_id str
    A provider-assigned Identifier for this facility.
    name str
    peeringdb_facility_id str
    The PeeringDB facility ID for this facility.
    self_link str
    The URI of the created resource.
    status str
    The status of this InterconnectLocation.
    supports_pzs bool
    Reserved for future use.
    address String
    The postal address of the Point of Presence.
    availabilityZone String
    The availability zone for this InterconnectLocation.
    availableFeatures List<String>
    A list of features available at this InterconnectLocation.
    availableLinkTypes List<String>
    A list of link types available at this InterconnectLocation.
    city String
    The city for this location.
    continent String
    The continent for this location.
    description String
    A textual description of the resource.
    facilityProvider String
    The name of the provider for this facility.
    facilityProviderFacilityId String
    A provider-assigned Identifier for this facility.
    name String
    peeringdbFacilityId String
    The PeeringDB facility ID for this facility.
    selfLink String
    The URI of the created resource.
    status String
    The status of this InterconnectLocation.
    supportsPzs Boolean
    Reserved for future use.

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud v9.3.0 published on Tuesday, Oct 7, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate