Modifies the basic information of a specified cluster. This includes the cluster name, cluster description, and image that is used to create the cluster.

Description

Before you modify the basic information of a cluster, you can call the DescribeCluster operation to query details of the selected 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 ModifyClusterAttributes

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

ClusterId String Yes ehpc-hz-FYUr32****

The ID of the cluster that you want to modify.

Name String No cluster1

The new cluster name.

Description String No test-description

The new cluster description.

ImageOwnerAlias String No self

The new image type of the cluster. Valid values:

  • system: public image
  • self: custom image
  • others: shared image
  • marketplace: Alibaba Cloud Marketplace image
ImageId String No centos_7_06_64_20G_alibase_2019071****

The ID of the image.

Response parameters

Parameter Type Example Description
RequestId String 04F0F334-1335-436C-A1D7-6C044FE7336

The ID of the request.

Examples

Sample requests

https://ehpc.cn-hangzhou.aliyuncs.com/?Action=ModifyClusterAttributes
&ClusterId=ehpc-hz-FYUr32****
&<Common request parameters>

Sample success responses

XML format

<ModifyClusterAttributesResponse>
      <RequestId>04F0F334-1335-436C-A1D7-6C044FE7336</RequestId>
</ModifyClusterAttributesResponse>

JSON format

{
    "RequestId": "04F0F334-1335-436C-A1D7-6C044FE7336"
}

Error codes

HttpCode Error code Error message Description
503 ServiceUnavailable The request has failed due to a temporary failure of the server The error message returned because the request has failed. The server is temporarily unavailable.

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