This API is used to get the topic partition information list.
GET /partitions?topic_id=xxxx-xx-xx-xx-xxxx HTTP/1.1
Host: <Region>.cls.tencentyun.com
Authorization: <AuthorizationString>
There are only common request headers but no special request headers.
Parameter Name | Type | Location | Required | Description |
---|---|---|---|---|
topic_id | string | query | Yes | Log topic ID |
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 21
{
"partitions":[
{
"partition_id": 1,
"status": "readwrite",
"inclusive_begin_key": "000000000000000000000000000000000000",
"exclusive_end_key": "a00000000000000000000000000000000000",
"create_time": "2019-01-14 19:19:41"
},
{
"partition_id": 2,
"status": "readwrite",
"inclusive_begin_key": "a00000000000000000000000000000000000",
"exclusive_end_key": "ffffffffffffffffffffffffffffffffffff",
"create_time": "2019-01-14 19:19:41"
}
]
}
There are only common response headers but no special response headers.
Field Name | Type | Required | Description |
---|---|---|---|
partition_id | int | Yes | Topic partition number |
status | string | Yes | Topic partition status: |
inclusive_begin_key | string | Yes | Starting position of topic partition range |
exclusive_end_key | string | Yes | Ending position of topic partition range |
create_time | string | Yes | Topic partition creation time |
For more information, please see Error Codes.
Was this page helpful?