community.general.dnsimple_info module – Pull basic info from DNSimple API
Note
This module is part of the community.general collection (version 10.1.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.general
.
To use it in a playbook, specify: community.general.dnsimple_info
.
New in community.general 4.2.0
Synopsis
Retrieve existing records and domains from DNSimple API.
Parameters
Parameter |
Comments |
---|---|
The account ID to query. |
|
The API key to use. |
|
The domain name to retrieve info from. Will return all associated records for this domain if specified. If not specified, will return all domains associated with the account ID. |
|
The record to find. If specified, only this record will be returned instead of all records. |
|
Whether or not to use sandbox environment. Choices:
|
Attributes
Attribute |
Support |
Description |
---|---|---|
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 |
Examples
- name: Get all domains from an account
community.general.dnsimple_info:
account_id: "1234"
api_key: "1234"
- name: Get all records from a domain
community.general.dnsimple_info:
name: "example.com"
account_id: "1234"
api_key: "1234"
- name: Get all info from a matching record
community.general.dnsimple_info:
name: "example.com"
record: "subdomain"
account_id: "1234"
api_key: "1234"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Returns a list of dictionaries of all domains associated with the supplied account ID. Returned: success when Sample: |
|
The account ID. Returned: success |
|
When the domain entry was created. Returned: success |
|
ID of the entry. Returned: success |
|
Date the domain was transferred, or empty if not. Returned: success |
|
Name of the record. Returned: success |
|
Whether or not it is a reverse zone record. Returned: success |
|
When the domain entry was updated. Returned: success |
|
Returns a list of dictionaries that match the record supplied. Returned: success when Sample: |
|
Content of the returned record. Returned: success |
|
When the domain entry was created. Returned: success |
|
ID of the entry. Returned: success |
|
Name of the record. Returned: success |
|
Parent record or null. Returned: success |
|
Priority setting of the record. Returned: success |
|
List of regions where the record is available. Returned: success |
|
Whether or not it is a system record. Returned: success |
|
Record TTL. Returned: success |
|
Record type. Returned: success |
|
When the domain entry was updated. Returned: success |
|
ID of the zone that the record is associated with. Returned: success |
|
Returns a list of dictionaries with all records for the domain supplied. Returned: success when Sample: |
|
Content of the returned record. Returned: success |
|
When the domain entry was created. Returned: success |
|
ID of the entry. Returned: success |
|
Name of the record. Returned: success |
|
Parent record or null. Returned: success |
|
Priority setting of the record. Returned: success |
|
List of regions where the record is available. Returned: success |
|
Whether or not it is a system record. Returned: success |
|
Record TTL. Returned: success |
|
Record type. Returned: success |
|
When the domain entry was updated. Returned: success |
|
ID of the zone that the record is associated with. Returned: success |