CloudStack v2.2.13 - 2.2.14 Root Admin API Reference
updateResourceCount
Recalculate and update resource count for an account or domain.
Request parameters
Parameter Name | Description | Required |
domainid | If account parameter specified then updates resource counts for a specified account in this domain else update resource counts for all accounts & child domains in specified domain. | true |
account | Update resource count for a specified account. Must be used with the domainId parameter. | false |
projectid | Update resource limits for project | false |
resourcetype | Type of resource to update. If specifies valid values are 0, 1, 2, 3, and 4. If not specified will update all resource counts0 - Instance. Number of instances a user can create. 1 - IP. Number of public IP addresses a user can own. 2 - Volume. Number of disk volumes a user can create.3 - Snapshot. Number of snapshots a user can create.4 - Template. Number of templates that a user can register/create. | false |
Response Tags
Response Name | Description |
account | the account for which resource count's are updated |
domain | the domain name for which resource count's are updated |
domainid | the domain ID for which resource count's are updated |
project | the project name for which resource count's are updated |
projectid | the project id for which resource count's are updated |
resourcecount | resource count |
resourcetype | resource type. Values include 0, 1, 2, 3, 4. See the resourceType parameter for more information on these values. |