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

opentelekomcloud.VpnaasIpsecPolicyV2

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 ipsec policy you can get at documentation portal

    Manages a V2 IPSec policy 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 policy1 = new opentelekomcloud.VpnaasIpsecPolicyV2("policy1", {});
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    policy1 = opentelekomcloud.VpnaasIpsecPolicyV2("policy1")
    
    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.NewVpnaasIpsecPolicyV2(ctx, "policy1", nil)
    		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 policy1 = new Opentelekomcloud.VpnaasIpsecPolicyV2("policy1");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.VpnaasIpsecPolicyV2;
    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 policy1 = new VpnaasIpsecPolicyV2("policy1");
    
        }
    }
    
    resources:
      policy1:
        type: opentelekomcloud:VpnaasIpsecPolicyV2
    

    Create VpnaasIpsecPolicyV2 Resource

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

    Constructor syntax

    new VpnaasIpsecPolicyV2(name: string, args?: VpnaasIpsecPolicyV2Args, opts?: CustomResourceOptions);
    @overload
    def VpnaasIpsecPolicyV2(resource_name: str,
                            args: Optional[VpnaasIpsecPolicyV2Args] = None,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpnaasIpsecPolicyV2(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            auth_algorithm: Optional[str] = None,
                            description: Optional[str] = None,
                            encapsulation_mode: Optional[str] = None,
                            encryption_algorithm: Optional[str] = None,
                            lifetimes: Optional[Sequence[VpnaasIpsecPolicyV2LifetimeArgs]] = None,
                            name: Optional[str] = None,
                            pfs: Optional[str] = None,
                            region: Optional[str] = None,
                            tenant_id: Optional[str] = None,
                            timeouts: Optional[VpnaasIpsecPolicyV2TimeoutsArgs] = None,
                            transform_protocol: Optional[str] = None,
                            value_specs: Optional[Mapping[str, str]] = None,
                            vpnaas_ipsec_policy_v2_id: Optional[str] = None)
    func NewVpnaasIpsecPolicyV2(ctx *Context, name string, args *VpnaasIpsecPolicyV2Args, opts ...ResourceOption) (*VpnaasIpsecPolicyV2, error)
    public VpnaasIpsecPolicyV2(string name, VpnaasIpsecPolicyV2Args? args = null, CustomResourceOptions? opts = null)
    public VpnaasIpsecPolicyV2(String name, VpnaasIpsecPolicyV2Args args)
    public VpnaasIpsecPolicyV2(String name, VpnaasIpsecPolicyV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:VpnaasIpsecPolicyV2
    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 VpnaasIpsecPolicyV2Args
    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 VpnaasIpsecPolicyV2Args
    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 VpnaasIpsecPolicyV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpnaasIpsecPolicyV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpnaasIpsecPolicyV2Args
    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 vpnaasIpsecPolicyV2Resource = new Opentelekomcloud.VpnaasIpsecPolicyV2("vpnaasIpsecPolicyV2Resource", new()
    {
        AuthAlgorithm = "string",
        Description = "string",
        EncapsulationMode = "string",
        EncryptionAlgorithm = "string",
        Lifetimes = new[]
        {
            new Opentelekomcloud.Inputs.VpnaasIpsecPolicyV2LifetimeArgs
            {
                Units = "string",
                Value = 0,
            },
        },
        Name = "string",
        Pfs = "string",
        Region = "string",
        TenantId = "string",
        Timeouts = new Opentelekomcloud.Inputs.VpnaasIpsecPolicyV2TimeoutsArgs
        {
            Create = "string",
        },
        TransformProtocol = "string",
        ValueSpecs = 
        {
            { "string", "string" },
        },
        VpnaasIpsecPolicyV2Id = "string",
    });
    
    example, err := opentelekomcloud.NewVpnaasIpsecPolicyV2(ctx, "vpnaasIpsecPolicyV2Resource", &opentelekomcloud.VpnaasIpsecPolicyV2Args{
    	AuthAlgorithm:       pulumi.String("string"),
    	Description:         pulumi.String("string"),
    	EncapsulationMode:   pulumi.String("string"),
    	EncryptionAlgorithm: pulumi.String("string"),
    	Lifetimes: opentelekomcloud.VpnaasIpsecPolicyV2LifetimeArray{
    		&opentelekomcloud.VpnaasIpsecPolicyV2LifetimeArgs{
    			Units: pulumi.String("string"),
    			Value: pulumi.Float64(0),
    		},
    	},
    	Name:     pulumi.String("string"),
    	Pfs:      pulumi.String("string"),
    	Region:   pulumi.String("string"),
    	TenantId: pulumi.String("string"),
    	Timeouts: &opentelekomcloud.VpnaasIpsecPolicyV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    	},
    	TransformProtocol: pulumi.String("string"),
    	ValueSpecs: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	VpnaasIpsecPolicyV2Id: pulumi.String("string"),
    })
    
    var vpnaasIpsecPolicyV2Resource = new VpnaasIpsecPolicyV2("vpnaasIpsecPolicyV2Resource", VpnaasIpsecPolicyV2Args.builder()
        .authAlgorithm("string")
        .description("string")
        .encapsulationMode("string")
        .encryptionAlgorithm("string")
        .lifetimes(VpnaasIpsecPolicyV2LifetimeArgs.builder()
            .units("string")
            .value(0)
            .build())
        .name("string")
        .pfs("string")
        .region("string")
        .tenantId("string")
        .timeouts(VpnaasIpsecPolicyV2TimeoutsArgs.builder()
            .create("string")
            .build())
        .transformProtocol("string")
        .valueSpecs(Map.of("string", "string"))
        .vpnaasIpsecPolicyV2Id("string")
        .build());
    
    vpnaas_ipsec_policy_v2_resource = opentelekomcloud.VpnaasIpsecPolicyV2("vpnaasIpsecPolicyV2Resource",
        auth_algorithm="string",
        description="string",
        encapsulation_mode="string",
        encryption_algorithm="string",
        lifetimes=[{
            "units": "string",
            "value": 0,
        }],
        name="string",
        pfs="string",
        region="string",
        tenant_id="string",
        timeouts={
            "create": "string",
        },
        transform_protocol="string",
        value_specs={
            "string": "string",
        },
        vpnaas_ipsec_policy_v2_id="string")
    
    const vpnaasIpsecPolicyV2Resource = new opentelekomcloud.VpnaasIpsecPolicyV2("vpnaasIpsecPolicyV2Resource", {
        authAlgorithm: "string",
        description: "string",
        encapsulationMode: "string",
        encryptionAlgorithm: "string",
        lifetimes: [{
            units: "string",
            value: 0,
        }],
        name: "string",
        pfs: "string",
        region: "string",
        tenantId: "string",
        timeouts: {
            create: "string",
        },
        transformProtocol: "string",
        valueSpecs: {
            string: "string",
        },
        vpnaasIpsecPolicyV2Id: "string",
    });
    
    type: opentelekomcloud:VpnaasIpsecPolicyV2
    properties:
        authAlgorithm: string
        description: string
        encapsulationMode: string
        encryptionAlgorithm: string
        lifetimes:
            - units: string
              value: 0
        name: string
        pfs: string
        region: string
        tenantId: string
        timeouts:
            create: string
        transformProtocol: string
        valueSpecs:
            string: string
        vpnaasIpsecPolicyV2Id: string
    

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

    AuthAlgorithm string
    The authentication hash algorithm. Valid values are md5, sha1, sha2-256, sha2-384, sha2-512. Default is sha1.
    Description string
    The human-readable description for the policy.
    EncapsulationMode string
    The encapsulation mode. Default is tunnel.
    EncryptionAlgorithm string
    The encryption algorithm. Valid values are 3des, aes-128, aes-192 and so on. The default value is aes-128.
    Lifetimes List<VpnaasIpsecPolicyV2Lifetime>
    The lifetime of the security association. Consists of Unit and Value.
    Name string
    The name of the policy.
    Pfs string
    The perfect forward secrecy mode. Valid values are group1, group2, group5, group14, group15, group16, group19, group20, group21 or disable Default is group5.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec policy. If omitted, the region argument of the provider is used. Changing this creates a new policy.
    TenantId string
    The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
    Timeouts VpnaasIpsecPolicyV2Timeouts
    TransformProtocol string
    The transform protocol. Valid values are esp, ah and ah-esp. Default is esp.
    ValueSpecs Dictionary<string, string>
    Map of additional options.
    VpnaasIpsecPolicyV2Id string
    AuthAlgorithm string
    The authentication hash algorithm. Valid values are md5, sha1, sha2-256, sha2-384, sha2-512. Default is sha1.
    Description string
    The human-readable description for the policy.
    EncapsulationMode string
    The encapsulation mode. Default is tunnel.
    EncryptionAlgorithm string
    The encryption algorithm. Valid values are 3des, aes-128, aes-192 and so on. The default value is aes-128.
    Lifetimes []VpnaasIpsecPolicyV2LifetimeArgs
    The lifetime of the security association. Consists of Unit and Value.
    Name string
    The name of the policy.
    Pfs string
    The perfect forward secrecy mode. Valid values are group1, group2, group5, group14, group15, group16, group19, group20, group21 or disable Default is group5.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec policy. If omitted, the region argument of the provider is used. Changing this creates a new policy.
    TenantId string
    The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
    Timeouts VpnaasIpsecPolicyV2TimeoutsArgs
    TransformProtocol string
    The transform protocol. Valid values are esp, ah and ah-esp. Default is esp.
    ValueSpecs map[string]string
    Map of additional options.
    VpnaasIpsecPolicyV2Id string
    authAlgorithm String
    The authentication hash algorithm. Valid values are md5, sha1, sha2-256, sha2-384, sha2-512. Default is sha1.
    description String
    The human-readable description for the policy.
    encapsulationMode String
    The encapsulation mode. Default is tunnel.
    encryptionAlgorithm String
    The encryption algorithm. Valid values are 3des, aes-128, aes-192 and so on. The default value is aes-128.
    lifetimes List<VpnaasIpsecPolicyV2Lifetime>
    The lifetime of the security association. Consists of Unit and Value.
    name String
    The name of the policy.
    pfs String
    The perfect forward secrecy mode. Valid values are group1, group2, group5, group14, group15, group16, group19, group20, group21 or disable Default is group5.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec policy. If omitted, the region argument of the provider is used. Changing this creates a new policy.
    tenantId String
    The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
    timeouts VpnaasIpsecPolicyV2Timeouts
    transformProtocol String
    The transform protocol. Valid values are esp, ah and ah-esp. Default is esp.
    valueSpecs Map<String,String>
    Map of additional options.
    vpnaasIpsecPolicyV2Id String
    authAlgorithm string
    The authentication hash algorithm. Valid values are md5, sha1, sha2-256, sha2-384, sha2-512. Default is sha1.
    description string
    The human-readable description for the policy.
    encapsulationMode string
    The encapsulation mode. Default is tunnel.
    encryptionAlgorithm string
    The encryption algorithm. Valid values are 3des, aes-128, aes-192 and so on. The default value is aes-128.
    lifetimes VpnaasIpsecPolicyV2Lifetime[]
    The lifetime of the security association. Consists of Unit and Value.
    name string
    The name of the policy.
    pfs string
    The perfect forward secrecy mode. Valid values are group1, group2, group5, group14, group15, group16, group19, group20, group21 or disable Default is group5.
    region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec policy. If omitted, the region argument of the provider is used. Changing this creates a new policy.
    tenantId string
    The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
    timeouts VpnaasIpsecPolicyV2Timeouts
    transformProtocol string
    The transform protocol. Valid values are esp, ah and ah-esp. Default is esp.
    valueSpecs {[key: string]: string}
    Map of additional options.
    vpnaasIpsecPolicyV2Id string
    auth_algorithm str
    The authentication hash algorithm. Valid values are md5, sha1, sha2-256, sha2-384, sha2-512. Default is sha1.
    description str
    The human-readable description for the policy.
    encapsulation_mode str
    The encapsulation mode. Default is tunnel.
    encryption_algorithm str
    The encryption algorithm. Valid values are 3des, aes-128, aes-192 and so on. The default value is aes-128.
    lifetimes Sequence[VpnaasIpsecPolicyV2LifetimeArgs]
    The lifetime of the security association. Consists of Unit and Value.
    name str
    The name of the policy.
    pfs str
    The perfect forward secrecy mode. Valid values are group1, group2, group5, group14, group15, group16, group19, group20, group21 or disable Default is group5.
    region str
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec policy. If omitted, the region argument of the provider is used. Changing this creates a new policy.
    tenant_id str
    The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
    timeouts VpnaasIpsecPolicyV2TimeoutsArgs
    transform_protocol str
    The transform protocol. Valid values are esp, ah and ah-esp. Default is esp.
    value_specs Mapping[str, str]
    Map of additional options.
    vpnaas_ipsec_policy_v2_id str
    authAlgorithm String
    The authentication hash algorithm. Valid values are md5, sha1, sha2-256, sha2-384, sha2-512. Default is sha1.
    description String
    The human-readable description for the policy.
    encapsulationMode String
    The encapsulation mode. Default is tunnel.
    encryptionAlgorithm String
    The encryption algorithm. Valid values are 3des, aes-128, aes-192 and so on. The default value is aes-128.
    lifetimes List<Property Map>
    The lifetime of the security association. Consists of Unit and Value.
    name String
    The name of the policy.
    pfs String
    The perfect forward secrecy mode. Valid values are group1, group2, group5, group14, group15, group16, group19, group20, group21 or disable Default is group5.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec policy. If omitted, the region argument of the provider is used. Changing this creates a new policy.
    tenantId String
    The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
    timeouts Property Map
    transformProtocol String
    The transform protocol. Valid values are esp, ah and ah-esp. Default is esp.
    valueSpecs Map<String>
    Map of additional options.
    vpnaasIpsecPolicyV2Id String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VpnaasIpsecPolicyV2 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 VpnaasIpsecPolicyV2 Resource

    Get an existing VpnaasIpsecPolicyV2 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?: VpnaasIpsecPolicyV2State, opts?: CustomResourceOptions): VpnaasIpsecPolicyV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auth_algorithm: Optional[str] = None,
            description: Optional[str] = None,
            encapsulation_mode: Optional[str] = None,
            encryption_algorithm: Optional[str] = None,
            lifetimes: Optional[Sequence[VpnaasIpsecPolicyV2LifetimeArgs]] = None,
            name: Optional[str] = None,
            pfs: Optional[str] = None,
            region: Optional[str] = None,
            tenant_id: Optional[str] = None,
            timeouts: Optional[VpnaasIpsecPolicyV2TimeoutsArgs] = None,
            transform_protocol: Optional[str] = None,
            value_specs: Optional[Mapping[str, str]] = None,
            vpnaas_ipsec_policy_v2_id: Optional[str] = None) -> VpnaasIpsecPolicyV2
    func GetVpnaasIpsecPolicyV2(ctx *Context, name string, id IDInput, state *VpnaasIpsecPolicyV2State, opts ...ResourceOption) (*VpnaasIpsecPolicyV2, error)
    public static VpnaasIpsecPolicyV2 Get(string name, Input<string> id, VpnaasIpsecPolicyV2State? state, CustomResourceOptions? opts = null)
    public static VpnaasIpsecPolicyV2 get(String name, Output<String> id, VpnaasIpsecPolicyV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:VpnaasIpsecPolicyV2    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:
    AuthAlgorithm string
    The authentication hash algorithm. Valid values are md5, sha1, sha2-256, sha2-384, sha2-512. Default is sha1.
    Description string
    The human-readable description for the policy.
    EncapsulationMode string
    The encapsulation mode. Default is tunnel.
    EncryptionAlgorithm string
    The encryption algorithm. Valid values are 3des, aes-128, aes-192 and so on. The default value is aes-128.
    Lifetimes List<VpnaasIpsecPolicyV2Lifetime>
    The lifetime of the security association. Consists of Unit and Value.
    Name string
    The name of the policy.
    Pfs string
    The perfect forward secrecy mode. Valid values are group1, group2, group5, group14, group15, group16, group19, group20, group21 or disable Default is group5.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec policy. If omitted, the region argument of the provider is used. Changing this creates a new policy.
    TenantId string
    The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
    Timeouts VpnaasIpsecPolicyV2Timeouts
    TransformProtocol string
    The transform protocol. Valid values are esp, ah and ah-esp. Default is esp.
    ValueSpecs Dictionary<string, string>
    Map of additional options.
    VpnaasIpsecPolicyV2Id string
    AuthAlgorithm string
    The authentication hash algorithm. Valid values are md5, sha1, sha2-256, sha2-384, sha2-512. Default is sha1.
    Description string
    The human-readable description for the policy.
    EncapsulationMode string
    The encapsulation mode. Default is tunnel.
    EncryptionAlgorithm string
    The encryption algorithm. Valid values are 3des, aes-128, aes-192 and so on. The default value is aes-128.
    Lifetimes []VpnaasIpsecPolicyV2LifetimeArgs
    The lifetime of the security association. Consists of Unit and Value.
    Name string
    The name of the policy.
    Pfs string
    The perfect forward secrecy mode. Valid values are group1, group2, group5, group14, group15, group16, group19, group20, group21 or disable Default is group5.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec policy. If omitted, the region argument of the provider is used. Changing this creates a new policy.
    TenantId string
    The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
    Timeouts VpnaasIpsecPolicyV2TimeoutsArgs
    TransformProtocol string
    The transform protocol. Valid values are esp, ah and ah-esp. Default is esp.
    ValueSpecs map[string]string
    Map of additional options.
    VpnaasIpsecPolicyV2Id string
    authAlgorithm String
    The authentication hash algorithm. Valid values are md5, sha1, sha2-256, sha2-384, sha2-512. Default is sha1.
    description String
    The human-readable description for the policy.
    encapsulationMode String
    The encapsulation mode. Default is tunnel.
    encryptionAlgorithm String
    The encryption algorithm. Valid values are 3des, aes-128, aes-192 and so on. The default value is aes-128.
    lifetimes List<VpnaasIpsecPolicyV2Lifetime>
    The lifetime of the security association. Consists of Unit and Value.
    name String
    The name of the policy.
    pfs String
    The perfect forward secrecy mode. Valid values are group1, group2, group5, group14, group15, group16, group19, group20, group21 or disable Default is group5.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec policy. If omitted, the region argument of the provider is used. Changing this creates a new policy.
    tenantId String
    The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
    timeouts VpnaasIpsecPolicyV2Timeouts
    transformProtocol String
    The transform protocol. Valid values are esp, ah and ah-esp. Default is esp.
    valueSpecs Map<String,String>
    Map of additional options.
    vpnaasIpsecPolicyV2Id String
    authAlgorithm string
    The authentication hash algorithm. Valid values are md5, sha1, sha2-256, sha2-384, sha2-512. Default is sha1.
    description string
    The human-readable description for the policy.
    encapsulationMode string
    The encapsulation mode. Default is tunnel.
    encryptionAlgorithm string
    The encryption algorithm. Valid values are 3des, aes-128, aes-192 and so on. The default value is aes-128.
    lifetimes VpnaasIpsecPolicyV2Lifetime[]
    The lifetime of the security association. Consists of Unit and Value.
    name string
    The name of the policy.
    pfs string
    The perfect forward secrecy mode. Valid values are group1, group2, group5, group14, group15, group16, group19, group20, group21 or disable Default is group5.
    region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec policy. If omitted, the region argument of the provider is used. Changing this creates a new policy.
    tenantId string
    The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
    timeouts VpnaasIpsecPolicyV2Timeouts
    transformProtocol string
    The transform protocol. Valid values are esp, ah and ah-esp. Default is esp.
    valueSpecs {[key: string]: string}
    Map of additional options.
    vpnaasIpsecPolicyV2Id string
    auth_algorithm str
    The authentication hash algorithm. Valid values are md5, sha1, sha2-256, sha2-384, sha2-512. Default is sha1.
    description str
    The human-readable description for the policy.
    encapsulation_mode str
    The encapsulation mode. Default is tunnel.
    encryption_algorithm str
    The encryption algorithm. Valid values are 3des, aes-128, aes-192 and so on. The default value is aes-128.
    lifetimes Sequence[VpnaasIpsecPolicyV2LifetimeArgs]
    The lifetime of the security association. Consists of Unit and Value.
    name str
    The name of the policy.
    pfs str
    The perfect forward secrecy mode. Valid values are group1, group2, group5, group14, group15, group16, group19, group20, group21 or disable Default is group5.
    region str
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec policy. If omitted, the region argument of the provider is used. Changing this creates a new policy.
    tenant_id str
    The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
    timeouts VpnaasIpsecPolicyV2TimeoutsArgs
    transform_protocol str
    The transform protocol. Valid values are esp, ah and ah-esp. Default is esp.
    value_specs Mapping[str, str]
    Map of additional options.
    vpnaas_ipsec_policy_v2_id str
    authAlgorithm String
    The authentication hash algorithm. Valid values are md5, sha1, sha2-256, sha2-384, sha2-512. Default is sha1.
    description String
    The human-readable description for the policy.
    encapsulationMode String
    The encapsulation mode. Default is tunnel.
    encryptionAlgorithm String
    The encryption algorithm. Valid values are 3des, aes-128, aes-192 and so on. The default value is aes-128.
    lifetimes List<Property Map>
    The lifetime of the security association. Consists of Unit and Value.
    name String
    The name of the policy.
    pfs String
    The perfect forward secrecy mode. Valid values are group1, group2, group5, group14, group15, group16, group19, group20, group21 or disable Default is group5.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec policy. If omitted, the region argument of the provider is used. Changing this creates a new policy.
    tenantId String
    The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
    timeouts Property Map
    transformProtocol String
    The transform protocol. Valid values are esp, ah and ah-esp. Default is esp.
    valueSpecs Map<String>
    Map of additional options.
    vpnaasIpsecPolicyV2Id String

    Supporting Types

    VpnaasIpsecPolicyV2Lifetime, VpnaasIpsecPolicyV2LifetimeArgs

    Units string
    Value double
    The value for the lifetime of the security association. Must be a positive integer. Default is 3600.
    Units string
    Value float64
    The value for the lifetime of the security association. Must be a positive integer. Default is 3600.
    units String
    value Double
    The value for the lifetime of the security association. Must be a positive integer. Default is 3600.
    units string
    value number
    The value for the lifetime of the security association. Must be a positive integer. Default is 3600.
    units str
    value float
    The value for the lifetime of the security association. Must be a positive integer. Default is 3600.
    units String
    value Number
    The value for the lifetime of the security association. Must be a positive integer. Default is 3600.

    VpnaasIpsecPolicyV2Timeouts, VpnaasIpsecPolicyV2TimeoutsArgs

    Create string
    Create string
    create String
    create string
    create str
    create String

    Import

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

    $ pulumi import opentelekomcloud:index/vpnaasIpsecPolicyV2:VpnaasIpsecPolicyV2 policy_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