PUT
/
cloud
/
v1
/
laas
/
{project_id}
/
{region_id}
/
topics
curl --request PUT \
  --url https://api.gcore.com/cloud/v1/laas/{project_id}/{region_id}/topics \
  --header 'APIKey: <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
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

project_id
integer
required

Project ID

region_id
integer
required

Region ID

Body

application/json

Response

201
application/json

LaaS Kafka topic

The response is of type object.