community.general.scaleway_function_namespace module – Scaleway Function namespace management
Note
This module is part of the community.general collection (version 10.7.5).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.general.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: community.general.scaleway_function_namespace.
New in community.general 6.0.0
Synopsis
- This module manages function namespaces on Scaleway account. 
Requirements
The below requirements are needed on the host that executes this module.
- passlib[argon2] >= 1.7.4 
Parameters
| Parameter | Comments | 
|---|---|
| HTTP timeout to Scaleway API in seconds. Default:  | |
| Scaleway OAuth token. | |
| Scaleway API URL. Default:  | |
| Description of the function namespace. Default:  | |
| Environment variables of the function namespace. Injected in functions at runtime. Default:  | |
| Name of the function namespace. | |
| Project identifier. | |
| List of parameters passed to the query string. Default:  | |
| Scaleway region to use (for example  Choices: 
 | |
| Secret environment variables of the function namespace. Updating those values will not output a  Injected in functions at runtime. Default:  | |
| Indicate desired state of the function namespace. Choices: 
 | |
| Validate SSL certs of the Scaleway API. Choices: 
 | |
| Wait for the resource to reach its desired state before returning. Choices: 
 | |
| Time to wait before every attempt to check the state of the resource. Default:  | |
| Time to wait for the resource to reach the expected state. Default:  | 
Attributes
| Attribute | Support | Description | 
|---|---|---|
| Support: full | Can run in  | |
| Support: none | Will return details on what has changed (or possibly needs changing in  | 
Notes
Note
- Also see the API documentation on https://developer.scaleway.com/. 
- If - api_tokenis not set within the module, the following environment variables can be used in decreasing order of precedence- SCW_TOKEN,- SCW_API_KEY,- SCW_OAUTH_TOKENor- SCW_API_TOKEN.
- If one wants to use a different - api_urlone can also set the- SCW_API_URLenvironment variable.
Examples
- name: Create a function namespace
  community.general.scaleway_function_namespace:
    project_id: '{{ scw_project }}'
    state: present
    region: fr-par
    name: my-awesome-function-namespace
    environment_variables:
      MY_VAR: my_value
    secret_environment_variables:
      MY_SECRET_VAR: my_secret_value
  register: function_namespace_creation_task
- name: Make sure function namespace is deleted
  community.general.scaleway_function_namespace:
    project_id: '{{ scw_project }}'
    state: absent
    region: fr-par
    name: my-awesome-function-namespace
Return Values
Common return values are documented here, the following are the fields unique to this module:
| Key | Description | 
|---|---|
| The function namespace information. Returned: when  Sample:  | 
