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: &.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
- DirectConnect stringId 
- RemoteEp DcGroup Virtual Interface V2Remote Ep Group 
- RouteMode string
- ServiceType string
- Type string
- VirtualGateway stringId 
- Vlan double
- Asn double
- BgpMd5 string
- DcVirtual stringInterface V2Id 
- Description string
- EnableBfd bool
- EnableNqa bool
- LagId string
- LocalGateway stringV4Ip 
- Name string
- ProjectId string
- RemoteGateway stringV4Ip 
- Bandwidth float64
- DirectConnect stringId 
- RemoteEp DcGroup Virtual Interface V2Remote Ep Group Args 
- RouteMode string
- ServiceType string
- Type string
- VirtualGateway stringId 
- Vlan float64
- Asn float64
- BgpMd5 string
- DcVirtual stringInterface V2Id 
- Description string
- EnableBfd bool
- EnableNqa bool
- LagId string
- LocalGateway stringV4Ip 
- Name string
- ProjectId string
- RemoteGateway stringV4Ip 
- bandwidth Double
- directConnect StringId 
- remoteEp DcGroup Virtual Interface V2Remote Ep Group 
- routeMode String
- serviceType String
- type String
- virtualGateway StringId 
- vlan Double
- asn Double
- bgpMd5 String
- dcVirtual StringInterface V2Id 
- description String
- enableBfd Boolean
- enableNqa Boolean
- lagId String
- localGateway StringV4Ip 
- name String
- projectId String
- remoteGateway StringV4Ip 
- bandwidth number
- directConnect stringId 
- remoteEp DcGroup Virtual Interface V2Remote Ep Group 
- routeMode string
- serviceType string
- type string
- virtualGateway stringId 
- vlan number
- asn number
- bgpMd5 string
- dcVirtual stringInterface V2Id 
- description string
- enableBfd boolean
- enableNqa boolean
- lagId string
- localGateway stringV4Ip 
- name string
- projectId string
- remoteGateway 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
- directConnect StringId 
- remoteEp Property MapGroup 
- routeMode String
- serviceType String
- type String
- virtualGateway StringId 
- vlan Number
- asn Number
- bgpMd5 String
- dcVirtual StringInterface V2Id 
- description String
- enableBfd Boolean
- enableNqa Boolean
- lagId String
- localGateway StringV4Ip 
- name String
- projectId String
- remoteGateway StringV4Ip 
Outputs
All input properties are implicitly available as output properties. Additionally, the DcVirtualInterfaceV2 resource produces the following output properties:
- CreatedAt string
- Id string
- The provider-assigned unique ID for this managed resource.
- RemoteEp stringGroup Id 
- Status string
- CreatedAt string
- Id string
- The provider-assigned unique ID for this managed resource.
- RemoteEp stringGroup Id 
- Status string
- createdAt String
- id String
- The provider-assigned unique ID for this managed resource.
- remoteEp StringGroup Id 
- status String
- createdAt string
- id string
- The provider-assigned unique ID for this managed resource.
- remoteEp stringGroup Id 
- status string
- created_at str
- id str
- The provider-assigned unique ID for this managed resource.
- remote_ep_ strgroup_ id 
- status str
- createdAt String
- id String
- The provider-assigned unique ID for this managed resource.
- remoteEp 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) -> DcVirtualInterfaceV2func 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
- BgpMd5 string
- CreatedAt string
- DcVirtual stringInterface V2Id 
- Description string
- DirectConnect stringId 
- EnableBfd bool
- EnableNqa bool
- LagId string
- LocalGateway stringV4Ip 
- Name string
- ProjectId string
- RemoteEp DcGroup Virtual Interface V2Remote Ep Group 
- RemoteEp stringGroup Id 
- RemoteGateway stringV4Ip 
- RouteMode string
- ServiceType string
- Status string
- Type string
- VirtualGateway stringId 
- Vlan double
- Asn float64
- Bandwidth float64
- BgpMd5 string
- CreatedAt string
- DcVirtual stringInterface V2Id 
- Description string
- DirectConnect stringId 
- EnableBfd bool
- EnableNqa bool
- LagId string
- LocalGateway stringV4Ip 
- Name string
- ProjectId string
- RemoteEp DcGroup Virtual Interface V2Remote Ep Group Args 
- RemoteEp stringGroup Id 
- RemoteGateway stringV4Ip 
- RouteMode string
- ServiceType string
- Status string
- Type string
- VirtualGateway stringId 
- Vlan float64
- asn Double
- bandwidth Double
- bgpMd5 String
- createdAt String
- dcVirtual StringInterface V2Id 
- description String
- directConnect StringId 
- enableBfd Boolean
- enableNqa Boolean
- lagId String
- localGateway StringV4Ip 
- name String
- projectId String
- remoteEp DcGroup Virtual Interface V2Remote Ep Group 
- remoteEp StringGroup Id 
- remoteGateway StringV4Ip 
- routeMode String
- serviceType String
- status String
- type String
- virtualGateway StringId 
- vlan Double
- asn number
- bandwidth number
- bgpMd5 string
- createdAt string
- dcVirtual stringInterface V2Id 
- description string
- directConnect stringId 
- enableBfd boolean
- enableNqa boolean
- lagId string
- localGateway stringV4Ip 
- name string
- projectId string
- remoteEp DcGroup Virtual Interface V2Remote Ep Group 
- remoteEp stringGroup Id 
- remoteGateway stringV4Ip 
- routeMode string
- serviceType string
- status string
- type string
- virtualGateway 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
- bgpMd5 String
- createdAt String
- dcVirtual StringInterface V2Id 
- description String
- directConnect StringId 
- enableBfd Boolean
- enableNqa Boolean
- lagId String
- localGateway StringV4Ip 
- name String
- projectId String
- remoteEp Property MapGroup 
- remoteEp StringGroup Id 
- remoteGateway StringV4Ip 
- routeMode String
- serviceType String
- status String
- type String
- virtualGateway StringId 
- vlan Number
Supporting Types
DcVirtualInterfaceV2RemoteEpGroup, DcVirtualInterfaceV2RemoteEpGroupArgs            
- Endpoints List<string>
- Description string
- Name string
- ProjectId string
- Type string
- Endpoints []string
- Description string
- Name string
- ProjectId string
- Type string
- endpoints List<String>
- description String
- name String
- projectId String
- type String
- endpoints string[]
- description string
- name string
- projectId string
- type string
- endpoints Sequence[str]
- description str
- name str
- project_id str
- type str
- endpoints List<String>
- description String
- name String
- projectId String
- type String
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the opentelekomcloudTerraform Provider.