---
title: "GET /v1/projects/{projectsId}/locations/{locationsId}/discoveredApiObservations/{discoveredApiObservationsId}"
method: GET
path: "/v1/projects/{projectsId}/locations/{locationsId}/discoveredApiObservations/{discoveredApiObservationsId}"
tags: ["projects"]
---

# GET /v1/projects/{projectsId}/locations/{locationsId}/discoveredApiObservations/{discoveredApiObservationsId}

`GET /v1/projects/{projectsId}/locations/{locationsId}/discoveredApiObservations/{discoveredApiObservationsId}`

## Request

- Base URL: `https://apihub.googleapis.com`
- URL: `https://apihub.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/discoveredApiObservations/{discoveredApiObservationsId}`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/apihub.readonly`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/apihub.readonly`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/apihub.readwrite`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/apihub.readwrite`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`
- TypeScript: <https://skmtc.dev/google/apis/apihub/docs/v1/projects/:projectsId/locations/:locationsId/discoveredApiObservations/:discoveredApiObservationsId/get.ts> (a function with typed inputs; its response is checked against the schema)

Gets a DiscoveredAPIObservation in a given project, location and ApiObservation.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `discoveredApiObservationsId` string, required

## Response `200`

Successful response

- GoogleCloudApihubV1DiscoveredApiObservation: Respresents an API Observation observed in one of the sources.
  - `apiOperationCount` string, int64: Optional. The number of observed API Operations.
  - `createTime` string, google-datetime: Output only. Create time stamp of the observation in API Hub.
  - `hostname` string: Optional. The hostname of requests processed for this Observation.
  - `knownOperationsCount` string, int64: Output only. The number of known API Operations.
  - `lastEventDetectedTime` string, google-datetime: Optional. Last event detected time stamp
  - `name` string: Identifier. The name of the discovered API Observation. Format: `projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}`
  - `origin` string: Optional. For an observation pushed from a Google Cloud resource, this would be the Google Cloud project id.
  - `serverIps` string[]: Optional. The IP address (IPv4 or IPv6) of the origin server that the request was sent to. This field can include port information. Examples: `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
  - `sourceLocations` string[]: Optional. The location of the observation source.
  - `sourceMetadata` GoogleCloudApihubV1SourceMetadata: SourceMetadata represents the metadata for a resource at the source.
    - `originalResourceCreateTime` string, google-datetime: Output only. The time at which the resource was created at the source.
    - `originalResourceId` string: Output only. The unique identifier of the resource at the source.
    - `originalResourceUpdateTime` string, google-datetime: Output only. The time at which the resource was last updated at the source.
    - `pluginInstanceActionSource` GoogleCloudApihubV1PluginInstanceActionSource: PluginInstanceActionSource represents the plugin instance action source.
      - `actionId` string: Output only. The id of the plugin instance action.
      - `pluginInstance` string: Output only. The resource name of the source plugin instance. Format is `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
    - `sourceType` 'SOURCE_TYPE_UNSPECIFIED' | 'PLUGIN': Output only. The type of the source.
  - `sourceTypes` string[]: Optional. The type of the source from which the observation was collected.
  - `style` 'STYLE_UNSPECIFIED' | 'REST' | 'GRPC' | 'GRAPHQL': Optional. Style of ApiObservation
  - `unknownOperationsCount` string, int64: Output only. The number of unknown API Operations.
  - `updateTime` string, google-datetime: Output only. Update time stamp of the observation in API Hub.

## Changes

- **2026-11-08** `09b6c7d2247b`: 4 info
  - the security scope `https://www.googleapis.com/auth/apihub.readonly` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/apihub.readonly` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/apihub/changes/v1/projects/:projectsId/locations/:locationsId/discoveredApiObservations/:discoveredApiObservationsId/get.md)

---

[API](https://skmtc.dev/google/apis/apihub.md) - [All operations](https://skmtc.dev/google/apis/apihub/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/apihub/revisions/09b6c7d2247b?raw)
