Configures a Logstore for an application.
Try it now
Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ManageAppLog |
update |
*Application
|
None | None |
Request syntax
POST /pop/v5/k8s/sls/update_sls_log_store HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
The application ID. You can query the application ID by calling the ListApplication operation. |
af58edcf-f7eb-****-****-db4e425f**** |
| Configs |
string |
Yes |
The Logstore configurations.
|
[{"logstore":"thisisanotherfilelog","type":"file","logDir":"/var/log/*"},{"logstore":"","type":"stdout","logDir":"stdout.log"},{"logstore":"thisisafilelog","type":"file","logDir":"/tmp/log/*"}] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
The HTTP status code. |
200 |
| Message |
string |
The returned message. |
success |
| RequestId |
string |
The request ID. |
D16979DC-4D42-************** |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "success",
"RequestId": "D16979DC-4D42-**************"
}
Error codes
See Error CodesError Codes for a complete list.
Release notes
See Release NotesRelease Notes for a complete list.