Component list
Call ListComponents to obtain a list of E-MapReduce (EMR) cluster components.
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=ListComponents
The following table lists only the request parameters specific to this API and some common parameters. For more information, see common parameters.
**Action **string %%require%% Example value: ListComponents
The operation to perform. Value: ListComponents.
**Version **string %%require%% Example value: 2023-08-15
API version. Value: 2023-08-15.
**ClusterId **string %%require%% Example value: emr-xxx
Cluster ID
**ApplicationNames **string[] Optional Example value: ["HDFS"]
List of service names
**ComponentNames **string[] Optional Example value: ["DATANODE"]
List of component names
The following table lists only the response parameters specific to this API. For more information, see response structure
**Items **object[] Example value: --
List of cluster component information
**ClusterId **string Example value: emr-xxx
Cluster ID
**ApplicationName **string Example value: HDFS
Application name
**ComponentName **string Example value: ZKFC
Component name
**ComponentType **string
Component type
**ComponentState **string Example value: STARTED
Component state
**CreateTime **string Example value: null
Creation time
**StartTime **string Example value: null
Start time
**MaxResults **integer Example value: 10
Maximum number of records returned per query
**NextToken **string Example value: null
Token for the next page in paginated queries
**TotalCount **integer Example value: 6
Total record count
{ "RequestId":null, "RegionId":"cn-beijing", "UserId":xxx, "AccountId":xxx, "ClusterId":"emr-xxx", "ApplicationNames": ["HDFS"] }
{ "ResponseMetadata": { "RequestId": "20231205115604A412C01E25FABxxx", "Action": "ListComponents", "Version": "2023-08-15", "Service": "emr", "Region": "cn-beijing", "Error": null, "Deprecated": false }, "Result": { "Items": [ { "ClusterId": "emr-xxx", "ApplicationName": "HDFS", "ComponentName": "NAMENODE", "Replica": 0, "ComponentState": "STARTED", "CreateTime": null, "StartTime": null }, { "ClusterId": "emr-xxx", "ApplicationName": "HDFS", "ComponentName": "JOURNALNODE", "Replica": 0, "ComponentState": "STARTED", "CreateTime": null, "StartTime": null }, { "ClusterId": "emr-xxx", "ApplicationName": "HDFS", "ComponentName": "DATANODE", "Replica": 0, "ComponentState": "STARTED", "CreateTime": null, "StartTime": null }, { "ClusterId": "emr-xxx", "ApplicationName": "HDFS", "ComponentName": "ROUTER", "Replica": 0, "ComponentState": "STARTED", "CreateTime": null, "StartTime": null }, { "ClusterId": "emr-xxx", "ApplicationName": "HDFS", "ComponentName": "ZKFC", "Replica": 0, "ComponentState": "STARTED", "CreateTime": null, "StartTime": null }, { "ClusterId": "emr-xxx", "ApplicationName": "HDFS", "ComponentName": "HdfsFoundation", "Replica": 0, "ComponentState": "INSTALLED", "CreateTime": null, "StartTime": null } ], "TotalCount": 6, "MaxResults": 10, "NextToken": 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 | Note |
|---|---|---|
400 | InvalidClusterId | Cluster does not exist |
400 | InvalidRequest | No permission for this cluster |