This API is used to get the logset information list.
GET /logsets HTTP/1.1
Host: <Region>.cls.tencentyun.com
Authorization: <AuthorizationString>
GET /logsets
There are only common request headers but no special request headers.
None.
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 123
{
"logsets": [
{
"logset_id": "xxxx-xx-xx-xx-xxxxxxxx",
"logset_name": "testname",
"period": 15,
"create_time": "2017-08-08 12:12:12",
"assumer_uin": 1000088888,
"assumer_name": "xxxxxx",
"logset_modify_acl": 31
}
]
}
There are only common response headers but no special response headers.
Field Name | Type | Required | Description |
---|---|---|---|
logsets | JsonArray | Yes | Logset information array |
LogsetInfo
is in the following format:
Field Name | Type | Required | Description |
---|---|---|---|
logset_id | string | Yes | Logset ID |
logset_name | string | Yes | Logset name |
period | int | Yes | Retention period in days |
create_time | string | No | Creation time |
assumer_uin | uint64 | No | uin of the service that creates the logset (this field is present only when a general account views the logsets created by a service account) |
assumer_name | string | No | Name of the service that creates the logset (this field is present only when a general account views the logsets created by a service account) |
logset_modify_acl | int | No | General user's permission to modify logsets, i.e., modify_acl (0B00000: modification prohibited, 0B00001: modification allowed for basic information) (this field is present only when a general account views the logsets created by a service account) |
For more information, please see Error Codes.
Was this page helpful?