
Chapter 16: Utilization API
Description
Use this API to retrieve a list of resource utilization objects for the specified subscription.
Base URL
https://<host>:<port>/csa/rest
Details
URI
/utilization/<subscription_id>
See List subscriptions for user for information on obtaining subscription IDs.
Method GET
Parameters
userIdentifier=<user_id>
Required; the user ID you want to use as credentials for this API call. See "Get
userIdentifier" on page 91 for the steps required to get the userIdentifier value.
Returns 200 - Updated
404 - Not found
500 - Server exception
Example use context
An organization’s policy is to do resource provider selection based on available capacity for all
providers. The information returned by this API can be used to determine what resources are
already in use.
Example
The following URL was sent:
https://<host>:<port>/csa/rest/utilization/90cec3a03a667c69013a6d7f0eea2cb3
The following XML was returned in the response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<UtilizationList
<utilization>
<resourceBindingId>90e72d913d936a9a013d937bdb570161</resourceBindingId>
<resourcePool>
<id>90e72d913d936a9a013d936c74040006</id>
<objectId>90e72d913d936a9a013d936c74040006</objectId>
HP Cloud Service Automation (4.10) Page 145 of 150
Komentáře k této Příručce