GetPodContextLogs
Queries the context logs of a specific log entry.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paidlc:GetPodContextLogs |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v1/jobs/{JobId}/pods/{PodId}/contextlogs HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| JobId |
string |
No |
The job ID. |
dlcxxxxxx |
| PodId |
string |
No |
The ID of the task node to which the log to be queried belongs. |
dlcxxxxxx-master-0 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
string |
No |
The ID of the log. |
4|xxxxxx|x|x%xxxxxx-x |
| BackLines |
integer |
No |
The number of preceding log entries to retrieve. Default value: 25. Valid values: [0, 100). |
25 |
| ForwardLines |
integer |
No |
The number of subsequent log entries to retrieve. Default value: 100. Valid values: [0, 100). |
25 |
| Token |
string |
No |
The temporary token used for authentication. |
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9***** |
| IgnoreTruncate |
boolean |
No |
Specifies whether to truncate logs. If IgnoreTruncate is set to false, a single log entry that exceeds a specific threshold is truncated in the response. If IgnoreTruncate is set to true, no log entries are truncated, but the logs may be returned early. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request, which is used for diagnostics and troubleshooting. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| JobId |
string |
The job ID. |
dlcxxxxxx |
| PodId |
string |
The ID of the task node to which the log to be queried belongs. |
dlcxxxxxx-master-0 |
| Logs |
array |
The list of DLC job logs returned in this query. |
|
|
LogInfo |
The log information of the DLC job. |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"JobId": "dlcxxxxxx\n",
"PodId": "dlcxxxxxx-master-0",
"Logs": [
{
"PodId": "",
"PodUid": "",
"Id": "",
"Time": "",
"Content": "",
"Source": "stderr, stdout",
"IsTruncated": false
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.