hetzner.hcloud.zone_rrset_info module – Gather infos about your Hetzner Cloud Zone RRSets.
Note
This module is part of the hetzner.hcloud collection (version 5.4.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 hetzner.hcloud
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: hetzner.hcloud.zone_rrset_info
.
Synopsis
Gather infos about your Hetzner Cloud Zone RRSets.
See the Zone RRSets API documentation for more details.
Experimental: DNS API is in beta, breaking changes may occur within minor releases. See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta for more details.
Aliases: hcloud_zone_rrset_info
Requirements
The below requirements are needed on the host that executes this module.
python-dateutil >= 2.7.5
requests >=2.20
Parameters
Parameter |
Comments |
---|---|
The API Endpoint for the Hetzner Cloud. You can also set this option by using the Default: |
|
The API Token for the Hetzner Cloud. You can also set this option by using the |
|
ID of the Zone RRSet you want to get. |
|
Label selector to filter the Zone RRSets you want to get. |
|
Name of the Zone RRSets you want to get. |
|
Type of the Zone RRSets you want to get. |
|
Name or ID of the parent Zone. |
See Also
See also
- Documentation for Hetzner Cloud API
Complete reference for the Hetzner Cloud API.
Examples
- name: Gather Zone RRSet infos
hetzner.hcloud.zone_rrset_info:
register: output
- name: Print the gathered infos
debug:
var: output.hcloud_zone_rrset_info
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Zone RRSet infos as list. Returned: always |
|
Protect the Zone RRSet from changes (deletion and updates). Returned: always Sample: |
|
ID of the Zone RRSet. Returned: always Sample: |
|
User-defined labels (key-value pairs) Returned: always Sample: |
|
Name of the Zone RRSet. Returned: always Sample: |
|
Record of the Zone RRSet. Returned: always |
|
Comment of the Record. Returned: always Sample: |
|
Value of the Record. Returned: always Sample: |
|
TTL of the Zone RRSet. Returned: always Sample: |
|
Mode of the Zone RRSet. Returned: always Sample: |
|
ID of the parent Zone. Returned: always Sample: |