ibm 1.85.0-beta0 published on Wednesday, Oct 29, 2025 by ibm-cloud
ibm.getDlPort
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 dictionaryThe following arguments are supported:
getDlPort Result
The following output properties are available:
- Direct
Link doubleCount - (String) The count of the existing Direct Link gateways on the port.
- Id string
- Label string
- (String) The port label.
- Location
Display stringName - (String) The port location long name.
- Location
Name string - (String) The port location name.
- Port
Id string - Provider
Name string - (String) The port's provider name.
- Supported
Link List<double>Speeds - (String) The port supported speeds in megabits per second.
- Direct
Link float64Count - (String) The count of the existing Direct Link gateways on the port.
- Id string
- Label string
- (String) The port label.
- Location
Display stringName - (String) The port location long name.
- Location
Name string - (String) The port location name.
- Port
Id string - Provider
Name string - (String) The port's provider name.
- Supported
Link []float64Speeds - (String) The port supported speeds in megabits per second.
- direct
Link DoubleCount - (String) The count of the existing Direct Link gateways on the port.
- id String
- label String
- (String) The port label.
- location
Display StringName - (String) The port location long name.
- location
Name String - (String) The port location name.
- port
Id String - provider
Name String - (String) The port's provider name.
- supported
Link List<Double>Speeds - (String) The port supported speeds in megabits per second.
- direct
Link numberCount - (String) The count of the existing Direct Link gateways on the port.
- id string
- label string
- (String) The port label.
- location
Display stringName - (String) The port location long name.
- location
Name string - (String) The port location name.
- port
Id string - provider
Name string - (String) The port's provider name.
- supported
Link number[]Speeds - (String) The port supported speeds in megabits per second.
- direct_
link_ floatcount - (String) The count of the existing Direct Link gateways on the port.
- id str
- label str
- (String) The port label.
- location_
display_ strname - (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_ Sequence[float]speeds - (String) The port supported speeds in megabits per second.
- direct
Link NumberCount - (String) The count of the existing Direct Link gateways on the port.
- id String
- label String
- (String) The port label.
- location
Display StringName - (String) The port location long name.
- location
Name String - (String) The port location name.
- port
Id String - provider
Name String - (String) The port's provider name.
- supported
Link List<Number>Speeds - (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
ibmTerraform Provider.
