Skip to main content

operations_aggregated

Creates, updates, deletes, gets or lists an operations_aggregated resource.

Overview

Nameoperations_aggregated
TypeResource
Idgoogle.compute.operations_aggregated

Fields

The following fields are returned by SELECT queries:

Successful response

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

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
aggregated_listselectprojectfilter, includeAllScopes, maxResults, orderBy, pageToken, returnPartialSuccess, serviceProjectNumberRetrieves an aggregated list of all operations. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
projectstring
filterstring
includeAllScopesboolean
maxResultsinteger (uint32)
orderBystring
pageTokenstring
returnPartialSuccessboolean
serviceProjectNumberstring (int64)

SELECT examples

Retrieves an aggregated list of all operations. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

SELECT
id,
name,
clientOperationId,
creationTimestamp,
description,
endTime,
error,
httpErrorMessage,
httpErrorStatusCode,
insertTime,
instancesBulkInsertOperationMetadata,
kind,
operationGroupId,
operationType,
progress,
region,
selfLink,
setCommonInstanceMetadataOperationMetadata,
startTime,
status,
statusMessage,
targetId,
targetLink,
user,
warnings,
zone
FROM google.compute.operations_aggregated
WHERE project = '{{ project }}' -- required
AND filter = '{{ filter }}'
AND includeAllScopes = '{{ includeAllScopes }}'
AND maxResults = '{{ maxResults }}'
AND orderBy = '{{ orderBy }}'
AND pageToken = '{{ pageToken }}'
AND returnPartialSuccess = '{{ returnPartialSuccess }}'
AND serviceProjectNumber = '{{ serviceProjectNumber }}';