vra.PolicyLease
Explore with Pulumi AI
Creates a Lease policy resource to automate the expiration and destruction of deployed catalog items.
Example Usage
S
The following example shows how to create a lease policy resource:
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const policyLease = new vra.PolicyLease("policyLease", {
description: "Lease Policy [terraform-lease-policy] created by Terraform",
enforcementType: "HARD",
leaseGrace: 15,
leaseTermMax: 30,
leaseTotalTermMax: 100,
});
import pulumi
import pulumi_vra as vra
policy_lease = vra.PolicyLease("policyLease",
description="Lease Policy [terraform-lease-policy] created by Terraform",
enforcement_type="HARD",
lease_grace=15,
lease_term_max=30,
lease_total_term_max=100)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vra/vra"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vra.NewPolicyLease(ctx, "policyLease", &vra.PolicyLeaseArgs{
Description: pulumi.String("Lease Policy [terraform-lease-policy] created by Terraform"),
EnforcementType: pulumi.String("HARD"),
LeaseGrace: pulumi.Float64(15),
LeaseTermMax: pulumi.Float64(30),
LeaseTotalTermMax: pulumi.Float64(100),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vra = Pulumi.Vra;
return await Deployment.RunAsync(() =>
{
var policyLease = new Vra.PolicyLease("policyLease", new()
{
Description = "Lease Policy [terraform-lease-policy] created by Terraform",
EnforcementType = "HARD",
LeaseGrace = 15,
LeaseTermMax = 30,
LeaseTotalTermMax = 100,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vra.PolicyLease;
import com.pulumi.vra.PolicyLeaseArgs;
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 policyLease = new PolicyLease("policyLease", PolicyLeaseArgs.builder()
.description("Lease Policy [terraform-lease-policy] created by Terraform")
.enforcementType("HARD")
.leaseGrace(15)
.leaseTermMax(30)
.leaseTotalTermMax(100)
.build());
}
}
resources:
policyLease:
type: vra:PolicyLease
properties:
description: Lease Policy [terraform-lease-policy] created by Terraform
enforcementType: HARD
leaseGrace: 15
leaseTermMax: 30
leaseTotalTermMax: 100
Create PolicyLease Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyLease(name: string, args: PolicyLeaseArgs, opts?: CustomResourceOptions);
@overload
def PolicyLease(resource_name: str,
args: PolicyLeaseArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyLease(resource_name: str,
opts: Optional[ResourceOptions] = None,
enforcement_type: Optional[str] = None,
lease_term_max: Optional[float] = None,
lease_total_term_max: Optional[float] = None,
criterias: Optional[Sequence[Mapping[str, str]]] = None,
description: Optional[str] = None,
lease_grace: Optional[float] = None,
name: Optional[str] = None,
policy_lease_id: Optional[str] = None,
project_criterias: Optional[Sequence[Mapping[str, str]]] = None,
project_id: Optional[str] = None)
func NewPolicyLease(ctx *Context, name string, args PolicyLeaseArgs, opts ...ResourceOption) (*PolicyLease, error)
public PolicyLease(string name, PolicyLeaseArgs args, CustomResourceOptions? opts = null)
public PolicyLease(String name, PolicyLeaseArgs args)
public PolicyLease(String name, PolicyLeaseArgs args, CustomResourceOptions options)
type: vra:PolicyLease
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 PolicyLeaseArgs
- 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 PolicyLeaseArgs
- 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 PolicyLeaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyLeaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyLeaseArgs
- 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 policyLeaseResource = new Vra.PolicyLease("policyLeaseResource", new()
{
EnforcementType = "string",
LeaseTermMax = 0,
LeaseTotalTermMax = 0,
Criterias = new[]
{
{
{ "string", "string" },
},
},
Description = "string",
LeaseGrace = 0,
Name = "string",
PolicyLeaseId = "string",
ProjectCriterias = new[]
{
{
{ "string", "string" },
},
},
ProjectId = "string",
});
example, err := vra.NewPolicyLease(ctx, "policyLeaseResource", &vra.PolicyLeaseArgs{
EnforcementType: pulumi.String("string"),
LeaseTermMax: pulumi.Float64(0),
LeaseTotalTermMax: pulumi.Float64(0),
Criterias: pulumi.StringMapArray{
pulumi.StringMap{
"string": pulumi.String("string"),
},
},
Description: pulumi.String("string"),
LeaseGrace: pulumi.Float64(0),
Name: pulumi.String("string"),
PolicyLeaseId: pulumi.String("string"),
ProjectCriterias: pulumi.StringMapArray{
pulumi.StringMap{
"string": pulumi.String("string"),
},
},
ProjectId: pulumi.String("string"),
})
var policyLeaseResource = new PolicyLease("policyLeaseResource", PolicyLeaseArgs.builder()
.enforcementType("string")
.leaseTermMax(0.0)
.leaseTotalTermMax(0.0)
.criterias(Map.of("string", "string"))
.description("string")
.leaseGrace(0.0)
.name("string")
.policyLeaseId("string")
.projectCriterias(Map.of("string", "string"))
.projectId("string")
.build());
policy_lease_resource = vra.PolicyLease("policyLeaseResource",
enforcement_type="string",
lease_term_max=0,
lease_total_term_max=0,
criterias=[{
"string": "string",
}],
description="string",
lease_grace=0,
name="string",
policy_lease_id="string",
project_criterias=[{
"string": "string",
}],
project_id="string")
const policyLeaseResource = new vra.PolicyLease("policyLeaseResource", {
enforcementType: "string",
leaseTermMax: 0,
leaseTotalTermMax: 0,
criterias: [{
string: "string",
}],
description: "string",
leaseGrace: 0,
name: "string",
policyLeaseId: "string",
projectCriterias: [{
string: "string",
}],
projectId: "string",
});
type: vra:PolicyLease
properties:
criterias:
- string: string
description: string
enforcementType: string
leaseGrace: 0
leaseTermMax: 0
leaseTotalTermMax: 0
name: string
policyLeaseId: string
projectCriterias:
- string: string
projectId: string
PolicyLease 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 PolicyLease resource accepts the following input properties:
- Enforcement
Type string - The type of enforcement for the policy. Supported values:
HARD
,SOFT
. - Lease
Term doubleMax - The maximum duration in days between creation (or renewal) and expiration. Valid range:
1
-32767
. - Lease
Total doubleTerm Max - The maximum duration in days between creation and expiration. Unaffected by renewal. Valid range:
1
-32767
. - Criterias
List<Immutable
Dictionary<string, string>> - The policy criteria.
- Description string
- A human-friendly description for the policy instance.
- Lease
Grace double - The duration in days that an expired object should be held before it is deleted. Valid range:
0
-127
. - Name string
- A human-friendly name used as an identifier for the policy instance.
- Policy
Lease stringId - Project
Criterias List<ImmutableDictionary<string, string>> - The project based criteria. Updating this argument triggers a recreation of the resource. It cannot be specified when
project_id
is set. - Project
Id string - The id of the project this entity belongs to. Updating this argument triggers a recreation of the resource.
- Enforcement
Type string - The type of enforcement for the policy. Supported values:
HARD
,SOFT
. - Lease
Term float64Max - The maximum duration in days between creation (or renewal) and expiration. Valid range:
1
-32767
. - Lease
Total float64Term Max - The maximum duration in days between creation and expiration. Unaffected by renewal. Valid range:
1
-32767
. - Criterias []map[string]string
- The policy criteria.
- Description string
- A human-friendly description for the policy instance.
- Lease
Grace float64 - The duration in days that an expired object should be held before it is deleted. Valid range:
0
-127
. - Name string
- A human-friendly name used as an identifier for the policy instance.
- Policy
Lease stringId - Project
Criterias []map[string]string - The project based criteria. Updating this argument triggers a recreation of the resource. It cannot be specified when
project_id
is set. - Project
Id string - The id of the project this entity belongs to. Updating this argument triggers a recreation of the resource.
- enforcement
Type String - The type of enforcement for the policy. Supported values:
HARD
,SOFT
. - lease
Term DoubleMax - The maximum duration in days between creation (or renewal) and expiration. Valid range:
1
-32767
. - lease
Total DoubleTerm Max - The maximum duration in days between creation and expiration. Unaffected by renewal. Valid range:
1
-32767
. - criterias List<Map<String,String>>
- The policy criteria.
- description String
- A human-friendly description for the policy instance.
- lease
Grace Double - The duration in days that an expired object should be held before it is deleted. Valid range:
0
-127
. - name String
- A human-friendly name used as an identifier for the policy instance.
- policy
Lease StringId - project
Criterias List<Map<String,String>> - The project based criteria. Updating this argument triggers a recreation of the resource. It cannot be specified when
project_id
is set. - project
Id String - The id of the project this entity belongs to. Updating this argument triggers a recreation of the resource.
- enforcement
Type string - The type of enforcement for the policy. Supported values:
HARD
,SOFT
. - lease
Term numberMax - The maximum duration in days between creation (or renewal) and expiration. Valid range:
1
-32767
. - lease
Total numberTerm Max - The maximum duration in days between creation and expiration. Unaffected by renewal. Valid range:
1
-32767
. - criterias {[key: string]: string}[]
- The policy criteria.
- description string
- A human-friendly description for the policy instance.
- lease
Grace number - The duration in days that an expired object should be held before it is deleted. Valid range:
0
-127
. - name string
- A human-friendly name used as an identifier for the policy instance.
- policy
Lease stringId - project
Criterias {[key: string]: string}[] - The project based criteria. Updating this argument triggers a recreation of the resource. It cannot be specified when
project_id
is set. - project
Id string - The id of the project this entity belongs to. Updating this argument triggers a recreation of the resource.
- enforcement_
type str - The type of enforcement for the policy. Supported values:
HARD
,SOFT
. - lease_
term_ floatmax - The maximum duration in days between creation (or renewal) and expiration. Valid range:
1
-32767
. - lease_
total_ floatterm_ max - The maximum duration in days between creation and expiration. Unaffected by renewal. Valid range:
1
-32767
. - criterias Sequence[Mapping[str, str]]
- The policy criteria.
- description str
- A human-friendly description for the policy instance.
- lease_
grace float - The duration in days that an expired object should be held before it is deleted. Valid range:
0
-127
. - name str
- A human-friendly name used as an identifier for the policy instance.
- policy_
lease_ strid - project_
criterias Sequence[Mapping[str, str]] - The project based criteria. Updating this argument triggers a recreation of the resource. It cannot be specified when
project_id
is set. - project_
id str - The id of the project this entity belongs to. Updating this argument triggers a recreation of the resource.
- enforcement
Type String - The type of enforcement for the policy. Supported values:
HARD
,SOFT
. - lease
Term NumberMax - The maximum duration in days between creation (or renewal) and expiration. Valid range:
1
-32767
. - lease
Total NumberTerm Max - The maximum duration in days between creation and expiration. Unaffected by renewal. Valid range:
1
-32767
. - criterias List<Map<String>>
- The policy criteria.
- description String
- A human-friendly description for the policy instance.
- lease
Grace Number - The duration in days that an expired object should be held before it is deleted. Valid range:
0
-127
. - name String
- A human-friendly name used as an identifier for the policy instance.
- policy
Lease StringId - project
Criterias List<Map<String>> - The project based criteria. Updating this argument triggers a recreation of the resource. It cannot be specified when
project_id
is set. - project
Id String - The id of the project this entity belongs to. Updating this argument triggers a recreation of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyLease resource produces the following output properties:
- Created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- Created
By string - The user the entity was created by.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Last
Updated stringBy - The user the entity was last updated by.
- Org
Id string - The id of the organization this entity belongs to.
- Created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- Created
By string - The user the entity was created by.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Last
Updated stringBy - The user the entity was last updated by.
- Org
Id string - The id of the organization this entity belongs to.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- created
By String - The user the entity was created by.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last
Updated StringBy - The user the entity was last updated by.
- org
Id String - The id of the organization this entity belongs to.
- created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- created
By string - The user the entity was created by.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated stringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last
Updated stringBy - The user the entity was last updated by.
- org
Id string - The id of the organization this entity belongs to.
- created_
at str - Date when the entity was created. The date is in ISO 8601 and UTC.
- created_
by str - The user the entity was created by.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated_ strat - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last_
updated_ strby - The user the entity was last updated by.
- org_
id str - The id of the organization this entity belongs to.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- created
By String - The user the entity was created by.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last
Updated StringBy - The user the entity was last updated by.
- org
Id String - The id of the organization this entity belongs to.
Look up Existing PolicyLease Resource
Get an existing PolicyLease 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?: PolicyLeaseState, opts?: CustomResourceOptions): PolicyLease
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
created_by: Optional[str] = None,
criterias: Optional[Sequence[Mapping[str, str]]] = None,
description: Optional[str] = None,
enforcement_type: Optional[str] = None,
last_updated_at: Optional[str] = None,
last_updated_by: Optional[str] = None,
lease_grace: Optional[float] = None,
lease_term_max: Optional[float] = None,
lease_total_term_max: Optional[float] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
policy_lease_id: Optional[str] = None,
project_criterias: Optional[Sequence[Mapping[str, str]]] = None,
project_id: Optional[str] = None) -> PolicyLease
func GetPolicyLease(ctx *Context, name string, id IDInput, state *PolicyLeaseState, opts ...ResourceOption) (*PolicyLease, error)
public static PolicyLease Get(string name, Input<string> id, PolicyLeaseState? state, CustomResourceOptions? opts = null)
public static PolicyLease get(String name, Output<String> id, PolicyLeaseState state, CustomResourceOptions options)
resources: _: type: vra:PolicyLease 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.
- Created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- Created
By string - The user the entity was created by.
- Criterias
List<Immutable
Dictionary<string, string>> - The policy criteria.
- Description string
- A human-friendly description for the policy instance.
- Enforcement
Type string - The type of enforcement for the policy. Supported values:
HARD
,SOFT
. - Last
Updated stringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Last
Updated stringBy - The user the entity was last updated by.
- Lease
Grace double - The duration in days that an expired object should be held before it is deleted. Valid range:
0
-127
. - Lease
Term doubleMax - The maximum duration in days between creation (or renewal) and expiration. Valid range:
1
-32767
. - Lease
Total doubleTerm Max - The maximum duration in days between creation and expiration. Unaffected by renewal. Valid range:
1
-32767
. - Name string
- A human-friendly name used as an identifier for the policy instance.
- Org
Id string - The id of the organization this entity belongs to.
- Policy
Lease stringId - Project
Criterias List<ImmutableDictionary<string, string>> - The project based criteria. Updating this argument triggers a recreation of the resource. It cannot be specified when
project_id
is set. - Project
Id string - The id of the project this entity belongs to. Updating this argument triggers a recreation of the resource.
- Created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- Created
By string - The user the entity was created by.
- Criterias []map[string]string
- The policy criteria.
- Description string
- A human-friendly description for the policy instance.
- Enforcement
Type string - The type of enforcement for the policy. Supported values:
HARD
,SOFT
. - Last
Updated stringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Last
Updated stringBy - The user the entity was last updated by.
- Lease
Grace float64 - The duration in days that an expired object should be held before it is deleted. Valid range:
0
-127
. - Lease
Term float64Max - The maximum duration in days between creation (or renewal) and expiration. Valid range:
1
-32767
. - Lease
Total float64Term Max - The maximum duration in days between creation and expiration. Unaffected by renewal. Valid range:
1
-32767
. - Name string
- A human-friendly name used as an identifier for the policy instance.
- Org
Id string - The id of the organization this entity belongs to.
- Policy
Lease stringId - Project
Criterias []map[string]string - The project based criteria. Updating this argument triggers a recreation of the resource. It cannot be specified when
project_id
is set. - Project
Id string - The id of the project this entity belongs to. Updating this argument triggers a recreation of the resource.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- created
By String - The user the entity was created by.
- criterias List<Map<String,String>>
- The policy criteria.
- description String
- A human-friendly description for the policy instance.
- enforcement
Type String - The type of enforcement for the policy. Supported values:
HARD
,SOFT
. - last
Updated StringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last
Updated StringBy - The user the entity was last updated by.
- lease
Grace Double - The duration in days that an expired object should be held before it is deleted. Valid range:
0
-127
. - lease
Term DoubleMax - The maximum duration in days between creation (or renewal) and expiration. Valid range:
1
-32767
. - lease
Total DoubleTerm Max - The maximum duration in days between creation and expiration. Unaffected by renewal. Valid range:
1
-32767
. - name String
- A human-friendly name used as an identifier for the policy instance.
- org
Id String - The id of the organization this entity belongs to.
- policy
Lease StringId - project
Criterias List<Map<String,String>> - The project based criteria. Updating this argument triggers a recreation of the resource. It cannot be specified when
project_id
is set. - project
Id String - The id of the project this entity belongs to. Updating this argument triggers a recreation of the resource.
- created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- created
By string - The user the entity was created by.
- criterias {[key: string]: string}[]
- The policy criteria.
- description string
- A human-friendly description for the policy instance.
- enforcement
Type string - The type of enforcement for the policy. Supported values:
HARD
,SOFT
. - last
Updated stringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last
Updated stringBy - The user the entity was last updated by.
- lease
Grace number - The duration in days that an expired object should be held before it is deleted. Valid range:
0
-127
. - lease
Term numberMax - The maximum duration in days between creation (or renewal) and expiration. Valid range:
1
-32767
. - lease
Total numberTerm Max - The maximum duration in days between creation and expiration. Unaffected by renewal. Valid range:
1
-32767
. - name string
- A human-friendly name used as an identifier for the policy instance.
- org
Id string - The id of the organization this entity belongs to.
- policy
Lease stringId - project
Criterias {[key: string]: string}[] - The project based criteria. Updating this argument triggers a recreation of the resource. It cannot be specified when
project_id
is set. - project
Id string - The id of the project this entity belongs to. Updating this argument triggers a recreation of the resource.
- created_
at str - Date when the entity was created. The date is in ISO 8601 and UTC.
- created_
by str - The user the entity was created by.
- criterias Sequence[Mapping[str, str]]
- The policy criteria.
- description str
- A human-friendly description for the policy instance.
- enforcement_
type str - The type of enforcement for the policy. Supported values:
HARD
,SOFT
. - last_
updated_ strat - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last_
updated_ strby - The user the entity was last updated by.
- lease_
grace float - The duration in days that an expired object should be held before it is deleted. Valid range:
0
-127
. - lease_
term_ floatmax - The maximum duration in days between creation (or renewal) and expiration. Valid range:
1
-32767
. - lease_
total_ floatterm_ max - The maximum duration in days between creation and expiration. Unaffected by renewal. Valid range:
1
-32767
. - name str
- A human-friendly name used as an identifier for the policy instance.
- org_
id str - The id of the organization this entity belongs to.
- policy_
lease_ strid - project_
criterias Sequence[Mapping[str, str]] - The project based criteria. Updating this argument triggers a recreation of the resource. It cannot be specified when
project_id
is set. - project_
id str - The id of the project this entity belongs to. Updating this argument triggers a recreation of the resource.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- created
By String - The user the entity was created by.
- criterias List<Map<String>>
- The policy criteria.
- description String
- A human-friendly description for the policy instance.
- enforcement
Type String - The type of enforcement for the policy. Supported values:
HARD
,SOFT
. - last
Updated StringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last
Updated StringBy - The user the entity was last updated by.
- lease
Grace Number - The duration in days that an expired object should be held before it is deleted. Valid range:
0
-127
. - lease
Term NumberMax - The maximum duration in days between creation (or renewal) and expiration. Valid range:
1
-32767
. - lease
Total NumberTerm Max - The maximum duration in days between creation and expiration. Unaffected by renewal. Valid range:
1
-32767
. - name String
- A human-friendly name used as an identifier for the policy instance.
- org
Id String - The id of the organization this entity belongs to.
- policy
Lease StringId - project
Criterias List<Map<String>> - The project based criteria. Updating this argument triggers a recreation of the resource. It cannot be specified when
project_id
is set. - project
Id String - The id of the project this entity belongs to. Updating this argument triggers a recreation of the resource.
Import
To import an existing Lease policy, use the id
as in the following example:
$ pulumi import vra:index/policyLease:PolicyLease policy_lease "39616df1-f42c-4ef1-a8e1-1a2abfec1fd6"`
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- vra vmware/terraform-provider-vra
- License
- Notes
- This Pulumi package is based on the
vra
Terraform Provider.