ibm.PiIkePolicy
Explore with Pulumi AI
Create PiIkePolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PiIkePolicy(name: string, args: PiIkePolicyArgs, opts?: CustomResourceOptions);
@overload
def PiIkePolicy(resource_name: str,
args: PiIkePolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PiIkePolicy(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_preshared_key: Optional[str] = None,
pi_policy_version: Optional[float] = None,
pi_ike_policy_id: Optional[str] = None,
pi_policy_authentication: Optional[str] = None,
timeouts: Optional[PiIkePolicyTimeoutsArgs] = None)
func NewPiIkePolicy(ctx *Context, name string, args PiIkePolicyArgs, opts ...ResourceOption) (*PiIkePolicy, error)
public PiIkePolicy(string name, PiIkePolicyArgs args, CustomResourceOptions? opts = null)
public PiIkePolicy(String name, PiIkePolicyArgs args)
public PiIkePolicy(String name, PiIkePolicyArgs args, CustomResourceOptions options)
type: ibm:PiIkePolicy
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 PiIkePolicyArgs
- 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 PiIkePolicyArgs
- 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 PiIkePolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PiIkePolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PiIkePolicyArgs
- 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 piIkePolicyResource = new Ibm.PiIkePolicy("piIkePolicyResource", new()
{
PiCloudInstanceId = "string",
PiPolicyDhGroup = 0,
PiPolicyEncryption = "string",
PiPolicyKeyLifetime = 0,
PiPolicyName = "string",
PiPolicyPresharedKey = "string",
PiPolicyVersion = 0,
PiIkePolicyId = "string",
PiPolicyAuthentication = "string",
Timeouts = new Ibm.Inputs.PiIkePolicyTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := ibm.NewPiIkePolicy(ctx, "piIkePolicyResource", &ibm.PiIkePolicyArgs{
PiCloudInstanceId: pulumi.String("string"),
PiPolicyDhGroup: pulumi.Float64(0),
PiPolicyEncryption: pulumi.String("string"),
PiPolicyKeyLifetime: pulumi.Float64(0),
PiPolicyName: pulumi.String("string"),
PiPolicyPresharedKey: pulumi.String("string"),
PiPolicyVersion: pulumi.Float64(0),
PiIkePolicyId: pulumi.String("string"),
PiPolicyAuthentication: pulumi.String("string"),
Timeouts: &ibm.PiIkePolicyTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var piIkePolicyResource = new PiIkePolicy("piIkePolicyResource", PiIkePolicyArgs.builder()
.piCloudInstanceId("string")
.piPolicyDhGroup(0)
.piPolicyEncryption("string")
.piPolicyKeyLifetime(0)
.piPolicyName("string")
.piPolicyPresharedKey("string")
.piPolicyVersion(0)
.piIkePolicyId("string")
.piPolicyAuthentication("string")
.timeouts(PiIkePolicyTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
pi_ike_policy_resource = ibm.PiIkePolicy("piIkePolicyResource",
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_preshared_key="string",
pi_policy_version=0,
pi_ike_policy_id="string",
pi_policy_authentication="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const piIkePolicyResource = new ibm.PiIkePolicy("piIkePolicyResource", {
piCloudInstanceId: "string",
piPolicyDhGroup: 0,
piPolicyEncryption: "string",
piPolicyKeyLifetime: 0,
piPolicyName: "string",
piPolicyPresharedKey: "string",
piPolicyVersion: 0,
piIkePolicyId: "string",
piPolicyAuthentication: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: ibm:PiIkePolicy
properties:
piCloudInstanceId: string
piIkePolicyId: string
piPolicyAuthentication: string
piPolicyDhGroup: 0
piPolicyEncryption: string
piPolicyKeyLifetime: 0
piPolicyName: string
piPolicyPresharedKey: string
piPolicyVersion: 0
timeouts:
create: string
delete: string
update: string
PiIkePolicy 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 PiIkePolicy resource accepts the following input properties:
- Pi
Cloud stringInstance Id - PI cloud instance ID
- Pi
Policy doubleDh Group - DH group of the IKE Policy
- Pi
Policy stringEncryption - Encryption of the IKE Policy
- Pi
Policy doubleKey Lifetime - Policy key lifetime
- Pi
Policy stringName - Name of the IKE Policy
- string
- Preshared key used in this IKE Policy (length of preshared key must be even)
- Pi
Policy doubleVersion - Version of the IKE Policy
- Pi
Ike stringPolicy Id - Pi
Policy stringAuthentication - Authentication for the IKE Policy
- Timeouts
Pi
Ike Policy Timeouts
- Pi
Cloud stringInstance Id - PI cloud instance ID
- Pi
Policy float64Dh Group - DH group of the IKE Policy
- Pi
Policy stringEncryption - Encryption of the IKE Policy
- Pi
Policy float64Key Lifetime - Policy key lifetime
- Pi
Policy stringName - Name of the IKE Policy
- string
- Preshared key used in this IKE Policy (length of preshared key must be even)
- Pi
Policy float64Version - Version of the IKE Policy
- Pi
Ike stringPolicy Id - Pi
Policy stringAuthentication - Authentication for the IKE Policy
- Timeouts
Pi
Ike Policy Timeouts Args
- pi
Cloud StringInstance Id - PI cloud instance ID
- pi
Policy DoubleDh Group - DH group of the IKE Policy
- pi
Policy StringEncryption - Encryption of the IKE Policy
- pi
Policy DoubleKey Lifetime - Policy key lifetime
- pi
Policy StringName - Name of the IKE Policy
- String
- Preshared key used in this IKE Policy (length of preshared key must be even)
- pi
Policy DoubleVersion - Version of the IKE Policy
- pi
Ike StringPolicy Id - pi
Policy StringAuthentication - Authentication for the IKE Policy
- timeouts
Pi
Ike Policy Timeouts
- pi
Cloud stringInstance Id - PI cloud instance ID
- pi
Policy numberDh Group - DH group of the IKE Policy
- pi
Policy stringEncryption - Encryption of the IKE Policy
- pi
Policy numberKey Lifetime - Policy key lifetime
- pi
Policy stringName - Name of the IKE Policy
- string
- Preshared key used in this IKE Policy (length of preshared key must be even)
- pi
Policy numberVersion - Version of the IKE Policy
- pi
Ike stringPolicy Id - pi
Policy stringAuthentication - Authentication for the IKE Policy
- timeouts
Pi
Ike Policy Timeouts
- pi_
cloud_ strinstance_ id - PI cloud instance ID
- pi_
policy_ floatdh_ group - DH group of the IKE Policy
- pi_
policy_ strencryption - Encryption of the IKE Policy
- pi_
policy_ floatkey_ lifetime - Policy key lifetime
- pi_
policy_ strname - Name of the IKE Policy
- str
- Preshared key used in this IKE Policy (length of preshared key must be even)
- pi_
policy_ floatversion - Version of the IKE Policy
- pi_
ike_ strpolicy_ id - pi_
policy_ strauthentication - Authentication for the IKE Policy
- timeouts
Pi
Ike Policy Timeouts Args
- pi
Cloud StringInstance Id - PI cloud instance ID
- pi
Policy NumberDh Group - DH group of the IKE Policy
- pi
Policy StringEncryption - Encryption of the IKE Policy
- pi
Policy NumberKey Lifetime - Policy key lifetime
- pi
Policy StringName - Name of the IKE Policy
- String
- Preshared key used in this IKE Policy (length of preshared key must be even)
- pi
Policy NumberVersion - Version of the IKE Policy
- pi
Ike StringPolicy Id - pi
Policy StringAuthentication - Authentication for the IKE Policy
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the PiIkePolicy resource produces the following output properties:
Look up Existing PiIkePolicy Resource
Get an existing PiIkePolicy 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?: PiIkePolicyState, opts?: CustomResourceOptions): PiIkePolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
pi_cloud_instance_id: Optional[str] = None,
pi_ike_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_preshared_key: Optional[str] = None,
pi_policy_version: Optional[float] = None,
policy_id: Optional[str] = None,
timeouts: Optional[PiIkePolicyTimeoutsArgs] = None) -> PiIkePolicy
func GetPiIkePolicy(ctx *Context, name string, id IDInput, state *PiIkePolicyState, opts ...ResourceOption) (*PiIkePolicy, error)
public static PiIkePolicy Get(string name, Input<string> id, PiIkePolicyState? state, CustomResourceOptions? opts = null)
public static PiIkePolicy get(String name, Output<String> id, PiIkePolicyState state, CustomResourceOptions options)
resources: _: type: ibm:PiIkePolicy get: id: ${id}
- 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.
- Pi
Cloud stringInstance Id - PI cloud instance ID
- Pi
Ike stringPolicy Id - Pi
Policy stringAuthentication - Authentication for the IKE Policy
- Pi
Policy doubleDh Group - DH group of the IKE Policy
- Pi
Policy stringEncryption - Encryption of the IKE Policy
- Pi
Policy doubleKey Lifetime - Policy key lifetime
- Pi
Policy stringName - Name of the IKE Policy
- string
- Preshared key used in this IKE Policy (length of preshared key must be even)
- Pi
Policy doubleVersion - Version of the IKE Policy
- Policy
Id string - IKE Policy ID
- Timeouts
Pi
Ike Policy Timeouts
- Pi
Cloud stringInstance Id - PI cloud instance ID
- Pi
Ike stringPolicy Id - Pi
Policy stringAuthentication - Authentication for the IKE Policy
- Pi
Policy float64Dh Group - DH group of the IKE Policy
- Pi
Policy stringEncryption - Encryption of the IKE Policy
- Pi
Policy float64Key Lifetime - Policy key lifetime
- Pi
Policy stringName - Name of the IKE Policy
- string
- Preshared key used in this IKE Policy (length of preshared key must be even)
- Pi
Policy float64Version - Version of the IKE Policy
- Policy
Id string - IKE Policy ID
- Timeouts
Pi
Ike Policy Timeouts Args
- pi
Cloud StringInstance Id - PI cloud instance ID
- pi
Ike StringPolicy Id - pi
Policy StringAuthentication - Authentication for the IKE Policy
- pi
Policy DoubleDh Group - DH group of the IKE Policy
- pi
Policy StringEncryption - Encryption of the IKE Policy
- pi
Policy DoubleKey Lifetime - Policy key lifetime
- pi
Policy StringName - Name of the IKE Policy
- String
- Preshared key used in this IKE Policy (length of preshared key must be even)
- pi
Policy DoubleVersion - Version of the IKE Policy
- policy
Id String - IKE Policy ID
- timeouts
Pi
Ike Policy Timeouts
- pi
Cloud stringInstance Id - PI cloud instance ID
- pi
Ike stringPolicy Id - pi
Policy stringAuthentication - Authentication for the IKE Policy
- pi
Policy numberDh Group - DH group of the IKE Policy
- pi
Policy stringEncryption - Encryption of the IKE Policy
- pi
Policy numberKey Lifetime - Policy key lifetime
- pi
Policy stringName - Name of the IKE Policy
- string
- Preshared key used in this IKE Policy (length of preshared key must be even)
- pi
Policy numberVersion - Version of the IKE Policy
- policy
Id string - IKE Policy ID
- timeouts
Pi
Ike Policy Timeouts
- pi_
cloud_ strinstance_ id - PI cloud instance ID
- pi_
ike_ strpolicy_ id - pi_
policy_ strauthentication - Authentication for the IKE Policy
- pi_
policy_ floatdh_ group - DH group of the IKE Policy
- pi_
policy_ strencryption - Encryption of the IKE Policy
- pi_
policy_ floatkey_ lifetime - Policy key lifetime
- pi_
policy_ strname - Name of the IKE Policy
- str
- Preshared key used in this IKE Policy (length of preshared key must be even)
- pi_
policy_ floatversion - Version of the IKE Policy
- policy_
id str - IKE Policy ID
- timeouts
Pi
Ike Policy Timeouts Args
- pi
Cloud StringInstance Id - PI cloud instance ID
- pi
Ike StringPolicy Id - pi
Policy StringAuthentication - Authentication for the IKE Policy
- pi
Policy NumberDh Group - DH group of the IKE Policy
- pi
Policy StringEncryption - Encryption of the IKE Policy
- pi
Policy NumberKey Lifetime - Policy key lifetime
- pi
Policy StringName - Name of the IKE Policy
- String
- Preshared key used in this IKE Policy (length of preshared key must be even)
- pi
Policy NumberVersion - Version of the IKE Policy
- policy
Id String - IKE Policy ID
- timeouts Property Map
Supporting Types
PiIkePolicyTimeouts, PiIkePolicyTimeoutsArgs
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.