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

ibm.getDlOfferingSpeeds

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 speed options. For more information, about Direct Link Offering speed, see arranging for Direct Link connectivity.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const dsDlspeedoptions = ibm.getDlOfferingSpeeds({
        offeringType: "dedicated",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    ds_dlspeedoptions = ibm.get_dl_offering_speeds(offering_type="dedicated")
    
    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.GetDlOfferingSpeeds(ctx, &ibm.GetDlOfferingSpeedsArgs{
    			OfferingType: "dedicated",
    		}, 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 dsDlspeedoptions = Ibm.GetDlOfferingSpeeds.Invoke(new()
        {
            OfferingType = "dedicated",
        });
    
    });
    
    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.GetDlOfferingSpeedsArgs;
    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 dsDlspeedoptions = IbmFunctions.getDlOfferingSpeeds(GetDlOfferingSpeedsArgs.builder()
                .offeringType("dedicated")
                .build());
    
        }
    }
    
    variables:
      dsDlspeedoptions:
        fn::invoke:
          function: ibm:getDlOfferingSpeeds
          arguments:
            offeringType: dedicated
    

    Using getDlOfferingSpeeds

    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 getDlOfferingSpeeds(args: GetDlOfferingSpeedsArgs, opts?: InvokeOptions): Promise<GetDlOfferingSpeedsResult>
    function getDlOfferingSpeedsOutput(args: GetDlOfferingSpeedsOutputArgs, opts?: InvokeOptions): Output<GetDlOfferingSpeedsResult>
    def get_dl_offering_speeds(id: Optional[str] = None,
                               offering_type: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetDlOfferingSpeedsResult
    def get_dl_offering_speeds_output(id: Optional[pulumi.Input[str]] = None,
                               offering_type: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetDlOfferingSpeedsResult]
    func GetDlOfferingSpeeds(ctx *Context, args *GetDlOfferingSpeedsArgs, opts ...InvokeOption) (*GetDlOfferingSpeedsResult, error)
    func GetDlOfferingSpeedsOutput(ctx *Context, args *GetDlOfferingSpeedsOutputArgs, opts ...InvokeOption) GetDlOfferingSpeedsResultOutput

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

    public static class GetDlOfferingSpeeds 
    {
        public static Task<GetDlOfferingSpeedsResult> InvokeAsync(GetDlOfferingSpeedsArgs args, InvokeOptions? opts = null)
        public static Output<GetDlOfferingSpeedsResult> Invoke(GetDlOfferingSpeedsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDlOfferingSpeedsResult> getDlOfferingSpeeds(GetDlOfferingSpeedsArgs args, InvokeOptions options)
    public static Output<GetDlOfferingSpeedsResult> getDlOfferingSpeeds(GetDlOfferingSpeedsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getDlOfferingSpeeds:getDlOfferingSpeeds
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OfferingType string
    The Direct Link offering type. Possible values are dedicated,connect.|
    Id string
    OfferingType string
    The Direct Link offering type. Possible values are dedicated,connect.|
    Id string
    offeringType String
    The Direct Link offering type. Possible values are dedicated,connect.|
    id String
    offeringType string
    The Direct Link offering type. Possible values are dedicated,connect.|
    id string
    offering_type str
    The Direct Link offering type. Possible values are dedicated,connect.|
    id str
    offeringType String
    The Direct Link offering type. Possible values are dedicated,connect.|
    id String

    getDlOfferingSpeeds Result

    The following output properties are available:

    Id string
    OfferingSpeeds List<GetDlOfferingSpeedsOfferingSpeed>
    (String) List of all the Direct Link offering speeds in the IBM Cloud infrastructure.
    OfferingType string
    Id string
    OfferingSpeeds []GetDlOfferingSpeedsOfferingSpeed
    (String) List of all the Direct Link offering speeds in the IBM Cloud infrastructure.
    OfferingType string
    id String
    offeringSpeeds List<GetDlOfferingSpeedsOfferingSpeed>
    (String) List of all the Direct Link offering speeds in the IBM Cloud infrastructure.
    offeringType String
    id string
    offeringSpeeds GetDlOfferingSpeedsOfferingSpeed[]
    (String) List of all the Direct Link offering speeds in the IBM Cloud infrastructure.
    offeringType string
    id str
    offering_speeds Sequence[GetDlOfferingSpeedsOfferingSpeed]
    (String) List of all the Direct Link offering speeds in the IBM Cloud infrastructure.
    offering_type str
    id String
    offeringSpeeds List<Property Map>
    (String) List of all the Direct Link offering speeds in the IBM Cloud infrastructure.
    offeringType String

    Supporting Types

    GetDlOfferingSpeedsOfferingSpeed

    Capabilities List<string>
    (String) The capabilities for billing option.
    LinkSpeed double
    (String) The link speed in megabits per second.
    MacsecEnabled bool
    Capabilities []string
    (String) The capabilities for billing option.
    LinkSpeed float64
    (String) The link speed in megabits per second.
    MacsecEnabled bool
    capabilities List<String>
    (String) The capabilities for billing option.
    linkSpeed Double
    (String) The link speed in megabits per second.
    macsecEnabled Boolean
    capabilities string[]
    (String) The capabilities for billing option.
    linkSpeed number
    (String) The link speed in megabits per second.
    macsecEnabled boolean
    capabilities Sequence[str]
    (String) The capabilities for billing option.
    link_speed float
    (String) The link speed in megabits per second.
    macsec_enabled bool
    capabilities List<String>
    (String) The capabilities for billing option.
    linkSpeed Number
    (String) The link speed in megabits per second.
    macsecEnabled Boolean

    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