DNS Zones
This is a simple module that supports listing DNS Zones.
Example Syntax
name: List Zones
ionoscloudsdk.ionoscloud.dns_zone_info: null
register: zones_response
Returned object
{
"changed": false,
"zones": [
{
"id": "36d63502-7110-57f3-8794-a24fe8959d18",
"type": "zone",
"href": "/zones/36d63502-7110-57f3-8794-a24fe8959d18",
"metadata": {
"last_modified_date": "2023-10-05T14:38:51+00:00",
"created_date": "2023-10-05T14:38:51+00:00",
"state": "AVAILABLE",
"nameservers": [
"<NAMESERVER1>",
"<NAMESERVER2>",
"<NAMESERVER3>",
"<NAMESERVER4>"
]
},
"properties": {
"zone_name": "<ZONE_NAME>",
"description": "test_description",
"enabled": true
}
}
],
"failed": false
}
For more examples please check out the tests here.
Available parameters:
Name
Required
Description
filters dict
False
Filter that can be used to list only objects which have a certain set of propeties. Filters should be a dict with a key containing keys and value pair in the following format: 'properties.name': 'server_name'
api_url str
False
The Ionos API base URL.
certificate_fingerprint str
False
The Ionos API certificate fingerprint.
username str
False
The Ionos username. Overrides the IONOS_USERNAME environment variable.
password str
False
The Ionos password. Overrides the IONOS_PASSWORD environment variable.
token str
False
The Ionos token. Overrides the IONOS_TOKEN environment variable.
Last updated