Skip to main content

discovered_api_operations

Creates, updates, deletes, gets or lists a discovered_api_operations resource.

Overview

Namediscovered_api_operations
TypeResource
Idgoogle.apihub.discovered_api_operations

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The name of the discovered API Operation. Format: projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}/discoveredApiOperations/{discovered_api_operation}
classificationstringOutput only. The classification of the discovered API operation.
countstring (int64)Optional. The number of occurrences of this API Operation.
createTimestring (google-datetime)Output only. Create time stamp of the discovered API operation in API Hub.
firstSeenTimestring (google-datetime)Optional. First seen time stamp
httpOperationobjectOptional. An HTTP Operation. (id: GoogleCloudApihubV1HttpOperationDetails)
lastSeenTimestring (google-datetime)Optional. Last seen time stamp
matchResultsarrayOutput only. The list of matched results for the discovered API operation. This will be populated only if the classification is known. The current usecase is for a single match. Keeping it repeated to support multiple matches in future.
sourceMetadataobjectSourceMetadata represents the metadata for a resource at the source. (id: GoogleCloudApihubV1SourceMetadata)
updateTimestring (google-datetime)Output only. Update time stamp of the discovered API operation in API Hub.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, discoveredApiObservationsId, discoveredApiOperationsIdGets a DiscoveredAPIOperation in a given project, location, ApiObservation and ApiOperation.
listselectprojectsId, locationsId, discoveredApiObservationsIdpageSize, pageTokenLists all the DiscoveredAPIOperations in a given project, location 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
discoveredApiObservationsIdstring
discoveredApiOperationsIdstring
locationsIdstring
projectsIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets a DiscoveredAPIOperation in a given project, location, ApiObservation and ApiOperation.

SELECT
name,
classification,
count,
createTime,
firstSeenTime,
httpOperation,
lastSeenTime,
matchResults,
sourceMetadata,
updateTime
FROM google.apihub.discovered_api_operations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND discoveredApiObservationsId = '{{ discoveredApiObservationsId }}' -- required
AND discoveredApiOperationsId = '{{ discoveredApiOperationsId }}' -- required;