Örneklerdeki Cloud Assistant eklentilerinin durumunu sorgular.
Operation description
- Örneklerdeki Cloud Assistant eklentisi durumunun sorgulanabilmesi için örnekteki Cloud Assistant Agent sürümünün en az aşağıdaki sürümlerde olması gerekir:
Linux: 2.2.3.344.
Windows: 2.1.3.344.
Sayfalama ile ilk sayfayı sorgularken, döndürülecek giriş sayısını sınırlamak için yalnızca MaxResults parametresini ayarlayın. Yanıtta döndürülen NextToken değeri, sonraki sayfaları sorgulamak için kimlik bilgisi olarak kullanılır. Sonraki sayfaları sorgularken, NextToken parametresini önceki yanıttan alınan NextToken değerine ayarlayın ve döndürülecek giriş sayısını sınırlamak için MaxResults parametresini ayarlayın.
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 |
Bölge kimliği. En son bölge listesini sorgulamak için DescribeRegions API'sini çağırabilirsiniz. |
cn-hangzhou |
| InstanceId |
array |
No |
Örnek kimliği. Tek bir istekte en fazla 50 örnek belirtebilirsiniz. N için geçerli değerler: 1 ile 50 arası. |
|
|
string |
No |
Örnek kimliği. Tek bir istekte en fazla 50 örnek belirtebilirsiniz. N için geçerli değerler: 1 ile 50 arası. |
i-bp1iudwa5b1tqa**** |
|
| Name |
string |
No |
Eklenti adı. Tam karakter kümesi desteklenir. Ad en fazla 255 karakter uzunluğunda olabilir.
|
testPluginName |
| PageNumber |
integer |
No |
Not
Bu parametre kullanımdan kaldırılmak üzeredir. Sayfalama yapmak için NextToken ve MaxResults parametrelerini kullanın. |
1 |
| PageSize |
integer |
No |
Not
Bu parametre kullanımdan kaldırılmak üzeredir. Sayfalama yapmak için NextToken ve MaxResults parametrelerini kullanın. |
10 |
| MaxResults |
integer |
No |
Sayfalanmış bir sorgu için sayfa başına maksimum giriş sayısı. Maksimum değer: 50. Varsayılan değer: 10. |
10 |
| NextToken |
string |
No |
Sayfalama belirteci. Bu parametreyi önceki API çağrısında döndürülen NextToken değerine ayarlayın. |
AAAAAdDWBF2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| InstancePluginStatusSet |
object |
||
| InstancePluginStatus |
array<object> |
Örnek eklenti durumlarının listesi. |
|
|
array<object> |
Örnek eklenti durumlarının listesi. |
||
| InstanceId |
string |
Örnek kimliği. |
i-xxxxx |
| PluginStatusSet |
object |
||
| PluginStatus |
array<object> |
Eklenti durumlarının listesi. |
|
|
object |
Eklenti durumlarının listesi. |
||
| FirstHeartbeatTime |
string |
Cloud Assistant'ın eklenti durumunu ilk bildirdiği zaman. Zaman ISO 8601 formatındadır ve UTC olarak görüntülenir. |
2020-01-19T09:15:46Z |
| LastHeartbeatTime |
string |
Cloud Assistant'ın eklenti durumunu en son bildirdiği zaman. Zaman ISO 8601 formatındadır ve UTC olarak görüntülenir. |
2020-01-19T09:15:46Z |
| PluginName |
string |
Eklenti adı. |
testName |
| PluginStatus |
string |
The plugin status. Valid values:
|
Running |
| PluginVersion |
string |
Eklenti sürüm numarası. |
1.1 |
| NextToken |
string |
Bu çağrıda döndürülen sayfalama belirteci. |
AAAAAdDWBF2 |
| PageNumber |
integer |
Sorgu sonucunun sayfa numarası. |
1 |
| PageSize |
integer |
Sayfa başına giriş sayısı. |
10 |
| RequestId |
string |
İstek kimliği. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| TotalCount |
integer |
Sorgu koşullarıyla eşleşen toplam kayıt sayısı. |
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. | |
| 400 | InvalidParam.PageNumber | The specified parameter PageNumber is invalid. | |
| 400 | InvalidParam.PageSize | The specified parameter PageSize is invalid. | |
| 400 | PluginName.MissingValue | The plugin name must be specified when the number of InstanceIds is not 1. | |
| 400 | InstanceIds.ExceedLimit | The number of instance IDs exceeds the upper limit. | |
| 400 | InvalidParameter.NextToken | The specified parameter NextToken is not valid. | |
| 400 | InvalidParameter.MaxResults | The specified parameter MaxResults is not valid. | |
| 500 | InternalError.Dispatch | An error occurred when you dispatched the request. | |
| 403 | InvalidParameterCharacter | The specified parameter %s contains illegal characters. | |
| 403 | Operation.Forbidden | The operation is not permitted. | |
| 404 | InvalidInstance.NotFound | The specified instance does not exist. | |
| 404 | InvalidPluginName.NotFound | The specified plugin name does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.