You can use the vRealize Automation REST API reservation service to display resource schema, such as storage and network information, for an Amazon reservation.

Before you begin

  • Log in to vRealize Automation as a fabric group administrator.

  • Verify that the host name and fully qualified domain name of the vRealize Automation instance are available.

  • Get the required compute resource ID. See Get a Compute Resource for the Reservation.

Procedure

Use the reservation service to display resource schema information for an Amazon reservation.

The following example command displays storage and network information for the compute resource with an ID of 9d1a3b5a-7162-4a5a-85b7-ec1b2824f554.

curl --insecure -H "Accept:application/json" 
-H "Authorization: Bearer $token" 
https://$host/reservation-service/api/data-service/schema/Infrastructure.Reservation.Cloud.Amazon/default/securityGroups/values  -d “
{
  "text": "",
  "dependencyValues": {
    "entries": [{
      "key": "computeResource",
      "value": {
        "type": "entityRef",
        "componentId": null,
        "classId": "ComputeResource",
        "id": "9d1a3b5a-7162-4a5a-85b7-ec1b2824f554"
      }
    }]
  }
}
”

The following JSON output is returned based on the command input.

{
  "values": [
    {
      "underlyingValue": {
        "type": "entityRef",
        "componentId": null,
        "classId": "AmazonSecurityGroup",
        "id": "9",
        "label": "test1"
      },
      "label": "test1"
    },
    {
      "underlyingValue": {
        "type": "entityRef",
        "componentId": null,
        "classId": "AmazonSecurityGroup",
        "id": "10",
        "label": "default"
      },
      "label": "default"
    }
  ]
}