community.general.scaleway_ip_info (8.5.0) — module

Gather information about the Scaleway ips available

Authors: Yanis Guenane (@Spredzy), Remy Leone (@remyleone)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

Gather information about the Scaleway ips available.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Gather Scaleway ips information
  community.general.scaleway_ip_info:
    region: par1
  register: result
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- ansible.builtin.debug:
    msg: "{{ result.scaleway_ip_info }}"

Inputs

    
region:
    choices:
    - ams1
    - EMEA-NL-EVS
    - par1
    - EMEA-FR-PAR1
    - par2
    - EMEA-FR-PAR2
    - waw1
    - EMEA-PL-WAW1
    description:
    - Scaleway region to use (for example C(par1)).
    required: true
    type: str

api_url:
    aliases:
    - base_url
    default: https://api.scaleway.com
    description:
    - Scaleway API URL.
    type: str

api_token:
    aliases:
    - oauth_token
    description:
    - Scaleway OAuth token.
    required: true
    type: str

api_timeout:
    aliases:
    - timeout
    default: 30
    description:
    - HTTP timeout to Scaleway API in seconds.
    type: int

validate_certs:
    default: true
    description:
    - Validate SSL certs of the Scaleway API.
    type: bool

query_parameters:
    default: {}
    description:
    - List of parameters passed to the query string.
    type: dict

Outputs

scaleway_ip_info:
  description:
  - Response from Scaleway API.
  - 'For more details please refer to: U(https://developers.scaleway.com/en/products/instance/api/).'
  elements: dict
  returned: success
  sample:
    scaleway_ip_info:
    - address: 163.172.170.243
      id: ea081794-a581-8899-8451-386ddaf0a451
      organization: 3f709602-5e6c-4619-b80c-e324324324af
      reverse: null
      server:
        id: 12f19bc7-109c-4517-954c-e6b3d0311363
        name: scw-e0d158
  type: list