Restarts one or more cloud desktops.

Description

The cloud desktops that you want to restart by calling this operation must be in the Running state.

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 RebootDesktops

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

RegionId String Yes cn-hangzhou

The ID of the region.

DesktopId.N String Yes ecd-gx2x1dhsmucyy****

The ID of cloud desktop N. You can specify one or more desktop IDs. Valid values of N: 1 to 100.

Response parameters

Parameter Type Example Description
RequestId String 8F851208-C0EA-4CDD-9074-DBE70CB430DA

The ID of the request.

Examples

Sample requests

https://ecd.cn-hangzhou.aliyuncs.com/?Action=RebootDesktops
&RegionId=cn-hangzhou
&DesktopId.1=ecd-gx2x1dhsmucyy****
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<RebootDesktopsResponse>
    <RequestId>8F851208-C0EA-4CDD-9074-DBE70CB430DA</RequestId>
</RebootDesktopsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "8F851208-C0EA-4CDD-9074-DBE70CB430DA"
}