Class 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
{
});
}
}
Inherited Members
Namespace: Pulumi.OpenStack.VPNaaS
Assembly: Pulumi.OpenStack.dll
Syntax
public class IpSecPolicy : CustomResource
Constructors
View SourceIpSecPolicy(String, IpSecPolicyArgs, CustomResourceOptions)
Create a IpSecPolicy resource with the given unique name, arguments, and options.
Declaration
public IpSecPolicy(string name, IpSecPolicyArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| IpSecPolicyArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAuthAlgorithm
The authentication hash algorithm. Valid values are sha1, sha256, sha384, sha512. Default is sha1. Changing this updates the algorithm of the existing policy.
Declaration
public Output<string> AuthAlgorithm { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Description
The human-readable description for the policy. Changing this updates the description of the existing policy.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
EncapsulationMode
The encapsulation mode. Valid values are tunnel and transport. Default is tunnel. Changing this updates the existing policy.
Declaration
public Output<string> EncapsulationMode { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
EncryptionAlgorithm
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.
Declaration
public Output<string> EncryptionAlgorithm { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Lifetimes
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.
Declaration
public Output<ImmutableArray<IpSecPolicyLifetime>> Lifetimes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<IpSecPolicyLifetime>> |
Name
The name of the policy. Changing this updates the name of the existing policy.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Pfs
The perfect forward secrecy mode. Valid values are Group2, Group5 and Group14. Default is Group5. Changing this updates the existing policy.
Declaration
public Output<string> Pfs { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Region
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.
Declaration
public Output<string> Region { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
TenantId
The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
Declaration
public Output<string> TenantId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
TransformProtocol
The transform protocol. Valid values are ESP, AH and AH-ESP. Changing this updates the existing policy. Default is ESP.
Declaration
public Output<string> TransformProtocol { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ValueSpecs
Map of additional options.
Declaration
public Output<ImmutableDictionary<string, object>> ValueSpecs { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Methods
View SourceGet(String, Input<String>, IpSecPolicyState, CustomResourceOptions)
Get an existing IpSecPolicy resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static IpSecPolicy Get(string name, Input<string> id, IpSecPolicyState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| IpSecPolicyState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| IpSecPolicy |