1. Packages
  2. Ibm Provider
  3. API Docs
  4. DlVirtualConnection
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.DlVirtualConnection

Explore with Pulumi AI

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,
});
Copy
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"])
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
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}
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. DlVirtualConnectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. DlVirtualConnectionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DlVirtualConnectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
    },
});
Copy
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"),
	},
})
Copy
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());
Copy
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",
    })
Copy
const dlVirtualConnectionResource = new ibm.DlVirtualConnection("dlVirtualConnectionResource", {
    gateway: "string",
    type: "string",
    dlVirtualConnectionId: "string",
    name: "string",
    networkId: "string",
    timeouts: {
        create: "string",
        "delete": "string",
        update: "string",
    },
});
Copy
type: ibm:DlVirtualConnection
properties:
    dlVirtualConnectionId: string
    gateway: string
    name: string
    networkId: string
    timeouts:
        create: string
        delete: string
        update: string
    type: string
Copy

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 This property is required. string
The Direct Link Gateway ID.
Type This property is required. 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 This property is required. string
The Direct Link Gateway ID.
Type This property is required. 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 This property is required. String
The Direct Link Gateway ID.
type This property is required. 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 This property is required. string
The Direct Link Gateway ID.
type This property is required. 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 This property is required. str
The Direct Link Gateway ID.
type This property is required. 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 This property is required. String
The Direct Link Gateway ID.
type This property is required. 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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>
Copy

Example

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

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.