Apache CloudStack v4.8.0 Domain 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, 4, 5, 6, 7, 8, 9, 10 and 11. 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. 5 - Project. Number of projects that a user can create. 6 - Network. Number of guest network a user can create. 7 - VPC. Number of VPC a user can create. 8 - CPU. Total number of CPU cores a user can use. 9 - Memory. Total Memory (in MB) a user can use. 10 - PrimaryStorage. Total primary storage space (in GiB) a user can use. 11 - SecondaryStorage. Total secondary storage space (in GiB) a user can use. 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, 5, 6, 7, 8, 9, 10, 11. See the resourceType parameter for more information on these values.