To customize machine properties on already completed deployments in vRealize Automation 8.x, you can use third party tools or vRealize Orchestrator workflows to trigger day 2 operations with API calls.

The following examples use Swagger. You can access the VMware Service Broker API at https:// your_VRA_FQDN/deployment/api/deployments/{depId}/resources/{resourceId}/requests

Procedure

  1. Update the CPU/memory values for a machine resource.
    Submit a resource action request.
    POST /deployment/api/deployments/{depId}/resources/{resourceId}/requests
    The following code snippet is a sample body:
     
    {
        "actionId": "Cloud.vSphere.Machine.Resize",
        "targetId": "e9d88d23-2edb-4dcb-812b-b3593368b164",
        "inputs": {"cpuCount": 4, "totalMemoryMB": 4096}
    } 
    Note: The actionId depends on the Machine object type. For vSphere machines, the object is Cloud.vSphere.Machine. The targetId is the machine resource object ID. You can access both from the machine resource object custom properties in the vRealize Automation Client.
  2. Update the disk size value for a Disk resource.
    Submit a resource action request.
    POST /deployment/api/deployments/{depId}/resources/{resourceId}/requests 
    The following code snippet is a sample body:
    {
        "actionId": "Cloud.vSphere.Disk.Disk.Resize",
        "targetId": "710f6d3b-4fdc-4883-8acf-08129c2ad07a",
        "inputs": {"capacityGb":30}
    } 
    Note: The actionId depends on the Disk resource object type. For a vSphere disk the object is Cloud.vSphere.Disk. The targetId is the Disk resource object ID. You can access these from the disk resource object custom properties in the vRealize Automation Client.
  3. Update the Deployment Lease.
    Submit a resource action request.
    POST /deployment/api/deployments/{depId}/resources/{resourceId}/requests
    The following code snippet is a sample body:
    {
        "actionId": "Deployment.ChangeLease",
        "targetId": "2da7675d-a791-4a4a-bc4f-5817b5c5e9d2",
        "inputs": {"Lease Expiration Date":"2020-09-20T13:07:00.000Z"}
    } 
    Note: The targetId is the deployment ID. You can access it from the deployment URL in the vRealize Automation Client.

Results

Verify that the POST request is successful in the vRealize Automation Client.