Queries the logs of an Alibaba Cloud Service Mesh (ASM) instance.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | DescribeServiceMeshLogs |
The operation that you want to perform. Set the value to DescribeServiceMeshLogs. |
| ServiceMeshId | String | Yes | ca04bc38979214bf2882be79d39b4**** |
The ID of the ASM instance. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 31d3a0f0-07ed-4f6e-9004-1804498c**** |
The ID of the request. |
| Logs | Array of Log |
The details of the logs. |
|
| CreationTime | String | 2021-11-19T15:21:53+08:00 |
The point in time when the logs were generated. |
| ServiceMeshId | String | ca04bc38979214bf2882be79d39b4**** |
The ID of the ASM instance. |
| Log | String | [RequestID: 31d3a0f0-07ed-4f6e-9004-1804498c****, UID-110982038403****] c096d641835af4658827a4c66c234**** | Start to add cluster c186a6d9641a24098b5499d4d8313**** |
The content of the logs. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeServiceMeshLogs
&ServiceMeshId=ca04bc38979214bf2882be79d39b4****
&<Common request parameters>
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeServiceMeshLogsResponse>
<RequestId>31d3a0f0-07ed-4f6e-9004-1804498c****</RequestId>
<Logs>
<CreationTime>2021-11-19T15:21:53+08:00</CreationTime>
<ServiceMeshId>ca04bc38979214bf2882be79d39b4****</ServiceMeshId>
<Log>[RequestID: 31d3a0f0-07ed-4f6e-9004-1804498c****, UID-110982038403****] c096d641835af4658827a4c66c234**** | Start to add cluster c186a6d9641a24098b5499d4d8313****</Log>
</Logs>
</DescribeServiceMeshLogsResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "31d3a0f0-07ed-4f6e-9004-1804498c****",
"Logs" : {
"CreationTime" : "2021-11-19T15:21:53+08:00",
"ServiceMeshId" : "ca04bc38979214bf2882be79d39b4****",
"Log" : "[RequestID: 31d3a0f0-07ed-4f6e-9004-1804498c****, UID-110982038403****] c096d641835af4658827a4c66c234**** | Start to add cluster c186a6d9641a24098b5499d4d8313****"
}
}
Error codes
For a list of error codes, visit the API Error Center.