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

ibm.getDlProviderGateways

Explore with Pulumi AI

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

    Import the details of an existing nfrastructure Direct Link Provider Gateway as a read-only data source. For more information, refer to about Direct Link.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const dsDlproviderGateways = ibm.getDlProviderGateways({});
    
    import pulumi
    import pulumi_ibm as ibm
    
    ds_dlprovider_gateways = ibm.get_dl_provider_gateways()
    
    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.GetDlProviderGateways(ctx, &ibm.GetDlProviderGatewaysArgs{}, 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 dsDlproviderGateways = Ibm.GetDlProviderGateways.Invoke();
    
    });
    
    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.GetDlProviderGatewaysArgs;
    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 dsDlproviderGateways = IbmFunctions.getDlProviderGateways();
    
        }
    }
    
    variables:
      dsDlproviderGateways:
        fn::invoke:
          function: ibm:getDlProviderGateways
          arguments: {}
    

    Using getDlProviderGateways

    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 getDlProviderGateways(args: GetDlProviderGatewaysArgs, opts?: InvokeOptions): Promise<GetDlProviderGatewaysResult>
    function getDlProviderGatewaysOutput(args: GetDlProviderGatewaysOutputArgs, opts?: InvokeOptions): Output<GetDlProviderGatewaysResult>
    def get_dl_provider_gateways(id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetDlProviderGatewaysResult
    def get_dl_provider_gateways_output(id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetDlProviderGatewaysResult]
    func GetDlProviderGateways(ctx *Context, args *GetDlProviderGatewaysArgs, opts ...InvokeOption) (*GetDlProviderGatewaysResult, error)
    func GetDlProviderGatewaysOutput(ctx *Context, args *GetDlProviderGatewaysOutputArgs, opts ...InvokeOption) GetDlProviderGatewaysResultOutput

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

    public static class GetDlProviderGateways 
    {
        public static Task<GetDlProviderGatewaysResult> InvokeAsync(GetDlProviderGatewaysArgs args, InvokeOptions? opts = null)
        public static Output<GetDlProviderGatewaysResult> Invoke(GetDlProviderGatewaysInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDlProviderGatewaysResult> getDlProviderGateways(GetDlProviderGatewaysArgs args, InvokeOptions options)
    public static Output<GetDlProviderGatewaysResult> getDlProviderGateways(GetDlProviderGatewaysArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getDlProviderGateways:getDlProviderGateways
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    (String) The unique identifier of the gateway.
    Id string
    (String) The unique identifier of the gateway.
    id String
    (String) The unique identifier of the gateway.
    id string
    (String) The unique identifier of the gateway.
    id str
    (String) The unique identifier of the gateway.
    id String
    (String) The unique identifier of the gateway.

    getDlProviderGateways Result

    The following output properties are available:

    Gateways List<GetDlProviderGatewaysGateway>
    (List) List of all the Direct Link ports.List of all Direct Link provider gateways in the IBM Cloud Infrastructure.
    Id string
    (String) The unique identifier of the gateway.
    Gateways []GetDlProviderGatewaysGateway
    (List) List of all the Direct Link ports.List of all Direct Link provider gateways in the IBM Cloud Infrastructure.
    Id string
    (String) The unique identifier of the gateway.
    gateways List<GetDlProviderGatewaysGateway>
    (List) List of all the Direct Link ports.List of all Direct Link provider gateways in the IBM Cloud Infrastructure.
    id String
    (String) The unique identifier of the gateway.
    gateways GetDlProviderGatewaysGateway[]
    (List) List of all the Direct Link ports.List of all Direct Link provider gateways in the IBM Cloud Infrastructure.
    id string
    (String) The unique identifier of the gateway.
    gateways Sequence[GetDlProviderGatewaysGateway]
    (List) List of all the Direct Link ports.List of all Direct Link provider gateways in the IBM Cloud Infrastructure.
    id str
    (String) The unique identifier of the gateway.
    gateways List<Property Map>
    (List) List of all the Direct Link ports.List of all Direct Link provider gateways in the IBM Cloud Infrastructure.
    id String
    (String) The unique identifier of the gateway.

    Supporting Types

    GetDlProviderGatewaysGateway

    BgpAsn double
    (String) The customer BGP ASN.
    BgpCerCidr string
    (String) The BGP customer edge router CIDR.
    BgpIbmAsn double
    (String) The IBM BGP ASN.
    BgpIbmCidr string
    (String) The IBM BGP CIDR.
    BgpStatus string
    (String) The gateway BGP status.
    ChangeRequest string
    CreatedAt string
    (String) The date and time resource was created.
    Crn string
    (String) The CRN of the gateway.
    CustomerAccountId string
    Id string
    (String) The unique identifier of the gateway.
    Name string
    (String) The unique user defined name for the gateway.
    OperationalStatus string
    (String) The operational status of the gateway.
    Port string
    (String) The port identifier.
    ProviderApiManaged bool
    (String) Indicates whether gateway was created through a provider portal. If set true, gateway can only be changed or deleted through the corresponding provider portal.
    ResourceGroup string
    (String) The resource group identifier.
    SpeedMbps double
    (String) The gateway speed in megabits per second.
    Type string
    (String) The gateway type.
    Vlan double
    (String) The VLAN allocated for the gateway. Only set for type=connect gateways created directly through the IBM portal.
    BgpAsn float64
    (String) The customer BGP ASN.
    BgpCerCidr string
    (String) The BGP customer edge router CIDR.
    BgpIbmAsn float64
    (String) The IBM BGP ASN.
    BgpIbmCidr string
    (String) The IBM BGP CIDR.
    BgpStatus string
    (String) The gateway BGP status.
    ChangeRequest string
    CreatedAt string
    (String) The date and time resource was created.
    Crn string
    (String) The CRN of the gateway.
    CustomerAccountId string
    Id string
    (String) The unique identifier of the gateway.
    Name string
    (String) The unique user defined name for the gateway.
    OperationalStatus string
    (String) The operational status of the gateway.
    Port string
    (String) The port identifier.
    ProviderApiManaged bool
    (String) Indicates whether gateway was created through a provider portal. If set true, gateway can only be changed or deleted through the corresponding provider portal.
    ResourceGroup string
    (String) The resource group identifier.
    SpeedMbps float64
    (String) The gateway speed in megabits per second.
    Type string
    (String) The gateway type.
    Vlan float64
    (String) The VLAN allocated for the gateway. Only set for type=connect gateways created directly through the IBM portal.
    bgpAsn Double
    (String) The customer BGP ASN.
    bgpCerCidr String
    (String) The BGP customer edge router CIDR.
    bgpIbmAsn Double
    (String) The IBM BGP ASN.
    bgpIbmCidr String
    (String) The IBM BGP CIDR.
    bgpStatus String
    (String) The gateway BGP status.
    changeRequest String
    createdAt String
    (String) The date and time resource was created.
    crn String
    (String) The CRN of the gateway.
    customerAccountId String
    id String
    (String) The unique identifier of the gateway.
    name String
    (String) The unique user defined name for the gateway.
    operationalStatus String
    (String) The operational status of the gateway.
    port String
    (String) The port identifier.
    providerApiManaged Boolean
    (String) Indicates whether gateway was created through a provider portal. If set true, gateway can only be changed or deleted through the corresponding provider portal.
    resourceGroup String
    (String) The resource group identifier.
    speedMbps Double
    (String) The gateway speed in megabits per second.
    type String
    (String) The gateway type.
    vlan Double
    (String) The VLAN allocated for the gateway. Only set for type=connect gateways created directly through the IBM portal.
    bgpAsn number
    (String) The customer BGP ASN.
    bgpCerCidr string
    (String) The BGP customer edge router CIDR.
    bgpIbmAsn number
    (String) The IBM BGP ASN.
    bgpIbmCidr string
    (String) The IBM BGP CIDR.
    bgpStatus string
    (String) The gateway BGP status.
    changeRequest string
    createdAt string
    (String) The date and time resource was created.
    crn string
    (String) The CRN of the gateway.
    customerAccountId string
    id string
    (String) The unique identifier of the gateway.
    name string
    (String) The unique user defined name for the gateway.
    operationalStatus string
    (String) The operational status of the gateway.
    port string
    (String) The port identifier.
    providerApiManaged boolean
    (String) Indicates whether gateway was created through a provider portal. If set true, gateway can only be changed or deleted through the corresponding provider portal.
    resourceGroup string
    (String) The resource group identifier.
    speedMbps number
    (String) The gateway speed in megabits per second.
    type string
    (String) The gateway type.
    vlan number
    (String) The VLAN allocated for the gateway. Only set for type=connect gateways created directly through the IBM portal.
    bgp_asn float
    (String) The customer BGP ASN.
    bgp_cer_cidr str
    (String) The BGP customer edge router CIDR.
    bgp_ibm_asn float
    (String) The IBM BGP ASN.
    bgp_ibm_cidr str
    (String) The IBM BGP CIDR.
    bgp_status str
    (String) The gateway BGP status.
    change_request str
    created_at str
    (String) The date and time resource was created.
    crn str
    (String) The CRN of the gateway.
    customer_account_id str
    id str
    (String) The unique identifier of the gateway.
    name str
    (String) The unique user defined name for the gateway.
    operational_status str
    (String) The operational status of the gateway.
    port str
    (String) The port identifier.
    provider_api_managed bool
    (String) Indicates whether gateway was created through a provider portal. If set true, gateway can only be changed or deleted through the corresponding provider portal.
    resource_group str
    (String) The resource group identifier.
    speed_mbps float
    (String) The gateway speed in megabits per second.
    type str
    (String) The gateway type.
    vlan float
    (String) The VLAN allocated for the gateway. Only set for type=connect gateways created directly through the IBM portal.
    bgpAsn Number
    (String) The customer BGP ASN.
    bgpCerCidr String
    (String) The BGP customer edge router CIDR.
    bgpIbmAsn Number
    (String) The IBM BGP ASN.
    bgpIbmCidr String
    (String) The IBM BGP CIDR.
    bgpStatus String
    (String) The gateway BGP status.
    changeRequest String
    createdAt String
    (String) The date and time resource was created.
    crn String
    (String) The CRN of the gateway.
    customerAccountId String
    id String
    (String) The unique identifier of the gateway.
    name String
    (String) The unique user defined name for the gateway.
    operationalStatus String
    (String) The operational status of the gateway.
    port String
    (String) The port identifier.
    providerApiManaged Boolean
    (String) Indicates whether gateway was created through a provider portal. If set true, gateway can only be changed or deleted through the corresponding provider portal.
    resourceGroup String
    (String) The resource group identifier.
    speedMbps Number
    (String) The gateway speed in megabits per second.
    type String
    (String) The gateway type.
    vlan Number
    (String) The VLAN allocated for the gateway. Only set for type=connect gateways created directly through the IBM portal.

    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