ListPluginStatus
Queries the status of Cloud Assistant plugins on instances.
Operation description
- The Cloud Assistant Agent version on the instance must be at least the following version for the Cloud Assistant plugin status to be queried:
Linux: 2.2.3.344.
Windows: 2.1.3.344.
When querying the first page with paging, set only
MaxResultsto limit the number of entries to return. TheNextTokenvalue returned in the response is used as the credential to query subsequent pages. When querying subsequent pages, set theNextTokenparameter to theNextTokenvalue obtained from the previous response, and setMaxResultsto limit the number of entries to return.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:ListPluginStatus |
get |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call DescribeRegions to query the most recent region list. |
cn-hangzhou |
| InstanceId |
array |
No |
The instance ID. You can specify up to 50 instances in a single request. Valid values of N: 1 to 50. |
|
|
string |
No |
The instance ID. You can specify up to 50 instances in a single request. Valid values of N: 1 to 50. |
i-bp1iudwa5b1tqa**** |
|
| Name |
string |
No |
The plugin name. The full character set is supported. The name can be up to 255 characters in length.
|
testPluginName |
| PageNumber |
integer |
No |
Note
This parameter is about to be deprecated. Use NextToken and MaxResults to perform paging. |
1 |
| PageSize |
integer |
No |
Note
This parameter is about to be deprecated. Use NextToken and MaxResults to perform paging. |
10 |
| MaxResults |
integer |
No |
The maximum number of entries per page for a paged query. Maximum value: 50. Default value: 10. |
10 |
| NextToken |
string |
No |
The pagination token. Set this parameter to the NextToken value returned in the previous API call. |
AAAAAdDWBF2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| InstancePluginStatusSet |
object |
||
| InstancePluginStatus |
array<object> |
The list of instance plugin statuses. |
|
|
array<object> |
The list of instance plugin statuses. |
||
| InstanceId |
string |
The instance ID. |
i-xxxxx |
| PluginStatusSet |
object |
||
| PluginStatus |
array<object> |
The list of plugin statuses. |
|
|
object |
The list of plugin statuses. |
||
| FirstHeartbeatTime |
string |
The time when Cloud Assistant first reported the plugin status. The time is in ISO 8601 format and displayed in UTC. |
2020-01-19T09:15:46Z |
| LastHeartbeatTime |
string |
The time when Cloud Assistant most recently reported the plugin status. The time is in ISO 8601 format and displayed in UTC. |
2020-01-19T09:15:46Z |
| PluginName |
string |
The plugin name. |
testName |
| PluginStatus |
string |
The plugin status. Valid values:
|
Running |
| PluginVersion |
string |
The plugin version number. |
1.1 |
| NextToken |
string |
The pagination token returned in this call. |
AAAAAdDWBF2 |
| PageNumber |
integer |
The page number of the query result. |
1 |
| PageSize |
integer |
The number of entries per page. |
10 |
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| TotalCount |
integer |
The total number of records that match the query conditions. |
1 |
Examples
Success response
JSON format
{
"InstancePluginStatusSet": {
"InstancePluginStatus": [
{
"InstanceId": "i-xxxxx",
"PluginStatusSet": {
"PluginStatus": [
{
"FirstHeartbeatTime": "2020-01-19T09:15:46Z",
"LastHeartbeatTime": "2020-01-19T09:15:46Z",
"PluginName": "testName",
"PluginStatus": "Running",
"PluginVersion": "1.1"
}
]
}
}
]
},
"NextToken": "AAAAAdDWBF2",
"PageNumber": 1,
"PageSize": 10,
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
"TotalCount": 1
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | RegionId.ApiNotSupported | The api is not supported in this region. | The API operation cannot be called in the specified region. Check whether the specified RegionId parameter is valid. |
| 400 | InvalidParam.PageNumber | The specified parameter PageNumber is invalid. | The specified PageNumber parameter is invalid. |
| 400 | InvalidParam.PageSize | The specified parameter PageSize is invalid. | The specified PageSize parameter is invalid. |
| 400 | PluginName.MissingValue | The plugin name must be specified when the number of InstanceIds is not 1. | The plug-in name must be specified when no or multiple instance IDs are specified. |
| 400 | InstanceIds.ExceedLimit | The number of instance IDs exceeds the upper limit. | |
| 400 | InvalidParameter.NextToken | The specified parameter NextToken is not valid. | The specified parameter NextToken is illegal. |
| 400 | InvalidParameter.MaxResults | The specified parameter MaxResults is not valid. | The specified parameter MaxResults is illegal. |
| 500 | InternalError.Dispatch | An error occurred when you dispatched the request. | An error occurred while the request is being sent. Try again later. |
| 403 | InvalidParameterCharacter | The specified parameter %s contains illegal characters. | |
| 403 | Operation.Forbidden | The operation is not permitted. | The operation is not supported. |
| 404 | InvalidInstance.NotFound | The specified instance does not exist. | The specified instance does not exist. |
| 404 | InvalidPluginName.NotFound | The specified plugin name does not exist. | The specified plug-in name does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.