v32

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-151,1412,2144.5 MB
Logging

Create logging topic

Create a new Kafka topic within the client's LaaS namespace for the specified project and region. If a topic with the same name exists, it will be updated.

put/cloud/v1/laas/{project_id}/{region_id}/topics

Path parameters

project_idinteger required

Project ID

region_idinteger required

Region ID

Request body

namestring required

Kafka topic name to be used in log shipper config to write logs to LaaS

size_in_bytesinteger

Size of the topic in bytes

Example request

{
  "index_pattern": {
    "id": "exampletopicindexpatternid"
  },
  "name": "my-topic",
  "retention_policy": {
    "period": 45
  }
}

Response

LaaS Kafka topic

namestring required

Kafka topic name to be used in log shipper config to write logs to LaaS

size_in_bytesinteger required

Size of the topic in bytes

Example response

{
  "index_pattern": {
    "id": "exampletopicindexpatternid"
  },
  "name": "my-topic",
  "retention_policy": {
    "period": 45
  }
}