You can call this operation to stop a Cloud Assistant command that is running on one or cloud desktops.

Description

When you stop a one-time execution of a command, the command continues to run on the cloud desktops where it has started to run, and will not run on the cloud desktops where it has not started to run.

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
Action String Yes StopInvocation

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

InvokeId String Yes t-7d2a745b412b4601b2d47f6a768d****

The ID of the execution.

RegionId String Yes cn-hangzhou

The ID of the region.

DesktopId.N RepeatList No ecd-7w78ozhjcwa3u****

The ID of cloud desktop N. Valid values of N: 1 to 50.

Response parameters

Parameter Type Example Description
RequestId String F5F82BA8-92FE-49E4-AEB9-9010CE7329F3

The ID of the request.

Examples

Sample requests

https://ecd.cn-hangzhou.aliyuncs.com/?Action=StopInvocation
&DesktopId.1=ecd-7w78ozhjcwa3u****
&InvokeId=t-7d2a745b412b4601b2d47f6a768d****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<StopInvocationResponse>
      <RequestId>F5F82BA8-92FE-49E4-AEB9-9010CE7329F3</RequestId>
</StopInvocationResponse>

JSON format

{
    "RequestId":"F5F82BA8-92FE-49E4-AEB9-9010CE7329F3"
}

Error codes

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