cURL
curl --request PUT \ --url https://api.gcore.com/cloud/v1/laas/{project_id}/{region_id}/topics \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "index_pattern": { "id": "exampletopicindexpatternid" }, "name": "mytopic", "retention_policy": { "period": 45 }, "size_in_bytes": 0 }'
{ "index_pattern": { "id": "exampletopicindexpatternid" }, "name": "mytopic", "retention_policy": { "period": 45 }, "size_in_bytes": 0 }
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.
1 - 223
Show child attributes
x >= 0
Was this page helpful?