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

ibm.DlVirtualConnection

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Create, update, or delete a Direct Link Gateway Virtual Connection by using the Direct Link Gateway resource. For more information, about Direct Link Gateway Virtual Connection, see Adding virtual connections to a Direct Link gateway.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const testDlGatewayVc = new ibm.DlVirtualConnection("testDlGatewayVc", {
        gateway: ibm_dl_gateway.test_dl_gateway.id,
        type: "vpc",
        networkId: ibm_is_vpc.test_dl_vc_vpc.resource_crn,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    test_dl_gateway_vc = ibm.DlVirtualConnection("testDlGatewayVc",
        gateway=ibm_dl_gateway["test_dl_gateway"]["id"],
        type="vpc",
        network_id=ibm_is_vpc["test_dl_vc_vpc"]["resource_crn"])
    
    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.NewDlVirtualConnection(ctx, "testDlGatewayVc", &ibm.DlVirtualConnectionArgs{
    			Gateway:   pulumi.Any(ibm_dl_gateway.Test_dl_gateway.Id),
    			Type:      pulumi.String("vpc"),
    			NetworkId: pulumi.Any(ibm_is_vpc.Test_dl_vc_vpc.Resource_crn),
    		})
    		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 testDlGatewayVc = new Ibm.DlVirtualConnection("testDlGatewayVc", new()
        {
            Gateway = ibm_dl_gateway.Test_dl_gateway.Id,
            Type = "vpc",
            NetworkId = ibm_is_vpc.Test_dl_vc_vpc.Resource_crn,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.DlVirtualConnection;
    import com.pulumi.ibm.DlVirtualConnectionArgs;
    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) {
            var testDlGatewayVc = new DlVirtualConnection("testDlGatewayVc", DlVirtualConnectionArgs.builder()
                .gateway(ibm_dl_gateway.test_dl_gateway().id())
                .type("vpc")
                .networkId(ibm_is_vpc.test_dl_vc_vpc().resource_crn())
                .build());
    
        }
    }
    
    resources:
      testDlGatewayVc:
        type: ibm:DlVirtualConnection
        properties:
          gateway: ${ibm_dl_gateway.test_dl_gateway.id}
          type: vpc
          networkId: ${ibm_is_vpc.test_dl_vc_vpc.resource_crn}
    

    Create DlVirtualConnection Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DlVirtualConnection(name: string, args: DlVirtualConnectionArgs, opts?: CustomResourceOptions);
    @overload
    def DlVirtualConnection(resource_name: str,
                            args: DlVirtualConnectionArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def DlVirtualConnection(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            gateway: Optional[str] = None,
                            type: Optional[str] = None,
                            dl_virtual_connection_id: Optional[str] = None,
                            name: Optional[str] = None,
                            network_id: Optional[str] = None,
                            timeouts: Optional[DlVirtualConnectionTimeoutsArgs] = None)
    func NewDlVirtualConnection(ctx *Context, name string, args DlVirtualConnectionArgs, opts ...ResourceOption) (*DlVirtualConnection, error)
    public DlVirtualConnection(string name, DlVirtualConnectionArgs args, CustomResourceOptions? opts = null)
    public DlVirtualConnection(String name, DlVirtualConnectionArgs args)
    public DlVirtualConnection(String name, DlVirtualConnectionArgs args, CustomResourceOptions options)
    
    type: ibm:DlVirtualConnection
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DlVirtualConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DlVirtualConnectionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DlVirtualConnectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DlVirtualConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DlVirtualConnectionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var dlVirtualConnectionResource = new Ibm.DlVirtualConnection("dlVirtualConnectionResource", new()
    {
        Gateway = "string",
        Type = "string",
        DlVirtualConnectionId = "string",
        Name = "string",
        NetworkId = "string",
        Timeouts = new Ibm.Inputs.DlVirtualConnectionTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := ibm.NewDlVirtualConnection(ctx, "dlVirtualConnectionResource", &ibm.DlVirtualConnectionArgs{
    	Gateway:               pulumi.String("string"),
    	Type:                  pulumi.String("string"),
    	DlVirtualConnectionId: pulumi.String("string"),
    	Name:                  pulumi.String("string"),
    	NetworkId:             pulumi.String("string"),
    	Timeouts: &ibm.DlVirtualConnectionTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var dlVirtualConnectionResource = new DlVirtualConnection("dlVirtualConnectionResource", DlVirtualConnectionArgs.builder()
        .gateway("string")
        .type("string")
        .dlVirtualConnectionId("string")
        .name("string")
        .networkId("string")
        .timeouts(DlVirtualConnectionTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    dl_virtual_connection_resource = ibm.DlVirtualConnection("dlVirtualConnectionResource",
        gateway="string",
        type="string",
        dl_virtual_connection_id="string",
        name="string",
        network_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const dlVirtualConnectionResource = new ibm.DlVirtualConnection("dlVirtualConnectionResource", {
        gateway: "string",
        type: "string",
        dlVirtualConnectionId: "string",
        name: "string",
        networkId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: ibm:DlVirtualConnection
    properties:
        dlVirtualConnectionId: string
        gateway: string
        name: string
        networkId: string
        timeouts:
            create: string
            delete: string
            update: string
        type: string
    

    DlVirtualConnection Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The DlVirtualConnection resource accepts the following input properties:

    Gateway string
    The Direct Link Gateway ID.
    Type string
    The type of virtual connection. Allowed values are classic,vpc.
    DlVirtualConnectionId string
    (String) The unique ID of the resource with combination of gateway / virtual_connection_id.
    Name string
    The user-defined name for this virtual connection. The virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. For type=vpc virtual connections it is the CRN of the target VPC. This parameter does not apply for type=classic connections. For example, crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bb.
    NetworkId string
    Metered billing option. If set true gateway usage is billed per GB. Otherwise, flat rate is charged for the gateway.
    Timeouts DlVirtualConnectionTimeouts
    Gateway string
    The Direct Link Gateway ID.
    Type string
    The type of virtual connection. Allowed values are classic,vpc.
    DlVirtualConnectionId string
    (String) The unique ID of the resource with combination of gateway / virtual_connection_id.
    Name string
    The user-defined name for this virtual connection. The virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. For type=vpc virtual connections it is the CRN of the target VPC. This parameter does not apply for type=classic connections. For example, crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bb.
    NetworkId string
    Metered billing option. If set true gateway usage is billed per GB. Otherwise, flat rate is charged for the gateway.
    Timeouts DlVirtualConnectionTimeoutsArgs
    gateway String
    The Direct Link Gateway ID.
    type String
    The type of virtual connection. Allowed values are classic,vpc.
    dlVirtualConnectionId String
    (String) The unique ID of the resource with combination of gateway / virtual_connection_id.
    name String
    The user-defined name for this virtual connection. The virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. For type=vpc virtual connections it is the CRN of the target VPC. This parameter does not apply for type=classic connections. For example, crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bb.
    networkId String
    Metered billing option. If set true gateway usage is billed per GB. Otherwise, flat rate is charged for the gateway.
    timeouts DlVirtualConnectionTimeouts
    gateway string
    The Direct Link Gateway ID.
    type string
    The type of virtual connection. Allowed values are classic,vpc.
    dlVirtualConnectionId string
    (String) The unique ID of the resource with combination of gateway / virtual_connection_id.
    name string
    The user-defined name for this virtual connection. The virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. For type=vpc virtual connections it is the CRN of the target VPC. This parameter does not apply for type=classic connections. For example, crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bb.
    networkId string
    Metered billing option. If set true gateway usage is billed per GB. Otherwise, flat rate is charged for the gateway.
    timeouts DlVirtualConnectionTimeouts
    gateway str
    The Direct Link Gateway ID.
    type str
    The type of virtual connection. Allowed values are classic,vpc.
    dl_virtual_connection_id str
    (String) The unique ID of the resource with combination of gateway / virtual_connection_id.
    name str
    The user-defined name for this virtual connection. The virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. For type=vpc virtual connections it is the CRN of the target VPC. This parameter does not apply for type=classic connections. For example, crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bb.
    network_id str
    Metered billing option. If set true gateway usage is billed per GB. Otherwise, flat rate is charged for the gateway.
    timeouts DlVirtualConnectionTimeoutsArgs
    gateway String
    The Direct Link Gateway ID.
    type String
    The type of virtual connection. Allowed values are classic,vpc.
    dlVirtualConnectionId String
    (String) The unique ID of the resource with combination of gateway / virtual_connection_id.
    name String
    The user-defined name for this virtual connection. The virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. For type=vpc virtual connections it is the CRN of the target VPC. This parameter does not apply for type=classic connections. For example, crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bb.
    networkId String
    Metered billing option. If set true gateway usage is billed per GB. Otherwise, flat rate is charged for the gateway.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DlVirtualConnection resource produces the following output properties:

    CreatedAt string
    (String) The date and time resource created.
    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkAccount string
    (String) The virtual connections across two different IBM Cloud accounts network_account indicates the account that owns the target network. For example, 00aa14a2e0fb102c8995ebeff65555.
    RelatedCrn string
    The crn of the Direct link gateway
    Status string
    (String) The status of the virtual connection. Possible values are pending, attached, approval_pending, rejected, expired, deleting, detached_by_network_pending, detached_by_network. For example, attached.
    VirtualConnectionId string
    (String) The unique identifier for the Direct Link Gateway virtual connection.
    CreatedAt string
    (String) The date and time resource created.
    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkAccount string
    (String) The virtual connections across two different IBM Cloud accounts network_account indicates the account that owns the target network. For example, 00aa14a2e0fb102c8995ebeff65555.
    RelatedCrn string
    The crn of the Direct link gateway
    Status string
    (String) The status of the virtual connection. Possible values are pending, attached, approval_pending, rejected, expired, deleting, detached_by_network_pending, detached_by_network. For example, attached.
    VirtualConnectionId string
    (String) The unique identifier for the Direct Link Gateway virtual connection.
    createdAt String
    (String) The date and time resource created.
    id String
    The provider-assigned unique ID for this managed resource.
    networkAccount String
    (String) The virtual connections across two different IBM Cloud accounts network_account indicates the account that owns the target network. For example, 00aa14a2e0fb102c8995ebeff65555.
    relatedCrn String
    The crn of the Direct link gateway
    status String
    (String) The status of the virtual connection. Possible values are pending, attached, approval_pending, rejected, expired, deleting, detached_by_network_pending, detached_by_network. For example, attached.
    virtualConnectionId String
    (String) The unique identifier for the Direct Link Gateway virtual connection.
    createdAt string
    (String) The date and time resource created.
    id string
    The provider-assigned unique ID for this managed resource.
    networkAccount string
    (String) The virtual connections across two different IBM Cloud accounts network_account indicates the account that owns the target network. For example, 00aa14a2e0fb102c8995ebeff65555.
    relatedCrn string
    The crn of the Direct link gateway
    status string
    (String) The status of the virtual connection. Possible values are pending, attached, approval_pending, rejected, expired, deleting, detached_by_network_pending, detached_by_network. For example, attached.
    virtualConnectionId string
    (String) The unique identifier for the Direct Link Gateway virtual connection.
    created_at str
    (String) The date and time resource created.
    id str
    The provider-assigned unique ID for this managed resource.
    network_account str
    (String) The virtual connections across two different IBM Cloud accounts network_account indicates the account that owns the target network. For example, 00aa14a2e0fb102c8995ebeff65555.
    related_crn str
    The crn of the Direct link gateway
    status str
    (String) The status of the virtual connection. Possible values are pending, attached, approval_pending, rejected, expired, deleting, detached_by_network_pending, detached_by_network. For example, attached.
    virtual_connection_id str
    (String) The unique identifier for the Direct Link Gateway virtual connection.
    createdAt String
    (String) The date and time resource created.
    id String
    The provider-assigned unique ID for this managed resource.
    networkAccount String
    (String) The virtual connections across two different IBM Cloud accounts network_account indicates the account that owns the target network. For example, 00aa14a2e0fb102c8995ebeff65555.
    relatedCrn String
    The crn of the Direct link gateway
    status String
    (String) The status of the virtual connection. Possible values are pending, attached, approval_pending, rejected, expired, deleting, detached_by_network_pending, detached_by_network. For example, attached.
    virtualConnectionId String
    (String) The unique identifier for the Direct Link Gateway virtual connection.

    Look up Existing DlVirtualConnection Resource

    Get an existing DlVirtualConnection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: DlVirtualConnectionState, opts?: CustomResourceOptions): DlVirtualConnection
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            dl_virtual_connection_id: Optional[str] = None,
            gateway: Optional[str] = None,
            name: Optional[str] = None,
            network_account: Optional[str] = None,
            network_id: Optional[str] = None,
            related_crn: Optional[str] = None,
            status: Optional[str] = None,
            timeouts: Optional[DlVirtualConnectionTimeoutsArgs] = None,
            type: Optional[str] = None,
            virtual_connection_id: Optional[str] = None) -> DlVirtualConnection
    func GetDlVirtualConnection(ctx *Context, name string, id IDInput, state *DlVirtualConnectionState, opts ...ResourceOption) (*DlVirtualConnection, error)
    public static DlVirtualConnection Get(string name, Input<string> id, DlVirtualConnectionState? state, CustomResourceOptions? opts = null)
    public static DlVirtualConnection get(String name, Output<String> id, DlVirtualConnectionState state, CustomResourceOptions options)
    resources:  _:    type: ibm:DlVirtualConnection    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CreatedAt string
    (String) The date and time resource created.
    DlVirtualConnectionId string
    (String) The unique ID of the resource with combination of gateway / virtual_connection_id.
    Gateway string
    The Direct Link Gateway ID.
    Name string
    The user-defined name for this virtual connection. The virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. For type=vpc virtual connections it is the CRN of the target VPC. This parameter does not apply for type=classic connections. For example, crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bb.
    NetworkAccount string
    (String) The virtual connections across two different IBM Cloud accounts network_account indicates the account that owns the target network. For example, 00aa14a2e0fb102c8995ebeff65555.
    NetworkId string
    Metered billing option. If set true gateway usage is billed per GB. Otherwise, flat rate is charged for the gateway.
    RelatedCrn string
    The crn of the Direct link gateway
    Status string
    (String) The status of the virtual connection. Possible values are pending, attached, approval_pending, rejected, expired, deleting, detached_by_network_pending, detached_by_network. For example, attached.
    Timeouts DlVirtualConnectionTimeouts
    Type string
    The type of virtual connection. Allowed values are classic,vpc.
    VirtualConnectionId string
    (String) The unique identifier for the Direct Link Gateway virtual connection.
    CreatedAt string
    (String) The date and time resource created.
    DlVirtualConnectionId string
    (String) The unique ID of the resource with combination of gateway / virtual_connection_id.
    Gateway string
    The Direct Link Gateway ID.
    Name string
    The user-defined name for this virtual connection. The virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. For type=vpc virtual connections it is the CRN of the target VPC. This parameter does not apply for type=classic connections. For example, crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bb.
    NetworkAccount string
    (String) The virtual connections across two different IBM Cloud accounts network_account indicates the account that owns the target network. For example, 00aa14a2e0fb102c8995ebeff65555.
    NetworkId string
    Metered billing option. If set true gateway usage is billed per GB. Otherwise, flat rate is charged for the gateway.
    RelatedCrn string
    The crn of the Direct link gateway
    Status string
    (String) The status of the virtual connection. Possible values are pending, attached, approval_pending, rejected, expired, deleting, detached_by_network_pending, detached_by_network. For example, attached.
    Timeouts DlVirtualConnectionTimeoutsArgs
    Type string
    The type of virtual connection. Allowed values are classic,vpc.
    VirtualConnectionId string
    (String) The unique identifier for the Direct Link Gateway virtual connection.
    createdAt String
    (String) The date and time resource created.
    dlVirtualConnectionId String
    (String) The unique ID of the resource with combination of gateway / virtual_connection_id.
    gateway String
    The Direct Link Gateway ID.
    name String
    The user-defined name for this virtual connection. The virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. For type=vpc virtual connections it is the CRN of the target VPC. This parameter does not apply for type=classic connections. For example, crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bb.
    networkAccount String
    (String) The virtual connections across two different IBM Cloud accounts network_account indicates the account that owns the target network. For example, 00aa14a2e0fb102c8995ebeff65555.
    networkId String
    Metered billing option. If set true gateway usage is billed per GB. Otherwise, flat rate is charged for the gateway.
    relatedCrn String
    The crn of the Direct link gateway
    status String
    (String) The status of the virtual connection. Possible values are pending, attached, approval_pending, rejected, expired, deleting, detached_by_network_pending, detached_by_network. For example, attached.
    timeouts DlVirtualConnectionTimeouts
    type String
    The type of virtual connection. Allowed values are classic,vpc.
    virtualConnectionId String
    (String) The unique identifier for the Direct Link Gateway virtual connection.
    createdAt string
    (String) The date and time resource created.
    dlVirtualConnectionId string
    (String) The unique ID of the resource with combination of gateway / virtual_connection_id.
    gateway string
    The Direct Link Gateway ID.
    name string
    The user-defined name for this virtual connection. The virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. For type=vpc virtual connections it is the CRN of the target VPC. This parameter does not apply for type=classic connections. For example, crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bb.
    networkAccount string
    (String) The virtual connections across two different IBM Cloud accounts network_account indicates the account that owns the target network. For example, 00aa14a2e0fb102c8995ebeff65555.
    networkId string
    Metered billing option. If set true gateway usage is billed per GB. Otherwise, flat rate is charged for the gateway.
    relatedCrn string
    The crn of the Direct link gateway
    status string
    (String) The status of the virtual connection. Possible values are pending, attached, approval_pending, rejected, expired, deleting, detached_by_network_pending, detached_by_network. For example, attached.
    timeouts DlVirtualConnectionTimeouts
    type string
    The type of virtual connection. Allowed values are classic,vpc.
    virtualConnectionId string
    (String) The unique identifier for the Direct Link Gateway virtual connection.
    created_at str
    (String) The date and time resource created.
    dl_virtual_connection_id str
    (String) The unique ID of the resource with combination of gateway / virtual_connection_id.
    gateway str
    The Direct Link Gateway ID.
    name str
    The user-defined name for this virtual connection. The virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. For type=vpc virtual connections it is the CRN of the target VPC. This parameter does not apply for type=classic connections. For example, crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bb.
    network_account str
    (String) The virtual connections across two different IBM Cloud accounts network_account indicates the account that owns the target network. For example, 00aa14a2e0fb102c8995ebeff65555.
    network_id str
    Metered billing option. If set true gateway usage is billed per GB. Otherwise, flat rate is charged for the gateway.
    related_crn str
    The crn of the Direct link gateway
    status str
    (String) The status of the virtual connection. Possible values are pending, attached, approval_pending, rejected, expired, deleting, detached_by_network_pending, detached_by_network. For example, attached.
    timeouts DlVirtualConnectionTimeoutsArgs
    type str
    The type of virtual connection. Allowed values are classic,vpc.
    virtual_connection_id str
    (String) The unique identifier for the Direct Link Gateway virtual connection.
    createdAt String
    (String) The date and time resource created.
    dlVirtualConnectionId String
    (String) The unique ID of the resource with combination of gateway / virtual_connection_id.
    gateway String
    The Direct Link Gateway ID.
    name String
    The user-defined name for this virtual connection. The virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. For type=vpc virtual connections it is the CRN of the target VPC. This parameter does not apply for type=classic connections. For example, crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bb.
    networkAccount String
    (String) The virtual connections across two different IBM Cloud accounts network_account indicates the account that owns the target network. For example, 00aa14a2e0fb102c8995ebeff65555.
    networkId String
    Metered billing option. If set true gateway usage is billed per GB. Otherwise, flat rate is charged for the gateway.
    relatedCrn String
    The crn of the Direct link gateway
    status String
    (String) The status of the virtual connection. Possible values are pending, attached, approval_pending, rejected, expired, deleting, detached_by_network_pending, detached_by_network. For example, attached.
    timeouts Property Map
    type String
    The type of virtual connection. Allowed values are classic,vpc.
    virtualConnectionId String
    (String) The unique identifier for the Direct Link Gateway virtual connection.

    Supporting Types

    DlVirtualConnectionTimeouts, DlVirtualConnectionTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    The ibm_dl_gateway_vc resource can be imported by using Direct Link Gateway ID and Direct Link Gateway virtual connection ID.

    Syntax

    $ pulumi import ibm:index/dlVirtualConnection:DlVirtualConnection example <direct_link_gateway_ID>/<direct_link_gateway_virtual_connection_ID>
    

    Example

    $ pulumi import ibm:index/dlVirtualConnection:DlVirtualConnection example d7bec597-4726-451f-8a53-e62e6f19c32c/cea6651a-bd0a-4438-9f8a-a0770bbf3ebb
    

    To learn more about importing existing cloud resources, see Importing resources.

    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