ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getDlLocations
Explore with Pulumi AI
Import the details of valid locations for the specified Direct Link Offering Locations. For more information, about IBM Cloud Direct Link Offerings, see about IBM Cloud Direct Link.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const testDlLocations = ibm.getDlLocations({
offeringType: "dedicated",
});
import pulumi
import pulumi_ibm as ibm
test_dl_locations = ibm.get_dl_locations(offering_type="dedicated")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.GetDlLocations(ctx, &ibm.GetDlLocationsArgs{
OfferingType: "dedicated",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var testDlLocations = Ibm.GetDlLocations.Invoke(new()
{
OfferingType = "dedicated",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetDlLocationsArgs;
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 testDlLocations = IbmFunctions.getDlLocations(GetDlLocationsArgs.builder()
.offeringType("dedicated")
.build());
}
}
variables:
testDlLocations:
fn::invoke:
function: ibm:getDlLocations
arguments:
offeringType: dedicated
Using getDlLocations
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 getDlLocations(args: GetDlLocationsArgs, opts?: InvokeOptions): Promise<GetDlLocationsResult>
function getDlLocationsOutput(args: GetDlLocationsOutputArgs, opts?: InvokeOptions): Output<GetDlLocationsResult>
def get_dl_locations(id: Optional[str] = None,
offering_type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDlLocationsResult
def get_dl_locations_output(id: Optional[pulumi.Input[str]] = None,
offering_type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDlLocationsResult]
func GetDlLocations(ctx *Context, args *GetDlLocationsArgs, opts ...InvokeOption) (*GetDlLocationsResult, error)
func GetDlLocationsOutput(ctx *Context, args *GetDlLocationsOutputArgs, opts ...InvokeOption) GetDlLocationsResultOutput
> Note: This function is named GetDlLocations
in the Go SDK.
public static class GetDlLocations
{
public static Task<GetDlLocationsResult> InvokeAsync(GetDlLocationsArgs args, InvokeOptions? opts = null)
public static Output<GetDlLocationsResult> Invoke(GetDlLocationsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDlLocationsResult> getDlLocations(GetDlLocationsArgs args, InvokeOptions options)
public static Output<GetDlLocationsResult> getDlLocations(GetDlLocationsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getDlLocations:getDlLocations
arguments:
# arguments dictionary
The following arguments are supported:
- Offering
Type string - The Direct Link offering type. Possible values are
dedicated
,connect
.| - Id string
- Offering
Type string - The Direct Link offering type. Possible values are
dedicated
,connect
.| - Id string
- offering
Type String - The Direct Link offering type. Possible values are
dedicated
,connect
.| - id String
- offering
Type string - The Direct Link offering type. Possible values are
dedicated
,connect
.| - id string
- offering_
type str - The Direct Link offering type. Possible values are
dedicated
,connect
.| - id str
- offering
Type String - The Direct Link offering type. Possible values are
dedicated
,connect
.| - id String
getDlLocations Result
The following output properties are available:
- Id string
- Locations
List<Get
Dl Locations Location> - (String) List of all the Direct Link Locations in the IBM Cloud infrastructure.
- Offering
Type string
- Id string
- Locations
[]Get
Dl Locations Location - (String) List of all the Direct Link Locations in the IBM Cloud infrastructure.
- Offering
Type string
- id String
- locations
List<Get
Dl Locations Location> - (String) List of all the Direct Link Locations in the IBM Cloud infrastructure.
- offering
Type String
- id string
- locations
Get
Dl Locations Location[] - (String) List of all the Direct Link Locations in the IBM Cloud infrastructure.
- offering
Type string
- id str
- locations
Sequence[Get
Dl Locations Location] - (String) List of all the Direct Link Locations in the IBM Cloud infrastructure.
- offering_
type str
- id String
- locations List<Property Map>
- (String) List of all the Direct Link Locations in the IBM Cloud infrastructure.
- offering
Type String
Supporting Types
GetDlLocationsLocation
- Billing
Location string - (String) The billing location.
- Building
Colocation stringOwner - (String) The building co-location owner. Only present for dedicated offering type.
- Display
Name string - (String) The location long name.
- Location
Type string - (String) The location type.
- Macsec
Enabled bool - Market string
- (String) The market location.
- Market
Geography string - (String) The location geography.
- Mzr bool
- (Bool) Is location a multi-zone region.
- Name string
- (String) The location short name.
- Offering
Type string - The Direct Link offering type. Possible values are
dedicated
,connect
.| - Provision
Enabled bool - Vpc
Region string - (String) The location VPC region.
- Billing
Location string - (String) The billing location.
- Building
Colocation stringOwner - (String) The building co-location owner. Only present for dedicated offering type.
- Display
Name string - (String) The location long name.
- Location
Type string - (String) The location type.
- Macsec
Enabled bool - Market string
- (String) The market location.
- Market
Geography string - (String) The location geography.
- Mzr bool
- (Bool) Is location a multi-zone region.
- Name string
- (String) The location short name.
- Offering
Type string - The Direct Link offering type. Possible values are
dedicated
,connect
.| - Provision
Enabled bool - Vpc
Region string - (String) The location VPC region.
- billing
Location String - (String) The billing location.
- building
Colocation StringOwner - (String) The building co-location owner. Only present for dedicated offering type.
- display
Name String - (String) The location long name.
- location
Type String - (String) The location type.
- macsec
Enabled Boolean - market String
- (String) The market location.
- market
Geography String - (String) The location geography.
- mzr Boolean
- (Bool) Is location a multi-zone region.
- name String
- (String) The location short name.
- offering
Type String - The Direct Link offering type. Possible values are
dedicated
,connect
.| - provision
Enabled Boolean - vpc
Region String - (String) The location VPC region.
- billing
Location string - (String) The billing location.
- building
Colocation stringOwner - (String) The building co-location owner. Only present for dedicated offering type.
- display
Name string - (String) The location long name.
- location
Type string - (String) The location type.
- macsec
Enabled boolean - market string
- (String) The market location.
- market
Geography string - (String) The location geography.
- mzr boolean
- (Bool) Is location a multi-zone region.
- name string
- (String) The location short name.
- offering
Type string - The Direct Link offering type. Possible values are
dedicated
,connect
.| - provision
Enabled boolean - vpc
Region string - (String) The location VPC region.
- billing_
location str - (String) The billing location.
- building_
colocation_ strowner - (String) The building co-location owner. Only present for dedicated offering type.
- display_
name str - (String) The location long name.
- location_
type str - (String) The location type.
- macsec_
enabled bool - market str
- (String) The market location.
- market_
geography str - (String) The location geography.
- mzr bool
- (Bool) Is location a multi-zone region.
- name str
- (String) The location short name.
- offering_
type str - The Direct Link offering type. Possible values are
dedicated
,connect
.| - provision_
enabled bool - vpc_
region str - (String) The location VPC region.
- billing
Location String - (String) The billing location.
- building
Colocation StringOwner - (String) The building co-location owner. Only present for dedicated offering type.
- display
Name String - (String) The location long name.
- location
Type String - (String) The location type.
- macsec
Enabled Boolean - market String
- (String) The market location.
- market
Geography String - (String) The location geography.
- mzr Boolean
- (Bool) Is location a multi-zone region.
- name String
- (String) The location short name.
- offering
Type String - The Direct Link offering type. Possible values are
dedicated
,connect
.| - provision
Enabled Boolean - vpc
Region String - (String) The location VPC region.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.