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

# POST /v1/{+parent}/messageBuses

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

Create a new MessageBus in a particular project and location.

## Path parameters

- `parent` string, required

## Query parameters

- `messageBusId` string
- `validateOnly` boolean

## Request body

- MessageBus — MessageBus for the messages flowing through the system. The admin has visibility and control over the messages being published and consumed and can restrict publishers and subscribers to only a subset of data available in the system by defining authorization policies.
  - `updateTime` string, google-datetime — Output only. The last-modified time.
  - `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/*`.
  - `name` string — Identifier. Resource name of the form projects/{project}/locations/{location}/messageBuses/{message_bus}
  - `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.
  - `displayName` string — Optional. Resource display name.
  - `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.
  - `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.
  - `labels` object — Optional. Resource labels.
  - `annotations` object — Optional. Resource annotations.

## 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/versions/d60df8f49319/schema)
