cloudscale_ch.cloud.objects_user module – Manages objects users on the cloudscale.ch IaaS service
Note
This module is part of the cloudscale_ch.cloud collection (version 2.3.1).
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 cloudscale\_ch.cloud
.
To use it in a playbook, specify: cloudscale_ch.cloud.objects_user
.
New in cloudscale_ch.cloud 1.1.0
Synopsis
Create, update and remove objects users cloudscale.ch IaaS service.
Parameters
Parameter |
Comments |
---|---|
Timeout in seconds for calls to the cloudscale.ch API. This can also be passed in the Default: |
|
cloudscale.ch API token. This can also be passed in the |
|
cloudscale.ch API URL. This can also be passed in the Default: |
|
Display name of the objects user. Either display_name or id is required. |
|
Name of the objects user. Either display_name or id is required. |
|
State of the objects user. Choices:
|
|
Tags associated with the objects user. Set this to |
Notes
Note
All operations are performed using the cloudscale.ch public API v1.
For details consult the full API documentation: https://www.cloudscale.ch/en/api/v1.
A valid API token is required for all operations. You can create as many tokens as you like using the cloudscale.ch control panel at https://control.cloudscale.ch.
Examples
- name: Create an objects user
cloudscale_ch.cloud.objects_user:
display_name: alan
tags:
project: luna
api_token: xxxxxx
register: object_user
- name: print keys
debug:
var: object_user.keys
- name: Update an objects user
cloudscale_ch.cloud.objects_user:
display_name: alan
tags:
project: gemini
api_token: xxxxxx
- name: Remove an objects user
cloudscale_ch.cloud.objects_user:
display_name: alan
state: absent
api_token: xxxxxx
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The display name of the objects user. Returned: success Sample: |
|
The API URL to get details about this resource. Returned: success when state == present Sample: |
|
The ID of the objects user. Returned: success Sample: |
|
List of key objects. Returned: success |
|
The access key. Returned: success Sample: |
|
The secret key. Returned: success Sample: |
|
The current status of the objects user. Returned: success Sample: |
|
Tags assosiated with the objects user. Returned: success Sample: |