Skip to main content

api_operations

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

Overview

Nameapi_operations
TypeResource
Idgoogle.apim.api_operations

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. Name of resource
countstring (int64)The number of occurrences of this API Operation.
firstSeenTimestring (google-datetime)First seen time stamp
httpOperationobjectAn HTTP Operation. (id: HttpOperation)
lastSeenTimestring (google-datetime)Last seen time stamp

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, observationJobsId, apiObservationsId, apiOperationsIdGetApiOperation retrieves a single ApiOperation by name.
listselectprojectsId, locationsId, observationJobsId, apiObservationsIdpageSize, pageTokenListApiOperations gets all ApiOperations for a given project and location and ObservationJob and ApiObservation.

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
apiObservationsIdstring
apiOperationsIdstring
locationsIdstring
observationJobsIdstring
projectsIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

GetApiOperation retrieves a single ApiOperation by name.

SELECT
name,
count,
firstSeenTime,
httpOperation,
lastSeenTime
FROM google.apim.api_operations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND observationJobsId = '{{ observationJobsId }}' -- required
AND apiObservationsId = '{{ apiObservationsId }}' -- required
AND apiOperationsId = '{{ apiOperationsId }}' -- required;