Mengambil log instans.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:DescribeInstanceLog |
get |
*全部资源
|
None | None |
Sintaks permintaan
GET /pop/v1/sam/instance/describeInstanceLog HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans. |
******-d700e680-aa4d-4ec1-afc2-6566b5ff4d7a-85d44d4bfc-***** |
| ContainerId |
string |
No |
ID kontainer sidecar. Panggil operasi ListApplicationInstances untuk mendapatkan ID ini. |
sidecar-test-01 |
| Previous |
string |
No |
Apakah akan Tampilan log instans sebelum restart terakhir. Catatan: Parameter ini hanya berlaku jika instans telah direstart. |
false |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
The returned message.
|
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 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message": "success",
"TraceId": "0a98a02315955564772843261e****",
"Data": "hello\\nsae\\n",
"ErrorCode": "",
"Code": "200",
"Success": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.NotEmpty | You must specify the parameter %s. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.