This API is used to get the information of the machine groups bound to a log topic.
GET /topic/machinegroup?topic_id=xxxx-xx-xx-xx-xxxxxxxx HTTP/1.1
Host: .cls.tencentyun.com
Authorization:
GET /topic/machinegroup
There are only common request headers but no special request headers.
Field Name | Type | Location | Required | Description |
---|---|---|---|---|
topic_id | string | query | Yes | ID of the log topic to be queried |
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 123
{
"machine_groups": [
{
"group_id": "xxxx-xx-xx-xx-yyyyyyyy",
"group_name": "testname"},
{"group_id": "xxxx-xx-xx-xx-zzzzzzzz",
"group_name": "testname1"}
]
}
There are only common response headers but no special response headers.
Field Name | Type | Required | Description |
---|---|---|---|
machine_groups | JsonArray | Yes | Array of machine groups bound to log topic |
machine_groups
is in the following format:
Field Name | Type | Required | Description |
---|---|---|---|
group_id | string | Yes | Machine group ID |
group_name | string | Yes | Machine group name |
For more information, please see Error Codes.
Was this page helpful?