7.3

Table Of Contents
Property Description
hasLease Returns true if the resource is subject to a lease.
lease Displays the resource's current lease as start and end time stamps.
leaseForDisplay Specifies the resource's current lease, #getLease, with time units synchronized with #getCosts.
hasCosts Returns true if the resource is subject to per-time price.
costs Displays an optional rate of the price charges for the resource. This parameter is deprecated.
costToDate Displays an optional rate of the current price charges for the resource. This parameter is deprecated.
totalCost Displays an optional rate of the price charges for the entire lease period. This parameter is deprecated.
expenseMonthToDate The expense of the resource from the beginning of the month to the current date. This value is updated
daily by vRealize Business for Cloud.
parentResourceRef Displays the parent of this resource.
childResources Displays the children of this resource.
operations Specifies the sequence of available operations that can be performed on this resource.
forms Specifies the forms used to render this resource.
resourceData Displays the extended provider-defined properties of the resource.
Example: Retrieve 10,000 Resources Ordered By Name
Since the catalog service limits the number of elements that can be retrieved with a single API call to
5000, retrieving 10,000 resources requires two calls. The first call displays the first 5000 elements and the
second call displays the second 5000 elements. You can make the two calls by specifying either the page
and limit values or the skip and top values.
Specifying page and limit values, you make the following two calls.
curl --insecure -H "Content-Type: application/json" -H "Accept: application/json"
-H "Authorization: $AUTH" "https://$vRA/catalog-service/api/consumer/resources/?page=1&limit=5000&
$orderby=name"
curl --insecure -H "Content-Type: application/json" -H "Accept: application/json"
-H "Authorization: $AUTH" "https://$vRA/catalog-service/api/consumer/resources/?page=2&limit=5000&
$orderby=name"
Specifying skip and top values, you make the following two calls.
curl --insecure -H "Content-Type: application/json" -H "Accept: application/json"
-H "Authorization: $AUTH" "https://$vRA/catalog-service/api/consumer/resources/?$skip=0&$top=5000&
$orderby=name"
curl --insecure -H "Content-Type: application/json" -H "Accept: application/json"
-H "Authorization: $AUTH" "https://$vRA/catalog-service/api/consumer/resources/?$skip=5000&
$top=5000&$orderby=name"
If both page and limit values and skip and top values are specified, the skip and top values take priority.
Programming Guide
VMware, Inc. 88