Skip to main content

zone_contents

Creates, updates, deletes, gets or lists a zone_contents resource.

Overview​

Namezone_contents
TypeResource
Idoci.dns.zone_contents

Fields​

The following fields are returned by SELECT queries:

A response containing a binary zone file.

NameDatatypeDescription

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectzoneNameOrId, regionIf-None-Match, If-Modified-Since, opc-request-id, scope, viewIdGets 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.

NameDatatypeDescription
regionstringOCI 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)
zoneNameOrIdstringThe name or OCID of the target zone.
If-Modified-SincestringThe 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-MatchstringThe 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-idstringUnique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
scopestringSpecifies to operate only on resources that have a matching DNS scope.
viewIdstringThe OCID of the view the zone is associated with. Required when accessing a private zone by name.

SELECT examples​

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 }}'
;