zone_contents
Creates, updates, deletes, gets or lists a zone_contents resource.
Overview​
| Name | zone_contents |
| Type | Resource |
| Id | oci.dns.zone_contents |
Fields​
The following fields are returned by SELECT queries:
- get
A response containing a binary zone file.
| Name | Datatype | Description |
|---|
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | zoneNameOrId, region | If-None-Match, If-Modified-Since, opc-request-id, scope, viewId | Gets the requested zone's zone file.<br /> |
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 |
|---|---|---|
region | string | OCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION) |
zoneNameOrId | string | The name or OCID of the target zone. |
If-Modified-Since | string | The If-Modified-Since header field makes a GET or HEAD request method conditional on the selected representation's modification date being more recent than the date provided in the field-value. Transfer of the selected representation's data is avoided if that data has not changed. |
If-None-Match | string | The If-None-Match header field makes the request method conditional on the absence of any current representation of the target resource, when the field-value is *, or having a selected representation with an entity-tag that does not match any of those listed in the field-value. |
opc-request-id | string | Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. |
scope | string | Specifies to operate only on resources that have a matching DNS scope. |
viewId | string | The OCID of the view the zone is associated with. Required when accessing a private zone by name. |
SELECT examples​
- get
Gets the requested zone's zone file.<br />
SELECT
*
FROM oci.dns.zone_contents
WHERE zoneNameOrId = '{{ zoneNameOrId }}' -- required
AND region = '{{ region }}' -- required
AND If-None-Match = '{{ If-None-Match }}'
AND If-Modified-Since = '{{ If-Modified-Since }}'
AND opc-request-id = '{{ opc-request-id }}'
AND scope = '{{ scope }}'
AND viewId = '{{ viewId }}'
;