community.hrobot.storagebox_info module – Query information on one or more storage boxes
Note
This module is part of the community.hrobot collection (version 2.3.0).
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.hrobot
.
To use it in a playbook, specify: community.hrobot.storagebox_info
.
New in community.hrobot 2.1.0
Synopsis
Query information on one or more storage box.
Parameters
Parameter |
Comments |
---|---|
Whether to provide full information for every storage box. Setting this to When Choices:
|
|
The password for the Robot web-service user. |
|
The username for the Robot web-service user. |
|
Limit result list to storage boxes linked to the server with this number. Ignored when |
|
Timeout (in seconds) for waiting when rate limit exceeded errors are returned. Set to Set to a negative value like Default: |
|
Limit result list to storage boxes with this ID. |
Attributes
Attribute |
Support |
Description |
---|---|---|
Action group: community.hrobot.robot |
Use |
|
Support: full This action does not modify state. |
Can run in |
|
Support: N/A This action does not modify state. |
Will return details on what has changed (or possibly needs changing in |
|
Support: full This action does not modify state. |
When run twice in a row outside check mode, with the same arguments, the second invocation indicates no change. This assumes that the system controlled/queried by the module has not changed in a relevant way. |
Examples
---
- name: Query a list of all storage boxes
community.hrobot.storagebox_info:
hetzner_user: foo
hetzner_password: bar
register: result
- name: Query a specific storage box
community.hrobot.storagebox_info:
hetzner_user: foo
hetzner_password: bar
storagebox_id: 23
register: result
- name: Output data on specific storage box
ansible.builtin.debug:
msg: "Storage box name: {{ result.storageboxes[0].name }}"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
List of storage boxes matching the provided options. Returned: success |
|
Whether the storage box has been cancelled. The cancellation can still be un-done until Returned: success Sample: |
|
The storage box’s ID. Returned: success Sample: |
|
The ID (server number) of the connected server, if available. Is Returned: success Sample: |
|
The storage box’s location. Returned: success Sample: |
|
Whether the IP is locked. Returned: success Sample: |
|
The storage box’s login name. Returned: success Sample: |
|
The storage box’s name. Returned: success Sample: |
|
The date until which the storage box has been paid for. Returned: success Sample: |
|
The product name. Returned: success Sample: |
|