community.general.scaleway_organization_info (8.5.0) — module

Gather information about the Scaleway organizations 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 organizations available.

Usage examples

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

Inputs

    
api_url:
    aliases:
    - base_url
    default: https://account.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_organization_info:
  description: Response from Scaleway API.
  elements: dict
  returned: success
  sample:
    scaleway_organization_info:
    - address_city_name: Paris
      address_country_code: FR
      address_line1: 42 Rue de l'univers
      address_line2: null
      address_postal_code: '75042'
      address_subdivision_code: FR-75
      creation_date: '2018-08-06T13:43:28.508575+00:00'
      currency: EUR
      customer_class: individual
      id: 3f709602-5e6c-4619-b80c-e8432ferewtr
      locale: fr_FR
      modification_date: '2018-08-06T14:56:41.401685+00:00'
      name: James Bond
      support_id: '694324'
      support_level: basic
      support_pin: '9324'
      users: []
      vat_number: null
      warnings: []
  type: list