1. Packages
  2. Ibm Provider
  3. API Docs
  4. getDlLocations
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getDlLocations

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    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:

    OfferingType string
    The Direct Link offering type. Possible values are dedicated,connect.|
    Id string
    OfferingType string
    The Direct Link offering type. Possible values are dedicated,connect.|
    Id string
    offeringType String
    The Direct Link offering type. Possible values are dedicated,connect.|
    id String
    offeringType 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
    offeringType 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<GetDlLocationsLocation>
    (String) List of all the Direct Link Locations in the IBM Cloud infrastructure.
    OfferingType string
    Id string
    Locations []GetDlLocationsLocation
    (String) List of all the Direct Link Locations in the IBM Cloud infrastructure.
    OfferingType string
    id String
    locations List<GetDlLocationsLocation>
    (String) List of all the Direct Link Locations in the IBM Cloud infrastructure.
    offeringType String
    id string
    locations GetDlLocationsLocation[]
    (String) List of all the Direct Link Locations in the IBM Cloud infrastructure.
    offeringType string
    id str
    locations Sequence[GetDlLocationsLocation]
    (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.
    offeringType String

    Supporting Types

    GetDlLocationsLocation

    BillingLocation string
    (String) The billing location.
    BuildingColocationOwner string
    (String) The building co-location owner. Only present for dedicated offering type.
    DisplayName string
    (String) The location long name.
    LocationType string
    (String) The location type.
    MacsecEnabled bool
    Market string
    (String) The market location.
    MarketGeography string
    (String) The location geography.
    Mzr bool
    (Bool) Is location a multi-zone region.
    Name string
    (String) The location short name.
    OfferingType string
    The Direct Link offering type. Possible values are dedicated,connect.|
    ProvisionEnabled bool
    VpcRegion string
    (String) The location VPC region.
    BillingLocation string
    (String) The billing location.
    BuildingColocationOwner string
    (String) The building co-location owner. Only present for dedicated offering type.
    DisplayName string
    (String) The location long name.
    LocationType string
    (String) The location type.
    MacsecEnabled bool
    Market string
    (String) The market location.
    MarketGeography string
    (String) The location geography.
    Mzr bool
    (Bool) Is location a multi-zone region.
    Name string
    (String) The location short name.
    OfferingType string
    The Direct Link offering type. Possible values are dedicated,connect.|
    ProvisionEnabled bool
    VpcRegion string
    (String) The location VPC region.
    billingLocation String
    (String) The billing location.
    buildingColocationOwner String
    (String) The building co-location owner. Only present for dedicated offering type.
    displayName String
    (String) The location long name.
    locationType String
    (String) The location type.
    macsecEnabled Boolean
    market String
    (String) The market location.
    marketGeography String
    (String) The location geography.
    mzr Boolean
    (Bool) Is location a multi-zone region.
    name String
    (String) The location short name.
    offeringType String
    The Direct Link offering type. Possible values are dedicated,connect.|
    provisionEnabled Boolean
    vpcRegion String
    (String) The location VPC region.
    billingLocation string
    (String) The billing location.
    buildingColocationOwner string
    (String) The building co-location owner. Only present for dedicated offering type.
    displayName string
    (String) The location long name.
    locationType string
    (String) The location type.
    macsecEnabled boolean
    market string
    (String) The market location.
    marketGeography string
    (String) The location geography.
    mzr boolean
    (Bool) Is location a multi-zone region.
    name string
    (String) The location short name.
    offeringType string
    The Direct Link offering type. Possible values are dedicated,connect.|
    provisionEnabled boolean
    vpcRegion string
    (String) The location VPC region.
    billing_location str
    (String) The billing location.
    building_colocation_owner str
    (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.
    billingLocation String
    (String) The billing location.
    buildingColocationOwner String
    (String) The building co-location owner. Only present for dedicated offering type.
    displayName String
    (String) The location long name.
    locationType String
    (String) The location type.
    macsecEnabled Boolean
    market String
    (String) The market location.
    marketGeography String
    (String) The location geography.
    mzr Boolean
    (Bool) Is location a multi-zone region.
    name String
    (String) The location short name.
    offeringType String
    The Direct Link offering type. Possible values are dedicated,connect.|
    provisionEnabled Boolean
    vpcRegion 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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud