zone_from_zone_files
Creates, updates, deletes, gets or lists a zone_from_zone_files resource.
Overview​
| Name | zone_from_zone_files |
| Type | Resource |
| Id | oci.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
create | insert | compartmentId, region | opc-request-id, opc-retry-token, scope, viewId | Creates 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.
| Name | Datatype | Description |
|---|---|---|
compartmentId | string | The OCID of the compartment the resource belongs to. |
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) |
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. |
opc-retry-token | string | A 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). |
scope | string | Specifies to operate only on resources that have a matching DNS scope. |
viewId | string | The OCID of the view the resource is associated with. |
INSERT examples​
- create
- Manifest
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
;
# Description fields are for documentation purposes
- name: zone_from_zone_files
props:
- name: compartmentId
value: "{{ compartmentId }}"
description: Required parameter for the zone_from_zone_files resource.
- name: region
value: "{{ region }}"
description: Required parameter for the zone_from_zone_files resource.
- name: opc-request-id
value: "{{ opc-request-id }}"
description: Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
description: Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
- name: opc-retry-token
value: "{{ opc-retry-token }}"
description: A 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).
description: A 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).
- name: scope
value: "{{ scope }}"
description: Specifies to operate only on resources that have a matching DNS scope.
description: Specifies to operate only on resources that have a matching DNS scope.
- name: viewId
value: "{{ viewId }}"
description: The OCID of the view the resource is associated with.
description: The OCID of the view the resource is associated with.