ansible.builtin.cs_domain (v2.3.2.0-1) — module

Manages domains on Apache CloudStack based clouds.

| "added in version" 2.0 of ansible.builtin"

Authors: René Moser (@resmo)

stableinterface | supported by community

Install Ansible via pip

Install with pip install ansible==2.3.2.0.post1

Description

Create, update and remove domains.


Requirements

Inputs

    
path:
    description:
    - Path of the domain.
    - Prefix C(ROOT/) or C(/ROOT/) in path is optional.
    required: true

state:
    choices:
    - present
    - absent
    default: present
    description:
    - State of the domain.
    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

clean_up:
    default: false
    description:
    - Clean up all domain resources like child domains and accounts.
    - Considered on C(state=absent).
    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

poll_async:
    default: true
    description:
    - Poll async jobs until job has finished.
    required: false

api_timeout:
    default: 10
    description:
    - HTTP timeout in seconds.
    - If not given, the C(CLOUDSTACK_TIMEOUT) env variable is considered.
    type: int

network_domain:
    default: null
    description:
    - Network domain for networks in the domain.
    required: false

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

Outputs

id:
  description: UUID of the domain.
  returned: success
  sample: 87b1e0ce-4e01-11e4-bb66-0050569e64b8
  type: string
name:
  description: Name of the domain.
  returned: success
  sample: customers
  type: string
network_domain:
  description: Network domain of the domain.
  returned: success
  sample: example.local
  type: string
parent_domain:
  description: Parent domain of the domain.
  returned: success
  sample: ROOT
  type: string
path:
  description: Domain path.
  returned: success
  sample: /ROOT/customers
  type: string