Automation Policy (Lease): Sample

by Simon Sparks · 28 January 2026

GitHub Repository: https://github.com/SimonSparksUK/Automation

Filename: Policy-Lease-Sample.json

{
  "name": "30 Days",
  "typeId": "com.vmware.policy.deployment.lease",
  "projectId": "--INSERT-YOUR-PROJECT-ID-HERE--",
  "enforcementType": "HARD",
  "definition": {
    "leaseGrace": 3,
    "leaseTermMax": 30,
    "leaseTotalTermMax": 90
  },
  "criteria": {
    "matchExpression": [
      {
        "or": [
          {
            "key": "blueprintId",
            "operator": "eq",
            "value": "--INSERT-YOUR-BLUEPRINT-ID-HERE--"
          }
        ]
      }
    ]
  }
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like