Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



GlobalOperations

Represents a GlobalOperations resource.

Global operations are any operations that are performed on global resources, such as images, zones, networks, firewalls, kernels, and snapshots. For example, inserting an image is considered a global operation because you are inserting a global resource. Inserting an instance is considered a per-zone operation, because you are inserting a per-zone resource.


Global operations are indicated by the term global in the URI.

For a list of methods for this resource, see the end of this page.

Resource representations

An Operation resource, used to manage asynchronous API requests.

{
  "kind": "compute#operation",
  "id": unsigned long,
  "creationTimestamp": string,
  "name": string,
  "zone": string,
  "clientOperationId": string,
  "operationType": string,
  "targetLink": string,
  "targetId": unsigned long,
  "status": string,
  "statusMessage": string,
  "user": string,
  "progress": integer,
  "insertTime": string,
  "startTime": string,
  "endTime": string,
  "error": {
    "errors": [
      {
        "code": string,
        "location": string,
        "message": string
      }
    ]
  },
  "warnings": [
    {
      "code": string,
      "message": string,
      "data": [
        {
          "key": string,
          "value": string
        }
      ]
    }
  ],
  "httpErrorStatusCode": integer,
  "httpErrorMessage": string,
  "selfLink": string,
  "region": string
}
Property name Value Description Notes
clientOperationId string [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project.
creationTimestamp string [Output Only] Creation timestamp in RFC3339 text format.
endTime string [Output Only] The time that this operation was completed. This is in RFC3339 text format.
error object [Output Only] If errors occurred during processing of this operation, this field will be populated.
error. errors[] list [Output Only] The array of errors encountered while processing this operation.
error.errors[]. code string [Output Only] The error type identifier for this error.
error.errors[]. location string [Output Only] Indicates the field in the request which caused the error. This property is optional.
error.errors[]. message string [Output Only] An optional, human-readable error message.
httpErrorMessage string [Output Only] If operation fails, the HTTP error message returned, e.g. NOT FOUND .
httpErrorStatusCode integer [Output Only] If operation fails, the HTTP error status code returned, e.g. 404 .
id unsigned long [Output Only] Type of the resource. Always compute#operation for Operation resources.
insertTime string [Output Only] The time that this operation was requested. This is in RFC3339 text format.
kind string [Output Only] Type of the resource. Always compute#operation for Operation resources.
name string [Output Only] Name of the resource.
operationType string [Output Only] Type of the operation. Examples include insert update , and delete .
progress integer [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 at when the operation will be complete. This number should be monotonically increasing as the operation progresses.
region string [Output Only] URL of the region where the operation resides. Only available when performing regional operations.
startTime string [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
status string [Output Only] Status of the operation.

Acceptable values are:
  • " DONE ": The operation has finished running.
  • " PENDING ": The operation is pending (not yet running).
  • " RUNNING ": The operation is currently running.
statusMessage string [Output Only] An optional textual description of the current status of the operation.
targetId unsigned long [Output Only] Unique target id which identifies a particular incarnation of the target.
user string [Output Only] User who requested the operation, for example: [email protected] .
warnings[] list [Output Only] If there are issues with this operation, a warning is returned.
warnings[]. code string [Output Only] The warning type identifier for this warning.

Acceptable values are:
  • " DEPRECATED_RESOURCE_USED ": Indicates that the resource you specified has been deprecated and will eventually be unsupported. We recommend eventually transitioning to a more current resource.
  • " INJECTED_KERNELS_DEPRECATED ": Indicates that specifying a separate Kernel resource is deprecated. You should transition to using images that contain kernel binaries. See Kernels for more information.
  • " NEXT_HOP_ADDRESS_NOT_ASSIGNED ": You did not specify a next hop address for your route.
  • " NEXT_HOP_CANNOT_IP_FORWARD ": In order for your route to work correctly, your source and destination virtual machine instances must have canIpForward enabled. See the documentation for more information.
  • " NEXT_HOP_INSTANCE_NOT_FOUND ": The next hop instance you specified was not found. Please double check that the instance exists and that you have specified it correctly.
  • " NEXT_HOP_INSTANCE_NOT_ON_NETWORK ": The next hop instance you specified was not found on the same network as your route object. Please make sure the instance is part of the same network as your route object.
  • " NEXT_HOP_NOT_RUNNING ": The next hop instance you specified is not currently running. Please restart or create the instnce.
  • " NO_RESULTS_ON_PAGE ": There were no results for your request.
  • " REQUIRED_TOS_AGREEMENT ": You must first agree to the terms of service agreement before you can use this service.
  • " UNREACHABLE ": The Compute Engine service is currently unreachable.
warnings[]. data[] list [Output Only] Metadata for this warning in 'key: value' format.
warnings[].data[]. key string [Output Only] Metadata key for this warning.
warnings[].data[]. value string [Output Only] Metadata value for the specified key.
warnings[]. message string [Output Only] Optional human-readable details for this warning.
zone string [Output Only] URL of the zone where the operation resides.

Methods

The following are valid GlobalOperations resource methods:

aggregatedList
Retrieves the list of all operations grouped by scope.
delete
Deletes the specified operation resource.
get
Retrieves the specified operation resource.
list
Retrieves the list of operation resources contained within the specified project.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.