Queries the logs of an instance.
Operation description
You may not obtain the instance logs that were generated more than seven days ago.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceId | long | Yes | The ID of the instance. | 1234 |
ProjectEnv | string | Yes | The environment of the workspace. Valid values: PROD and DEV. | PROD |
InstanceHistoryId | long | No | The historical record number of the instance. You can call the ListInstanceHistory operation to query the ID. | 1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"HttpStatusCode": 200,
"Data": "log_content",
"ErrorMessage": "The connection does not exist.",
"RequestId": "E6F0DBDD-5AD****",
"ErrorCode": "Invalid.Tenant.ConnectionNotExists",
"Success": true
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history