This API is used to create a logset and return its ID.
POST /logset HTTP/1.1
Host: <Region>.cls.tencentyun.com
Authorization: <AuthorizationString>
Content-Type: application/json
{"logset_name": "testname","period": 15}
POST /logset
There are only common response headers but no special response headers.
Field Name | Type | Location | Required | Description |
---|---|---|---|---|
logset_name | string | body | Yes | Logset name, which must be unique |
period | int | body | Yes | Logset retention period in days. Maximum value: 90 |
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 123
{"logset_id": "xxxx-xx-xx-xx-xxxxxxxx"}
There are only common response headers but no special response headers.
Field Name | Type | Required | Description |
---|---|---|---|
logset_id | string | Yes | Logset ID |
For more information, please see Error Codes.
Was this page helpful?