1. Packages
  2. Vra Provider
  3. API Docs
  4. PolicyLease
vra 0.13.0 published on Wednesday, May 14, 2025 by vmware

vra.PolicyLease

Explore with Pulumi AI

vra logo
vra 0.13.0 published on Wednesday, May 14, 2025 by vmware

    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:

    EnforcementType string
    The type of enforcement for the policy. Supported values: HARD, SOFT.
    LeaseTermMax double
    The maximum duration in days between creation (or renewal) and expiration. Valid range: 1 - 32767.
    LeaseTotalTermMax double
    The maximum duration in days between creation and expiration. Unaffected by renewal. Valid range: 1 - 32767.
    Criterias List<ImmutableDictionary<string, string>>
    The policy criteria.
    Description string
    A human-friendly description for the policy instance.
    LeaseGrace 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.
    PolicyLeaseId string
    ProjectCriterias 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.
    ProjectId string
    The id of the project this entity belongs to. Updating this argument triggers a recreation of the resource.
    EnforcementType string
    The type of enforcement for the policy. Supported values: HARD, SOFT.
    LeaseTermMax float64
    The maximum duration in days between creation (or renewal) and expiration. Valid range: 1 - 32767.
    LeaseTotalTermMax float64
    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.
    LeaseGrace 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.
    PolicyLeaseId string
    ProjectCriterias []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.
    ProjectId string
    The id of the project this entity belongs to. Updating this argument triggers a recreation of the resource.
    enforcementType String
    The type of enforcement for the policy. Supported values: HARD, SOFT.
    leaseTermMax Double
    The maximum duration in days between creation (or renewal) and expiration. Valid range: 1 - 32767.
    leaseTotalTermMax Double
    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.
    leaseGrace 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.
    policyLeaseId String
    projectCriterias 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.
    projectId String
    The id of the project this entity belongs to. Updating this argument triggers a recreation of the resource.
    enforcementType string
    The type of enforcement for the policy. Supported values: HARD, SOFT.
    leaseTermMax number
    The maximum duration in days between creation (or renewal) and expiration. Valid range: 1 - 32767.
    leaseTotalTermMax number
    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.
    leaseGrace 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.
    policyLeaseId string
    projectCriterias {[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.
    projectId 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_max float
    The maximum duration in days between creation (or renewal) and expiration. Valid range: 1 - 32767.
    lease_total_term_max float
    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_id str
    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.
    enforcementType String
    The type of enforcement for the policy. Supported values: HARD, SOFT.
    leaseTermMax Number
    The maximum duration in days between creation (or renewal) and expiration. Valid range: 1 - 32767.
    leaseTotalTermMax Number
    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.
    leaseGrace 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.
    policyLeaseId String
    projectCriterias 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.
    projectId 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:

    CreatedAt string
    Date when the entity was created. The date is in ISO 8601 and UTC.
    CreatedBy string
    The user the entity was created by.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    LastUpdatedBy string
    The user the entity was last updated by.
    OrgId string
    The id of the organization this entity belongs to.
    CreatedAt string
    Date when the entity was created. The date is in ISO 8601 and UTC.
    CreatedBy string
    The user the entity was created by.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    LastUpdatedBy string
    The user the entity was last updated by.
    OrgId string
    The id of the organization this entity belongs to.
    createdAt String
    Date when the entity was created. The date is in ISO 8601 and UTC.
    createdBy String
    The user the entity was created by.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdatedAt String
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    lastUpdatedBy String
    The user the entity was last updated by.
    orgId String
    The id of the organization this entity belongs to.
    createdAt string
    Date when the entity was created. The date is in ISO 8601 and UTC.
    createdBy string
    The user the entity was created by.
    id string
    The provider-assigned unique ID for this managed resource.
    lastUpdatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    lastUpdatedBy string
    The user the entity was last updated by.
    orgId 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_at str
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    last_updated_by str
    The user the entity was last updated by.
    org_id str
    The id of the organization this entity belongs to.
    createdAt String
    Date when the entity was created. The date is in ISO 8601 and UTC.
    createdBy String
    The user the entity was created by.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdatedAt String
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    lastUpdatedBy String
    The user the entity was last updated by.
    orgId 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.
    The following state arguments are supported:
    CreatedAt string
    Date when the entity was created. The date is in ISO 8601 and UTC.
    CreatedBy string
    The user the entity was created by.
    Criterias List<ImmutableDictionary<string, string>>
    The policy criteria.
    Description string
    A human-friendly description for the policy instance.
    EnforcementType string
    The type of enforcement for the policy. Supported values: HARD, SOFT.
    LastUpdatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    LastUpdatedBy string
    The user the entity was last updated by.
    LeaseGrace double
    The duration in days that an expired object should be held before it is deleted. Valid range: 0 - 127.
    LeaseTermMax double
    The maximum duration in days between creation (or renewal) and expiration. Valid range: 1 - 32767.
    LeaseTotalTermMax double
    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.
    OrgId string
    The id of the organization this entity belongs to.
    PolicyLeaseId string
    ProjectCriterias 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.
    ProjectId string
    The id of the project this entity belongs to. Updating this argument triggers a recreation of the resource.
    CreatedAt string
    Date when the entity was created. The date is in ISO 8601 and UTC.
    CreatedBy 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.
    EnforcementType string
    The type of enforcement for the policy. Supported values: HARD, SOFT.
    LastUpdatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    LastUpdatedBy string
    The user the entity was last updated by.
    LeaseGrace float64
    The duration in days that an expired object should be held before it is deleted. Valid range: 0 - 127.
    LeaseTermMax float64
    The maximum duration in days between creation (or renewal) and expiration. Valid range: 1 - 32767.
    LeaseTotalTermMax float64
    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.
    OrgId string
    The id of the organization this entity belongs to.
    PolicyLeaseId string
    ProjectCriterias []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.
    ProjectId string
    The id of the project this entity belongs to. Updating this argument triggers a recreation of the resource.
    createdAt String
    Date when the entity was created. The date is in ISO 8601 and UTC.
    createdBy 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.
    enforcementType String
    The type of enforcement for the policy. Supported values: HARD, SOFT.
    lastUpdatedAt String
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    lastUpdatedBy String
    The user the entity was last updated by.
    leaseGrace Double
    The duration in days that an expired object should be held before it is deleted. Valid range: 0 - 127.
    leaseTermMax Double
    The maximum duration in days between creation (or renewal) and expiration. Valid range: 1 - 32767.
    leaseTotalTermMax Double
    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.
    orgId String
    The id of the organization this entity belongs to.
    policyLeaseId String
    projectCriterias 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.
    projectId String
    The id of the project this entity belongs to. Updating this argument triggers a recreation of the resource.
    createdAt string
    Date when the entity was created. The date is in ISO 8601 and UTC.
    createdBy 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.
    enforcementType string
    The type of enforcement for the policy. Supported values: HARD, SOFT.
    lastUpdatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    lastUpdatedBy string
    The user the entity was last updated by.
    leaseGrace number
    The duration in days that an expired object should be held before it is deleted. Valid range: 0 - 127.
    leaseTermMax number
    The maximum duration in days between creation (or renewal) and expiration. Valid range: 1 - 32767.
    leaseTotalTermMax number
    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.
    orgId string
    The id of the organization this entity belongs to.
    policyLeaseId string
    projectCriterias {[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.
    projectId 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_at str
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    last_updated_by str
    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_max float
    The maximum duration in days between creation (or renewal) and expiration. Valid range: 1 - 32767.
    lease_total_term_max float
    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_id str
    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.
    createdAt String
    Date when the entity was created. The date is in ISO 8601 and UTC.
    createdBy 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.
    enforcementType String
    The type of enforcement for the policy. Supported values: HARD, SOFT.
    lastUpdatedAt String
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    lastUpdatedBy String
    The user the entity was last updated by.
    leaseGrace Number
    The duration in days that an expired object should be held before it is deleted. Valid range: 0 - 127.
    leaseTermMax Number
    The maximum duration in days between creation (or renewal) and expiration. Valid range: 1 - 32767.
    leaseTotalTermMax Number
    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.
    orgId String
    The id of the organization this entity belongs to.
    policyLeaseId String
    projectCriterias 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.
    projectId 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.
    vra logo
    vra 0.13.0 published on Wednesday, May 14, 2025 by vmware