openstack.vpnaas.IpSecPolicy
Explore with Pulumi AI
Manages a V2 Neutron IPSec policy resource within OpenStack.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const policy1 = new openstack.vpnaas.IpSecPolicy("policy_1", {name: "my_policy"});
import pulumi
import pulumi_openstack as openstack
policy1 = openstack.vpnaas.IpSecPolicy("policy_1", name="my_policy")
package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/vpnaas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpnaas.NewIpSecPolicy(ctx, "policy_1", &vpnaas.IpSecPolicyArgs{
Name: pulumi.String("my_policy"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using OpenStack = Pulumi.OpenStack;
return await Deployment.RunAsync(() =>
{
var policy1 = new OpenStack.VPNaaS.IpSecPolicy("policy_1", new()
{
Name = "my_policy",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.vpnaas.IpSecPolicy;
import com.pulumi.openstack.vpnaas.IpSecPolicyArgs;
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 IpSecPolicy("policy1", IpSecPolicyArgs.builder()
.name("my_policy")
.build());
}
}
resources:
policy1:
type: openstack:vpnaas:IpSecPolicy
name: policy_1
properties:
name: my_policy
Create IpSecPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IpSecPolicy(name: string, args?: IpSecPolicyArgs, opts?: CustomResourceOptions);
@overload
def IpSecPolicy(resource_name: str,
args: Optional[IpSecPolicyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def IpSecPolicy(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[IpSecPolicyLifetimeArgs]] = None,
name: Optional[str] = None,
pfs: Optional[str] = None,
region: Optional[str] = None,
tenant_id: Optional[str] = None,
transform_protocol: Optional[str] = None,
value_specs: Optional[Mapping[str, Any]] = None)
func NewIpSecPolicy(ctx *Context, name string, args *IpSecPolicyArgs, opts ...ResourceOption) (*IpSecPolicy, error)
public IpSecPolicy(string name, IpSecPolicyArgs? args = null, CustomResourceOptions? opts = null)
public IpSecPolicy(String name, IpSecPolicyArgs args)
public IpSecPolicy(String name, IpSecPolicyArgs args, CustomResourceOptions options)
type: openstack:vpnaas:IpSecPolicy
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 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.
- args IpSecPolicyArgs
- 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 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.
- name String
- The unique name of the resource.
- args IpSecPolicyArgs
- 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 ipSecPolicyResource = new OpenStack.VPNaaS.IpSecPolicy("ipSecPolicyResource", new()
{
AuthAlgorithm = "string",
Description = "string",
EncapsulationMode = "string",
EncryptionAlgorithm = "string",
Lifetimes = new[]
{
new OpenStack.VPNaaS.Inputs.IpSecPolicyLifetimeArgs
{
Units = "string",
Value = 0,
},
},
Name = "string",
Pfs = "string",
Region = "string",
TenantId = "string",
TransformProtocol = "string",
ValueSpecs =
{
{ "string", "any" },
},
});
example, err := vpnaas.NewIpSecPolicy(ctx, "ipSecPolicyResource", &vpnaas.IpSecPolicyArgs{
AuthAlgorithm: pulumi.String("string"),
Description: pulumi.String("string"),
EncapsulationMode: pulumi.String("string"),
EncryptionAlgorithm: pulumi.String("string"),
Lifetimes: vpnaas.IpSecPolicyLifetimeArray{
&vpnaas.IpSecPolicyLifetimeArgs{
Units: pulumi.String("string"),
Value: pulumi.Int(0),
},
},
Name: pulumi.String("string"),
Pfs: pulumi.String("string"),
Region: pulumi.String("string"),
TenantId: pulumi.String("string"),
TransformProtocol: pulumi.String("string"),
ValueSpecs: pulumi.Map{
"string": pulumi.Any("any"),
},
})
var ipSecPolicyResource = new IpSecPolicy("ipSecPolicyResource", IpSecPolicyArgs.builder()
.authAlgorithm("string")
.description("string")
.encapsulationMode("string")
.encryptionAlgorithm("string")
.lifetimes(IpSecPolicyLifetimeArgs.builder()
.units("string")
.value(0)
.build())
.name("string")
.pfs("string")
.region("string")
.tenantId("string")
.transformProtocol("string")
.valueSpecs(Map.of("string", "any"))
.build());
ip_sec_policy_resource = openstack.vpnaas.IpSecPolicy("ipSecPolicyResource",
auth_algorithm="string",
description="string",
encapsulation_mode="string",
encryption_algorithm="string",
lifetimes=[openstack.vpnaas.IpSecPolicyLifetimeArgs(
units="string",
value=0,
)],
name="string",
pfs="string",
region="string",
tenant_id="string",
transform_protocol="string",
value_specs={
"string": "any",
})
const ipSecPolicyResource = new openstack.vpnaas.IpSecPolicy("ipSecPolicyResource", {
authAlgorithm: "string",
description: "string",
encapsulationMode: "string",
encryptionAlgorithm: "string",
lifetimes: [{
units: "string",
value: 0,
}],
name: "string",
pfs: "string",
region: "string",
tenantId: "string",
transformProtocol: "string",
valueSpecs: {
string: "any",
},
});
type: openstack:vpnaas:IpSecPolicy
properties:
authAlgorithm: string
description: string
encapsulationMode: string
encryptionAlgorithm: string
lifetimes:
- units: string
value: 0
name: string
pfs: string
region: string
tenantId: string
transformProtocol: string
valueSpecs:
string: any
IpSecPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The IpSecPolicy resource accepts the following input properties:
- Auth
Algorithm 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.
- Encapsulation
Mode string - The encapsulation mode. Valid values are tunnel and transport. Default is tunnel. Changing this updates the existing policy.
- Encryption
Algorithm 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.
Open Stack. VPNaa S. Inputs. Ip Sec Policy Lifetime> - The lifetime of the security association. Consists of Unit and Value.
- 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. - Tenant
Id string - The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
- Transform
Protocol string - The transform protocol. Valid values are esp, ah and ah-esp. Changing this updates the existing policy. Default is ESP.
- Value
Specs Dictionary<string, object> - Map of additional options.
- Auth
Algorithm 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.
- Encapsulation
Mode string - The encapsulation mode. Valid values are tunnel and transport. Default is tunnel. Changing this updates the existing policy.
- Encryption
Algorithm 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
[]Ip
Sec Policy Lifetime Args - The lifetime of the security association. Consists of Unit and Value.
- 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. - Tenant
Id string - The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
- Transform
Protocol string - The transform protocol. Valid values are esp, ah and ah-esp. Changing this updates the existing policy. Default is ESP.
- Value
Specs map[string]interface{} - Map of additional options.
- auth
Algorithm 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.
- encapsulation
Mode String - The encapsulation mode. Valid values are tunnel and transport. Default is tunnel. Changing this updates the existing policy.
- encryption
Algorithm 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<Ip
Sec Policy Lifetime> - The lifetime of the security association. Consists of Unit and Value.
- 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. - tenant
Id String - The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
- transform
Protocol String - The transform protocol. Valid values are esp, ah and ah-esp. Changing this updates the existing policy. Default is ESP.
- value
Specs Map<String,Object> - Map of additional options.
- auth
Algorithm 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.
- encapsulation
Mode string - The encapsulation mode. Valid values are tunnel and transport. Default is tunnel. Changing this updates the existing policy.
- encryption
Algorithm 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
Ip
Sec Policy Lifetime[] - The lifetime of the security association. Consists of Unit and Value.
- 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. - tenant
Id string - The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
- transform
Protocol string - The transform protocol. Valid values are esp, ah and ah-esp. Changing this updates the existing policy. Default is ESP.
- value
Specs {[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
Sequence[Ip
Sec Policy Lifetime Args] - The lifetime of the security association. Consists of Unit and Value.
- 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 Mapping[str, Any] - Map of additional options.
- auth
Algorithm 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.
- encapsulation
Mode String - The encapsulation mode. Valid values are tunnel and transport. Default is tunnel. Changing this updates the existing policy.
- encryption
Algorithm 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<Property Map>
- The lifetime of the security association. Consists of Unit and Value.
- 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. - tenant
Id String - The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
- transform
Protocol String - The transform protocol. Valid values are esp, ah and ah-esp. Changing this updates the existing policy. Default is ESP.
- value
Specs Map<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 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 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
@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[IpSecPolicyLifetimeArgs]] = None,
name: Optional[str] = None,
pfs: Optional[str] = None,
region: Optional[str] = None,
tenant_id: Optional[str] = None,
transform_protocol: Optional[str] = None,
value_specs: Optional[Mapping[str, Any]] = None) -> IpSecPolicy
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)
public static IpSecPolicy get(String name, Output<String> id, IpSecPolicyState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Auth
Algorithm 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.
- Encapsulation
Mode string - The encapsulation mode. Valid values are tunnel and transport. Default is tunnel. Changing this updates the existing policy.
- Encryption
Algorithm 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.
Open Stack. VPNaa S. Inputs. Ip Sec Policy Lifetime> - The lifetime of the security association. Consists of Unit and Value.
- 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. - Tenant
Id string - The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
- Transform
Protocol string - The transform protocol. Valid values are esp, ah and ah-esp. Changing this updates the existing policy. Default is ESP.
- Value
Specs Dictionary<string, object> - Map of additional options.
- Auth
Algorithm 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.
- Encapsulation
Mode string - The encapsulation mode. Valid values are tunnel and transport. Default is tunnel. Changing this updates the existing policy.
- Encryption
Algorithm 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
[]Ip
Sec Policy Lifetime Args - The lifetime of the security association. Consists of Unit and Value.
- 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. - Tenant
Id string - The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
- Transform
Protocol string - The transform protocol. Valid values are esp, ah and ah-esp. Changing this updates the existing policy. Default is ESP.
- Value
Specs map[string]interface{} - Map of additional options.
- auth
Algorithm 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.
- encapsulation
Mode String - The encapsulation mode. Valid values are tunnel and transport. Default is tunnel. Changing this updates the existing policy.
- encryption
Algorithm 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<Ip
Sec Policy Lifetime> - The lifetime of the security association. Consists of Unit and Value.
- 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. - tenant
Id String - The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
- transform
Protocol String - The transform protocol. Valid values are esp, ah and ah-esp. Changing this updates the existing policy. Default is ESP.
- value
Specs Map<String,Object> - Map of additional options.
- auth
Algorithm 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.
- encapsulation
Mode string - The encapsulation mode. Valid values are tunnel and transport. Default is tunnel. Changing this updates the existing policy.
- encryption
Algorithm 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
Ip
Sec Policy Lifetime[] - The lifetime of the security association. Consists of Unit and Value.
- 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. - tenant
Id string - The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
- transform
Protocol string - The transform protocol. Valid values are esp, ah and ah-esp. Changing this updates the existing policy. Default is ESP.
- value
Specs {[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
Sequence[Ip
Sec Policy Lifetime Args] - The lifetime of the security association. Consists of Unit and Value.
- 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 Mapping[str, Any] - Map of additional options.
- auth
Algorithm 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.
- encapsulation
Mode String - The encapsulation mode. Valid values are tunnel and transport. Default is tunnel. Changing this updates the existing policy.
- encryption
Algorithm 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<Property Map>
- The lifetime of the security association. Consists of Unit and Value.
- 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. - tenant
Id String - The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
- transform
Protocol String - The transform protocol. Valid values are esp, ah and ah-esp. Changing this updates the existing policy. Default is ESP.
- value
Specs Map<Any> - Map of additional options.
Supporting Types
IpSecPolicyLifetime, IpSecPolicyLifetimeArgs
Import
Policies can be imported using the id
, e.g.
$ pulumi import openstack:vpnaas/ipSecPolicy:IpSecPolicy policy_1 832cb7f3-59fe-40cf-8f64-8350ffc03272
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- OpenStack pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstack
Terraform Provider.