GET
/
cloud
/
v1
/
laas
/
{project_id}
/
{region_id}
/
topics
List logging topics
curl --request GET \
  --url https://api.gcore.com/cloud/v1/laas/{project_id}/{region_id}/topics \
  --header 'Authorization: <api-key>'
{
  "index_pattern": {
    "id": "exampletopicindexpatternid"
  },
  "name": "mytopic",
  "retention_policy": {
    "period": 45
  },
  "size_in_bytes": 0
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

project_id
integer
required

Project ID

region_id
integer
required

Region ID

Response

LaaS Kafka topics

name
string
required

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

Required string length: 1 - 223
Examples:

"mytopic"

index_pattern
object | null

Index Pattern data

Examples:
{ "id": "exampletopicindexpatternid" }
retention_policy
object | null
Examples:
{ "period": 45 }
size_in_bytes
integer
default:0

Size of the topic in bytes

Required range: x >= 0