Method: zoneOperations.get

Retrieves the specified zone-specific Operations resource.

HTTP request

GET https://compute.googleapis.com/compute/beta/projects/{project}/zones/{zone}/operations/{resourceId}

The URL uses Google API HTTP annotation syntax.

Path parameters

Parameters
project

string

Project ID for this request.

zone

string

Name of the zone for this request.

resourceId

string

Name of the Operations resource to return.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

JSON representation
{
  "resource": {
    "id": string,
    "creationTimestamp": string,
    "name": string,
    "zone": string,
    "clientOperationId": string,
    "operationType": string,
    "targetLink": string,
    "targetId": string,
    "status": enum,
    "statusMessage": string,
    "user": string,
    "progress": number,
    "insertTime": string,
    "startTime": string,
    "endTime": string,
    "error": {
      "errors": [
        {
          "code": string,
          "location": string,
          "message": string
        }
      ]
    },
    "warnings": {
      "code": enum,
      "message": string,
      "data": [
        {
          "key": string,
          "value": string
        }
      ]
    },
    "httpErrorStatusCode": number,
    "httpErrorMessage": string,
    "selfLink": string,
    "region": string,
    "description": string,
    "kind": string
  },
}
Fields
resource

object

resource.id

string (fixed64 format)

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

resource.creationTimestamp

string

[Deprecated] This field is deprecated.

resource.name

string

[Output Only] Name of the resource.

resource.zone

string

[Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

resource.clientOperationId

string

[Output Only] Reserved for future use.

resource.operationType

string

[Output Only] The type of operation, such as insert, update, or delete, and so on.

resource.targetLink

string

[Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.

resource.targetId

string (fixed64 format)

[Output Only] The unique target ID, which identifies a specific incarnation of the target resource.

resource.status

enum

[Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.

resource.statusMessage

string

[Output Only] An optional textual description of the current status of the operation.

resource.user

string

[Output Only] User who requested the operation, for example: user@example.com.

resource.progress

number

[Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.

resource.insertTime

string

[Output Only] The time that this operation was requested. This value is in RFC3339 text format.

resource.startTime

string

[Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.

resource.endTime

string

[Output Only] The time that this operation was completed. This value is in RFC3339 text format.

resource.error

object

[Output Only] If errors are generated during processing of the operation, this field will be populated.

resource.error.errors[]

object

[Output Only] The array of errors encountered while processing this operation.

resource.error.errors[].code

string

[Output Only] The error type identifier for this error.

resource.error.errors[].location

string

[Output Only] Indicates the field in the request that caused the error. This property is optional.

resource.error.errors[].message

string

[Output Only] An optional, human-readable error message.

resource.warnings[]

object

[Output Only] If warning messages are generated during processing of the operation, this field will be populated.

resource.warnings[].code

enum

[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.

resour