oci.zone

Oracle Cloud Infrastructure Zone Resource

example:

Returns all Zone resources in the tenancy

policies:
    - name: find-all-zone-resources
      resource: oci.zone

Filters

Actions

remove-tag

Remove Tag Action

example:

Remove the specified tags from the resource. Defined tag needs to be referred as ‘namespace.tagName’ as below in the policy file.

policies:
    - name: remove-tag
      resource: oci.zone
    actions:
      - type: remove-tag
        defined_tags: ['cloud_custodian.environment']
        freeform_tags: ['organization', 'team']
properties:
  block_until_completion:
    type: boolean
  defined_tags:
    items:
      type: string
    type: array
  fail_on_error:
    type: boolean
  freeform_tags:
    items:
      type: string
    type: array
  type:
    enum:
    - remove-tag
required:
- type

update

Update zone Action

example:

Updates the zone with the specified information.

Global secondary zones may have their external masters updated. For more information about secondary zones, see [Manage DNS Service Zone](/iaas/Content/DNS/Tasks/managingdnszones.htm). When the zone name is provided as a path parameter and PRIVATE is used for the scope query parameter then the viewId query parameter is required.

Please refer to the Oracle Cloud Infrastructure Python SDK documentation for parameter details to this action https://docs.oracle.com/en-us/iaas/tools/python/latest/api/dns/client/oci.dns.DnsClient.html#oci.dns.DnsClient.update_zone

policies:
    - name: perform-update-zone-action
      resource: oci.zone
      actions:
        - type: update
          defined_tags:
            Cloud_Custodian: True
          freeform_tags:
            Environment: development
properties:
  defined_tags:
    type: object
  freeform_tags:
    type: object
  type:
    enum:
    - update
required:
- type