节点组列表
调用 CreateCluster,获取一个 E-MapReduce(EMR)集群节点组列表。
已拥有火山引擎账号并开通 EMR 权限。
请求方式:POST
请求地址:https://open.volcengineapi.com/?Version=2023-08-15&Action=ListNodeGroups
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
|---|---|---|---|---|
Action | String | 是 | ListNodeGroups | 要执行的操作,取值:ListNodeGroups。 |
Version | String | 是 | 2023-08-15 | API的版本,取值:2023-08-15。 |
ClusterId | String | 是 | emr-xxx | 集群ID |
NodeGroupIds | Array of String | 否 | ["core-1.emr-xxx"] | 节点组ID列表 |
NodeGroupNames | Array of String | 否 | ["CoreGroup"] | 节点组名称列表 |
NodeGroupTypes | Array of String | 否 | ["CORE"] | 节点组类型列表,MASTER、CORE、TASK |
MaxResults | Integer | 否 | 10 | 返回的最大记录数 |
NextToken | String | 否 | xxx | 分页查询的下一页token |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构
参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
Items | Array of Object | [{"NodeGroupId":"core-1.emr-xxx","NodeGroupName":"CoreGroup","NodeGroupType":"CORE","NodeCount":3}] | 集群节点组信息 |
NextToken | String | next-token | 分页查询的下一页token |
MaxResults | Integer | 10 | 单次查询可返回的最大记录数 |
TotalCount | Integer | 1 | 总记录数 |
{ "RequestId":null, "RegionId":"cn-beijing", "UserId":510xxx, "AccountId":2100xxx, "ClusterId":"emr-xxx" }
{ "ResponseMetadata": { "RequestId": "20231205164557BD00623CC2xxx", "Action": "ListNodeGroups", "Version": "2023-08-15", "Service": "emr", "Region": "cn-beijing", "Error": null, "Deprecated": false }, "Result": { "Items": [ { "ZoneId": null, "NodeGroupId": "task-1.emr-xxx", "NodeGroupName": "aa11", "NodeGroupType": "TASK", "WithPublicIp": "false", "ChargeType": "POST", "EcsInstanceTypes": [ "ecs.r2i.xlarge" ], "SubnetIds": null, "LayoutComponentNames": [], "CreateTime": null, "TerminateTime": null, "SystemDisk": { "Size": 80, "VolumeType": "ESSD_PL0" }, "DataDisks": [ { "Size": 80, "VolumeType": "ESSD_PL0", "Count": 1 } ], "NodeGroupState": "RUNNING" }, { "ZoneId": null, "NodeGroupId": "core-1.emr-xxx", "NodeGroupName": "CoreGroup", "NodeGroupType": "CORE", "WithPublicIp": "false", "ChargeType": "POST", "EcsInstanceTypes": [ "ecs.r3i.xlarge" ], "SubnetIds": null, "LayoutComponentNames": [], "CreateTime": null, "TerminateTime": null, "SystemDisk": { "Size": 80, "VolumeType": "ESSD_PL0" }, "DataDisks": [ { "Size": 80, "VolumeType": "ESSD_PL0", "Count": 1 } ], "NodeGroupState": "RUNNING" },... ], "TotalCount": 3, "MaxResults": 10, "NextToken": "lnXl1C2wTNK9iCZYl6gbVA==" } }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码 | 错误码 | 说明 |
|---|---|---|
400 | InvalidRequest | 对该集群没有权限 |
400 | InvalidClusterId | 集群不存在 |