Scale in node group
Call ScaleInNodeGroup to scale in a node group in an E-MapReduce (EMR) cluster.
You must have a Volcano Engine account and have enabled EMR permissions.
Request method: POST
Request URL: https://emr.cn-beijing.volcengineapi.com/?Version=2023-08-15&Action=ScaleInNodeGroup
The following table lists only the request parameters specific to this API and some common parameters. For more information, see common parameters.
Parameter | Type | Required | Example value | Description |
|---|---|---|---|---|
Action | String | Yes | ScaleInNodeGroup | The operation to be performed. Value: ScaleInNodeGroup. |
Version | String | Yes | 2023-08-15 | API version. Value: 2023-08-15. |
ClientToken | String | No | xxx | A unique identifier generated by the caller for this request, used to ensure idempotency. |
ScaleInNodeCount | String | Yes | 2 | Number of nodes to be scaled in. |
ClusterId | String | Yes | emr-xxx | Cluster ID. |
NodeGroupId | String | Yes | core-1.emr-xxx | Node group ID. |
The following table lists only the response parameters specific to this API. For more information, see response structure
Parameter | Type | Example value | Description |
|---|---|---|---|
ClusterId | String | emr-xxx | Cluster ID. |
OperationId | String | Orderxxx | Cluster operation ID. |
{ "RequestId":null, "RegionId":"cn-beijing", "UserId":5xxx, "AccountId":2100xxx, "ClientToken":"1234xx", "ClusterId":"emr-xxx", "NodeGroupId":"task-1.emr-xxx", "NodeIds":null, "ScaleInNodeCount":1 }
{ "ResponseMetadata": { "RequestId": "202312042119240BF2149851xxx", "Action": "ScaleInNodeGroup", "Version": "2023-08-15", "Service": "emr", "Region": "cn-beijing", "Error": null, "Deprecated": false }, "Result": { "OperateId": "xxx", "ClusterId": "emr-xxx", "ResultData": null } }
The following table lists the error codes related to the business logic of this API. For common error codes, see the common error codes documentation.
Status code | Error code | Error message | Description |
|---|---|---|---|
400 | InvalidRequest | Access Denied {clusterId} | No permission for this cluster. |
400 | InvalidClusterId | cluster id {clusterId} not found | Cluster does not exist. |