You can call this operation to query whether the Cloud Assistant client is installed on one or more instances.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
InstanceId.N RepeatList Yes i-bp1iudwa5b1tqa******

The ID of instance N. You can query up to 50 instances in each request. Valid values of N: 1 to 50.

RegionId String Yes cn-hangzhou

The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list.

Action String Yes DescribeCloudAssistantStatus

The operation that you want to perform. Set the value to DescribeCloudAssistantStatus.

Response parameters

Parameter Type Example Description
InstanceCloudAssistantStatusSet Array

An array consisting of InstanceCloudAssistantStatus data.

InstanceCloudAssistantStatus

The status of the Cloud Assistant client on the instance.

CloudAssistantStatus String true

Indicates whether the Cloud Assistant client is installed on the instance.

CloudAssistantVersion String 1.0.1.395

The version number of the Cloud Assistant client.

InstanceId String i-bp1iudwa5b1tqa******

The ID of the instance.

RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

The ID of the request.

Examples

Sample requests

https://ecs.aliyuncs.com/?Action=DescribeCloudAssistantStatus
&InstanceId.1=i-bp1iudwa5b1tqa******
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<DescribeCloudAssistantStatusResponse>
	  <InstanceCloudAssistantStatusSet>
		    <InstanceCloudAssitantStatus>
			      <InstanceId>i-bp11f7trr4hbi1******</InstanceId>
			      <CloudAssistantVersion>1.0.1.395</CloudAssistantVersion>
			      <CloudAssitantStatus>true</CloudAssitantStatus>
		    </InstanceCloudAssitantStatus>
		    <InstanceCloudAssitantStatus>
			      <InstanceId>i-bp1iudwa5b1tqa******</InstanceId>
			      <CloudAssistantVersion>1.0.1.395</CloudAssistantVersion>
			      <CloudAssitantStatus>true</CloudAssitantStatus>
		    </InstanceCloudAssitantStatus>
	  </InstanceCloudAssistantStatusSet>
</DescribeCloudAssistantStatusResponse>

JSON format

{
	"InstanceCloudAssistantStatusSet":{
		"InstanceCloudAssistantStatus":[
			{
				"InstanceId":"i-bp11f7trr4hbi1******",
				"CloudAssitantStatus":"true",
				"CloudAssistantVersion":"1.0.1.395"
			},
			{
				"InstanceId":"i-bp1iudwa5b1tqa******",
				"CloudAssitantStatus":"true",
				"CloudAssistantVersion":"1.0.1.395"
			}
		]
	}
}

Error codes

HTTP status code Error code Error message Description
500 InternalError.Dispatch An error occurred when you dispatched the request. The error message returned because an unknown error has occurred.
404 InvalidInstance.NotFound The specified instance does not exist. The error message returned because the specified InstanceId parameter does not exist.

For a list of error codes, visit the API Error Center.