1. Packages
  2. Ibm Provider
  3. API Docs
  4. PiIkePolicy
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.PiIkePolicy

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    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:

    PiCloudInstanceId string
    PI cloud instance ID
    PiPolicyDhGroup double
    DH group of the IKE Policy
    PiPolicyEncryption string
    Encryption of the IKE Policy
    PiPolicyKeyLifetime double
    Policy key lifetime
    PiPolicyName string
    Name of the IKE Policy
    PiPolicyPresharedKey string
    Preshared key used in this IKE Policy (length of preshared key must be even)
    PiPolicyVersion double
    Version of the IKE Policy
    PiIkePolicyId string
    PiPolicyAuthentication string
    Authentication for the IKE Policy
    Timeouts PiIkePolicyTimeouts
    PiCloudInstanceId string
    PI cloud instance ID
    PiPolicyDhGroup float64
    DH group of the IKE Policy
    PiPolicyEncryption string
    Encryption of the IKE Policy
    PiPolicyKeyLifetime float64
    Policy key lifetime
    PiPolicyName string
    Name of the IKE Policy
    PiPolicyPresharedKey string
    Preshared key used in this IKE Policy (length of preshared key must be even)
    PiPolicyVersion float64
    Version of the IKE Policy
    PiIkePolicyId string
    PiPolicyAuthentication string
    Authentication for the IKE Policy
    Timeouts PiIkePolicyTimeoutsArgs
    piCloudInstanceId String
    PI cloud instance ID
    piPolicyDhGroup Double
    DH group of the IKE Policy
    piPolicyEncryption String
    Encryption of the IKE Policy
    piPolicyKeyLifetime Double
    Policy key lifetime
    piPolicyName String
    Name of the IKE Policy
    piPolicyPresharedKey String
    Preshared key used in this IKE Policy (length of preshared key must be even)
    piPolicyVersion Double
    Version of the IKE Policy
    piIkePolicyId String
    piPolicyAuthentication String
    Authentication for the IKE Policy
    timeouts PiIkePolicyTimeouts
    piCloudInstanceId string
    PI cloud instance ID
    piPolicyDhGroup number
    DH group of the IKE Policy
    piPolicyEncryption string
    Encryption of the IKE Policy
    piPolicyKeyLifetime number
    Policy key lifetime
    piPolicyName string
    Name of the IKE Policy
    piPolicyPresharedKey string
    Preshared key used in this IKE Policy (length of preshared key must be even)
    piPolicyVersion number
    Version of the IKE Policy
    piIkePolicyId string
    piPolicyAuthentication string
    Authentication for the IKE Policy
    timeouts PiIkePolicyTimeouts
    pi_cloud_instance_id str
    PI cloud instance ID
    pi_policy_dh_group float
    DH group of the IKE Policy
    pi_policy_encryption str
    Encryption of the IKE Policy
    pi_policy_key_lifetime float
    Policy key lifetime
    pi_policy_name str
    Name of the IKE Policy
    pi_policy_preshared_key str
    Preshared key used in this IKE Policy (length of preshared key must be even)
    pi_policy_version float
    Version of the IKE Policy
    pi_ike_policy_id str
    pi_policy_authentication str
    Authentication for the IKE Policy
    timeouts PiIkePolicyTimeoutsArgs
    piCloudInstanceId String
    PI cloud instance ID
    piPolicyDhGroup Number
    DH group of the IKE Policy
    piPolicyEncryption String
    Encryption of the IKE Policy
    piPolicyKeyLifetime Number
    Policy key lifetime
    piPolicyName String
    Name of the IKE Policy
    piPolicyPresharedKey String
    Preshared key used in this IKE Policy (length of preshared key must be even)
    piPolicyVersion Number
    Version of the IKE Policy
    piIkePolicyId String
    piPolicyAuthentication String
    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:

    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyId string
    IKE Policy ID
    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyId string
    IKE Policy ID
    id String
    The provider-assigned unique ID for this managed resource.
    policyId String
    IKE Policy ID
    id string
    The provider-assigned unique ID for this managed resource.
    policyId string
    IKE Policy ID
    id str
    The provider-assigned unique ID for this managed resource.
    policy_id str
    IKE Policy ID
    id String
    The provider-assigned unique ID for this managed resource.
    policyId String
    IKE Policy ID

    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.
    The following state arguments are supported:
    PiCloudInstanceId string
    PI cloud instance ID
    PiIkePolicyId string
    PiPolicyAuthentication string
    Authentication for the IKE Policy
    PiPolicyDhGroup double
    DH group of the IKE Policy
    PiPolicyEncryption string
    Encryption of the IKE Policy
    PiPolicyKeyLifetime double
    Policy key lifetime
    PiPolicyName string
    Name of the IKE Policy
    PiPolicyPresharedKey string
    Preshared key used in this IKE Policy (length of preshared key must be even)
    PiPolicyVersion double
    Version of the IKE Policy
    PolicyId string
    IKE Policy ID
    Timeouts PiIkePolicyTimeouts
    PiCloudInstanceId string
    PI cloud instance ID
    PiIkePolicyId string
    PiPolicyAuthentication string
    Authentication for the IKE Policy
    PiPolicyDhGroup float64
    DH group of the IKE Policy
    PiPolicyEncryption string
    Encryption of the IKE Policy
    PiPolicyKeyLifetime float64
    Policy key lifetime
    PiPolicyName string
    Name of the IKE Policy
    PiPolicyPresharedKey string
    Preshared key used in this IKE Policy (length of preshared key must be even)
    PiPolicyVersion float64
    Version of the IKE Policy
    PolicyId string
    IKE Policy ID
    Timeouts PiIkePolicyTimeoutsArgs
    piCloudInstanceId String
    PI cloud instance ID
    piIkePolicyId String
    piPolicyAuthentication String
    Authentication for the IKE Policy
    piPolicyDhGroup Double
    DH group of the IKE Policy
    piPolicyEncryption String
    Encryption of the IKE Policy
    piPolicyKeyLifetime Double
    Policy key lifetime
    piPolicyName String
    Name of the IKE Policy
    piPolicyPresharedKey String
    Preshared key used in this IKE Policy (length of preshared key must be even)
    piPolicyVersion Double
    Version of the IKE Policy
    policyId String
    IKE Policy ID
    timeouts PiIkePolicyTimeouts
    piCloudInstanceId string
    PI cloud instance ID
    piIkePolicyId string
    piPolicyAuthentication string
    Authentication for the IKE Policy
    piPolicyDhGroup number
    DH group of the IKE Policy
    piPolicyEncryption string
    Encryption of the IKE Policy
    piPolicyKeyLifetime number
    Policy key lifetime
    piPolicyName string
    Name of the IKE Policy
    piPolicyPresharedKey string
    Preshared key used in this IKE Policy (length of preshared key must be even)
    piPolicyVersion number
    Version of the IKE Policy
    policyId string
    IKE Policy ID
    timeouts PiIkePolicyTimeouts
    pi_cloud_instance_id str
    PI cloud instance ID
    pi_ike_policy_id str
    pi_policy_authentication str
    Authentication for the IKE Policy
    pi_policy_dh_group float
    DH group of the IKE Policy
    pi_policy_encryption str
    Encryption of the IKE Policy
    pi_policy_key_lifetime float
    Policy key lifetime
    pi_policy_name str
    Name of the IKE Policy
    pi_policy_preshared_key str
    Preshared key used in this IKE Policy (length of preshared key must be even)
    pi_policy_version float
    Version of the IKE Policy
    policy_id str
    IKE Policy ID
    timeouts PiIkePolicyTimeoutsArgs
    piCloudInstanceId String
    PI cloud instance ID
    piIkePolicyId String
    piPolicyAuthentication String
    Authentication for the IKE Policy
    piPolicyDhGroup Number
    DH group of the IKE Policy
    piPolicyEncryption String
    Encryption of the IKE Policy
    piPolicyKeyLifetime Number
    Policy key lifetime
    piPolicyName String
    Name of the IKE Policy
    piPolicyPresharedKey String
    Preshared key used in this IKE Policy (length of preshared key must be even)
    piPolicyVersion Number
    Version of the IKE Policy
    policyId String
    IKE Policy ID
    timeouts Property Map

    Supporting Types

    PiIkePolicyTimeouts, PiIkePolicyTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud