You can call this operation to change the name of a cloud desktop.

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 ModifyDesktopName

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

DesktopId String Yes ecd-gx2x1dhsmucyy****

The ID of the cloud desktop whose name you want to change.

NewDesktopName String Yes test

The new name of the cloud desktop.

RegionId String Yes cn-hangzhou

The region ID of the cloud desktop.

Response parameters

Parameter Type Example Description
RequestId String 484256DA-D816-44D2-9D86-B6EE4D5BA78C

The ID of the request.

Examples

Sample requests

https://ecd.cn-hangzhou.aliyuncs.com/Action=ModifyDesktopName
&DesktopId=ecd-gx2x1dhsmucyy****	
&NewDesktopName=test
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<ModifyDesktopNameResponse>
      <RequestId>484256DA-D816-44D2-9D86-B6EE4D5BA78C</RequestId>
</ModifyDesktopNameResponse>

JSON format

{
    "RequestId":"484256DA-D816-44D2-9D86-B6EE4D5BA78C"
}

Error codes

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