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

ibm.getDlPort

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 Offering Port. 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 dsDlport = ibm.getDlPort({
        portId: "dl_port_id",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    ds_dlport = ibm.get_dl_port(port_id="dl_port_id")
    
    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.GetDlPort(ctx, &ibm.GetDlPortArgs{
    			PortId: "dl_port_id",
    		}, 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 dsDlport = Ibm.GetDlPort.Invoke(new()
        {
            PortId = "dl_port_id",
        });
    
    });
    
    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.GetDlPortArgs;
    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 dsDlport = IbmFunctions.getDlPort(GetDlPortArgs.builder()
                .portId("dl_port_id")
                .build());
    
        }
    }
    
    variables:
      dsDlport:
        fn::invoke:
          function: ibm:getDlPort
          arguments:
            portId: dl_port_id
    

    Using getDlPort

    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 getDlPort(args: GetDlPortArgs, opts?: InvokeOptions): Promise<GetDlPortResult>
    function getDlPortOutput(args: GetDlPortOutputArgs, opts?: InvokeOptions): Output<GetDlPortResult>
    def get_dl_port(id: Optional[str] = None,
                    port_id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetDlPortResult
    def get_dl_port_output(id: Optional[pulumi.Input[str]] = None,
                    port_id: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetDlPortResult]
    func GetDlPort(ctx *Context, args *GetDlPortArgs, opts ...InvokeOption) (*GetDlPortResult, error)
    func GetDlPortOutput(ctx *Context, args *GetDlPortOutputArgs, opts ...InvokeOption) GetDlPortResultOutput

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

    public static class GetDlPort 
    {
        public static Task<GetDlPortResult> InvokeAsync(GetDlPortArgs args, InvokeOptions? opts = null)
        public static Output<GetDlPortResult> Invoke(GetDlPortInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDlPortResult> getDlPort(GetDlPortArgs args, InvokeOptions options)
    public static Output<GetDlPortResult> getDlPort(GetDlPortArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getDlPort:getDlPort
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PortId string
    The unique ID for the Direct Link port.
    Id string
    PortId string
    The unique ID for the Direct Link port.
    Id string
    portId String
    The unique ID for the Direct Link port.
    id String
    portId string
    The unique ID for the Direct Link port.
    id string
    port_id str
    The unique ID for the Direct Link port.
    id str
    portId String
    The unique ID for the Direct Link port.
    id String

    getDlPort Result

    The following output properties are available:

    DirectLinkCount double
    (String) The count of the existing Direct Link gateways on the port.
    Id string
    Label string
    (String) The port label.
    LocationDisplayName string
    (String) The port location long name.
    LocationName string
    (String) The port location name.
    PortId string
    ProviderName string
    (String) The port's provider name.
    SupportedLinkSpeeds List<double>
    (String) The port supported speeds in megabits per second.
    DirectLinkCount float64
    (String) The count of the existing Direct Link gateways on the port.
    Id string
    Label string
    (String) The port label.
    LocationDisplayName string
    (String) The port location long name.
    LocationName string
    (String) The port location name.
    PortId string
    ProviderName string
    (String) The port's provider name.
    SupportedLinkSpeeds []float64
    (String) The port supported speeds in megabits per second.
    directLinkCount Double
    (String) The count of the existing Direct Link gateways on the port.
    id String
    label String
    (String) The port label.
    locationDisplayName String
    (String) The port location long name.
    locationName String
    (String) The port location name.
    portId String
    providerName String
    (String) The port's provider name.
    supportedLinkSpeeds List<Double>
    (String) The port supported speeds in megabits per second.
    directLinkCount number
    (String) The count of the existing Direct Link gateways on the port.
    id string
    label string
    (String) The port label.
    locationDisplayName string
    (String) The port location long name.
    locationName string
    (String) The port location name.
    portId string
    providerName string
    (String) The port's provider name.
    supportedLinkSpeeds number[]
    (String) The port supported speeds in megabits per second.
    direct_link_count float
    (String) The count of the existing Direct Link gateways on the port.
    id str
    label str
    (String) The port label.
    location_display_name str
    (String) The port location long name.
    location_name str
    (String) The port location name.
    port_id str
    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) The count of the existing Direct Link gateways on the port.
    id String
    label String
    (String) The port label.
    locationDisplayName String
    (String) The port location long name.
    locationName String
    (String) The port location name.
    portId String
    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