opentelekomcloud.DcVirtualGatewayV2
Explore with Pulumi AI
Create DcVirtualGatewayV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DcVirtualGatewayV2(name: string, args: DcVirtualGatewayV2Args, opts?: CustomResourceOptions);
@overload
def DcVirtualGatewayV2(resource_name: str,
args: DcVirtualGatewayV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def DcVirtualGatewayV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
vpc_id: Optional[str] = None,
asn: Optional[float] = None,
dc_virtual_gateway_v2_id: Optional[str] = None,
description: Optional[str] = None,
device_id: Optional[str] = None,
local_ep_group: Optional[DcVirtualGatewayV2LocalEpGroupArgs] = None,
local_ep_group_v6: Optional[DcVirtualGatewayV2LocalEpGroupV6Args] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
redundant_device_id: Optional[str] = None)
func NewDcVirtualGatewayV2(ctx *Context, name string, args DcVirtualGatewayV2Args, opts ...ResourceOption) (*DcVirtualGatewayV2, error)
public DcVirtualGatewayV2(string name, DcVirtualGatewayV2Args args, CustomResourceOptions? opts = null)
public DcVirtualGatewayV2(String name, DcVirtualGatewayV2Args args)
public DcVirtualGatewayV2(String name, DcVirtualGatewayV2Args args, CustomResourceOptions options)
type: opentelekomcloud:DcVirtualGatewayV2
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 DcVirtualGatewayV2Args
- 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 DcVirtualGatewayV2Args
- 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 DcVirtualGatewayV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DcVirtualGatewayV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DcVirtualGatewayV2Args
- 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 dcVirtualGatewayV2Resource = new Opentelekomcloud.DcVirtualGatewayV2("dcVirtualGatewayV2Resource", new()
{
VpcId = "string",
Asn = 0,
DcVirtualGatewayV2Id = "string",
Description = "string",
DeviceId = "string",
LocalEpGroup = new Opentelekomcloud.Inputs.DcVirtualGatewayV2LocalEpGroupArgs
{
Endpoints = new[]
{
"string",
},
Description = "string",
Name = "string",
Type = "string",
},
LocalEpGroupV6 = new Opentelekomcloud.Inputs.DcVirtualGatewayV2LocalEpGroupV6Args
{
Endpoints = new[]
{
"string",
},
Description = "string",
Name = "string",
Type = "string",
},
Name = "string",
ProjectId = "string",
RedundantDeviceId = "string",
});
example, err := opentelekomcloud.NewDcVirtualGatewayV2(ctx, "dcVirtualGatewayV2Resource", &opentelekomcloud.DcVirtualGatewayV2Args{
VpcId: pulumi.String("string"),
Asn: pulumi.Float64(0),
DcVirtualGatewayV2Id: pulumi.String("string"),
Description: pulumi.String("string"),
DeviceId: pulumi.String("string"),
LocalEpGroup: &opentelekomcloud.DcVirtualGatewayV2LocalEpGroupArgs{
Endpoints: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Type: pulumi.String("string"),
},
LocalEpGroupV6: &opentelekomcloud.DcVirtualGatewayV2LocalEpGroupV6Args{
Endpoints: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Type: pulumi.String("string"),
},
Name: pulumi.String("string"),
ProjectId: pulumi.String("string"),
RedundantDeviceId: pulumi.String("string"),
})
var dcVirtualGatewayV2Resource = new DcVirtualGatewayV2("dcVirtualGatewayV2Resource", DcVirtualGatewayV2Args.builder()
.vpcId("string")
.asn(0)
.dcVirtualGatewayV2Id("string")
.description("string")
.deviceId("string")
.localEpGroup(DcVirtualGatewayV2LocalEpGroupArgs.builder()
.endpoints("string")
.description("string")
.name("string")
.type("string")
.build())
.localEpGroupV6(DcVirtualGatewayV2LocalEpGroupV6Args.builder()
.endpoints("string")
.description("string")
.name("string")
.type("string")
.build())
.name("string")
.projectId("string")
.redundantDeviceId("string")
.build());
dc_virtual_gateway_v2_resource = opentelekomcloud.DcVirtualGatewayV2("dcVirtualGatewayV2Resource",
vpc_id="string",
asn=0,
dc_virtual_gateway_v2_id="string",
description="string",
device_id="string",
local_ep_group={
"endpoints": ["string"],
"description": "string",
"name": "string",
"type": "string",
},
local_ep_group_v6={
"endpoints": ["string"],
"description": "string",
"name": "string",
"type": "string",
},
name="string",
project_id="string",
redundant_device_id="string")
const dcVirtualGatewayV2Resource = new opentelekomcloud.DcVirtualGatewayV2("dcVirtualGatewayV2Resource", {
vpcId: "string",
asn: 0,
dcVirtualGatewayV2Id: "string",
description: "string",
deviceId: "string",
localEpGroup: {
endpoints: ["string"],
description: "string",
name: "string",
type: "string",
},
localEpGroupV6: {
endpoints: ["string"],
description: "string",
name: "string",
type: "string",
},
name: "string",
projectId: "string",
redundantDeviceId: "string",
});
type: opentelekomcloud:DcVirtualGatewayV2
properties:
asn: 0
dcVirtualGatewayV2Id: string
description: string
deviceId: string
localEpGroup:
description: string
endpoints:
- string
name: string
type: string
localEpGroupV6:
description: string
endpoints:
- string
name: string
type: string
name: string
projectId: string
redundantDeviceId: string
vpcId: string
DcVirtualGatewayV2 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 DcVirtualGatewayV2 resource accepts the following input properties:
- Vpc
Id string - Asn double
- Dc
Virtual stringGateway V2Id - Description string
- Device
Id string - Local
Ep DcGroup Virtual Gateway V2Local Ep Group - Local
Ep DcGroup V6 Virtual Gateway V2Local Ep Group V6 - Name string
- Project
Id string - Redundant
Device stringId
- Vpc
Id string - Asn float64
- Dc
Virtual stringGateway V2Id - Description string
- Device
Id string - Local
Ep DcGroup Virtual Gateway V2Local Ep Group Args - Local
Ep DcGroup V6 Virtual Gateway V2Local Ep Group V6Args - Name string
- Project
Id string - Redundant
Device stringId
- vpc
Id String - asn Double
- dc
Virtual StringGateway V2Id - description String
- device
Id String - local
Ep DcGroup Virtual Gateway V2Local Ep Group - local
Ep DcGroup V6 Virtual Gateway V2Local Ep Group V6 - name String
- project
Id String - redundant
Device StringId
- vpc
Id string - asn number
- dc
Virtual stringGateway V2Id - description string
- device
Id string - local
Ep DcGroup Virtual Gateway V2Local Ep Group - local
Ep DcGroup V6 Virtual Gateway V2Local Ep Group V6 - name string
- project
Id string - redundant
Device stringId
- vpc
Id String - asn Number
- dc
Virtual StringGateway V2Id - description String
- device
Id String - local
Ep Property MapGroup - local
Ep Property MapGroup V6 - name String
- project
Id String - redundant
Device StringId
Outputs
All input properties are implicitly available as output properties. Additionally, the DcVirtualGatewayV2 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Local
Ep stringGroup Id - Local
Ep stringGroup Ipv6Id - Status string
- Id string
- The provider-assigned unique ID for this managed resource.
- Local
Ep stringGroup Id - Local
Ep stringGroup Ipv6Id - Status string
- id String
- The provider-assigned unique ID for this managed resource.
- local
Ep StringGroup Id - local
Ep StringGroup Ipv6Id - status String
- id string
- The provider-assigned unique ID for this managed resource.
- local
Ep stringGroup Id - local
Ep stringGroup Ipv6Id - status string
- id str
- The provider-assigned unique ID for this managed resource.
- local_
ep_ strgroup_ id - local_
ep_ strgroup_ ipv6_ id - status str
- id String
- The provider-assigned unique ID for this managed resource.
- local
Ep StringGroup Id - local
Ep StringGroup Ipv6Id - status String
Look up Existing DcVirtualGatewayV2 Resource
Get an existing DcVirtualGatewayV2 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?: DcVirtualGatewayV2State, opts?: CustomResourceOptions): DcVirtualGatewayV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
asn: Optional[float] = None,
dc_virtual_gateway_v2_id: Optional[str] = None,
description: Optional[str] = None,
device_id: Optional[str] = None,
local_ep_group: Optional[DcVirtualGatewayV2LocalEpGroupArgs] = None,
local_ep_group_id: Optional[str] = None,
local_ep_group_ipv6_id: Optional[str] = None,
local_ep_group_v6: Optional[DcVirtualGatewayV2LocalEpGroupV6Args] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
redundant_device_id: Optional[str] = None,
status: Optional[str] = None,
vpc_id: Optional[str] = None) -> DcVirtualGatewayV2
func GetDcVirtualGatewayV2(ctx *Context, name string, id IDInput, state *DcVirtualGatewayV2State, opts ...ResourceOption) (*DcVirtualGatewayV2, error)
public static DcVirtualGatewayV2 Get(string name, Input<string> id, DcVirtualGatewayV2State? state, CustomResourceOptions? opts = null)
public static DcVirtualGatewayV2 get(String name, Output<String> id, DcVirtualGatewayV2State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:DcVirtualGatewayV2 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
- Dc
Virtual stringGateway V2Id - Description string
- Device
Id string - Local
Ep DcGroup Virtual Gateway V2Local Ep Group - Local
Ep stringGroup Id - Local
Ep stringGroup Ipv6Id - Local
Ep DcGroup V6 Virtual Gateway V2Local Ep Group V6 - Name string
- Project
Id string - Redundant
Device stringId - Status string
- Vpc
Id string
- Asn float64
- Dc
Virtual stringGateway V2Id - Description string
- Device
Id string - Local
Ep DcGroup Virtual Gateway V2Local Ep Group Args - Local
Ep stringGroup Id - Local
Ep stringGroup Ipv6Id - Local
Ep DcGroup V6 Virtual Gateway V2Local Ep Group V6Args - Name string
- Project
Id string - Redundant
Device stringId - Status string
- Vpc
Id string
- asn Double
- dc
Virtual StringGateway V2Id - description String
- device
Id String - local
Ep DcGroup Virtual Gateway V2Local Ep Group - local
Ep StringGroup Id - local
Ep StringGroup Ipv6Id - local
Ep DcGroup V6 Virtual Gateway V2Local Ep Group V6 - name String
- project
Id String - redundant
Device StringId - status String
- vpc
Id String
- asn number
- dc
Virtual stringGateway V2Id - description string
- device
Id string - local
Ep DcGroup Virtual Gateway V2Local Ep Group - local
Ep stringGroup Id - local
Ep stringGroup Ipv6Id - local
Ep DcGroup V6 Virtual Gateway V2Local Ep Group V6 - name string
- project
Id string - redundant
Device stringId - status string
- vpc
Id string
- asn Number
- dc
Virtual StringGateway V2Id - description String
- device
Id String - local
Ep Property MapGroup - local
Ep StringGroup Id - local
Ep StringGroup Ipv6Id - local
Ep Property MapGroup V6 - name String
- project
Id String - redundant
Device StringId - status String
- vpc
Id String
Supporting Types
DcVirtualGatewayV2LocalEpGroup, DcVirtualGatewayV2LocalEpGroupArgs
- Endpoints List<string>
- Description string
- Name string
- Type string
- Endpoints []string
- Description string
- Name string
- Type string
- endpoints List<String>
- description String
- name String
- type String
- endpoints string[]
- description string
- name string
- type string
- endpoints Sequence[str]
- description str
- name str
- type str
- endpoints List<String>
- description String
- name String
- type String
DcVirtualGatewayV2LocalEpGroupV6, DcVirtualGatewayV2LocalEpGroupV6Args
- Endpoints List<string>
- Description string
- Name string
- Type string
- Endpoints []string
- Description string
- Name string
- Type string
- endpoints List<String>
- description String
- name String
- type String
- endpoints string[]
- description string
- name string
- type string
- endpoints Sequence[str]
- description str
- name str
- type str
- endpoints List<String>
- description String
- name String
- type String
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.