community.hrobot.storagebox_snapshot_plan_info module – Query the snapshot plans for a storage box
Note
This module is part of the community.hrobot collection (version 2.7.2).
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_snapshot_plan_info.
New in community.hrobot 2.1.0
Synopsis
- Query the snapshot plans for a storage box.
Parameters
Parameter | Comments |
|---|---|
hetzner_password string | The password for the Robot web-service user. If This option is deprecated for this module, and support will be removed in community.hrobot 3.0.0. |
hetzner_token string added in community.hrobot 2.5.0 | The API token for the Robot web-service user. One of This option will be required from community.hrobot 3.0.0 on. |
hetzner_user string | The username for the Robot web-service user. One of If This option is deprecated for this module, and support will be removed in community.hrobot 3.0.0. |
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 / required | The ID of the storage box to query. |
Attributes
Attribute | Support | Description |
|---|---|---|
action_group | Action groups: community.hrobot.api, community.hrobot.robot | Use The |
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 the snapshot plans
community.hrobot.storagebox_snapshot_plan_info:
hetzner_user: foo
hetzner_password: bar
id: 123
register: result
- name: Output data
ansible.builtin.debug:
msg: "Status of the first snapshot plan: {{ result.plans[0].status }}"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key | Description |
|---|---|
plans list / elements=dictionary | The storage box’s snapshot plan configurations. All date and time parameters are in UTC. Returned: success |
|
day_of_month integer |
The day of month of execution of the plan. If set to Returned: success |
|
day_of_week integer |
The day of the week of execution of the plan. If set to Returned: success Sample: |
|
hour integer |
The hour of execution of the plan. Returned: success Sample: |
|
max_snapshots integer |
The maximum number of automatic snapshots of this plan. Returned: success Sample: |
|
minute integer |
The minute of execution of the plan. Returned: success Sample: |
|
month integer |
The month of execution of the plan. If set to Always This return value is deprecated and will be removed from community.hrobot 3.0.0. If you are using ansible-core 2.19 or newer, you will see a deprecation message when using this return value when using Returned: success |
|
status string |
The status of the snapshot plan. Returned: success Can only return:
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/projects/ansible/latest/collections/community/hrobot/storagebox_snapshot_plan_info_module.html