Retrieves the log of an instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:DescribeInstanceLog |
get |
*All Resource
|
None | None |
Request syntax
GET /pop/v1/sam/instance/describeInstanceLog HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
******-d700e680-aa4d-4ec1-afc2-6566b5ff4d7a-85d44d4bfc-***** |
| ContainerId |
string |
No |
The ID of the sidecar container. Call the ListApplicationInstances operation to obtain this ID. |
sidecar-test-01 |
| Previous |
string |
No |
Specifies whether to view the log of the instance from before its last restart. Note: This parameter is active only if the instance was restarted. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| RequestId |
string |
The request ID. |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
The message returned.
|
success |
| TraceId |
string |
The trace ID. |
0a98a02315955564772843261e**** |
| Data |
string |
The instance log. |
hello\nsae\n |
| ErrorCode |
string |
The error code.
|
空 |
| Code |
string |
The HTTP status code.
|
200 |
| Success |
boolean |
Indicates whether the instance log was obtained. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message": "success",
"TraceId": "0a98a02315955564772843261e****",
"Data": "hello\\nsae\\n",
"ErrorCode": "空",
"Code": "200",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.NotEmpty | You must specify the parameter %s. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.