Call the ListServiceInstanceLogs operation to query deployment, upgrade, and application logs for a service instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
computenestsupplier:ListServiceInstanceLogs |
list |
*ServiceInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| MaxResults |
integer |
No |
The number of entries to return on each page. Valid values: 1 to 100. Default value: 20. |
20 |
| NextToken |
string |
No |
The token that specifies the next page of results to return. Set this parameter to the NextToken value from a previous response to retrieve the next page of results. |
BBBAAfu+XtuBE55iRLHEYYuojI4= |
| ServiceInstanceId |
string |
Yes |
The service instance ID. |
si-70a3b15bb626435b**** |
| LogSource |
string |
No |
The source of the logs. Valid values:
|
computeNest |
| Logstore |
string |
No |
The name of the Simple Log Service Logstore. |
livelog |
| Filter |
array<object> |
No |
The filters. |
|
|
object |
No |
A filter. |
||
| Name |
string |
No |
The name of the filter condition. Valid values:
|
StartTime |
| Value |
array |
No |
The values for the filter condition. You can specify up to 10 values. |
|
|
string |
No |
A filter value. |
2022-01-01T22:22:22Z |
|
| SortOrder |
string |
No |
The sort order. Valid values:
|
Ascending |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The token to retrieve the next page of results. If this parameter is empty, all results have been returned. |
AAAAAfu+XtuBE55iRLHEYYuojI4= |
| RequestId |
string |
The request ID. |
51945B04-6AA6-410D-93BA-236E0248B104 |
| MaxResults |
integer |
The number of entries returned on each page. |
20 |
| ServiceInstancesLogs |
array<object> |
The logs of the service instance. |
|
|
object |
The details of a log entry. |
||
| Timestamp |
string |
The timestamp of the log entry. |
2022-05-21T00:00:00Z |
| Source |
string |
The source of the log. Valid values:
|
computeNest |
| Content |
string |
The content of the log entry. |
Start creating service instance |
| LogType |
string |
The log type. Valid values:
|
serviceInstance |
| ResourceType |
string |
The resource type. |
ROS.Stack |
| ResourceId |
string |
The ID of the associated resource. |
si-5c6525c0589545c3**** |
| Status |
string |
The status of the event that the log records. Valid values:
|
Deployed |
| CompliancePackType |
string |
The threat type from the compliance package. This parameter is returned only when Source is set to compliancePack. For example, VpcDataRisk indicates a data security check within a VPC. |
VpcDataRisk |
| ComplianceRuleName |
string |
The name of the threat rule from the compliance package. This parameter is returned only when Source is set to compliancePack. For example, vpc-ecs-move-out-vpc indicates that an ECS instance was moved out of a VPC. |
vpc-ecs-move-out-vpc |
Examples
Success response
JSON format
{
"NextToken": "AAAAAfu+XtuBE55iRLHEYYuojI4=",
"RequestId": "51945B04-6AA6-410D-93BA-236E0248B104",
"MaxResults": 20,
"ServiceInstancesLogs": [
{
"Timestamp": "2022-05-21T00:00:00Z",
"Source": "computeNest",
"Content": "Start creating service instance",
"LogType": "serviceInstance",
"ResourceType": "ROS.Stack",
"ResourceId": "si-5c6525c0589545c3****",
"Status": "Deployed",
"CompliancePackType": "VpcDataRisk",
"ComplianceRuleName": "vpc-ecs-move-out-vpc"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.