Google Cloud v9.3.0 published on Tuesday, Oct 7, 2025 by Pulumi
gcp.compute.getInterconnectLocations
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<Get
Interconnect Locations Location> - 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
[]Get
Interconnect Locations Location - 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<Get
Interconnect Locations Location> - 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
Get
Interconnect Locations Location[] - 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[Get
Interconnect Locations Location] - 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.
- Availability
Zone string - The availability zone for this InterconnectLocation.
- Available
Features List<string> - A list of features available at this InterconnectLocation.
- Available
Link List<string>Types - 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.
- Facility
Provider string - The name of the provider for this facility.
- Facility
Provider stringFacility Id - A provider-assigned Identifier for this facility.
- Name string
- Peeringdb
Facility stringId - The PeeringDB facility ID for this facility.
- Self
Link string - The URI of the created resource.
- Status string
- The status of this InterconnectLocation.
- Supports
Pzs bool - Reserved for future use.
- Address string
- The postal address of the Point of Presence.
- Availability
Zone string - The availability zone for this InterconnectLocation.
- Available
Features []string - A list of features available at this InterconnectLocation.
- Available
Link []stringTypes - 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.
- Facility
Provider string - The name of the provider for this facility.
- Facility
Provider stringFacility Id - A provider-assigned Identifier for this facility.
- Name string
- Peeringdb
Facility stringId - The PeeringDB facility ID for this facility.
- Self
Link string - The URI of the created resource.
- Status string
- The status of this InterconnectLocation.
- Supports
Pzs bool - Reserved for future use.
- address String
- The postal address of the Point of Presence.
- availability
Zone String - The availability zone for this InterconnectLocation.
- available
Features List<String> - A list of features available at this InterconnectLocation.
- available
Link List<String>Types - 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.
- facility
Provider String - The name of the provider for this facility.
- facility
Provider StringFacility Id - A provider-assigned Identifier for this facility.
- name String
- peeringdb
Facility StringId - The PeeringDB facility ID for this facility.
- self
Link String - The URI of the created resource.
- status String
- The status of this InterconnectLocation.
- supports
Pzs Boolean - Reserved for future use.
- address string
- The postal address of the Point of Presence.
- availability
Zone string - The availability zone for this InterconnectLocation.
- available
Features string[] - A list of features available at this InterconnectLocation.
- available
Link string[]Types - 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.
- facility
Provider string - The name of the provider for this facility.
- facility
Provider stringFacility Id - A provider-assigned Identifier for this facility.
- name string
- peeringdb
Facility stringId - The PeeringDB facility ID for this facility.
- self
Link string - The URI of the created resource.
- status string
- The status of this InterconnectLocation.
- supports
Pzs 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_ Sequence[str]types - 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_ strfacility_ id - A provider-assigned Identifier for this facility.
- name str
- peeringdb_
facility_ strid - 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.
- availability
Zone String - The availability zone for this InterconnectLocation.
- available
Features List<String> - A list of features available at this InterconnectLocation.
- available
Link List<String>Types - 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.
- facility
Provider String - The name of the provider for this facility.
- facility
Provider StringFacility Id - A provider-assigned Identifier for this facility.
- name String
- peeringdb
Facility StringId - The PeeringDB facility ID for this facility.
- self
Link String - The URI of the created resource.
- status String
- The status of this InterconnectLocation.
- supports
Pzs 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.