discovered_api_operations
Creates, updates, deletes, gets or lists a discovered_api_operations
resource.
Overview
Name | discovered_api_operations |
Type | Resource |
Id | google.apihub.discovered_api_operations |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The name of the discovered API Operation. Format: projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}/discoveredApiOperations/{discovered_api_operation} |
classification | string | Output only. The classification of the discovered API operation. |
count | string (int64) | Optional. The number of occurrences of this API Operation. |
createTime | string (google-datetime) | Output only. Create time stamp of the discovered API operation in API Hub. |
firstSeenTime | string (google-datetime) | Optional. First seen time stamp |
httpOperation | object | Optional. An HTTP Operation. (id: GoogleCloudApihubV1HttpOperationDetails) |
lastSeenTime | string (google-datetime) | Optional. Last seen time stamp |
matchResults | array | Output 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. |
sourceMetadata | object | SourceMetadata represents the metadata for a resource at the source. (id: GoogleCloudApihubV1SourceMetadata) |
updateTime | string (google-datetime) | Output only. Update time stamp of the discovered API operation in API Hub. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The name of the discovered API Operation. Format: projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}/discoveredApiOperations/{discovered_api_operation} |
classification | string | Output only. The classification of the discovered API operation. |
count | string (int64) | Optional. The number of occurrences of this API Operation. |
createTime | string (google-datetime) | Output only. Create time stamp of the discovered API operation in API Hub. |
firstSeenTime | string (google-datetime) | Optional. First seen time stamp |
httpOperation | object | Optional. An HTTP Operation. (id: GoogleCloudApihubV1HttpOperationDetails) |
lastSeenTime | string (google-datetime) | Optional. Last seen time stamp |
matchResults | array | Output 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. |
sourceMetadata | object | SourceMetadata represents the metadata for a resource at the source. (id: GoogleCloudApihubV1SourceMetadata) |
updateTime | string (google-datetime) | Output only. Update time stamp of the discovered API operation in API Hub. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , discoveredApiObservationsId , discoveredApiOperationsId | Gets a DiscoveredAPIOperation in a given project, location, ApiObservation and ApiOperation. | |
list | select | projectsId , locationsId , discoveredApiObservationsId | pageSize , pageToken | Lists 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.
Name | Datatype | Description |
---|---|---|
discoveredApiObservationsId | string | |
discoveredApiOperationsId | string | |
locationsId | string | |
projectsId | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- get
- list
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;
Lists all the DiscoveredAPIOperations in a given project, location and ApiObservation.
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 pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';