ansible / ansible.builtin / v2.9.18 / 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.9.18) — module
pip
Install with pip install ansible==2.9.18
Manage limits of resources for domains, accounts and projects.
- name: Update a resource limit for instances of a domain cs_resourcelimit: type: instance limit: 10 domain: customers delegate_to: localhost
- name: Update a resource limit for instances of an account cs_resourcelimit: type: instance limit: 12 account: moserre domain: customers delegate_to: localhost
limit: aliases: - max default: -1 description: - Maximum number of the resource. - Default is unlimited C(-1). type: int domain: description: - Domain the resource is related to. type: str account: description: - Account the resource is related to. type: str 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: description: - Name of the project the resource is related to. type: str 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 type: str 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: str domain: description: Domain the resource is related to. returned: success sample: example domain type: str 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: str recource_type: description: Type of the resource returned: success sample: instance type: str