You can call this operation to modify the name of a cluster.

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 ModifyClusterName

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

Id String Yes C-D7958B72E59BAB88

The ID of the cluster.

Name String Yes bi_hadoop

The new name of the cluster. You must use the same naming conventions as you used for the original cluster name. The name must be 1 to 64 characters in length and can only contain letters, digits, hyphens (-), and underscores (_).

RegionId String Yes cn-hangzhou

The ID of the region where your cluster resides.

AccessKeyId String No LTAI8ljWyu7y****

The AccessKey ID provided to you by Alibaba Cloud, which specifies the ID of the user.

Response parameters

Parameter Type Example Description
RequestId String 588E7707-D8C8-4618-9B74-FE54B6903A9A

The ID of the request.

Examples

Sample requests


http(s)://[Endpoint]/? Action=ModifyClusterName
&Id=C-D7958B72E59BAB88
&Name=bi_hadoop
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<ModifyClusterNameResponse>
	  <RequestId>588E7707-D8C8-4618-9B74-FE54B6903A9A</RequestId>
</ModifyClusterNameResponse>

JSON format

{
	"RequestId": "588E7707-D8C8-4618-9B74-FE54B6903A9A"
}

Error codes

HTTP status code Error code Error message Description
403 Params.Illegal The specified parameters are wrongly formed.. The error message returned because the format of the specified parameters is invalid.
404 ClusterId.NotFound The ClusterId provided does not exist in our records. The error message returned because the ID of the specified cluster does not exist. Check the ID of the cluster.
500 InternalError The request processing has failed due to some unknown error. The error message returned because an internal error has occurred. Submit a ticket.
403 User.OtherUserResource.NotAllow It is not allowed to operate other user's resource The error message returned because you are not allowed to manage resources of other users.
403 User.Account.Abnormal The User Account maybe is out of service! The error message returned because the Alibaba Cloud account is invalid.
500 InternalError The request processing has failed due to some unknown error. The error message returned because an internal error has occurred. Submit a ticket.

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