You need to enable JavaScript to run this app.
文档中心
E-MapReduce

E-MapReduce

复制全文
下载 pdf
集群管理
ListClusters - 集群列表
复制全文
下载 pdf
ListClusters - 集群列表

集群列表查询

使用说明

调用 ListClusters,查询该账号下所有 E-MapReduce(EMR)集群。

注意事项

已使用账号登录火山引擎。

请求说明

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

调试

请求参数

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

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

ListClusters

要执行的操作,取值:ListClusters。

Version
String
是

2023-08-15

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

PageSize
String
否

10

最大返回数量

ClusterName
String
否

OpenApiHadoop3.7.0-xxx

集群名称,模糊查询

ProjectName
String
否

default

项目名称

ClusterId
String
否

emr-xxx

集群ID,模糊查询

ReleaseVersion
String
否

3.7.0

集群版本

CreateTimeBefore
String
否

1701764286000

开始日期,时间戳单位ms

CreateTimeAfter
String
否

1701764286300

结束日期,时间戳单位ms

ClusterIds
Array of String
否

["emr-xxx]

集群ID列表

ClusterTypes
Array of String
否

["Hadoop"]

集群类型列表

ClusterStates
Array of String
否

["RUNNING"]

集群状态列表

ChargeTypes
Array of String
否

["POST"]

集群付费类型列表

Tags
Array of Object
否

xxx

标签列表

MaxResults
Integer
否

10

返回的最大记录数

NextToken
String
否

57N8YtDWxxx

分页查询的下一页token

返回参数

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

参数
类型
示例值
描述
Items
Array of Object

[{"ClusterId":"emr-xxx","ClusterName":"OpenApiHadoop3.7.0-xxx","ClusterType":"Hadoop","ClusterState":"RUNNING"}]

集群信息

MaxResults
Integer

10

单次查询可返回的最大记录数

NextToken
String

next-token

分页查询的下一页token

TotalCount
Integer

1

总记录数

请求示例

{
    "ClusterId":"emr-xxx"
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20231205174720B3E08B8D2FB8E9xxx",
        "Action": "ListClusters",
        "Version": "2023-08-15",
        "Service": "emr",
        "Region": "cn-beijing",
        "Error": null,
        "Deprecated": false
    },
    "Result": {
        "Items": [
            {
                "RegionId": "cn-beijing",
                "ProjectName": "default",
                "ClusterId": "emr-xxx",
                "ClusterName": "OpenApiHadoop3.7.0-xxx",
                "ClusterType": "Hadoop",
                "ReleaseVersion": "3.7.0",
                "SecurityGroupId": "sg-xxx",
                "VpcId": "xxx",
                "Creator": "6xxx",
                "AccountId": 2100xxx,
                "NodeAttribute": {
                    "ZoneId": "cn-beijing-b",
                    "EcsIamRole": "VEECSforEMRRole",
                    "LoginUserName": null
                },
                "ClusterState": "RUNNING",
                "ChargeType": "POST",
                "CreateTime": 1701764286214,
                "ReadyTime": 1701764779378,
                "ExpireTime": null,
                "TerminateTime": null,
                "StateChangeReason": null
            }
        ],
        "TotalCount": 1,
        "MaxResults": 10,
        "NextToken": "57N8YtDWZ1LbCkWySngtD53oS+eCiHNIpxxx"
    }
}

错误码

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

状态码
错误码
错误信息
说明
400
InvalidRequest

Access Denied {clusterId}

对该集群没有权限

最近更新时间:2026.09.21 15:57:12
这个页面对您有帮助吗?
有用
有用
无用
无用