Skip to main content
PUT
/
cloud
/
v1
/
laas
/
{project_id}
/
{region_id}
/
topics
Create logging topic
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
}

Authorizations

Authorization
string
header
required

Path Parameters

project_id
integer
required
region_id
integer
required

Body

application/json
name
string
required
Required string length: 1 - 223
Examples:
index_pattern
object | null
Examples:
retention_policy
object | null
Examples:
size_in_bytes
integer
default:0
Required range: x >= 0

Response

name
string
required
Required string length: 1 - 223
Examples:
index_pattern
object | null
Examples:
retention_policy
object | null
Examples:
size_in_bytes
integer
default:0
Required range: x >= 0