Get License Records
Get License Records
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Query Parameters
Request Inputs
Query Parameters
limitIntegerMaximum number of records to return, similar to MySQL limit. Default value is 20
startIntegerStarting query record position, similar to MySQL offset. Used with limit to implement pagination
replyWithCountbooleanCount query. Specifies whether to return the data record count along with the results. When set to true, the API returns both data records and the total count of records that match the query conditions
countbooleanCount query, equivalent to the count() function in MySQL. When set to true, the API only returns the count of records that match the query conditions
sortByStringSort by field, equivalent to the sort by keyword in MySQL, for example sortBy=ip. Must be used with sortDirection
Responses
Endpoint
GET/zstack/v1/licenses/records
/zstack/v1/licenses/records
Request Example
curl -X GET 'http://{host}/zstack/v1/licenses/records?limit=1&start=1&replyWithCount=True&count=True&sortBy=<sortBy>&sortDirection=<sortDirection>&systemTags=<systemTags>&userTags=<userTags>' -H 'Authorization: OAuth {sessionUuid}'
Response Example
200{ "inventories": [ { "user": "example", "hostNum": 10.0, "licenseType": "Free", "issuedDate": "2017-01-19 14:31:06", "managementNodeUuid": "00898b3538e53e70bb7521e54ff80276", "expired": true } ], "total": 1.0 }Change History
This API has no change history records yet.
