HP OneView REST API Reference
licenses
licenses.html[10/17/2013 10:35:45 AM]
current release, this must be set to "X-API-Version:3"
Response Description
LicenseList A paginated list of licenses resources.
Response Codes
REST API Response Codes
Examples
List all the licenses and the nodes that are assigned to
those licenses:
GET: https://{appl}/rest/licenses
List all the licenses for the product named 'HP
OneView':
GET: https://{appl}/rest/licenses?filter=
"product='HP Product 123'"
List the license assigned to the node supplied in the
filter:
GET: https://{appl}/rest/licenses?filter=
"nodeId='37333036-3831-4753-4831-5835524E2020'"
List all the nodes that are not yet licensed to a
particular product:
GET: https://{appl}/rest/licenses?filter=
"licenseType ='Unlicensed'"&filter=
"product='HP Product 123'"
List all the nodes that are not yet assigned to a
license
key:
GET: https://{appl}/rest/licenses?filter=
"licenseType ='Unlicensed'"
GET Provides a summary report of licenses per product
Parameter Attributes Description
start Optional The 0-based index of the first resource to return (start=0 starts
with the first available resource). If the specified count does not
return all resources within the maximum allowed time (see count),
use the start parameter to view additional resource pages. The
default value for start is 0 (first available resource).
count Optional Optional parameter that specifies the number of resources to return
from each API invocation. The number of resources returned on
each call is referred to as a page. If you specify a count, the API
attempts to return the specified number of resources, however this
may be limited due to response time constraints and/or actual
number of resources available to return. The results include the total
number of resources that match the filter or query, the actual
count returned, and the URIs to go to the next page, previous page,