tencent cloud

Cloud Log Service

DocumentationCloud Log Service

Setting Machine Group Bound to Log Topic

Focus Mode
Font Size
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.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback