You need to enable JavaScript to run this app.
导航

UpdateNodeGroupChargeType - 更新节点组付费类型

最近更新时间2024.01.22 15:48:50

首次发布时间2024.01.22 15:48:50

更新节点组付费类型

使用说明

调用 UpdateNodeGroupChargeType,修改一个 E-MapReduce(EMR)集群节点组付费类型。

注意事项

已拥有火山引擎账号并开通 EMR 权限。

请求说明

请求方式:POST
请求地址:https://open.volcengineapi.com/?Version=2023-08-15&Action=UpdateNodeGroupChargeType

调试

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

参数
类型
是否必填
示例值
描述
Action
String

UpdateNodeGroupChargeType

要执行的操作,取值:UpdateNodeGroupChargeType

Version
String

2023-08-15

API的版本,取值:2023-08-15

ClusterId
String

emr-xxx

集群ID

NodeGroupIds
Array of String

["task-1.emr-xxx"]

节点组ID列表

ChargeType
String

PRE

节点组的付费类型

ChargePreConfig
ChargePreConfig

xxx

包周期付费配置

ClientToken
String

xxx

调用方生成的唯一标识这次请求的标识,用来保证幂等

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结构

参数
类型
示例值
描述
ClusterId
String

emr-xxxx

集群ID

OperationId
String

xxx

集群操作ID

请求示例

{
    "RequestId":null,
    "RegionId":"cn-beijing",
    "UserId":5xxx,
    "AccountId":2xxx,
    "ClusterId":"emr-xxx",
    "NodeGroupName":"CoreGroup-test",
    "NodeGroupId":"core-1.emr-xxx"
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202312042119240BF2149851xxx",
        "Action": "UpdateNodeGroupChargeType",
        "Version": "2023-08-15",
        "Service": "emr",
        "Region": "cn-beijing",
        "Error": null,
        "Deprecated": false
    },
    "Result": {
        "OperateId": "xxx",
        "ClusterId": "emr-xxx",
        "ResultData": null
    }   
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

HttpCode
错误码
错误信息
说明
400
IllegalOperationForCluster
The cluster id {clusterId} does not support the operation

非法操作,该集群不支持该操作

400
InvalidClusterId
cluster id {clusterId} not found

集群不存在

400
InvalidRequest
Access Denied {clusterId}

对该集群没有权限