tencent cloud

Setting Machine Group Bound to Log Topic
Last updated: 2024-12-12 16:31:04
Setting Machine Group Bound to Log Topic
Last updated: 2024-12-12 16:31:04

Feature Description

This API is used to set the machine group information bound to a log topic.

Request

Sample request

PUT /topic/machinegroup?topic_id=xxxx-xx-xx-xx-xxxxxxxx HTTP/1.1
Host: <Region>.cls.tencentyun.com
Authorization: <Authorization String>
Content-Type: application/json
{
"machine_groups": ["xxxxxx-xx-xx-xx-yyyyyyyy"]
}

Request line

PUT /topic/machinegroup

Request header

There are only common request headers but no special request headers.

Request parameters

Field Name
Type
Location
Required
Description
topic_id
string
query
Yes
ID of the log topic to set
machine_groups
JsonArray (string)
body
Yes
Array of machine group IDs to bind to log topic

Response

Sample response

HTTP/1.1 200 OK
Content-Length: 0

Response header

There are only common response headers but no special response headers.

Response parameters

None.

Error Codes

For more information, please see Error Codes.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback