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

ibm.getDlPorts

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 IBM Cloud infrastructure Direct Link ports. For more information, about Direct Link Offering Port, see megaport ordering considerations.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const dsDlports = ibm.getDlPorts({});
    
    import pulumi
    import pulumi_ibm as ibm
    
    ds_dlports = ibm.get_dl_ports()
    
    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.GetDlPorts(ctx, &ibm.GetDlPortsArgs{}, 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 dsDlports = Ibm.GetDlPorts.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.GetDlPortsArgs;
    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 dsDlports = IbmFunctions.getDlPorts();
    
        }
    }
    
    variables:
      dsDlports:
        fn::invoke:
          function: ibm:getDlPorts
          arguments: {}
    

    Using getDlPorts

    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 getDlPorts(args: GetDlPortsArgs, opts?: InvokeOptions): Promise<GetDlPortsResult>
    function getDlPortsOutput(args: GetDlPortsOutputArgs, opts?: InvokeOptions): Output<GetDlPortsResult>
    def get_dl_ports(id: Optional[str] = None,
                     location_name: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetDlPortsResult
    def get_dl_ports_output(id: Optional[pulumi.Input[str]] = None,
                     location_name: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetDlPortsResult]
    func GetDlPorts(ctx *Context, args *GetDlPortsArgs, opts ...InvokeOption) (*GetDlPortsResult, error)
    func GetDlPortsOutput(ctx *Context, args *GetDlPortsOutputArgs, opts ...InvokeOption) GetDlPortsResultOutput

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

    public static class GetDlPorts 
    {
        public static Task<GetDlPortsResult> InvokeAsync(GetDlPortsArgs args, InvokeOptions? opts = null)
        public static Output<GetDlPortsResult> Invoke(GetDlPortsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDlPortsResult> getDlPorts(GetDlPortsArgs args, InvokeOptions options)
    public static Output<GetDlPortsResult> getDlPorts(GetDlPortsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getDlPorts:getDlPorts
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    LocationName string
    Direct Link location short name.
    Id string
    LocationName string
    Direct Link location short name.
    id String
    locationName String
    Direct Link location short name.
    id string
    locationName string
    Direct Link location short name.
    id str
    location_name str
    Direct Link location short name.
    id String
    locationName String
    Direct Link location short name.

    getDlPorts Result

    The following output properties are available:

    Id string
    Ports List<GetDlPortsPort>
    (List) List of all the Direct Link Ports.
    LocationName string
    (String) The port location name.
    Id string
    Ports []GetDlPortsPort
    (List) List of all the Direct Link Ports.
    LocationName string
    (String) The port location name.
    id String
    ports List<GetDlPortsPort>
    (List) List of all the Direct Link Ports.
    locationName String
    (String) The port location name.
    id string
    ports GetDlPortsPort[]
    (List) List of all the Direct Link Ports.
    locationName string
    (String) The port location name.
    id str
    ports Sequence[GetDlPortsPort]
    (List) List of all the Direct Link Ports.
    location_name str
    (String) The port location name.
    id String
    ports List<Property Map>
    (List) List of all the Direct Link Ports.
    locationName String
    (String) The port location name.

    Supporting Types

    GetDlPortsPort

    DirectLinkCount double
    (String) Count of the existing Direct Link gateways in this port account.
    Label string
    (String) The port label.
    LocationDisplayName string
    (String) The port location long name.
    LocationName string
    Direct Link location short name.
    PortId string
    (String) The port identifier.
    ProviderName string
    (String) The port's provider name.
    SupportedLinkSpeeds List<double>
    (String) The port supported speeds in megabits per second.
    DirectLinkCount float64
    (String) Count of the existing Direct Link gateways in this port account.
    Label string
    (String) The port label.
    LocationDisplayName string
    (String) The port location long name.
    LocationName string
    Direct Link location short name.
    PortId string
    (String) The port identifier.
    ProviderName string
    (String) The port's provider name.
    SupportedLinkSpeeds []float64
    (String) The port supported speeds in megabits per second.
    directLinkCount Double
    (String) Count of the existing Direct Link gateways in this port account.
    label String
    (String) The port label.
    locationDisplayName String
    (String) The port location long name.
    locationName String
    Direct Link location short name.
    portId String
    (String) The port identifier.
    providerName String
    (String) The port's provider name.
    supportedLinkSpeeds List<Double>
    (String) The port supported speeds in megabits per second.
    directLinkCount number
    (String) Count of the existing Direct Link gateways in this port account.
    label string
    (String) The port label.
    locationDisplayName string
    (String) The port location long name.
    locationName string
    Direct Link location short name.
    portId string
    (String) The port identifier.
    providerName string
    (String) The port's provider name.
    supportedLinkSpeeds number[]
    (String) The port supported speeds in megabits per second.
    direct_link_count float
    (String) Count of the existing Direct Link gateways in this port account.
    label str
    (String) The port label.
    location_display_name str
    (String) The port location long name.
    location_name str
    Direct Link location short name.
    port_id str
    (String) The port identifier.
    provider_name str
    (String) The port's provider name.
    supported_link_speeds Sequence[float]
    (String) The port supported speeds in megabits per second.
    directLinkCount Number
    (String) Count of the existing Direct Link gateways in this port account.
    label String
    (String) The port label.
    locationDisplayName String
    (String) The port location long name.
    locationName String
    Direct Link location short name.
    portId String
    (String) The port identifier.
    providerName String
    (String) The port's provider name.
    supportedLinkSpeeds List<Number>
    (String) The port supported speeds in megabits per second.

    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