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
Example request
{
"index_pattern": {
"id": "exampletopicindexpatternid"
},
"name": "my-topic",
"retention_policy": {
"period": 45
}
}Response
LaaS Kafka topic
Example response
{
"index_pattern": {
"id": "exampletopicindexpatternid"
},
"name": "my-topic",
"retention_policy": {
"period": 45
}
}