IkePolicy

Manages a V2 Neutron IKE policy resource within OpenStack.

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

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

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

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

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

Create a IkePolicy Resource

def IkePolicy(resource_name, opts=None, auth_algorithm=None, description=None, encryption_algorithm=None, ike_version=None, lifetimes=None, name=None, pfs=None, phase1_negotiation_mode=None, region=None, tenant_id=None, value_specs=None, __props__=None);
func NewIkePolicy(ctx *Context, name string, args *IkePolicyArgs, opts ...ResourceOption) (*IkePolicy, error)
public IkePolicy(string name, IkePolicyArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args IkePolicyArgs
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 IkePolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args IkePolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

IkePolicy Resource Properties

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

Inputs

The IkePolicy 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.

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.

IkeVersion string

The IKE mode. A valid value is v1 or v2. Default is v1. Changing this updates the existing policy.

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

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.

Phase1NegotiationMode string

The IKE mode. A valid value is main, which is the default. 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 a VPN service. If omitted, the region argument of the provider is used. Changing this creates a new service.

TenantId string

The owner of the policy. Required if admin wants to create a service for another policy. Changing this creates a new policy.

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.

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.

IkeVersion string

The IKE mode. A valid value is v1 or v2. Default is v1. Changing this updates the existing policy.

Lifetimes []IkePolicyLifetime

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.

Phase1NegotiationMode string

The IKE mode. A valid value is main, which is the default. 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 a VPN service. If omitted, the region argument of the provider is used. Changing this creates a new service.

TenantId string

The owner of the policy. Required if admin wants to create a service for another policy. Changing this creates a new policy.

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.

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.

ikeVersion string

The IKE mode. A valid value is v1 or v2. Default is v1. Changing this updates the existing policy.

lifetimes IkePolicyLifetime[]

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.

phase1NegotiationMode string

The IKE mode. A valid value is main, which is the default. 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 a VPN service. If omitted, the region argument of the provider is used. Changing this creates a new service.

tenantId string

The owner of the policy. Required if admin wants to create a service for another policy. Changing this creates a new policy.

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.

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.

ike_version str

The IKE mode. A valid value is v1 or v2. Default is v1. Changing this updates the existing policy.

lifetimes List[IkePolicyLifetime]

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.

phase1_negotiation_mode str

The IKE mode. A valid value is main, which is the default. 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 a VPN service. If omitted, the region argument of the provider is used. Changing this creates a new service.

tenant_id str

The owner of the policy. Required if admin wants to create a service for another policy. Changing this creates a new policy.

value_specs Dict[str, Any]

Map of additional options.

Outputs

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

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

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.

IkeVersion string

The IKE mode. A valid value is v1 or v2. Default is v1. Changing this updates the existing policy.

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

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.

Phase1NegotiationMode string

The IKE mode. A valid value is main, which is the default. 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 a VPN service. If omitted, the region argument of the provider is used. Changing this creates a new service.

TenantId string

The owner of the policy. Required if admin wants to create a service for another policy. Changing this creates a new policy.

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.

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.

IkeVersion string

The IKE mode. A valid value is v1 or v2. Default is v1. Changing this updates the existing policy.

Lifetimes []IkePolicyLifetime

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.

Phase1NegotiationMode string

The IKE mode. A valid value is main, which is the default. 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 a VPN service. If omitted, the region argument of the provider is used. Changing this creates a new service.

TenantId string

The owner of the policy. Required if admin wants to create a service for another policy. Changing this creates a new policy.

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.

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.

ikeVersion string

The IKE mode. A valid value is v1 or v2. Default is v1. Changing this updates the existing policy.

lifetimes IkePolicyLifetime[]

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.

phase1NegotiationMode string

The IKE mode. A valid value is main, which is the default. 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 a VPN service. If omitted, the region argument of the provider is used. Changing this creates a new service.

tenantId string

The owner of the policy. Required if admin wants to create a service for another policy. Changing this creates a new policy.

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.

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.

ike_version str

The IKE mode. A valid value is v1 or v2. Default is v1. Changing this updates the existing policy.

lifetimes List[IkePolicyLifetime]

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.

phase1_negotiation_mode str

The IKE mode. A valid value is main, which is the default. 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 a VPN service. If omitted, the region argument of the provider is used. Changing this creates a new service.

tenant_id str

The owner of the policy. Required if admin wants to create a service for another policy. Changing this creates a new policy.

value_specs Dict[str, Any]

Map of additional options.

Supporting Types

IkePolicyLifetime

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.