You can display resource schema, such as storage and network information, for an Amazon EC2 reservation by using the data and schema service.

Prerequisites

Procedure

Display resource schema, such as storage and network information.
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"
    }
  ]
}