7.3

Table Of Contents
Property Description
underlyingValue Contains a JSON string representing one permissible value of field.
n
type
Specifies one of the following permissible value data types.
n
entityRef - Indicates that the object references a vRealize Automation entity.
n
complexRef - Indicates that the object is a user-defined complex structure, for example struct
in C or Pojo in Java.
n
primary - Indicates the entity type such as string, integer, and so on.
n
componentId
Specifies the component ID.
n
classId
Specifies the schema class ID of the current data type.
n
Id
Specifies the unique compute resource identifier.
label Contains the compute resource label. This value matches the underlyingValue.label.
Example: curl Command for a vSphere reservation
The following command retrieves a compute resource for a vSphere reservation.
curl --insecure -H "Accept:application/json"
-H "Authorization: Bearer $token"
https://$vRA/reservation-service/api/data-
service/schema/Infrastructure.Reservation.Virtual.vSphere/default/computeResource/values -d “{}”
Example: curl Command for an Amazon EC2 reservation
The following command retrieves a compute resource for an Amazon EC2 reservation.
curl --insecure -H "Accept:application/json"
-H "Authorization: Bearer $token"
https://$vRA/reservation-service/api/data-
service/schema/Infrastructure.Reservation.Cloud.Amazon/default/computeResource/values -d “{}”
Example: curl Command for a vCloud reservation
The following command retrieves a compute resource for a vCloud reservation.
curl --insecure -H "Accept:application/json"
-H "Authorization: Bearer $token"
https://$vRA/reservation-service/api/data-
service/schema/Infrastructure.Reservation.Cloud.vCloud/default/computeResource/values -d “{}”
Programming Guide
VMware, Inc. 237