GetInstanceLog
Queries the logs of an instance.
Operation description
You may not obtain the instance logs that were generated more than seven days ago.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:* |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
integer |
Yes |
The ID of the instance. |
1234 |
| ProjectEnv |
string |
Yes |
The environment of the workspace. Valid values: PROD and DEV. Valid values:
|
PROD |
| InstanceHistoryId |
integer |
No |
The historical record number of the instance. You can call the ListInstanceHistory operation to query the ID. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP status code returned. |
200 |
| Data |
string |
The content of the logs. |
log_content |
| ErrorMessage |
string |
The error message returned. |
The connection does not exist. |
| RequestId |
string |
The ID of the request. You can locate logs and troubleshoot issues based on the ID. |
E6F0DBDD-5AD**** |
| ErrorCode |
string |
The error code returned. |
Invalid.Tenant.ConnectionNotExists |
| Success |
boolean |
Indicates whether the request is successful. |
true |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"Data": "log_content",
"ErrorMessage": "The connection does not exist.",
"RequestId": "E6F0DBDD-5AD****",
"ErrorCode": "Invalid.Tenant.ConnectionNotExists",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.