IpSecPolicy

Manages a V2 Neutron IPSec policy resource within OpenStack.

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var policy1 = new OpenStack.VPNaaS.IpSecPolicy("policy1", new OpenStack.VPNaaS.IpSecPolicyArgs
        {
        });
    }

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

policy1 = openstack.vpnaas.IpSecPolicy("policy1")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const policy1 = new openstack.vpnaas.IpSecPolicy("policy_1", {});

Create a IpSecPolicy Resource

def IpSecPolicy(resource_name, opts=None, auth_algorithm=None, description=None, encapsulation_mode=None, encryption_algorithm=None, lifetimes=None, name=None, pfs=None, region=None, tenant_id=None, transform_protocol=None, value_specs=None, __props__=None);
func NewIpSecPolicy(ctx *Context, name string, args *IpSecPolicyArgs, opts ...ResourceOption) (*IpSecPolicy, error)
public IpSecPolicy(string name, IpSecPolicyArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args IpSecPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args IpSecPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args IpSecPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

IpSecPolicy Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The IpSecPolicy resource accepts the following input properties:

AuthAlgorithm string

The authentication hash algorithm. Valid values are sha1, sha256, sha384, sha512. Default is sha1. Changing this updates the algorithm of the existing policy.

Description string

The human-readable description for the policy. Changing this updates the description of the existing policy.

EncapsulationMode string

The encapsulation mode. Valid values are tunnel and transport. Default is tunnel. Changing this updates the existing policy.

EncryptionAlgorithm string

The encryption algorithm. Valid values are 3des, aes-128, aes-192 and so on. The default value is aes-128. Changing this updates the existing policy.

Lifetimes List<Pulumi.OpenStack.VPNaaS.Inputs.IpSecPolicyLifetimeArgs>

The lifetime of the security association. Consists of Unit and Value. - unit - (Optional) The units for the lifetime of the security association. Can be either seconds or kilobytes. Default is seconds. - value - (Optional) The value for the lifetime of the security association. Must be a positive integer. Default is 3600.

Name string

The name of the policy. Changing this updates the name of the existing policy.

Pfs string

The perfect forward secrecy mode. Valid values are Group2, Group5 and Group14. Default is Group5. Changing this updates the existing policy.

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.

TransformProtocol string

The transform protocol. Valid values are ESP, AH and AH-ESP. Changing this updates the existing policy. Default is ESP.

ValueSpecs Dictionary<string, object>

Map of additional options.

AuthAlgorithm string

The authentication hash algorithm. Valid values are sha1, sha256, sha384, sha512. Default is sha1. Changing this updates the algorithm of the existing policy.

Description string

The human-readable description for the policy. Changing this updates the description of the existing policy.

EncapsulationMode string

The encapsulation mode. Valid values are tunnel and transport. Default is tunnel. Changing this updates the existing policy.

EncryptionAlgorithm string

The encryption algorithm. Valid values are 3des, aes-128, aes-192 and so on. The default value is aes-128. Changing this updates the existing policy.

Lifetimes []IpSecPolicyLifetime

The lifetime of the security association. Consists of Unit and Value. - unit - (Optional) The units for the lifetime of the security association. Can be either seconds or kilobytes. Default is seconds. - value - (Optional) The value for the lifetime of the security association. Must be a positive integer. Default is 3600.

Name string

The name of the policy. Changing this updates the name of the existing policy.

Pfs string

The perfect forward secrecy mode. Valid values are Group2, Group5 and Group14. Default is Group5. Changing this updates the existing policy.

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.

TransformProtocol string

The transform protocol. Valid values are ESP, AH and AH-ESP. Changing this updates the existing policy. Default is ESP.

ValueSpecs map[string]interface{}

Map of additional options.

authAlgorithm string

The authentication hash algorithm. Valid values are sha1, sha256, sha384, sha512. Default is sha1. Changing this updates the algorithm of the existing policy.

description string

The human-readable description for the policy. Changing this updates the description of the existing policy.

encapsulationMode string

The encapsulation mode. Valid values are tunnel and transport. Default is tunnel. Changing this updates the existing policy.

encryptionAlgorithm string

The encryption algorithm. Valid values are 3des, aes-128, aes-192 and so on. The default value is aes-128. Changing this updates the existing policy.

lifetimes IpSecPolicyLifetime[]

The lifetime of the security association. Consists of Unit and Value. - unit - (Optional) The units for the lifetime of the security association. Can be either seconds or kilobytes. Default is seconds. - value - (Optional) The value for the lifetime of the security association. Must be a positive integer. Default is 3600.

name string

The name of the policy. Changing this updates the name of the existing policy.

pfs string

The perfect forward secrecy mode. Valid values are Group2, Group5 and Group14. Default is Group5. Changing this updates the existing policy.

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.

transformProtocol string

The transform protocol. Valid values are ESP, AH and AH-ESP. Changing this updates the existing policy. Default is ESP.

valueSpecs {[key: string]: any}

Map of additional options.

auth_algorithm str

The authentication hash algorithm. Valid values are sha1, sha256, sha384, sha512. Default is sha1. Changing this updates the algorithm of the existing policy.

description str

The human-readable description for the policy. Changing this updates the description of the existing policy.

encapsulation_mode str

The encapsulation mode. Valid values are tunnel and transport. Default is tunnel. Changing this updates the existing policy.

encryption_algorithm str

The encryption algorithm. Valid values are 3des, aes-128, aes-192 and so on. The default value is aes-128. Changing this updates the existing policy.

lifetimes List[IpSecPolicyLifetime]

The lifetime of the security association. Consists of Unit and Value. - unit - (Optional) The units for the lifetime of the security association. Can be either seconds or kilobytes. Default is seconds. - value - (Optional) The value for the lifetime of the security association. Must be a positive integer. Default is 3600.

name str

The name of the policy. Changing this updates the name of the existing policy.

pfs str

The perfect forward secrecy mode. Valid values are Group2, Group5 and Group14. Default is Group5. Changing this updates the existing policy.

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.

transform_protocol str

The transform protocol. Valid values are ESP, AH and AH-ESP. Changing this updates the existing policy. Default is ESP.

value_specs Dict[str, Any]

Map of additional options.

Outputs

All input properties are implicitly available as output properties. Additionally, the IpSecPolicy 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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing IpSecPolicy Resource

Get an existing IpSecPolicy 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?: IpSecPolicyState, opts?: CustomResourceOptions): IpSecPolicy
static get(resource_name, id, opts=None, auth_algorithm=None, description=None, encapsulation_mode=None, encryption_algorithm=None, lifetimes=None, name=None, pfs=None, region=None, tenant_id=None, transform_protocol=None, value_specs=None, __props__=None);
func GetIpSecPolicy(ctx *Context, name string, id IDInput, state *IpSecPolicyState, opts ...ResourceOption) (*IpSecPolicy, error)
public static IpSecPolicy Get(string name, Input<string> id, IpSecPolicyState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

AuthAlgorithm string

The authentication hash algorithm. Valid values are sha1, sha256, sha384, sha512. Default is sha1. Changing this updates the algorithm of the existing policy.

Description string

The human-readable description for the policy. Changing this updates the description of the existing policy.

EncapsulationMode string

The encapsulation mode. Valid values are tunnel and transport. Default is tunnel. Changing this updates the existing policy.

EncryptionAlgorithm string

The encryption algorithm. Valid values are 3des, aes-128, aes-192 and so on. The default value is aes-128. Changing this updates the existing policy.

Lifetimes List<Pulumi.OpenStack.VPNaaS.Inputs.IpSecPolicyLifetimeArgs>

The lifetime of the security association. Consists of Unit and Value. - unit - (Optional) The units for the lifetime of the security association. Can be either seconds or kilobytes. Default is seconds. - value - (Optional) The value for the lifetime of the security association. Must be a positive integer. Default is 3600.

Name string

The name of the policy. Changing this updates the name of the existing policy.

Pfs string

The perfect forward secrecy mode. Valid values are Group2, Group5 and Group14. Default is Group5. Changing this updates the existing policy.

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.

TransformProtocol string

The transform protocol. Valid values are ESP, AH and AH-ESP. Changing this updates the existing policy. Default is ESP.

ValueSpecs Dictionary<string, object>

Map of additional options.

AuthAlgorithm string

The authentication hash algorithm. Valid values are sha1, sha256, sha384, sha512. Default is sha1. Changing this updates the algorithm of the existing policy.

Description string

The human-readable description for the policy. Changing this updates the description of the existing policy.

EncapsulationMode string

The encapsulation mode. Valid values are tunnel and transport. Default is tunnel. Changing this updates the existing policy.

EncryptionAlgorithm string

The encryption algorithm. Valid values are 3des, aes-128, aes-192 and so on. The default value is aes-128. Changing this updates the existing policy.

Lifetimes []IpSecPolicyLifetime

The lifetime of the security association. Consists of Unit and Value. - unit - (Optional) The units for the lifetime of the security association. Can be either seconds or kilobytes. Default is seconds. - value - (Optional) The value for the lifetime of the security association. Must be a positive integer. Default is 3600.

Name string

The name of the policy. Changing this updates the name of the existing policy.

Pfs string

The perfect forward secrecy mode. Valid values are Group2, Group5 and Group14. Default is Group5. Changing this updates the existing policy.

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.

TransformProtocol string

The transform protocol. Valid values are ESP, AH and AH-ESP. Changing this updates the existing policy. Default is ESP.

ValueSpecs map[string]interface{}

Map of additional options.

authAlgorithm string

The authentication hash algorithm. Valid values are sha1, sha256, sha384, sha512. Default is sha1. Changing this updates the algorithm of the existing policy.

description string

The human-readable description for the policy. Changing this updates the description of the existing policy.

encapsulationMode string

The encapsulation mode. Valid values are tunnel and transport. Default is tunnel. Changing this updates the existing policy.

encryptionAlgorithm string

The encryption algorithm. Valid values are 3des, aes-128, aes-192 and so on. The default value is aes-128. Changing this updates the existing policy.

lifetimes IpSecPolicyLifetime[]

The lifetime of the security association. Consists of Unit and Value. - unit - (Optional) The units for the lifetime of the security association. Can be either seconds or kilobytes. Default is seconds. - value - (Optional) The value for the lifetime of the security association. Must be a positive integer. Default is 3600.

name string

The name of the policy. Changing this updates the name of the existing policy.

pfs string

The perfect forward secrecy mode. Valid values are Group2, Group5 and Group14. Default is Group5. Changing this updates the existing policy.

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.

transformProtocol string

The transform protocol. Valid values are ESP, AH and AH-ESP. Changing this updates the existing policy. Default is ESP.

valueSpecs {[key: string]: any}

Map of additional options.

auth_algorithm str

The authentication hash algorithm. Valid values are sha1, sha256, sha384, sha512. Default is sha1. Changing this updates the algorithm of the existing policy.

description str

The human-readable description for the policy. Changing this updates the description of the existing policy.

encapsulation_mode str

The encapsulation mode. Valid values are tunnel and transport. Default is tunnel. Changing this updates the existing policy.

encryption_algorithm str

The encryption algorithm. Valid values are 3des, aes-128, aes-192 and so on. The default value is aes-128. Changing this updates the existing policy.

lifetimes List[IpSecPolicyLifetime]

The lifetime of the security association. Consists of Unit and Value. - unit - (Optional) The units for the lifetime of the security association. Can be either seconds or kilobytes. Default is seconds. - value - (Optional) The value for the lifetime of the security association. Must be a positive integer. Default is 3600.

name str

The name of the policy. Changing this updates the name of the existing policy.

pfs str

The perfect forward secrecy mode. Valid values are Group2, Group5 and Group14. Default is Group5. Changing this updates the existing policy.

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.

transform_protocol str

The transform protocol. Valid values are ESP, AH and AH-ESP. Changing this updates the existing policy. Default is ESP.

value_specs Dict[str, Any]

Map of additional options.

Supporting Types

IpSecPolicyLifetime

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Units string
Value int
Units string
Value int
units string
value number
units str
value float

Package Details

Repository
https://github.com/pulumi/pulumi-openstack
License
Apache-2.0
Notes
This Pulumi package is based on the openstack Terraform Provider.