Updates the log collection configuration of an edge container application.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
No |
The application ID. You can call the ListEdgeContainerApps operation to obtain the application ID. Important The AppId is in the format of the app- prefix followed by a numeric suffix, with a total length of 20 to 64 characters (example: app-8806886***83794688). Call ListEdgeContainerApps to obtain an existing AppId, or call CreateEdgeContainerApp to create an application first. |
app-88068867578379**** |
| Stdout |
boolean |
No |
Specifies whether to enable standard output collection for the container. |
true |
| Path |
string |
No |
The log file of the container. |
/root/hello.log |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
42DE97FA-45D2-5615-9A31-55D9EC0D7563 |
| Stdout |
boolean |
Specifies whether to enable standard output collection for the container. |
true |
| Path |
string |
The log file of the container. |
/root/hello.log |
Examples
Success response
JSON format
{
"RequestId": "42DE97FA-45D2-5615-9A31-55D9EC0D7563",
"Stdout": true,
"Path": "/root/hello.log"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.appid | The format of the application ID is invalid. You can call ListEdgeContainerApps to obtain the application ID. | The format of the application ID is invalid. You can call ListEdgeContainerApps to obtain the application ID. |
| 400 | InvalidParameter | Invalid parameter. Check the parameter configuration. | Invalid parameter. Check the parameter configuration. |
| 500 | InternalError | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 404 | InvalidApp.NotFound | The application does not exist. Check whether the application ID you specified is correct and try again. | The application does not exist. Check whether the application ID you specified is correct and try again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.