1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. DcVirtualInterfaceV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.DcVirtualInterfaceV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    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:

    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.
    RemoteEpGroupId string
    Status string
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    RemoteEpGroupId string
    Status string
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    remoteEpGroupId String
    status String
    createdAt string
    id string
    The provider-assigned unique ID for this managed resource.
    remoteEpGroupId string
    status string
    created_at str
    id str
    The provider-assigned unique ID for this managed resource.
    remote_ep_group_id str
    status str
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    remoteEpGroupId String
    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.
    The following state arguments are supported:

    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 opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud