zone_file
Creates, updates, deletes, gets or lists a zone_file resource.
Overview
| Name | zone_file |
| Type | Resource |
| Id | linode.domains.zone_file |
Fields
The following fields are returned by SELECT queries:
- get
An array containing the lines of the domain zone file.
| Name | Datatype | Description |
|---|
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | domainId | Returns the zone file for the last rendered zone for the specified domain. Learn more... Learn more... |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
domainId | string | ID of the Domain. (example: {{domainId}}) |
SELECT examples
- get
Returns the zone file for the last rendered zone for the specified domain.
Learn more...
Learn more...
SELECT
*
FROM linode.domains.zone_file
WHERE domainId = '{{ domainId }}' -- required
;