Mengambil konten log.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
emr-serverless-spark:ListLogContents |
none |
*All Resource
|
None | None |
Sintaks permintaan
GET /api/v1/workspaces/{workspaceId}/action/listLogContents HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| workspaceId |
string |
No |
ID workspace. |
w-72704d9fb0****** |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| fileName |
string |
No |
Jalur lengkap file. |
oss://datadev******.cn-hangzhou.oss-dls.aliyuncs.com/w-72704d9fb0******/spark/logs/jr-af51aa63cc******/driver/stdout.log |
| offset |
integer |
No |
Baris awal untuk kueri. |
0 |
| length |
integer |
No |
Panjang log. |
9999 |
| regionId |
string |
No |
ID region. |
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Data yang dikembalikan |
||
| listLogContent |
object |
Konten log. |
|
| contents |
array<object> |
Daftar konten baris log. |
|
|
object |
|||
| LineContent |
string |
Log line content. |
spark pi is 3.14\n |
| totalLength |
integer |
Jumlah total baris log. |
10 |
| requestId |
string |
ID permintaan. |
DD6B1B2A-5837-5237-ABE4-FF0C8944**** |
Contoh
Respons sukses
JSONformat
{
"listLogContent": {
"contents": [
{
"LineContent": "spark pi is 3.14\\n"
}
],
"totalLength": 10
},
"requestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.