opentelekomcloud.DcVirtualInterfaceV2
Explore with Pulumi AI
Create DcVirtualInterfaceV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DcVirtualInterfaceV2(name: string, args: DcVirtualInterfaceV2Args, opts?: CustomResourceOptions);
@overload
def DcVirtualInterfaceV2(resource_name: str,
args: DcVirtualInterfaceV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def DcVirtualInterfaceV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
remote_ep_group: Optional[DcVirtualInterfaceV2RemoteEpGroupArgs] = None,
bandwidth: Optional[float] = None,
vlan: Optional[float] = None,
virtual_gateway_id: Optional[str] = None,
type: Optional[str] = None,
direct_connect_id: Optional[str] = None,
service_type: Optional[str] = None,
route_mode: Optional[str] = None,
description: Optional[str] = None,
local_gateway_v4_ip: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
lag_id: Optional[str] = None,
remote_gateway_v4_ip: Optional[str] = None,
enable_nqa: Optional[bool] = None,
enable_bfd: Optional[bool] = None,
asn: Optional[float] = None,
dc_virtual_interface_v2_id: Optional[str] = None,
bgp_md5: Optional[str] = None)
func NewDcVirtualInterfaceV2(ctx *Context, name string, args DcVirtualInterfaceV2Args, opts ...ResourceOption) (*DcVirtualInterfaceV2, error)
public DcVirtualInterfaceV2(string name, DcVirtualInterfaceV2Args args, CustomResourceOptions? opts = null)
public DcVirtualInterfaceV2(String name, DcVirtualInterfaceV2Args args)
public DcVirtualInterfaceV2(String name, DcVirtualInterfaceV2Args args, CustomResourceOptions options)
type: opentelekomcloud:DcVirtualInterfaceV2
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 DcVirtualInterfaceV2Args
- 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 DcVirtualInterfaceV2Args
- 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 DcVirtualInterfaceV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DcVirtualInterfaceV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DcVirtualInterfaceV2Args
- 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 dcVirtualInterfaceV2Resource = new Opentelekomcloud.DcVirtualInterfaceV2("dcVirtualInterfaceV2Resource", new()
{
RemoteEpGroup = new Opentelekomcloud.Inputs.DcVirtualInterfaceV2RemoteEpGroupArgs
{
Endpoints = new[]
{
"string",
},
Description = "string",
Name = "string",
ProjectId = "string",
Type = "string",
},
Bandwidth = 0,
Vlan = 0,
VirtualGatewayId = "string",
Type = "string",
DirectConnectId = "string",
ServiceType = "string",
RouteMode = "string",
Description = "string",
LocalGatewayV4Ip = "string",
Name = "string",
ProjectId = "string",
LagId = "string",
RemoteGatewayV4Ip = "string",
EnableNqa = false,
EnableBfd = false,
Asn = 0,
DcVirtualInterfaceV2Id = "string",
BgpMd5 = "string",
});
example, err := opentelekomcloud.NewDcVirtualInterfaceV2(ctx, "dcVirtualInterfaceV2Resource", &opentelekomcloud.DcVirtualInterfaceV2Args{
RemoteEpGroup: &opentelekomcloud.DcVirtualInterfaceV2RemoteEpGroupArgs{
Endpoints: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Type: pulumi.String("string"),
},
Bandwidth: pulumi.Float64(0),
Vlan: pulumi.Float64(0),
VirtualGatewayId: pulumi.String("string"),
Type: pulumi.String("string"),
DirectConnectId: pulumi.String("string"),
ServiceType: pulumi.String("string"),
RouteMode: pulumi.String("string"),
Description: pulumi.String("string"),
LocalGatewayV4Ip: pulumi.String("string"),
Name: pulumi.String("string"),
ProjectId: pulumi.String("string"),
LagId: pulumi.String("string"),
RemoteGatewayV4Ip: pulumi.String("string"),
EnableNqa: pulumi.Bool(false),
EnableBfd: pulumi.Bool(false),
Asn: pulumi.Float64(0),
DcVirtualInterfaceV2Id: pulumi.String("string"),
BgpMd5: pulumi.String("string"),
})
var dcVirtualInterfaceV2Resource = new DcVirtualInterfaceV2("dcVirtualInterfaceV2Resource", DcVirtualInterfaceV2Args.builder()
.remoteEpGroup(DcVirtualInterfaceV2RemoteEpGroupArgs.builder()
.endpoints("string")
.description("string")
.name("string")
.projectId("string")
.type("string")
.build())
.bandwidth(0)
.vlan(0)
.virtualGatewayId("string")
.type("string")
.directConnectId("string")
.serviceType("string")
.routeMode("string")
.description("string")
.localGatewayV4Ip("string")
.name("string")
.projectId("string")
.lagId("string")
.remoteGatewayV4Ip("string")
.enableNqa(false)
.enableBfd(false)
.asn(0)
.dcVirtualInterfaceV2Id("string")
.bgpMd5("string")
.build());
dc_virtual_interface_v2_resource = opentelekomcloud.DcVirtualInterfaceV2("dcVirtualInterfaceV2Resource",
remote_ep_group={
"endpoints": ["string"],
"description": "string",
"name": "string",
"project_id": "string",
"type": "string",
},
bandwidth=0,
vlan=0,
virtual_gateway_id="string",
type="string",
direct_connect_id="string",
service_type="string",
route_mode="string",
description="string",
local_gateway_v4_ip="string",
name="string",
project_id="string",
lag_id="string",
remote_gateway_v4_ip="string",
enable_nqa=False,
enable_bfd=False,
asn=0,
dc_virtual_interface_v2_id="string",
bgp_md5="string")
const dcVirtualInterfaceV2Resource = new opentelekomcloud.DcVirtualInterfaceV2("dcVirtualInterfaceV2Resource", {
remoteEpGroup: {
endpoints: ["string"],
description: "string",
name: "string",
projectId: "string",
type: "string",
},
bandwidth: 0,
vlan: 0,
virtualGatewayId: "string",
type: "string",
directConnectId: "string",
serviceType: "string",
routeMode: "string",
description: "string",
localGatewayV4Ip: "string",
name: "string",
projectId: "string",
lagId: "string",
remoteGatewayV4Ip: "string",
enableNqa: false,
enableBfd: false,
asn: 0,
dcVirtualInterfaceV2Id: "string",
bgpMd5: "string",
});
type: opentelekomcloud:DcVirtualInterfaceV2
properties:
asn: 0
bandwidth: 0
bgpMd5: string
dcVirtualInterfaceV2Id: string
description: string
directConnectId: string
enableBfd: false
enableNqa: false
lagId: string
localGatewayV4Ip: string
name: string
projectId: string
remoteEpGroup:
description: string
endpoints:
- string
name: string
projectId: string
type: string
remoteGatewayV4Ip: string
routeMode: string
serviceType: string
type: string
virtualGatewayId: string
vlan: 0
DcVirtualInterfaceV2 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 DcVirtualInterfaceV2 resource accepts the following input properties:
- Bandwidth double
- Direct
Connect stringId - Remote
Ep DcGroup Virtual Interface V2Remote Ep Group - Route
Mode string - Service
Type string - Type string
- Virtual
Gateway stringId - Vlan double
- Asn double
- Bgp
Md5 string - Dc
Virtual stringInterface V2Id - Description string
- Enable
Bfd bool - Enable
Nqa bool - Lag
Id string - Local
Gateway stringV4Ip - Name string
- Project
Id string - Remote
Gateway stringV4Ip
- Bandwidth float64
- Direct
Connect stringId - Remote
Ep DcGroup Virtual Interface V2Remote Ep Group Args - Route
Mode string - Service
Type string - Type string
- Virtual
Gateway stringId - Vlan float64
- Asn float64
- Bgp
Md5 string - Dc
Virtual stringInterface V2Id - Description string
- Enable
Bfd bool - Enable
Nqa bool - Lag
Id string - Local
Gateway stringV4Ip - Name string
- Project
Id string - Remote
Gateway stringV4Ip
- bandwidth Double
- direct
Connect StringId - remote
Ep DcGroup Virtual Interface V2Remote Ep Group - route
Mode String - service
Type String - type String
- virtual
Gateway StringId - vlan Double
- asn Double
- bgp
Md5 String - dc
Virtual StringInterface V2Id - description String
- enable
Bfd Boolean - enable
Nqa Boolean - lag
Id String - local
Gateway StringV4Ip - name String
- project
Id String - remote
Gateway StringV4Ip
- bandwidth number
- direct
Connect stringId - remote
Ep DcGroup Virtual Interface V2Remote Ep Group - route
Mode string - service
Type string - type string
- virtual
Gateway stringId - vlan number
- asn number
- bgp
Md5 string - dc
Virtual stringInterface V2Id - description string
- enable
Bfd boolean - enable
Nqa boolean - lag
Id string - local
Gateway stringV4Ip - name string
- project
Id string - remote
Gateway stringV4Ip
- bandwidth float
- direct_
connect_ strid - remote_
ep_ Dcgroup Virtual Interface V2Remote Ep Group Args - route_
mode str - service_
type str - type str
- virtual_
gateway_ strid - vlan float
- asn float
- bgp_
md5 str - dc_
virtual_ strinterface_ v2_ id - description str
- enable_
bfd bool - enable_
nqa bool - lag_
id str - local_
gateway_ strv4_ ip - name str
- project_
id str - remote_
gateway_ strv4_ ip
- bandwidth Number
- direct
Connect StringId - remote
Ep Property MapGroup - route
Mode String - service
Type String - type String
- virtual
Gateway StringId - vlan Number
- asn Number
- bgp
Md5 String - dc
Virtual StringInterface V2Id - description String
- enable
Bfd Boolean - enable
Nqa Boolean - lag
Id String - local
Gateway StringV4Ip - name String
- project
Id String - remote
Gateway StringV4Ip
Outputs
All input properties are implicitly available as output properties. Additionally, the DcVirtualInterfaceV2 resource produces the following output properties:
- Created
At string - Id string
- The provider-assigned unique ID for this managed resource.
- Remote
Ep stringGroup Id - Status string
- Created
At string - Id string
- The provider-assigned unique ID for this managed resource.
- Remote
Ep stringGroup Id - Status string
- created
At String - id String
- The provider-assigned unique ID for this managed resource.
- remote
Ep StringGroup Id - status String
- created
At string - id string
- The provider-assigned unique ID for this managed resource.
- remote
Ep stringGroup Id - status string
- created_
at str - id str
- The provider-assigned unique ID for this managed resource.
- remote_
ep_ strgroup_ id - status str
- created
At String - id String
- The provider-assigned unique ID for this managed resource.
- remote
Ep StringGroup Id - status String
Look up Existing DcVirtualInterfaceV2 Resource
Get an existing DcVirtualInterfaceV2 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?: DcVirtualInterfaceV2State, opts?: CustomResourceOptions): DcVirtualInterfaceV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
asn: Optional[float] = None,
bandwidth: Optional[float] = None,
bgp_md5: Optional[str] = None,
created_at: Optional[str] = None,
dc_virtual_interface_v2_id: Optional[str] = None,
description: Optional[str] = None,
direct_connect_id: Optional[str] = None,
enable_bfd: Optional[bool] = None,
enable_nqa: Optional[bool] = None,
lag_id: Optional[str] = None,
local_gateway_v4_ip: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
remote_ep_group: Optional[DcVirtualInterfaceV2RemoteEpGroupArgs] = None,
remote_ep_group_id: Optional[str] = None,
remote_gateway_v4_ip: Optional[str] = None,
route_mode: Optional[str] = None,
service_type: Optional[str] = None,
status: Optional[str] = None,
type: Optional[str] = None,
virtual_gateway_id: Optional[str] = None,
vlan: Optional[float] = None) -> DcVirtualInterfaceV2
func GetDcVirtualInterfaceV2(ctx *Context, name string, id IDInput, state *DcVirtualInterfaceV2State, opts ...ResourceOption) (*DcVirtualInterfaceV2, error)
public static DcVirtualInterfaceV2 Get(string name, Input<string> id, DcVirtualInterfaceV2State? state, CustomResourceOptions? opts = null)
public static DcVirtualInterfaceV2 get(String name, Output<String> id, DcVirtualInterfaceV2State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:DcVirtualInterfaceV2 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.
- Asn double
- Bandwidth double
- Bgp
Md5 string - Created
At string - Dc
Virtual stringInterface V2Id - Description string
- Direct
Connect stringId - Enable
Bfd bool - Enable
Nqa bool - Lag
Id string - Local
Gateway stringV4Ip - Name string
- Project
Id string - Remote
Ep DcGroup Virtual Interface V2Remote Ep Group - Remote
Ep stringGroup Id - Remote
Gateway stringV4Ip - Route
Mode string - Service
Type string - Status string
- Type string
- Virtual
Gateway stringId - Vlan double
- Asn float64
- Bandwidth float64
- Bgp
Md5 string - Created
At string - Dc
Virtual stringInterface V2Id - Description string
- Direct
Connect stringId - Enable
Bfd bool - Enable
Nqa bool - Lag
Id string - Local
Gateway stringV4Ip - Name string
- Project
Id string - Remote
Ep DcGroup Virtual Interface V2Remote Ep Group Args - Remote
Ep stringGroup Id - Remote
Gateway stringV4Ip - Route
Mode string - Service
Type string - Status string
- Type string
- Virtual
Gateway stringId - Vlan float64
- asn Double
- bandwidth Double
- bgp
Md5 String - created
At String - dc
Virtual StringInterface V2Id - description String
- direct
Connect StringId - enable
Bfd Boolean - enable
Nqa Boolean - lag
Id String - local
Gateway StringV4Ip - name String
- project
Id String - remote
Ep DcGroup Virtual Interface V2Remote Ep Group - remote
Ep StringGroup Id - remote
Gateway StringV4Ip - route
Mode String - service
Type String - status String
- type String
- virtual
Gateway StringId - vlan Double
- asn number
- bandwidth number
- bgp
Md5 string - created
At string - dc
Virtual stringInterface V2Id - description string
- direct
Connect stringId - enable
Bfd boolean - enable
Nqa boolean - lag
Id string - local
Gateway stringV4Ip - name string
- project
Id string - remote
Ep DcGroup Virtual Interface V2Remote Ep Group - remote
Ep stringGroup Id - remote
Gateway stringV4Ip - route
Mode string - service
Type string - status string
- type string
- virtual
Gateway stringId - vlan number
- asn float
- bandwidth float
- bgp_
md5 str - created_
at str - dc_
virtual_ strinterface_ v2_ id - description str
- direct_
connect_ strid - enable_
bfd bool - enable_
nqa bool - lag_
id str - local_
gateway_ strv4_ ip - name str
- project_
id str - remote_
ep_ Dcgroup Virtual Interface V2Remote Ep Group Args - remote_
ep_ strgroup_ id - remote_
gateway_ strv4_ ip - route_
mode str - service_
type str - status str
- type str
- virtual_
gateway_ strid - vlan float
- asn Number
- bandwidth Number
- bgp
Md5 String - created
At String - dc
Virtual StringInterface V2Id - description String
- direct
Connect StringId - enable
Bfd Boolean - enable
Nqa Boolean - lag
Id String - local
Gateway StringV4Ip - name String
- project
Id String - remote
Ep Property MapGroup - remote
Ep StringGroup Id - remote
Gateway StringV4Ip - route
Mode String - service
Type String - status String
- type String
- virtual
Gateway StringId - vlan Number
Supporting Types
DcVirtualInterfaceV2RemoteEpGroup, DcVirtualInterfaceV2RemoteEpGroupArgs
- Endpoints List<string>
- Description string
- Name string
- Project
Id string - Type string
- Endpoints []string
- Description string
- Name string
- Project
Id string - Type string
- endpoints List<String>
- description String
- name String
- project
Id String - type String
- endpoints string[]
- description string
- name string
- project
Id string - type string
- endpoints Sequence[str]
- description str
- name str
- project_
id str - type str
- endpoints List<String>
- description String
- name String
- project
Id String - type String
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.