Cosmic Domain 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, 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 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, 5, 6, 7, 8, 9, 10, 11. See the resourceType parameter for more information on these values. |