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,
});
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
. - Dl
Virtual stringConnection Id - (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 fortype=classic
connections. For example,crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bb
. - Network
Id string - Metered billing option. If set true gateway usage is billed per GB. Otherwise, flat rate is charged for the gateway.
- Timeouts
Dl
Virtual Connection Timeouts
- Gateway string
- The Direct Link Gateway ID.
- Type string
- The type of virtual connection. Allowed values are
classic
,vpc
. - Dl
Virtual stringConnection Id - (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 fortype=classic
connections. For example,crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bb
. - Network
Id string - Metered billing option. If set true gateway usage is billed per GB. Otherwise, flat rate is charged for the gateway.
- Timeouts
Dl
Virtual Connection Timeouts Args
- gateway String
- The Direct Link Gateway ID.
- type String
- The type of virtual connection. Allowed values are
classic
,vpc
. - dl
Virtual StringConnection Id - (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 fortype=classic
connections. For example,crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bb
. - network
Id String - Metered billing option. If set true gateway usage is billed per GB. Otherwise, flat rate is charged for the gateway.
- timeouts
Dl
Virtual Connection Timeouts
- gateway string
- The Direct Link Gateway ID.
- type string
- The type of virtual connection. Allowed values are
classic
,vpc
. - dl
Virtual stringConnection Id - (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 fortype=classic
connections. For example,crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bb
. - network
Id string - Metered billing option. If set true gateway usage is billed per GB. Otherwise, flat rate is charged for the gateway.
- timeouts
Dl
Virtual Connection Timeouts
- gateway str
- The Direct Link Gateway ID.
- type str
- The type of virtual connection. Allowed values are
classic
,vpc
. - dl_
virtual_ strconnection_ id - (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 fortype=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
Dl
Virtual Connection Timeouts Args
- gateway String
- The Direct Link Gateway ID.
- type String
- The type of virtual connection. Allowed values are
classic
,vpc
. - dl
Virtual StringConnection Id - (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 fortype=classic
connections. For example,crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bb
. - network
Id 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:
- Created
At string - (String) The date and time resource created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Account string - (String) The virtual connections across two different IBM Cloud accounts network_account indicates the account that owns the target network. For example,
00aa14a2e0fb102c8995ebeff65555
. - 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
. - Virtual
Connection stringId - (String) The unique identifier for the Direct Link Gateway virtual connection.
- Created
At string - (String) The date and time resource created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Account string - (String) The virtual connections across two different IBM Cloud accounts network_account indicates the account that owns the target network. For example,
00aa14a2e0fb102c8995ebeff65555
. - 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
. - Virtual
Connection stringId - (String) The unique identifier for the Direct Link Gateway virtual connection.
- created
At String - (String) The date and time resource created.
- id String
- The provider-assigned unique ID for this managed resource.
- network
Account String - (String) The virtual connections across two different IBM Cloud accounts network_account indicates the account that owns the target network. For example,
00aa14a2e0fb102c8995ebeff65555
. - 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
. - virtual
Connection StringId - (String) The unique identifier for the Direct Link Gateway virtual connection.
- created
At string - (String) The date and time resource created.
- id string
- The provider-assigned unique ID for this managed resource.
- network
Account string - (String) The virtual connections across two different IBM Cloud accounts network_account indicates the account that owns the target network. For example,
00aa14a2e0fb102c8995ebeff65555
. - 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
. - virtual
Connection stringId - (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
. - 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_ strid - (String) The unique identifier for the Direct Link Gateway virtual connection.
- created
At String - (String) The date and time resource created.
- id String
- The provider-assigned unique ID for this managed resource.
- network
Account String - (String) The virtual connections across two different IBM Cloud accounts network_account indicates the account that owns the target network. For example,
00aa14a2e0fb102c8995ebeff65555
. - 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
. - virtual
Connection StringId - (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.
- Created
At string - (String) The date and time resource created.
- Dl
Virtual stringConnection Id - (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 fortype=classic
connections. For example,crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bb
. - Network
Account string - (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 string - Metered billing option. If set true gateway usage is billed per GB. Otherwise, flat rate is charged for the gateway.
- 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
Dl
Virtual Connection Timeouts - Type string
- The type of virtual connection. Allowed values are
classic
,vpc
. - Virtual
Connection stringId - (String) The unique identifier for the Direct Link Gateway virtual connection.
- Created
At string - (String) The date and time resource created.
- Dl
Virtual stringConnection Id - (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 fortype=classic
connections. For example,crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bb
. - Network
Account string - (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 string - Metered billing option. If set true gateway usage is billed per GB. Otherwise, flat rate is charged for the gateway.
- 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
Dl
Virtual Connection Timeouts Args - Type string
- The type of virtual connection. Allowed values are
classic
,vpc
. - Virtual
Connection stringId - (String) The unique identifier for the Direct Link Gateway virtual connection.
- created
At String - (String) The date and time resource created.
- dl
Virtual StringConnection Id - (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 fortype=classic
connections. For example,crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bb
. - network
Account String - (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 String - Metered billing option. If set true gateway usage is billed per GB. Otherwise, flat rate is charged for the gateway.
- 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
Dl
Virtual Connection Timeouts - type String
- The type of virtual connection. Allowed values are
classic
,vpc
. - virtual
Connection StringId - (String) The unique identifier for the Direct Link Gateway virtual connection.
- created
At string - (String) The date and time resource created.
- dl
Virtual stringConnection Id - (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 fortype=classic
connections. For example,crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bb
. - network
Account string - (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 string - Metered billing option. If set true gateway usage is billed per GB. Otherwise, flat rate is charged for the gateway.
- 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
Dl
Virtual Connection Timeouts - type string
- The type of virtual connection. Allowed values are
classic
,vpc
. - virtual
Connection stringId - (String) The unique identifier for the Direct Link Gateway virtual connection.
- created_
at str - (String) The date and time resource created.
- dl_
virtual_ strconnection_ id - (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 fortype=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.
- 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
Dl
Virtual Connection Timeouts Args - type str
- The type of virtual connection. Allowed values are
classic
,vpc
. - virtual_
connection_ strid - (String) The unique identifier for the Direct Link Gateway virtual connection.
- created
At String - (String) The date and time resource created.
- dl
Virtual StringConnection Id - (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 fortype=classic
connections. For example,crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bb
. - network
Account String - (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 String - Metered billing option. If set true gateway usage is billed per GB. Otherwise, flat rate is charged for the gateway.
- 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
. - virtual
Connection StringId - (String) The unique identifier for the Direct Link Gateway virtual connection.
Supporting Types
DlVirtualConnectionTimeouts, DlVirtualConnectionTimeoutsArgs
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.