Viewing Operations on Managed Zones

Managed zone updates that you make (modifying descriptions or DNSSEC state or configuration) are recorded by Cloud DNS as operations. Managed zone creation and deletion are not recorded; deletion of a managed zone also deletes recorded operations on the zone.

These operations are independent of changes you make to the resources within the managed zone. You can see the history of these updates with the command-line tool or REST API.

Displaying audit log of operations

Command line

gcloud dns operations list --zones="myzonename"

This command prints the JSON formatted resource record sets for the first 100 records. You can specify an additional parameter:

  • --limit: Maximum number of operations to list.

Python

from apiclient import errors
from apiclient.discovery import build

PROJECT_NAME=''
ZONE_NAME=''

try:
  service = build('dns', 'v1')
  response = service.operations().list(project=PROJECT_NAME,
                                       managedZone=ZONE_NAME).execute()
  print(response)
except errors.HttpError, error:
  print('An error occurred: %s' % error)
    

Next steps

Oliko tästä sivusta apua? Kerro mielipiteesi

Palautteen aihe:

Tämä sivu
Cloud DNS Documentation