Retrieves the deployment and upgrade logs of a service instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
computenest: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 per page. Maximum value: 100. Default value: 20. |
20 |
| NextToken |
string |
No |
The token that is used to retrieve the next page of results. Set this to the NextToken value that was returned in the last response. |
BBBAAfu+XtuBE55iRLHEYYuojI4= |
| ServiceInstanceId |
string |
Yes |
The service instance ID. |
si-70a3b15bb626435b**** |
| LogSource |
string |
No |
The log source. Valid values:
|
computeNest |
| Logstore |
string |
No |
The Logstore. This parameter is required when you query application logs. |
logabc |
| Filter |
array<object> |
No |
The filter. |
|
|
object |
No |
The filter. |
||
| Value |
array |
No |
A list of filter values. The value of N can be from 1 to 10. |
|
|
string |
No |
The value of the filter condition. |
- StartTime:2024-07-01T02:41:20Z - EndTime:2024-07-01T02:41:20Z - EventName:DeleteInstance - ResourceName:i-bp1dgfcx8vl4w9m7a1st - ApplicationGroupName:groupA |
|
| Name |
string |
No |
The filter name. You can query by one or more filter names. Valid values:
Valid values:
|
- StartTime - EndTime - EventName - ResourceName - ApplicationGroupName |
| SortOrder |
string |
No |
The sort order. Valid values:
Valid values:
|
- Ascending - Descending |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The token for the next query. |
AAAAAfu+XtuBE55iRLHEYYuojI4= |
| RequestId |
string |
The request ID. |
51945B04-6AA6-410D-93BA-236E0248B104 |
| MaxResults |
integer |
The number of entries returned per page. Maximum value: 100. Default value: 20. |
20 |
| ServiceInstancesLogs |
array<object> |
The service instance logs. |
|
|
object |
The service instance logs. |
||
| Timestamp |
string |
The timestamp of the service instance log. |
2021-05-21T00:00:00Z |
| Source |
string |
The source of the service instance log. Valid values: computeNest: The deployment and upgrade logs of the service instance. application: The logs generated by the application. actionTrail: The ActionTrail audit logs. ros: The ROS logs. compliancePack: The compliance package logs. |
ros |
| Content |
string |
The log content. |
Start creating service instance |
| LogType |
string |
The log type. Valid values:
|
serviceInstance |
| ResourceType |
string |
The resource type. |
ROS.Stack |
| ResourceId |
string |
The associated ID. |
si-5c6525c0589545c3**** |
| Status |
string |
The log status. Valid values:
|
Creating |
| CompliancePackType |
string |
The threat type of the compliance package. For example, VpcDataRisk indicates a data security check in a VPC. |
VpcDataRisk |
| ComplianceRuleName |
string |
The name of the specific threat rule in the compliance package. For example, ecs-move-out-vpc indicates the migration of an ECS instance out of a VPC. |
ecs-move-out-vpc |
Examples
Success response
JSON format
{
"NextToken": "AAAAAfu+XtuBE55iRLHEYYuojI4=",
"RequestId": "51945B04-6AA6-410D-93BA-236E0248B104",
"MaxResults": 20,
"ServiceInstancesLogs": [
{
"Timestamp": "2021-05-21T00:00:00Z",
"Source": "ros",
"Content": "Start creating service instance",
"LogType": "serviceInstance",
"ResourceType": "ROS.Stack",
"ResourceId": "si-5c6525c0589545c3****",
"Status": "Creating",
"CompliancePackType": "VpcDataRisk\n\n",
"ComplianceRuleName": "ecs-move-out-vpc"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.