ibm.PiIpsecPolicy
Explore with Pulumi AI
Create PiIpsecPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PiIpsecPolicy(name: string, args: PiIpsecPolicyArgs, opts?: CustomResourceOptions);
@overload
def PiIpsecPolicy(resource_name: str,
args: PiIpsecPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PiIpsecPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
pi_cloud_instance_id: Optional[str] = None,
pi_policy_dh_group: Optional[float] = None,
pi_policy_encryption: Optional[str] = None,
pi_policy_key_lifetime: Optional[float] = None,
pi_policy_name: Optional[str] = None,
pi_policy_pfs: Optional[bool] = None,
pi_ipsec_policy_id: Optional[str] = None,
pi_policy_authentication: Optional[str] = None,
timeouts: Optional[PiIpsecPolicyTimeoutsArgs] = None)
func NewPiIpsecPolicy(ctx *Context, name string, args PiIpsecPolicyArgs, opts ...ResourceOption) (*PiIpsecPolicy, error)
public PiIpsecPolicy(string name, PiIpsecPolicyArgs args, CustomResourceOptions? opts = null)
public PiIpsecPolicy(String name, PiIpsecPolicyArgs args)
public PiIpsecPolicy(String name, PiIpsecPolicyArgs args, CustomResourceOptions options)
type: ibm:PiIpsecPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. PiIpsecPolicyArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. PiIpsecPolicyArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. PiIpsecPolicyArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. PiIpsecPolicyArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. PiIpsecPolicyArgs - 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 piIpsecPolicyResource = new Ibm.PiIpsecPolicy("piIpsecPolicyResource", new()
{
PiCloudInstanceId = "string",
PiPolicyDhGroup = 0,
PiPolicyEncryption = "string",
PiPolicyKeyLifetime = 0,
PiPolicyName = "string",
PiPolicyPfs = false,
PiIpsecPolicyId = "string",
PiPolicyAuthentication = "string",
Timeouts = new Ibm.Inputs.PiIpsecPolicyTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := ibm.NewPiIpsecPolicy(ctx, "piIpsecPolicyResource", &ibm.PiIpsecPolicyArgs{
PiCloudInstanceId: pulumi.String("string"),
PiPolicyDhGroup: pulumi.Float64(0),
PiPolicyEncryption: pulumi.String("string"),
PiPolicyKeyLifetime: pulumi.Float64(0),
PiPolicyName: pulumi.String("string"),
PiPolicyPfs: pulumi.Bool(false),
PiIpsecPolicyId: pulumi.String("string"),
PiPolicyAuthentication: pulumi.String("string"),
Timeouts: &.PiIpsecPolicyTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var piIpsecPolicyResource = new PiIpsecPolicy("piIpsecPolicyResource", PiIpsecPolicyArgs.builder()
.piCloudInstanceId("string")
.piPolicyDhGroup(0)
.piPolicyEncryption("string")
.piPolicyKeyLifetime(0)
.piPolicyName("string")
.piPolicyPfs(false)
.piIpsecPolicyId("string")
.piPolicyAuthentication("string")
.timeouts(PiIpsecPolicyTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
pi_ipsec_policy_resource = ibm.PiIpsecPolicy("piIpsecPolicyResource",
pi_cloud_instance_id="string",
pi_policy_dh_group=0,
pi_policy_encryption="string",
pi_policy_key_lifetime=0,
pi_policy_name="string",
pi_policy_pfs=False,
pi_ipsec_policy_id="string",
pi_policy_authentication="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const piIpsecPolicyResource = new ibm.PiIpsecPolicy("piIpsecPolicyResource", {
piCloudInstanceId: "string",
piPolicyDhGroup: 0,
piPolicyEncryption: "string",
piPolicyKeyLifetime: 0,
piPolicyName: "string",
piPolicyPfs: false,
piIpsecPolicyId: "string",
piPolicyAuthentication: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: ibm:PiIpsecPolicy
properties:
piCloudInstanceId: string
piIpsecPolicyId: string
piPolicyAuthentication: string
piPolicyDhGroup: 0
piPolicyEncryption: string
piPolicyKeyLifetime: 0
piPolicyName: string
piPolicyPfs: false
timeouts:
create: string
delete: string
update: string
PiIpsecPolicy 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 PiIpsecPolicy resource accepts the following input properties:
- Pi
Cloud Instance Id This property is required. string - PI cloud instance ID
- Pi
Policy Dh Group This property is required. double - DH group of the IPSec Policy
- Pi
Policy Encryption This property is required. string - Encryption of the IPSec Policy
- Pi
Policy Key Lifetime This property is required. double - Policy key lifetime
- Pi
Policy Name This property is required. string - Name of the IPSec Policy
- Pi
Policy Pfs This property is required. bool - Perfect Forward Secrecy
- Pi
Ipsec stringPolicy Id - Pi
Policy stringAuthentication - Authentication for the IPSec Policy
- Timeouts
Pi
Ipsec Policy Timeouts
- Pi
Cloud Instance Id This property is required. string - PI cloud instance ID
- Pi
Policy Dh Group This property is required. float64 - DH group of the IPSec Policy
- Pi
Policy Encryption This property is required. string - Encryption of the IPSec Policy
- Pi
Policy Key Lifetime This property is required. float64 - Policy key lifetime
- Pi
Policy Name This property is required. string - Name of the IPSec Policy
- Pi
Policy Pfs This property is required. bool - Perfect Forward Secrecy
- Pi
Ipsec stringPolicy Id - Pi
Policy stringAuthentication - Authentication for the IPSec Policy
- Timeouts
Pi
Ipsec Policy Timeouts Args
- pi
Cloud Instance Id This property is required. String - PI cloud instance ID
- pi
Policy Dh Group This property is required. Double - DH group of the IPSec Policy
- pi
Policy Encryption This property is required. String - Encryption of the IPSec Policy
- pi
Policy Key Lifetime This property is required. Double - Policy key lifetime
- pi
Policy Name This property is required. String - Name of the IPSec Policy
- pi
Policy Pfs This property is required. Boolean - Perfect Forward Secrecy
- pi
Ipsec StringPolicy Id - pi
Policy StringAuthentication - Authentication for the IPSec Policy
- timeouts
Pi
Ipsec Policy Timeouts
- pi
Cloud Instance Id This property is required. string - PI cloud instance ID
- pi
Policy Dh Group This property is required. number - DH group of the IPSec Policy
- pi
Policy Encryption This property is required. string - Encryption of the IPSec Policy
- pi
Policy Key Lifetime This property is required. number - Policy key lifetime
- pi
Policy Name This property is required. string - Name of the IPSec Policy
- pi
Policy Pfs This property is required. boolean - Perfect Forward Secrecy
- pi
Ipsec stringPolicy Id - pi
Policy stringAuthentication - Authentication for the IPSec Policy
- timeouts
Pi
Ipsec Policy Timeouts
- pi_
cloud_ instance_ id This property is required. str - PI cloud instance ID
- pi_
policy_ dh_ group This property is required. float - DH group of the IPSec Policy
- pi_
policy_ encryption This property is required. str - Encryption of the IPSec Policy
- pi_
policy_ key_ lifetime This property is required. float - Policy key lifetime
- pi_
policy_ name This property is required. str - Name of the IPSec Policy
- pi_
policy_ pfs This property is required. bool - Perfect Forward Secrecy
- pi_
ipsec_ strpolicy_ id - pi_
policy_ strauthentication - Authentication for the IPSec Policy
- timeouts
Pi
Ipsec Policy Timeouts Args
- pi
Cloud Instance Id This property is required. String - PI cloud instance ID
- pi
Policy Dh Group This property is required. Number - DH group of the IPSec Policy
- pi
Policy Encryption This property is required. String - Encryption of the IPSec Policy
- pi
Policy Key Lifetime This property is required. Number - Policy key lifetime
- pi
Policy Name This property is required. String - Name of the IPSec Policy
- pi
Policy Pfs This property is required. Boolean - Perfect Forward Secrecy
- pi
Ipsec StringPolicy Id - pi
Policy StringAuthentication - Authentication for the IPSec Policy
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the PiIpsecPolicy resource produces the following output properties:
Look up Existing PiIpsecPolicy Resource
Get an existing PiIpsecPolicy 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?: PiIpsecPolicyState, opts?: CustomResourceOptions): PiIpsecPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
pi_cloud_instance_id: Optional[str] = None,
pi_ipsec_policy_id: Optional[str] = None,
pi_policy_authentication: Optional[str] = None,
pi_policy_dh_group: Optional[float] = None,
pi_policy_encryption: Optional[str] = None,
pi_policy_key_lifetime: Optional[float] = None,
pi_policy_name: Optional[str] = None,
pi_policy_pfs: Optional[bool] = None,
policy_id: Optional[str] = None,
timeouts: Optional[PiIpsecPolicyTimeoutsArgs] = None) -> PiIpsecPolicy
func GetPiIpsecPolicy(ctx *Context, name string, id IDInput, state *PiIpsecPolicyState, opts ...ResourceOption) (*PiIpsecPolicy, error)
public static PiIpsecPolicy Get(string name, Input<string> id, PiIpsecPolicyState? state, CustomResourceOptions? opts = null)
public static PiIpsecPolicy get(String name, Output<String> id, PiIpsecPolicyState state, CustomResourceOptions options)
resources: _: type: ibm:PiIpsecPolicy get: id: ${id}
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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.
- Pi
Cloud stringInstance Id - PI cloud instance ID
- Pi
Ipsec stringPolicy Id - Pi
Policy stringAuthentication - Authentication for the IPSec Policy
- Pi
Policy doubleDh Group - DH group of the IPSec Policy
- Pi
Policy stringEncryption - Encryption of the IPSec Policy
- Pi
Policy doubleKey Lifetime - Policy key lifetime
- Pi
Policy stringName - Name of the IPSec Policy
- Pi
Policy boolPfs - Perfect Forward Secrecy
- Policy
Id string - IPSec policy ID
- Timeouts
Pi
Ipsec Policy Timeouts
- Pi
Cloud stringInstance Id - PI cloud instance ID
- Pi
Ipsec stringPolicy Id - Pi
Policy stringAuthentication - Authentication for the IPSec Policy
- Pi
Policy float64Dh Group - DH group of the IPSec Policy
- Pi
Policy stringEncryption - Encryption of the IPSec Policy
- Pi
Policy float64Key Lifetime - Policy key lifetime
- Pi
Policy stringName - Name of the IPSec Policy
- Pi
Policy boolPfs - Perfect Forward Secrecy
- Policy
Id string - IPSec policy ID
- Timeouts
Pi
Ipsec Policy Timeouts Args
- pi
Cloud StringInstance Id - PI cloud instance ID
- pi
Ipsec StringPolicy Id - pi
Policy StringAuthentication - Authentication for the IPSec Policy
- pi
Policy DoubleDh Group - DH group of the IPSec Policy
- pi
Policy StringEncryption - Encryption of the IPSec Policy
- pi
Policy DoubleKey Lifetime - Policy key lifetime
- pi
Policy StringName - Name of the IPSec Policy
- pi
Policy BooleanPfs - Perfect Forward Secrecy
- policy
Id String - IPSec policy ID
- timeouts
Pi
Ipsec Policy Timeouts
- pi
Cloud stringInstance Id - PI cloud instance ID
- pi
Ipsec stringPolicy Id - pi
Policy stringAuthentication - Authentication for the IPSec Policy
- pi
Policy numberDh Group - DH group of the IPSec Policy
- pi
Policy stringEncryption - Encryption of the IPSec Policy
- pi
Policy numberKey Lifetime - Policy key lifetime
- pi
Policy stringName - Name of the IPSec Policy
- pi
Policy booleanPfs - Perfect Forward Secrecy
- policy
Id string - IPSec policy ID
- timeouts
Pi
Ipsec Policy Timeouts
- pi_
cloud_ strinstance_ id - PI cloud instance ID
- pi_
ipsec_ strpolicy_ id - pi_
policy_ strauthentication - Authentication for the IPSec Policy
- pi_
policy_ floatdh_ group - DH group of the IPSec Policy
- pi_
policy_ strencryption - Encryption of the IPSec Policy
- pi_
policy_ floatkey_ lifetime - Policy key lifetime
- pi_
policy_ strname - Name of the IPSec Policy
- pi_
policy_ boolpfs - Perfect Forward Secrecy
- policy_
id str - IPSec policy ID
- timeouts
Pi
Ipsec Policy Timeouts Args
- pi
Cloud StringInstance Id - PI cloud instance ID
- pi
Ipsec StringPolicy Id - pi
Policy StringAuthentication - Authentication for the IPSec Policy
- pi
Policy NumberDh Group - DH group of the IPSec Policy
- pi
Policy StringEncryption - Encryption of the IPSec Policy
- pi
Policy NumberKey Lifetime - Policy key lifetime
- pi
Policy StringName - Name of the IPSec Policy
- pi
Policy BooleanPfs - Perfect Forward Secrecy
- policy
Id String - IPSec policy ID
- timeouts Property Map
Supporting Types
PiIpsecPolicyTimeouts, PiIpsecPolicyTimeoutsArgs
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.