Queries whether the Cloud Assistant client is installed on one or more simple application servers.
Description
By default, the Cloud Assistant client is installed on your simple application server. If you have manually uninstalled the client, you must reinstall the client. Otherwise, you cannot run commands on the server.
Request parameter
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | DescribeCloudAssistantStatus |
The operation that you want to perform. Set the value to DescribeCloudAssistantStatus. |
| RegionId | String | Yes | cn-hangzhou |
The region ID of the simple application server. |
| PageNumber | Integer | No | 1 |
The number of the page to return. Pages start from page 1. Default value: 1. |
| PageSize | Integer | No | 10 |
The number of entries to return on each page. Maximum value: 50. Default value: 10. |
| InstanceIds | Array of String | No | ace0706b2ac4454d984295a94213**** |
The IDs of the simple application servers. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 20758A-585D-4A41-A9B2-28DA8F4F**** |
The ID of the request. |
| CloudAssistantStatus | Array of status |
The status of the Cloud Assistant client. |
|
| InstanceId | String | ace0706b2ac4454d984295a94213**** |
The ID of the simple application server. |
| Status | Boolean | true |
Indicates whether the Cloud Assistant client is installed on the server. |
| TotalCount | Integer | 1 |
The total number of commands. |
| PageSize | Integer | 10 |
The number of entries returned per page. Maximum value: 50. Default value: 10. |
| PageNumber | Integer | 1 |
The page number of the returned page. Pages start from page 1. Default value: 1. |
Examples
Sample requests
http(s)://swas.cn-hangzhou.aliyuncs.com/?Action=DescribeCloudAssistantStatus
&RegionId=cn-hangzhou
&PageNumber=1
&PageSize=10
&InstanceIds=["ace0706b2ac4454d984295a94213****"]
&<Common request parameters>
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeCloudAssistantStatusResponse>
<RequestId>20758A-585D-4A41-A9B2-28DA8F4F****</RequestId>
<CloudAssistantStatus>
<InstanceId>ace0706b2ac4454d984295a94213****</InstanceId>
<Status>true</Status>
</CloudAssistantStatus>
<TotalCount>1</TotalCount>
<PageSize>10</PageSize>
<PageNumber>1</PageNumber>
</DescribeCloudAssistantStatusResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "20758A-585D-4A41-A9B2-28DA8F4F****",
"CloudAssistantStatus" : [ {
"InstanceId" : "ace0706b2ac4454d984295a94213****",
"Status" : true
} ],
"TotalCount" : 1,
"PageSize" : 10,
"PageNumber" : 1
}
Error codes
For a list of error codes, visit the API Error Center.