ansible / ansible.builtin / v2.5.11 / module / cs_resourcelimit Manages resource limits on Apache CloudStack based clouds. | "added in version" 2.1 of ansible.builtin" Authors: René Moser (@resmo) stableinterface | supported by communityansible.builtin.cs_resourcelimit (v2.5.11) — module
pip
Install with pip install ansible==2.5.11
Manage limits of resources for domains, accounts and projects.
# Update a resource limit for instances of a domain - local_action: module: cs_resourcelimit type: instance limit: 10 domain: customers
# Update a resource limit for instances of an account - local_action: module: cs_resourcelimit type: instance limit: 12 account: moserre domain: customers
limit: aliases: - max default: -1 description: - Maximum number of the resource. - Default is unlimited C(-1). required: false domain: default: null description: - Domain the resource is related to. required: false account: default: null description: - Account the resource is related to. required: false api_key: description: - API key of the CloudStack API. - If not given, the C(CLOUDSTACK_KEY) env variable is considered. required: true type: str api_url: description: - URL of the CloudStack API e.g. https://cloud.example.com/client/api. - If not given, the C(CLOUDSTACK_ENDPOINT) env variable is considered. required: true type: str project: default: null description: - Name of the project the resource is related to. required: false api_secret: description: - Secret key of the CloudStack API. - If not set, the C(CLOUDSTACK_SECRET) env variable is considered. required: true type: str api_timeout: default: 10 description: - HTTP timeout in seconds. - If not given, the C(CLOUDSTACK_TIMEOUT) env variable is considered. type: int resource_type: aliases: - type choices: - instance - ip_address - volume - snapshot - template - network - vpc - cpu - memory - primary_storage - secondary_storage description: - Type of the resource. required: true api_http_method: choices: - get - post default: get description: - HTTP method used to query the API endpoint. - If not given, the C(CLOUDSTACK_METHOD) env variable is considered. type: str api_verify_ssl_cert: description: - Verify CA authority cert file. - If not given, the C(CLOUDSTACK_VERIFY) env variable is considered. type: str
account: description: Account the resource is related to. returned: success sample: example account type: string domain: description: Domain the resource is related to. returned: success sample: example domain type: string limit: description: Maximum number of the resource. returned: success sample: -1 type: int project: description: Project the resource is related to. returned: success sample: example project type: string recource_type: description: Type of the resource returned: success sample: instance type: string