Skip to main content

region_operations

Overview

Nameregion_operations
TypeResource
Idgoogle.compute.region_operations

Fields

NameDatatypeDescription
idstring[Output Only] The unique identifier for the operation. This identifier is defined by the server.
namestring[Output Only] Name of the operation.
descriptionstring[Output Only] A textual description of the operation, which is set when the operation is created.
zonestring[Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
regionstring[Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
creationTimestampstring[Deprecated] This field is deprecated.
insertTimestring[Output Only] The time that this operation was requested. This value is in RFC3339 text format.
statusstring[Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
startTimestring[Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
httpErrorMessagestring[Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
operationTypestring[Output Only] The type of operation, such as insert, update, or delete, and so on.
selfLinkstring[Output Only] Server-defined URL for the resource.
endTimestring[Output Only] The time that this operation was completed. This value is in RFC3339 text format.
operationGroupIdstring[Output Only] An ID that represents a group of operations, such as when a group of operations results from a bulkInsert API request.
instancesBulkInsertOperationMetadataobject
errorobject[Output Only] If errors are generated during processing of the operation, this field will be populated.
statusMessagestring[Output Only] An optional textual description of the current status of the operation.
progressinteger[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.
kindstring[Output Only] Type of the resource. Always compute#operation for Operation resources.
targetIdstring[Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
warningsarray[Output Only] If warning messages are generated during processing of the operation, this field will be populated.
userstring[Output Only] User who requested the operation, for example: user@example.com or alice_smith_identifier (global/workforcePools/example-com-us-employees).
httpErrorStatusCodeinteger[Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
targetLinkstring[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.
clientOperationIdstring[Output Only] The value of requestId if you provided it in the request. Not present otherwise.
setCommonInstanceMetadataOperationMetadataobject

Methods

NameAccessible byRequired ParamsDescription
getSELECToperation, project, regionRetrieves the specified region-specific Operations resource.
listSELECTproject, regionRetrieves a list of Operation resources contained within the specified region.
deleteDELETEoperation, project, regionDeletes the specified region-specific Operations resource.
waitEXECoperation, project, regionWaits for the specified Operation resource to return as DONE or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method differs from the GET method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be DONE or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not DONE.