ngine_io / ngine_io.cloudstack / 2.3.0 / module / cs_resourcelimit Manages resource limits on Apache CloudStack based clouds. | "added in version" 0.1.0 of ngine_io.cloudstack" Authors: René Moser (@resmo)ngine_io.cloudstack.cs_resourcelimit (2.3.0) — module
Install with ansible-galaxy collection install ngine_io.cloudstack:==2.3.0
collections: - name: ngine_io.cloudstack version: 2.3.0
Manage limits of resources for domains, accounts and projects.
- name: Update a resource limit for instances of a domain ngine_io.cloudstack.cs_resourcelimit: type: instance limit: 10 domain: customers
- name: Update a resource limit for instances of an account ngine_io.cloudstack.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). 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