Skip to main content

steering_policy_attachments

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

Overview​

Namesteering_policy_attachments
TypeResource
Idoci.dns.steering_policy_attachments

Fields​

The following fields are returned by SELECT queries:

A response containing a single steering policy attachment object.

NameDatatypeDescription
idstringThe OCID of the resource.
compartmentIdstringThe OCID of the compartment containing the steering policy attachment.
displayNamestringA user-friendly name for the steering policy attachment. Does not have to be unique and can be changed. Avoid entering confidential information.
domainNamestringThe attached domain within the attached zone.
lifecycleStatestringThe current state of the resource. (CREATING, ACTIVE, DELETING)
rtypesarrayThe record types covered by the attachment at the domain. The set of record types is determined by aggregating the record types from the answers defined in the steering policy.
selfstring (url)The canonical absolute URL of the resource.
steeringPolicyIdstringThe OCID of the attached steering policy.
timeCreatedstring (date-time)The date and time the resource was created, expressed in RFC 3339 timestamp format. Example: 2016-07-22T17:23:59:60Z
zoneIdstringThe OCID of the attached zone. Must be a public zone.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsteeringPolicyAttachmentId, regionIf-None-Match, If-Modified-Since, opc-request-id, scopeGets information about the specified steering policy attachment.<br />
listselectcompartmentId, regionopc-request-id, limit, page, id, displayName, steeringPolicyId, zoneId, domain, domainContains, timeCreatedGreaterThanOrEqualTo, timeCreatedLessThan, lifecycleState, sortBy, sortOrder, scopeLists the steering policy attachments in the specified compartment.<br />
createinsertregion, steeringPolicyId, zoneId, domainNameopc-retry-token, opc-request-id, scopeCreates a new attachment between a steering policy and a domain, giving the<br />policy permission to answer queries for the specified domain. A steering policy must<br />be attached to a domain for the policy to answer DNS queries for that domain.<br /><br />For the purposes of access control, the attachment is automatically placed<br />into the same compartment as the domain's zone.<br /><br />Attachments cannot be created for private zones.<br />
updateupdatesteeringPolicyAttachmentId, regionIf-Match, If-Unmodified-Since, opc-request-id, scopeUpdates the specified steering policy attachment with your new information.<br />
deletedeletesteeringPolicyAttachmentId, regionIf-Match, If-Unmodified-Since, opc-request-id, scopeDeletes the specified steering policy attachment.<br />A 204 response indicates that the delete has been successful.<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)
steeringPolicyAttachmentIdstringThe OCID of the target steering policy attachment.
If-MatchstringThe If-Match header field makes the request method conditional on the existence of at least one current representation of the target resource, when the field-value is *, or having a current representation of the target resource that has an entity-tag matching a member of the list of entity-tags provided in the field-value.
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.
If-Unmodified-SincestringThe If-Unmodified-Since header field makes the request method conditional on the selected representation's last modification date being earlier than or equal to the date provided in the field-value. This field accomplishes the same purpose as If-Match for cases where the user agent does not have an entity-tag for the representation.
displayNamestringThe displayName of a resource.
domainstringSearch by domain. Will match any record whose domain (case-insensitive) equals the provided value.
domainContainsstringSearch by domain. Will match any record whose domain (case-insensitive) contains the provided value.
idstringThe OCID of a resource.
lifecycleStatestringThe state of a resource.
limitinteger (int64)The maximum number of items to return in a page of the collection.
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).
pagestringThe value of the opc-next-page response header from the previous "List" call.
scopestringSpecifies to operate only on resources that have a matching DNS scope.
sortBystringThe field by which to sort steering policy attachments. If unspecified, defaults to timeCreated.
sortOrderstringThe order to sort the resources.
steeringPolicyIdstringSearch by steering policy OCID. Will match any resource whose steering policy ID matches the provided value.
timeCreatedGreaterThanOrEqualTostring (date-time)An [RFC 3339](https:​//www.ietf.org/rfc/rfc3339.txt) timestamp that states all returned resources were created on or after the indicated time.
timeCreatedLessThanstring (date-time)An [RFC 3339](https:​//www.ietf.org/rfc/rfc3339.txt) timestamp that states all returned resources were created before the indicated time.
zoneIdstringSearch by zone OCID. Will match any resource whose zone ID matches the provided value.

SELECT examples​

Gets information about the specified steering policy attachment.<br />

SELECT
id,
compartmentId,
displayName,
domainName,
lifecycleState,
rtypes,
self,
steeringPolicyId,
timeCreated,
zoneId
FROM oci.dns.steering_policy_attachments
WHERE steeringPolicyAttachmentId = '{{ steeringPolicyAttachmentId }}' -- 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 }}'
;

INSERT examples​

Creates a new attachment between a steering policy and a domain, giving the<br />policy permission to answer queries for the specified domain. A steering policy must<br />be attached to a domain for the policy to answer DNS queries for that domain.<br /><br />For the purposes of access control, the attachment is automatically placed<br />into the same compartment as the domain's zone.<br /><br />Attachments cannot be created for private zones.<br />

INSERT INTO oci.dns.steering_policy_attachments (
displayName,
domainName,
steeringPolicyId,
zoneId,
region,
opc-retry-token,
opc-request-id,
scope
)
SELECT
'{{ displayName }}',
'{{ domainName }}' /* required */,
'{{ steeringPolicyId }}' /* required */,
'{{ zoneId }}' /* required */,
'{{ region }}',
'{{ opc-retry-token }}',
'{{ opc-request-id }}',
'{{ scope }}'
RETURNING
id,
compartmentId,
displayName,
domainName,
lifecycleState,
rtypes,
self,
steeringPolicyId,
timeCreated,
zoneId
;

UPDATE examples​

Updates the specified steering policy attachment with your new information.<br />

UPDATE oci.dns.steering_policy_attachments
SET
displayName = '{{ displayName }}'
WHERE
steeringPolicyAttachmentId = '{{ steeringPolicyAttachmentId }}' --required
AND region = '{{ region }}' --required
AND If-Match = '{{ If-Match}}'
AND If-Unmodified-Since = '{{ If-Unmodified-Since}}'
AND opc-request-id = '{{ opc-request-id}}'
AND scope = '{{ scope}}'
RETURNING
id,
compartmentId,
displayName,
domainName,
lifecycleState,
rtypes,
self,
steeringPolicyId,
timeCreated,
zoneId;

DELETE examples​

Deletes the specified steering policy attachment.<br />A 204 response indicates that the delete has been successful.<br />

DELETE FROM oci.dns.steering_policy_attachments
WHERE steeringPolicyAttachmentId = '{{ steeringPolicyAttachmentId }}' --required
AND region = '{{ region }}' --required
AND If-Match = '{{ If-Match }}'
AND If-Unmodified-Since = '{{ If-Unmodified-Since }}'
AND opc-request-id = '{{ opc-request-id }}'
AND scope = '{{ scope }}'
;