ngine_io / ngine_io.cloudstack / 2.3.0 / module / cs_region Manages regions on Apache CloudStack based clouds. | "added in version" 0.1.0 of ngine_io.cloudstack" Authors: René Moser (@resmo)ngine_io.cloudstack.cs_region (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
Add, update and remove regions.
- name: create a region ngine_io.cloudstack.cs_region: id: 2 name: geneva endpoint: https://cloud.gva.example.com
- name: remove a region with ID 2 ngine_io.cloudstack.cs_region: id: 2 state: absent
id: description: - ID of the region. - Must be an number (int). required: true type: int name: description: - Name of the region. - Required if I(state=present) type: str state: choices: - present - absent default: present description: - State of the region. 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 endpoint: description: - Endpoint URL of the region. - Required if I(state=present) 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 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
endpoint: description: Endpoint of the region. returned: success sample: http://cloud.example.com type: str gslb_service_enabled: description: Whether the GSLB service is enabled or not. returned: success sample: true type: bool id: description: ID of the region. returned: success sample: 1 type: int name: description: Name of the region. returned: success sample: local type: str portable_ip_service_enabled: description: Whether the portable IP service is enabled or not. returned: success sample: true type: bool