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 NameDescriptionRequired
domainidIf 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
accountUpdate resource count for a specified account. Must be used with the domainId parameter.false
projectidUpdate resource limits for projectfalse
resourcetypeType 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 NameDescription
accountthe account for which resource count's are updated
domainthe domain name for which resource count's are updated
domainidthe domain ID for which resource count's are updated
projectthe project name for which resource count's are updated
projectidthe project id for which resource count's are updated
resourcecountresource count
resourcetyperesource type. Values include 0, 1, 2, 3, 4. See the resourceType parameter for more information on these values.