Skip to main content

zone_from_zone_files

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

Overview​

Namezone_from_zone_files
TypeResource
Idoci.dns.zone_from_zone_files

Fields​

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertcompartmentId, regionopc-request-id, opc-retry-token, scope, viewIdCreates a new zone from a zone file in the specified compartment. Not supported for private zones.<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
compartmentIdstringThe OCID of the compartment the resource belongs to.
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)
opc-request-idstringUnique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
opc-retry-tokenstringA token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
scopestringSpecifies to operate only on resources that have a matching DNS scope.
viewIdstringThe OCID of the view the resource is associated with.

INSERT examples​

Creates a new zone from a zone file in the specified compartment. Not supported for private zones.<br />

INSERT INTO oci.dns.zone_from_zone_files (
compartmentId,
region,
opc-request-id,
opc-retry-token,
scope,
viewId
)
SELECT
'{{ compartmentId }}',
'{{ region }}',
'{{ opc-request-id }}',
'{{ opc-retry-token }}',
'{{ scope }}',
'{{ viewId }}'
RETURNING
id,
name,
compartmentId,
definedTags,
dnssecConfig,
dnssecState,
externalDownstreams,
externalMasters,
freeformTags,
isProtected,
lifecycleState,
nameservers,
resolutionMode,
scope,
self,
serial,
timeCreated,
version,
viewId,
zoneTransferServers,
zoneType
;