ansible.builtin.scaleway_security_group_info (v2.9.27) — module

Gather information about the Scaleway security groups available.

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

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

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

Gather information about the Scaleway security groups available.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Gather Scaleway security groups information
  scaleway_security_group_info:
    region: par1
  register: result
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- debug:
    msg: "{{ result.scaleway_security_group_info }}"

Inputs

    
region:
    choices:
    - ams1
    - EMEA-NL-EVS
    - par1
    - EMEA-FR-PAR1
    description:
    - Scaleway region to use (for example C(par1)).
    required: true

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_security_group_info:
  description: Response from Scaleway API
  returned: success
  sample:
    scaleway_security_group_info:
    - description: test-ams
      enable_default_security: true
      id: 7fcde327-8bed-43a6-95c4-6dfbc56d8b51
      name: test-ams
      organization: 3f709602-5e6c-4619-b80c-e841c89734af
      organization_default: false
      servers:
      - id: 12f19bc7-108c-4517-954c-e6b3d0311363
        name: scw-e0d158
  type: complex