Updates the name of a specified instance.

Request parameters

Parameter Type Required Example Description
Action String Yes UpdateInstanceName

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

InstanceId String Yes amqp-cn-zvp2ajsj****

The ID of the instance.

InstanceName String Yes amqp-cn-ZVp2ajsj****

The new name of the instance. The value is unlimited. We recommend that you set this parameter to a maximum of 64 characters in length.

RegionId String Yes cn-hangzhou

The ID of the region.

Response parameters

Parameter Type Example Description
Code Integer 200

The HTTP status code.

Data String true

The message returned.

RequestId String 6DC68EC9-0E76-5435-B8C0-FF9492B4****

The ID of the request.

Message String InstanceNotExist

The error message that is returned when an error occurs during execution.

Success Boolean true

The returned message that indicates whether the request is successful.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "6DC68EC9-0E76-5435-B8C0-FF9492B4****",
    "Data": true,
    "Code": 200,
    "Success": true

Error codes

HttpCode Error code Error message Description
500 InternalError The request processing has failed due to some unknown error. The error message returned because the request fails to be processed due to an unknown error.

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