ansible / ansible.builtin / v2.3.2.0-1 / module / cs_region Manages regions on Apache CloudStack based clouds. | "added in version" 2.3 of ansible.builtin" Authors: René Moser (@resmo) preview | supported by communityansible.builtin.cs_region (v2.3.2.0-1) — module
pip
Install with pip install ansible==2.3.2.0.post1
Add, update and remove regions.
id: description: - ID of the region. - Must be an number (int). required: true name: default: null description: - Name of the region. - Required if C(state=present) required: false state: choices: - present - absent default: present description: - State of the region. 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 endpoint: default: null description: - Endpoint URL of the region. - Required if C(state=present) 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 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: string 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: string portable_ip_service_enabled: description: Whether the portable IP service is enabled or not returned: success sample: true type: bool