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

# POST /v1/{+parent}/googleApiSources

`POST /v1/{+parent}/googleApiSources`

Create a new GoogleApiSource in a particular project and location.

## Path parameters

- `parent` string, required

## Query parameters

- `googleApiSourceId` string
- `validateOnly` boolean

## Request body

- GoogleApiSource — Represents a subscription to first-party events for a MessageBus resource. A GoogleApiSource resource lets you configure the delivery of events from Google API sources to a designated bus.
  - `organizationSubscription` OrganizationSubscription — Config to enabled subscribing to events from other projects in the org.
    - `enabled` boolean — Required. Enable org level subscription.
  - `labels` object — Optional. Resource labels.
  - `displayName` string — Optional. Resource display name.
  - `destination` string — Required. Destination is the message bus that the GoogleApiSource is delivering to. It must be point to the full resource name of a MessageBus. Format: "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
  - `uid` string — Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
  - `createTime` string, google-datetime — Output only. The creation time.
  - `updateTime` string, google-datetime — Output only. The last-modified time.
  - `etag` string — Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on update and delete requests to ensure that the client has an up-to-date value before proceeding.
  - `annotations` object — Optional. Resource annotations.
  - `cryptoKeyName` string — Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data. It must match the pattern `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
  - `projectSubscriptions` ProjectSubscriptions — Config to enable subscribing to all events from a list of projects.
    - `list` string[] — Required. A list of projects to receive events from. All the projects must be in the same org. The listed projects should have the format project/{identifier} where identifier can be either the project id for project number. A single list may contain both formats. At most 100 projects can be listed.
  - `loggingConfig` LoggingConfig — The configuration for Platform Telemetry logging for Eventarc Advanced resources.
    - `logSeverity` 'LOG_SEVERITY_UNSPECIFIED' | 'NONE' | 'DEBUG' | 'INFO' | 'NOTICE' | 'WARNING' | 'ERROR' | 'CRITICAL' | 'ALERT' | 'EMERGENCY' — Optional. The minimum severity of logs that will be sent to Stackdriver/Platform Telemetry. Logs at severitiy ≥ this value will be sent, unless it is NONE.
  - `name` string — Identifier. Resource name of the form projects/{project}/locations/{location}/googleApiSources/{google_api_source}

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/eventarc.md) · [All operations](https://skmtc.net/google/apis/eventarc/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/eventarc/revisions/d60df8f49319/schema)
