Apache CloudStack 4.23.0.0 Root Admin API Reference
quotaResourceStatement
Generates a detailed Quota statement for a specific resource.
Request parameters
| Parameter Name | Description | Required |
| id | ID of the resource. | true |
| enddate | End date for the query. The recommended format is "yyyy-MM-dd'T'HH:mm:ssZ" (e.g.: "2023-01-01T12:00:00+0100"); however, the following formats are also accepted: "yyyy-MM-dd HH:mm:ss" (e.g.: "2023-01-01 12:00:00") and "yyyy-MM-dd" (e.g.: "2023-01-01" - if the time is not added, it will be interpreted as "23:59:59"). If the recommended format is not used, the date will be considered in the server timezone. | true |
| startdate | Start date for the query. The recommended format is "yyyy-MM-dd'T'HH:mm:ssZ" (e.g.: "2023-01-01T12:00:00+0100"); however, the following formats are also accepted: "yyyy-MM-dd HH:mm:ss" (e.g.: "2023-01-01 12:00:00") and "yyyy-MM-dd" (e.g.: "2023-01-01" - if the time is not added, it will be interpreted as "00:00:00"). If the recommended format is not used, the date will be considered in the server timezone. | true |
| usagetype | Usage type of the Quota usage. | true |
| accountid | Generate the statement for this Account. A resource may have belonged to different owners at distinct points in time, so this parameter can be used to only consider the period for which it belonged to a specific Account. | false |
| domainid | ID of the Domain for which the Quota statement will be generated. | false |
| isrecursive | Whether to include usage records from children of the filtered domain. Defaults to false. | false |
| projectid | Generate the statement for this Project. A resource may have belonged to different owners at distinct points in time, so this parameter can be used to only consider the period for which it belonged to a specific Project. | false |
Response Tags
| Response Name | Description |
| totalquota | Total amount of quota used. |
| unit | Unit of the usage type. |
| usagename | Name of the usage type. |
| items(*) | List of Quota tariff usages. |
| accountid | UUID of the resource's owner. |
| enddate | Item's end date. |
| quotaconsumed | Amount of quota used. |
| startdate | Item's start date. |
| tariffid | ID of the tariff. |
| tariffname | Name of the tariff. |