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

opentelekomcloud.VpnaasEndpointGroupV2

Explore with Pulumi AI

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

    Up-to-date reference of API arguments for VPNAAS endpoint group you can get at documentation portal

    Manages a V2 Endpoint Group resource within OpenTelekomCloud.

    ~> Resource is deprecated for eu-de region, use enterprise vpn solution instead

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const group1 = new opentelekomcloud.VpnaasEndpointGroupV2("group1", {
        endpoints: [
            "10.2.0.0/24",
            "10.3.0.0/24",
        ],
        type: "cidr",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    group1 = opentelekomcloud.VpnaasEndpointGroupV2("group1",
        endpoints=[
            "10.2.0.0/24",
            "10.3.0.0/24",
        ],
        type="cidr")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.NewVpnaasEndpointGroupV2(ctx, "group1", &opentelekomcloud.VpnaasEndpointGroupV2Args{
    			Endpoints: pulumi.StringArray{
    				pulumi.String("10.2.0.0/24"),
    				pulumi.String("10.3.0.0/24"),
    			},
    			Type: pulumi.String("cidr"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var group1 = new Opentelekomcloud.VpnaasEndpointGroupV2("group1", new()
        {
            Endpoints = new[]
            {
                "10.2.0.0/24",
                "10.3.0.0/24",
            },
            Type = "cidr",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.VpnaasEndpointGroupV2;
    import com.pulumi.opentelekomcloud.VpnaasEndpointGroupV2Args;
    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 group1 = new VpnaasEndpointGroupV2("group1", VpnaasEndpointGroupV2Args.builder()
                .endpoints(            
                    "10.2.0.0/24",
                    "10.3.0.0/24")
                .type("cidr")
                .build());
    
        }
    }
    
    resources:
      group1:
        type: opentelekomcloud:VpnaasEndpointGroupV2
        properties:
          endpoints:
            - 10.2.0.0/24
            - 10.3.0.0/24
          type: cidr
    

    ~> Endpoint group can’t be deleted when used, create_before_destroy makes it possible to make changes which require endpoint group recreation.

    Create VpnaasEndpointGroupV2 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VpnaasEndpointGroupV2(name: string, args?: VpnaasEndpointGroupV2Args, opts?: CustomResourceOptions);
    @overload
    def VpnaasEndpointGroupV2(resource_name: str,
                              args: Optional[VpnaasEndpointGroupV2Args] = None,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpnaasEndpointGroupV2(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              description: Optional[str] = None,
                              endpoints: Optional[Sequence[str]] = None,
                              name: Optional[str] = None,
                              region: Optional[str] = None,
                              tenant_id: Optional[str] = None,
                              timeouts: Optional[VpnaasEndpointGroupV2TimeoutsArgs] = None,
                              type: Optional[str] = None,
                              value_specs: Optional[Mapping[str, str]] = None,
                              vpnaas_endpoint_group_v2_id: Optional[str] = None)
    func NewVpnaasEndpointGroupV2(ctx *Context, name string, args *VpnaasEndpointGroupV2Args, opts ...ResourceOption) (*VpnaasEndpointGroupV2, error)
    public VpnaasEndpointGroupV2(string name, VpnaasEndpointGroupV2Args? args = null, CustomResourceOptions? opts = null)
    public VpnaasEndpointGroupV2(String name, VpnaasEndpointGroupV2Args args)
    public VpnaasEndpointGroupV2(String name, VpnaasEndpointGroupV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:VpnaasEndpointGroupV2
    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 VpnaasEndpointGroupV2Args
    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 VpnaasEndpointGroupV2Args
    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 VpnaasEndpointGroupV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpnaasEndpointGroupV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpnaasEndpointGroupV2Args
    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 vpnaasEndpointGroupV2Resource = new Opentelekomcloud.VpnaasEndpointGroupV2("vpnaasEndpointGroupV2Resource", new()
    {
        Description = "string",
        Endpoints = new[]
        {
            "string",
        },
        Name = "string",
        Region = "string",
        TenantId = "string",
        Timeouts = new Opentelekomcloud.Inputs.VpnaasEndpointGroupV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        Type = "string",
        ValueSpecs = 
        {
            { "string", "string" },
        },
        VpnaasEndpointGroupV2Id = "string",
    });
    
    example, err := opentelekomcloud.NewVpnaasEndpointGroupV2(ctx, "vpnaasEndpointGroupV2Resource", &opentelekomcloud.VpnaasEndpointGroupV2Args{
    	Description: pulumi.String("string"),
    	Endpoints: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Name:     pulumi.String("string"),
    	Region:   pulumi.String("string"),
    	TenantId: pulumi.String("string"),
    	Timeouts: &opentelekomcloud.VpnaasEndpointGroupV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	Type: pulumi.String("string"),
    	ValueSpecs: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	VpnaasEndpointGroupV2Id: pulumi.String("string"),
    })
    
    var vpnaasEndpointGroupV2Resource = new VpnaasEndpointGroupV2("vpnaasEndpointGroupV2Resource", VpnaasEndpointGroupV2Args.builder()
        .description("string")
        .endpoints("string")
        .name("string")
        .region("string")
        .tenantId("string")
        .timeouts(VpnaasEndpointGroupV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .type("string")
        .valueSpecs(Map.of("string", "string"))
        .vpnaasEndpointGroupV2Id("string")
        .build());
    
    vpnaas_endpoint_group_v2_resource = opentelekomcloud.VpnaasEndpointGroupV2("vpnaasEndpointGroupV2Resource",
        description="string",
        endpoints=["string"],
        name="string",
        region="string",
        tenant_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        type="string",
        value_specs={
            "string": "string",
        },
        vpnaas_endpoint_group_v2_id="string")
    
    const vpnaasEndpointGroupV2Resource = new opentelekomcloud.VpnaasEndpointGroupV2("vpnaasEndpointGroupV2Resource", {
        description: "string",
        endpoints: ["string"],
        name: "string",
        region: "string",
        tenantId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        type: "string",
        valueSpecs: {
            string: "string",
        },
        vpnaasEndpointGroupV2Id: "string",
    });
    
    type: opentelekomcloud:VpnaasEndpointGroupV2
    properties:
        description: string
        endpoints:
            - string
        name: string
        region: string
        tenantId: string
        timeouts:
            create: string
            delete: string
            update: string
        type: string
        valueSpecs:
            string: string
        vpnaasEndpointGroupV2Id: string
    

    VpnaasEndpointGroupV2 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 VpnaasEndpointGroupV2 resource accepts the following input properties:

    Description string
    The human-readable description for the group. Changing this updates the description of the existing group.
    Endpoints List<string>
    List of endpoints of the same type, for the endpoint group. The values will depend on the type. Changing this creates a new group.
    Name string
    The name of the group. Changing this updates the name of the existing group.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an endpoint group. If omitted, the region argument of the provider is used. Changing this creates a new group.
    TenantId string
    The owner of the group. Required if admin wants to create an endpoint group for another project. Changing this creates a new group.
    Timeouts VpnaasEndpointGroupV2Timeouts
    Type string
    The type of the endpoints in the group. A valid value is subnet, cidr, network, router, or vlan. Changing this creates a new group.
    ValueSpecs Dictionary<string, string>
    Map of additional options.
    VpnaasEndpointGroupV2Id string
    Description string
    The human-readable description for the group. Changing this updates the description of the existing group.
    Endpoints []string
    List of endpoints of the same type, for the endpoint group. The values will depend on the type. Changing this creates a new group.
    Name string
    The name of the group. Changing this updates the name of the existing group.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an endpoint group. If omitted, the region argument of the provider is used. Changing this creates a new group.
    TenantId string
    The owner of the group. Required if admin wants to create an endpoint group for another project. Changing this creates a new group.
    Timeouts VpnaasEndpointGroupV2TimeoutsArgs
    Type string
    The type of the endpoints in the group. A valid value is subnet, cidr, network, router, or vlan. Changing this creates a new group.
    ValueSpecs map[string]string
    Map of additional options.
    VpnaasEndpointGroupV2Id string
    description String
    The human-readable description for the group. Changing this updates the description of the existing group.
    endpoints List<String>
    List of endpoints of the same type, for the endpoint group. The values will depend on the type. Changing this creates a new group.
    name String
    The name of the group. Changing this updates the name of the existing group.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an endpoint group. If omitted, the region argument of the provider is used. Changing this creates a new group.
    tenantId String
    The owner of the group. Required if admin wants to create an endpoint group for another project. Changing this creates a new group.
    timeouts VpnaasEndpointGroupV2Timeouts
    type String
    The type of the endpoints in the group. A valid value is subnet, cidr, network, router, or vlan. Changing this creates a new group.
    valueSpecs Map<String,String>
    Map of additional options.
    vpnaasEndpointGroupV2Id String
    description string
    The human-readable description for the group. Changing this updates the description of the existing group.
    endpoints string[]
    List of endpoints of the same type, for the endpoint group. The values will depend on the type. Changing this creates a new group.
    name string
    The name of the group. Changing this updates the name of the existing group.
    region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an endpoint group. If omitted, the region argument of the provider is used. Changing this creates a new group.
    tenantId string
    The owner of the group. Required if admin wants to create an endpoint group for another project. Changing this creates a new group.
    timeouts VpnaasEndpointGroupV2Timeouts
    type string
    The type of the endpoints in the group. A valid value is subnet, cidr, network, router, or vlan. Changing this creates a new group.
    valueSpecs {[key: string]: string}
    Map of additional options.
    vpnaasEndpointGroupV2Id string
    description str
    The human-readable description for the group. Changing this updates the description of the existing group.
    endpoints Sequence[str]
    List of endpoints of the same type, for the endpoint group. The values will depend on the type. Changing this creates a new group.
    name str
    The name of the group. Changing this updates the name of the existing group.
    region str
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an endpoint group. If omitted, the region argument of the provider is used. Changing this creates a new group.
    tenant_id str
    The owner of the group. Required if admin wants to create an endpoint group for another project. Changing this creates a new group.
    timeouts VpnaasEndpointGroupV2TimeoutsArgs
    type str
    The type of the endpoints in the group. A valid value is subnet, cidr, network, router, or vlan. Changing this creates a new group.
    value_specs Mapping[str, str]
    Map of additional options.
    vpnaas_endpoint_group_v2_id str
    description String
    The human-readable description for the group. Changing this updates the description of the existing group.
    endpoints List<String>
    List of endpoints of the same type, for the endpoint group. The values will depend on the type. Changing this creates a new group.
    name String
    The name of the group. Changing this updates the name of the existing group.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an endpoint group. If omitted, the region argument of the provider is used. Changing this creates a new group.
    tenantId String
    The owner of the group. Required if admin wants to create an endpoint group for another project. Changing this creates a new group.
    timeouts Property Map
    type String
    The type of the endpoints in the group. A valid value is subnet, cidr, network, router, or vlan. Changing this creates a new group.
    valueSpecs Map<String>
    Map of additional options.
    vpnaasEndpointGroupV2Id String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VpnaasEndpointGroupV2 resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing VpnaasEndpointGroupV2 Resource

    Get an existing VpnaasEndpointGroupV2 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?: VpnaasEndpointGroupV2State, opts?: CustomResourceOptions): VpnaasEndpointGroupV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            endpoints: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            tenant_id: Optional[str] = None,
            timeouts: Optional[VpnaasEndpointGroupV2TimeoutsArgs] = None,
            type: Optional[str] = None,
            value_specs: Optional[Mapping[str, str]] = None,
            vpnaas_endpoint_group_v2_id: Optional[str] = None) -> VpnaasEndpointGroupV2
    func GetVpnaasEndpointGroupV2(ctx *Context, name string, id IDInput, state *VpnaasEndpointGroupV2State, opts ...ResourceOption) (*VpnaasEndpointGroupV2, error)
    public static VpnaasEndpointGroupV2 Get(string name, Input<string> id, VpnaasEndpointGroupV2State? state, CustomResourceOptions? opts = null)
    public static VpnaasEndpointGroupV2 get(String name, Output<String> id, VpnaasEndpointGroupV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:VpnaasEndpointGroupV2    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:
    Description string
    The human-readable description for the group. Changing this updates the description of the existing group.
    Endpoints List<string>
    List of endpoints of the same type, for the endpoint group. The values will depend on the type. Changing this creates a new group.
    Name string
    The name of the group. Changing this updates the name of the existing group.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an endpoint group. If omitted, the region argument of the provider is used. Changing this creates a new group.
    TenantId string
    The owner of the group. Required if admin wants to create an endpoint group for another project. Changing this creates a new group.
    Timeouts VpnaasEndpointGroupV2Timeouts
    Type string
    The type of the endpoints in the group. A valid value is subnet, cidr, network, router, or vlan. Changing this creates a new group.
    ValueSpecs Dictionary<string, string>
    Map of additional options.
    VpnaasEndpointGroupV2Id string
    Description string
    The human-readable description for the group. Changing this updates the description of the existing group.
    Endpoints []string
    List of endpoints of the same type, for the endpoint group. The values will depend on the type. Changing this creates a new group.
    Name string
    The name of the group. Changing this updates the name of the existing group.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an endpoint group. If omitted, the region argument of the provider is used. Changing this creates a new group.
    TenantId string
    The owner of the group. Required if admin wants to create an endpoint group for another project. Changing this creates a new group.
    Timeouts VpnaasEndpointGroupV2TimeoutsArgs
    Type string
    The type of the endpoints in the group. A valid value is subnet, cidr, network, router, or vlan. Changing this creates a new group.
    ValueSpecs map[string]string
    Map of additional options.
    VpnaasEndpointGroupV2Id string
    description String
    The human-readable description for the group. Changing this updates the description of the existing group.
    endpoints List<String>
    List of endpoints of the same type, for the endpoint group. The values will depend on the type. Changing this creates a new group.
    name String
    The name of the group. Changing this updates the name of the existing group.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an endpoint group. If omitted, the region argument of the provider is used. Changing this creates a new group.
    tenantId String
    The owner of the group. Required if admin wants to create an endpoint group for another project. Changing this creates a new group.
    timeouts VpnaasEndpointGroupV2Timeouts
    type String
    The type of the endpoints in the group. A valid value is subnet, cidr, network, router, or vlan. Changing this creates a new group.
    valueSpecs Map<String,String>
    Map of additional options.
    vpnaasEndpointGroupV2Id String
    description string
    The human-readable description for the group. Changing this updates the description of the existing group.
    endpoints string[]
    List of endpoints of the same type, for the endpoint group. The values will depend on the type. Changing this creates a new group.
    name string
    The name of the group. Changing this updates the name of the existing group.
    region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an endpoint group. If omitted, the region argument of the provider is used. Changing this creates a new group.
    tenantId string
    The owner of the group. Required if admin wants to create an endpoint group for another project. Changing this creates a new group.
    timeouts VpnaasEndpointGroupV2Timeouts
    type string
    The type of the endpoints in the group. A valid value is subnet, cidr, network, router, or vlan. Changing this creates a new group.
    valueSpecs {[key: string]: string}
    Map of additional options.
    vpnaasEndpointGroupV2Id string
    description str
    The human-readable description for the group. Changing this updates the description of the existing group.
    endpoints Sequence[str]
    List of endpoints of the same type, for the endpoint group. The values will depend on the type. Changing this creates a new group.
    name str
    The name of the group. Changing this updates the name of the existing group.
    region str
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an endpoint group. If omitted, the region argument of the provider is used. Changing this creates a new group.
    tenant_id str
    The owner of the group. Required if admin wants to create an endpoint group for another project. Changing this creates a new group.
    timeouts VpnaasEndpointGroupV2TimeoutsArgs
    type str
    The type of the endpoints in the group. A valid value is subnet, cidr, network, router, or vlan. Changing this creates a new group.
    value_specs Mapping[str, str]
    Map of additional options.
    vpnaas_endpoint_group_v2_id str
    description String
    The human-readable description for the group. Changing this updates the description of the existing group.
    endpoints List<String>
    List of endpoints of the same type, for the endpoint group. The values will depend on the type. Changing this creates a new group.
    name String
    The name of the group. Changing this updates the name of the existing group.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an endpoint group. If omitted, the region argument of the provider is used. Changing this creates a new group.
    tenantId String
    The owner of the group. Required if admin wants to create an endpoint group for another project. Changing this creates a new group.
    timeouts Property Map
    type String
    The type of the endpoints in the group. A valid value is subnet, cidr, network, router, or vlan. Changing this creates a new group.
    valueSpecs Map<String>
    Map of additional options.
    vpnaasEndpointGroupV2Id String

    Supporting Types

    VpnaasEndpointGroupV2Timeouts, VpnaasEndpointGroupV2TimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    Groups can be imported using the id, e.g.

    $ pulumi import opentelekomcloud:index/vpnaasEndpointGroupV2:VpnaasEndpointGroupV2 group_1 832cb7f3-59fe-40cf-8f64-8350ffc03272
    

    To learn more about importing existing cloud resources, see Importing resources.

    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