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 |
|---|---|
full_info boolean | Whether to provide full information for every storage box. Setting this to When Note that this option has no effect if Choices:
|
hetzner_password string | The password for the Robot web-service user. If |
hetzner_token string added in community.hrobot 2.5.0 | The API token for the Robot web-service user. One of |
hetzner_user string | The username for the Robot web-service user. One of If |
linked_server_number integer | Limit result list to storage boxes linked to the server with this number. Ignored when |
rate_limit_retry_timeout integer added in community.hrobot 2.1.0 | Timeout (in seconds) for waiting when rate limit exceeded errors are returned. Set to Set to a negative value like Default: |
storagebox_id integer | Limit result list to storage boxes with this ID. |
Attributes
Attribute | Support | Description |
|---|---|---|
action_group | Action groups: community.hrobot.api, community.hrobot.robot | Use |
check_mode | Support: full This action does not modify state. | Can run in |
diff_mode | Support: N/A This action does not modify state. | Will return details on what has changed (or possibly needs changing in |
idempotent | 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 |
|---|---|
storageboxes list / elements=dictionary | List of storage boxes matching the provided options. Returned: success |
|
access_settings dictionary added in community.hrobot 2.5.0 |
Access settings for the storage box. Returned: when |
|
reachable_externally boolean |
Whether the storage box is accessible from outside Hetzner’s network. Returned: success Sample: |
|
samba_enabled boolean |
Whether SAMBA is enabled. Returned: success Sample: |
|
ssh_enabled boolean |
Whether SSH is enabled. Returned: success Sample: |
|
webdav_enabled boolean |
Whether WebDAV is enabled. Returned: success Sample: |
|
zfs_enabled boolean |
Whether ZFS is enabled. Returned: success Sample: |
|
cancelled boolean |
Whether the storage box has been cancelled. The cancellation can still be un-done until Returned: success and Sample: |
|
created string added in community.hrobot 2.5.0 |
Creation timestamp in ISO 8601 format. Returned: when Sample: |
|
disk_quota integer |
Total amount of MB available. Note that this is copied from Returned: when Sample: |
|
disk_usage integer |
The amount of MB in use. Note that this is copied from Returned: when Sample: |
|
disk_usage_data integer |
The amount of MB used by files. Note that this is copied from Returned: when Sample: |
|
disk_usage_snapshots integer |
The amount of MB used by snapshots. Note that this is copied from Returned: when Sample: |
|
external_reachability boolean |
Whether the storage box is reachable externally. Note that this is copied from Returned: when Sample: |
|
host_system string |
Identifier of the storage box’s host. Returned: when Sample: |
|
id integer |
The storage box’s ID. Returned: success Sample: |
|
labels dictionary added in community.hrobot 2.5.0 |
User-defined labels for the storage box. Returned: when |
|
linked_server integer |
The ID (server number) of the connected server, if available. Is Returned: success and Sample: |
|
location any |
The storage box’s location. This is a string if Returned: success Sample: |
|
locked boolean | |
|
login string |
The storage box’s login name. Note that this is copied from Returned: success Sample: |
|
name string | |
|
paid_until string |
The date until which the storage box has been paid for. Returned: success and Sample: |
|
product string | |
|
protection dictionary added in community.hrobot 2.5.0 |
Protection configuration for the storage box. Returned: when |
|
delete boolean |
Whether deletion of the storage box is disabled. Returned: success Sample: |
|
samba boolean |
Whether SAMBA is active. Note that this is copied from Returned: when Sample: |
|
server string |
The storage box’s hostname. Returned: when Sample: |
|
snapshot_plan dictionary added in community.hrobot 2.5.0 |
The snapshot plan for the storage box. Will be Returned: when |
|
day_of_month integer |
Day of the month the snapshot plan is executed. Will be Returned: success |
|
day_of_week integer |
Day of the week the snapshot plan is executed. Will be Returned: success |
|
hour integer |
Hour the snapshot plan is executed (in UTC). Will be Returned: success |
|
max_snapshots integer |
Maximum number of automatic snapshots to be kept. Returned: success Sample: |
|
minute integer |
Minute the snapshot plan is executed (in UTC). Will be Returned: success |
|
ssh boolean |
Whether SSH is active. Note that this is copied from Returned: when Sample: |
|
stats dictionary added in community.hrobot 2.5.0 |
Information on disk usage. Returned: when |
|
size integer |
Current disk usage in bytes. Returned: success Sample: |
|
size_data integer |
Current disk usage for data in bytes. Returned: success Sample: |
|
size_snapshots integer |
Current disk usage for snapshots in bytes. Returned: success Sample: |
|
status string added in community.hrobot 2.5.0 |
Status of the storage box. Returned: when Can only return:
Sample: |
|
storage_box_type dictionary added in community.hrobot 2.5.0 |
Information on the storage box’s type. Returned: when |
|
automatic_snapshot_limit integer |
Maximum number of snapshots created automatically by a snapshot plan. Returned: success Sample: |
|
deprecation dictionary |
Set to If set to a dictionary, this storage box’s type is deprecated. Returned: success |
|
announced string |
ISO 8601 timestamp when the deprecation was announced. Returned: success Sample: |
|
string |
ISO 8601 timestamp when the resource will be removed. Returned: success Sample: |
|
description string |
Description of the storage box’s type. Returned: success Sample: |
|
name string |
Identifier of the storage box’s type. Returned: success Sample: |
|
prices list / elements=dictionary |
Price per location. Returned: success |
|
location string |
Name of the location. Returned: success Sample: |
|
price_hourly dictionary |
The hourly rate. Returned: success |
|
gross string |
Hourly price (with VAT). Returned: success Sample: |
|
net string |
Hourly price (without VAT). Returned: success Sample: |
|
price_monthly dictionary |
The monthly rate. Returned: success |
|
gross string |
Monthly price (with VAT). Returned: success Sample: |
|
net string |
Monthly price (without VAT). Returned: success Sample: |
|
setup_fee dictionary |
The setup fee. Returned: success |
|
gross string |
Setup fee (with VAT). Returned: success Sample: |
|
net string |
Setup fee (without VAT). Returned: success Sample: |
|
size integer |
Available storage in bytes. Returned: success Sample: |
|
snapshot_limit integer |
Maximum number of allowed manual snapshots. Returned: success Sample: |
|
subaccounts_limit integer |
Maximum number of allowed subaccounts. Returned: success Sample: |
|
system string added in community.hrobot 2.5.0 |
Identifier of the storage box’s host. Returned: when Sample: |
|
username string added in community.hrobot 2.5.0 | |
|
webdav boolean |
Whether WebDAV is active. Note that this is copied from Returned: when Sample: |
|
zfs boolean |
Shows whether the ZFS directory is visible. Note that this is copied from Returned: when Sample: |
Collection links
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/hrobot/storagebox_info_module.html