Changing a Cluster Name
Function
This API is used to change a cluster name.
Constraints
None
Debugging
You can debug this API through automatic authentication in API Explorer. API Explorer can automatically generate sample SDK code and provide the sample SDK code debugging.
URI
PUT /v2/{project_id}/clusters/{cluster_id}/cluster-name
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Explanation Project ID. For details about how to obtain the project ID, see Obtaining a Project ID. Constraints N/A Value range The value must consist of 1 to 64 characters. Only letters and digits are allowed. Default value N/A |
cluster_id |
Yes |
String |
Explanation The cluster ID. For details about how to obtain the cluster ID, see Obtaining a Cluster ID. Constraints N/A Value range The value can contain 1 to 64 characters, including only letters, digits, underscores (_), and hyphens (-). Default value N/A |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
cluster_name |
Yes |
String |
Explanation New cluster name. Constraints N/A Value range N/A Default value N/A |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
result |
String |
Explanation Result of the request for updating a mapping. Value range
|
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Explanation Error code. Value range N/A |
error_msg |
String |
Explanation Error message. Value range N/A |
Example Request
Change the MRS cluster name to mrs_jdRU_dm01.
{ "cluster_name" : "mrs_jdRU_dm01" }
Example Response
Status code: 200
The cluster name is changed.
{ "result" : "succeeded" }
Status Codes
See Status Codes.
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot