You can call this operation to synchronize the configuration of a resource pool to a cluster.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | RefreshClusterResourcePool |
The operation that you want to perform. Set the value to RefreshClusterResourcePool. |
ClusterId | String | Yes | C-0E995C0EE7E5ECB3 |
The ID of the cluster. |
RegionId | String | Yes | cn-hangzhou |
The ID of the region to which the cluster belongs. |
ResourcePoolId | Long | Yes | 115 |
The ID of the resource pool. |
AccessKeyId | String | No | LTAI8ljWyu7y**** |
The AccessKey ID provided to you by Alibaba Cloud. This parameter identifies the user. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
OperationId | String | xxxx |
The ID of the action. |
RequestId | String | A544317F-4A60-4532-AC96-191B9D80420A |
The ID of the request. |
WorkFlowInstanceId | String | xxxx |
The ID of the workflow instance. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=RefreshClusterResourcePool
&ClusterId=C-0E995C0EE7E5ECB3
&RegionId=cn-hangzhou
&ResourcePoolId=115
&<Common request parameters>
Sample success responses
XML
format
<RefreshClusterResourcePoolResponse>
<code>200</code>
<requestId>A544317F-4A60-4532-AC96-191B9D80420A</requestId>
<successResponse>true</successResponse>
</RefreshClusterResourcePoolResponse>
JSON
format
{
"successResponse":true,
"requestId":"A544317F-4A60-4532-AC96-191B9D80420A",
"code":"200"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | Forbidden | User not authorized to operate on the specified resource. | The error message returned because the user is not authorized to use the specified resource. Authorization from the Alibaba Cloud account is required. |
400 | ECSInfo.DiskSize.TooSmall | disk size per ecs should be >= 80GB. | The error message returned because the disk capacity is too small. A larger disk capacity is required. |
403 | User.OtherUserResource.NotAllow | It is not allowed to operate other user's resource. | The error message returned because you are not authorized to manage other user's resources. |
403 | User.Account.Abnormal | The User Account maybe is out of service! | The error message returned because the user account is out of service. |
403 | Master.Pwd.Cannot.Blank | Master password can not be blank when enable password! | The error message returned because the password of the master node cannot be empty. Specify the password of the master node. |
403 | LogPath.Cannot.Blank | Log path can not be blank when enable log! | The error message returned because the log path cannot be empty. Specify a valid value. |
403 | EMR.Version.Not.Exist | Specified emr version [%s] does not exist in region [%s]! | The error message returned because the specified EMR version does not exist. Select a valid version. |
400 | ECSInfo.ECSOrder.INVALID | invalid parameter format(ecsorderinfo). | The error message returned because the format of the parameter for creating an Elastic Compute Service (ECS) order is invalid. |
400 | Ecs.InstanceType.NotSupported | Unsupported ecs instance type [%s] at zone [%s] with IO-optimized [%s] and network type [%s]. | The error message returned because the instance type is not supported. |
400 | DiskType.Invalid | Unsupported disk type [%s] at zone [%s] with IO-optimized [%s] and network type [%s]. | The error message returned because the disk type is not supported. Specify a valid disk type. |
400 | Unsupported.DiskType | Ecs instance type [%s] does not support disk type [%]. | The error message returned because the ECS instance does not support the disk type. |
400 | Unsupported.ZoneId | Zone [%s] is invalid or not supported in emr. | The error message returned because the EMR cluster is unavailable in the zone. Select another zone in which the EMR cluster is available. |
500 | InternalError | The request processing has failed due to some unknown error. | The error message returned because the request processing has failed due to an internal error. Submit a ticket. |
For a list of error codes, visit the API Error Center.