---
title: "POST /v1alpha/{+parent}/observationSources"
method: POST
path: "/v1alpha/{+parent}/observationSources"
tags: ["projects"]
---

# POST /v1alpha/{+parent}/observationSources

`POST /v1alpha/{+parent}/observationSources`

CreateObservationSource creates a new ObservationSource but does not affect any deployed infrastructure. It is a configuration that can be used in an Observation Job to collect data about APIs running in user's dataplane.

## Path parameters

- `parent` string, required

## Query parameters

- `observationSourceId` string
- `requestId` string

## Request body

- ObservationSource — Observation source configuration types
  - `gclbObservationSource` GclbObservationSource — The GCLB observation source.
    - `pscNetworkConfigs` GclbObservationSourcePscNetworkConfig[] — Required. The VPC networks where traffic will be observed. All load balancers within this network will be observed. Currently, this is limited to only one network.
      - `network` string — Required. The VPC network. Format: `projects/{project_id}/global/networks/{network}`
      - `subnetwork` string — Required. The subnetwork in the source region that will be used to connect to the Cloud Load Balancers via PSC NEGs. Must belong to `network`. Format: projects/{project_id}/regions/{region}/subnetworks/{subnet}
  - `state` 'STATE_UNSPECIFIED' | 'CREATING' | 'CREATED' | 'DELETING' | 'ERROR' — Output only. The observation source state
  - `name` string — Identifier. name of resource For MVP, each region can only have 1 source.
  - `createTime` string, google-datetime — Output only. [Output only] Create time stamp
  - `updateTime` string, google-datetime — Output only. [Output only] Update time stamp

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/apim.md) · [All operations](https://skmtc.dev/google/apis/apim/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/apim/revisions/c9e5e3adb703/schema)
