# REST Resource: managedZoneOperations

- [Resource: ManagedZoneOperationsGetResponse](https://docs.cloud.google.com/dns/docs/reference/rest/v1/managedZoneOperations#ManagedZoneOperationsGetResponse)
  - [JSON representation](https://docs.cloud.google.com/dns/docs/reference/rest/v1/managedZoneOperations#ManagedZoneOperationsGetResponse.SCHEMA_REPRESENTATION)
- [Operation](https://docs.cloud.google.com/dns/docs/reference/rest/v1/managedZoneOperations#Operation)
  - [JSON representation](https://docs.cloud.google.com/dns/docs/reference/rest/v1/managedZoneOperations#Operation.SCHEMA_REPRESENTATION)
- [ManagedZoneContext](https://docs.cloud.google.com/dns/docs/reference/rest/v1/managedZoneOperations#ManagedZoneContext)
  - [JSON representation](https://docs.cloud.google.com/dns/docs/reference/rest/v1/managedZoneOperations#ManagedZoneContext.SCHEMA_REPRESENTATION)
- [DnsKeyContext](https://docs.cloud.google.com/dns/docs/reference/rest/v1/managedZoneOperations#DnsKeyContext)
  - [JSON representation](https://docs.cloud.google.com/dns/docs/reference/rest/v1/managedZoneOperations#DnsKeyContext.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/dns/docs/reference/rest/v1/managedZoneOperations#METHODS_SUMMARY)

## Resource: ManagedZoneOperationsGetResponse

| JSON representation |
|---|
| ``` { "operation": { object (`https://docs.cloud.google.com/dns/docs/reference/rest/v1/managedZoneOperations#Operation`) } } ``` |

| Fields ||
|---|---|
| `operation` | ``object (`https://docs.cloud.google.com/dns/docs/reference/rest/v1/managedZoneOperations#Operation`)`` |

## Operation

An operation represents a successful mutation performed on a Cloud DNS resource. Operations provide:

- An audit log of server resource mutations.

- A way to recover/retry API calls in the case where the response is never received by the caller. Use the caller specified clientOperationId.

| JSON representation |
|---|
| ``` { "id": string, "startTime": string, "status": enum (`https://docs.cloud.google.com/dns/docs/reference/rest/v1/OperationStatus`), "user": string, "type": string, "zoneContext": { object (`https://docs.cloud.google.com/dns/docs/reference/rest/v1/managedZoneOperations#ManagedZoneContext`) }, "dnsKeyContext": { object (`https://docs.cloud.google.com/dns/docs/reference/rest/v1/managedZoneOperations#DnsKeyContext`) }, "kind": string } ``` |

| Fields ||
|---|---|
| `id` | `string` Unique identifier for the resource. This is the clientOperationId if the client specified it when the mutation was initiated, otherwise, it is generated by the server. The name must be 1-63 characters long and match the regular expression \[-a-z0-9\]? (output only) |
| `startTime` | `string` The time that this operation was started by the server. This is in RFC3339 text format (output only). |
| `status` | ``enum (`https://docs.cloud.google.com/dns/docs/reference/rest/v1/OperationStatus`)`` Status of the operation. Can be one of the following: "PENDING" or "DONE" (output only). A status of "DONE" means that the request to update the authoritative servers has been sent, but the servers might not be updated yet. |
| `user` | `string` User who requested the operation, for example: [user@example.com](mailto:user@example.com). cloud-dns-system for operations automatically done by the system. (output only) |
| `type` | `string` Type of the operation. Operations include insert, update, and delete (output only). |
| `zoneContext` | ``object (`https://docs.cloud.google.com/dns/docs/reference/rest/v1/managedZoneOperations#ManagedZoneContext`)`` Only populated if the operation targeted a ManagedZone (output only). |
| `dnsKeyContext` | ``object (`https://docs.cloud.google.com/dns/docs/reference/rest/v1/managedZoneOperations#DnsKeyContext`)`` Only populated if the operation targeted a DnsKey (output only). |
| `kind` | `string` |

## ManagedZoneContext

| JSON representation |
|---|
| ``` { "oldValue": { object (`https://docs.cloud.google.com/dns/docs/reference/rest/v1/managedZones#ManagedZone`) }, "newValue": { object (`https://docs.cloud.google.com/dns/docs/reference/rest/v1/managedZones#ManagedZone`) } } ``` |

| Fields ||
|---|---|
| `oldValue` | ``object (`https://docs.cloud.google.com/dns/docs/reference/rest/v1/managedZones#ManagedZone`)`` The pre-operation ManagedZone resource. |
| `newValue` | ``object (`https://docs.cloud.google.com/dns/docs/reference/rest/v1/managedZones#ManagedZone`)`` The post-operation ManagedZone resource. |

## DnsKeyContext

| JSON representation |
|---|
| ``` { "oldValue": { object (`https://docs.cloud.google.com/dns/docs/reference/rest/v1/dnsKeys#DnsKey`) }, "newValue": { object (`https://docs.cloud.google.com/dns/docs/reference/rest/v1/dnsKeys#DnsKey`) } } ``` |

| Fields ||
|---|---|
| `oldValue` | ``object (`https://docs.cloud.google.com/dns/docs/reference/rest/v1/dnsKeys#DnsKey`)`` The pre-operation DnsKey resource. |
| `newValue` | ``object (`https://docs.cloud.google.com/dns/docs/reference/rest/v1/dnsKeys#DnsKey`)`` The post-operation DnsKey resource. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/dns/docs/reference/rest/v1/managedZoneOperations/get` | Fetches the representation of an existing Operation. |
| ### `https://docs.cloud.google.com/dns/docs/reference/rest/v1/managedZoneOperations/list` | Enumerates Operations for the given ManagedZone. |