ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getDlPorts
Explore with Pulumi AI
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
- Location
Name string - Direct Link location short name.
- Id string
- Location
Name string - Direct Link location short name.
- id String
- location
Name String - Direct Link location short name.
- id string
- location
Name string - Direct Link location short name.
- id str
- location_
name str - Direct Link location short name.
- id String
- location
Name String - Direct Link location short name.
getDlPorts Result
The following output properties are available:
- Id string
- Ports
List<Get
Dl Ports Port> - (List) List of all the Direct Link Ports.
- Location
Name string - (String) The port location name.
- Id string
- Ports
[]Get
Dl Ports Port - (List) List of all the Direct Link Ports.
- Location
Name string - (String) The port location name.
- id String
- ports
List<Get
Dl Ports Port> - (List) List of all the Direct Link Ports.
- location
Name String - (String) The port location name.
- id string
- ports
Get
Dl Ports Port[] - (List) List of all the Direct Link Ports.
- location
Name string - (String) The port location name.
- id str
- ports
Sequence[Get
Dl Ports Port] - (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.
- location
Name String - (String) The port location name.
Supporting Types
GetDlPortsPort
- Direct
Link doubleCount - (String) Count of the existing Direct Link gateways in this port account.
- Label string
- (String) The port label.
- Location
Display stringName - (String) The port location long name.
- Location
Name string - Direct Link location short name.
- Port
Id string - (String) The port identifier.
- 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) Count of the existing Direct Link gateways in this port account.
- Label string
- (String) The port label.
- Location
Display stringName - (String) The port location long name.
- Location
Name string - Direct Link location short name.
- Port
Id string - (String) The port identifier.
- 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) Count of the existing Direct Link gateways in this port account.
- label String
- (String) The port label.
- location
Display StringName - (String) The port location long name.
- location
Name String - Direct Link location short name.
- port
Id String - (String) The port identifier.
- 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) Count of the existing Direct Link gateways in this port account.
- label string
- (String) The port label.
- location
Display stringName - (String) The port location long name.
- location
Name string - Direct Link location short name.
- port
Id string - (String) The port identifier.
- 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) Count of the existing Direct Link gateways in this port account.
- label str
- (String) The port label.
- location_
display_ strname - (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_ Sequence[float]speeds - (String) The port supported speeds in megabits per second.
- direct
Link NumberCount - (String) Count of the existing Direct Link gateways in this port account.
- label String
- (String) The port label.
- location
Display StringName - (String) The port location long name.
- location
Name String - Direct Link location short name.
- port
Id String - (String) The port identifier.
- 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
ibm
Terraform Provider.