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.5.0).
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.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 Note that this option has no effect if Choices:
|
|
The password for the Robot web-service user. If |
|
The API token for the Robot web-service user. One of |
|
The username for the Robot web-service user. One of If |
|
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 groups: community.hrobot.api, 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 |
|
Access settings for the storage box. Returned: when |
|
Whether the storage box is accessible from outside Hetzner’s network. Returned: success Sample: |
|
Whether SAMBA is enabled. Returned: success Sample: |
|
Whether SSH is enabled. Returned: success Sample: |
|
Whether WebDAV is enabled. Returned: success Sample: |
|
Whether ZFS is enabled. Returned: success Sample: |
|
Whether the storage box has been cancelled. The cancellation can still be un-done until Returned: success and Sample: |
|
Creation timestamp in ISO 8601 format. Returned: when Sample: |
|
Total amount of MB available. Note that this is copied from Returned: when Sample: |
|
The amount of MB in use. Note that this is copied from Returned: when Sample: |
|
The amount of MB used by files. Note that this is copied from Returned: when Sample: |
|
The amount of MB used by snapshots. Note that this is copied from Returned: when Sample: |
|
Whether the storage box is reachable externally. Note that this is copied from Returned: when Sample: |
|
Identifier of the storage box’s host. Returned: when Sample: |
|
The storage box’s ID. Returned: success Sample: |
|
User-defined labels for the storage box. Returned: when |
|
The ID (server number) of the connected server, if available. Is Returned: success and Sample: |
|
The storage box’s location. This is a string if Returned: success Sample: |
|
The storage box’s login name. Note that this is copied from Returned: success Sample: |
|
The date until which the storage box has been paid for. Returned: success and Sample: |
|
Protection configuration for the storage box. Returned: when |
|
Whether deletion of the storage box is disabled. Returned: success Sample: |
|
Whether SAMBA is active. Note that this is copied from Returned: when Sample: |
|
The storage box’s hostname. Returned: when Sample: |
|
The snapshot plan for the storage box. Will be Returned: when |
|
Day of the month the snapshot plan is executed. Will be Returned: success |
|
Day of the week the snapshot plan is executed. Will be Returned: success |
|
Hour the snapshot plan is executed (in UTC). Will be Returned: success |
|
Maximum number of automatic snapshots to be kept. Returned: success Sample: |
|
Minute the snapshot plan is executed (in UTC). Will be Returned: success |
|
Whether SSH is active. Note that this is copied from Returned: when Sample: |
|
Information on disk usage. Returned: when |
|
Current disk usage in bytes. Returned: success Sample: |
|
Current disk usage for data in bytes. Returned: success Sample: |
|
Current disk usage for snapshots in bytes. Returned: success Sample: |
|
Status of the storage box. Returned: when Can only return:
Sample: |
|
Information on the storage box’s type. Returned: when |
|
Maximum number of snapshots created automatically by a snapshot plan. Returned: success Sample: |
|
Set to If set to a dictionary, this storage box’s type is deprecated. Returned: success |
|
ISO 8601 timestamp when the deprecation was announced. Returned: success Sample: |
|
ISO 8601 timestamp when the resource will be removed. Returned: success Sample: |
|
Description of the storage box’s type. Returned: success Sample: |
|
Identifier of the storage box’s type. Returned: success Sample: |
|
Price per location. Returned: success |
|
Name of the location. Returned: success Sample: |
|
The hourly rate. Returned: success |
|
Hourly price (with VAT). Returned: success Sample: |
|
Hourly price (without VAT). Returned: success Sample: |
|
The monthly rate. Returned: success |
|
Monthly price (with VAT). Returned: success Sample: |
|
Monthly price (without VAT). Returned: success Sample: |
|
The setup fee. Returned: success |
|
Setup fee (with VAT). Returned: success Sample: |
|
Setup fee (without VAT). Returned: success Sample: |
|
Available storage in bytes. Returned: success Sample: |
|
Maximum number of allowed manual snapshots. Returned: success Sample: |
|
Maximum number of allowed subaccounts. Returned: success Sample: |
|
Identifier of the storage box’s host. Returned: when Sample: |
|
Whether WebDAV is active. Note that this is copied from Returned: when Sample: |
|
Shows whether the ZFS directory is visible. Note that this is copied from Returned: when Sample: |