Cluster configuration file list
Call ListApplicationConfigFiles to view the application configuration files in an E-MapReduce (EMR) cluster.
Ensure that you 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=ListApplicationConfigFiles
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 | Description |
|---|---|---|---|---|
Action | String | Yes | ListApplicationConfigFiles | The operation to perform. Value: ListApplicationConfigFiles. |
Version | String | Yes | 2023-08-15 | API version. Value: 2023-08-15. |
ClusterId | String | Yes | emr-xxx | Cluster ID |
ApplicationName | String | Yes | HDFS | Application name |
MaxResults | Integer | No | 10 | Maximum number of records returned. Default is 10, maximum is 100. |
NextToken | String | No | xxx | Token for the next page in paginated queries. |
The following table lists only the response parameters specific to this API. For more information, see Response structure
Parameter | Type | Example | Description |
|---|---|---|---|
Items | Array of Object | -- | Application configuration file list |
MaxResults | Integer | 10 | Maximum number of records returned per query |
NextToken | String | TfhvaePXZl2eNA6K58wUIw== | Token for the next page in paginated queries |
TotalCount | Integer | 383 | Total number of records |
{ "ClusterId":"emr-xxx", "ApplicationName": "HDFS" }
{ "ResponseMetadata": { "RequestId": "20231204150314DDAD5A0C4767xxx", "Action": "ListApplicationConfigFiles", "Version": "2023-08-15", "Service": "emr", "Region": "cn-beijing", "Error": null, "Deprecated": false }, "Result": { "Items": [ { "ApplicationName": "HDFS", "FileName": "core-site.xml", "FilePath": "/etc/emr/hadoop/conf", "FileMode": null, "FileUser": "hdfs", "FileGroup": "hadoop", "SupportCustomConfigItem": null, "Description": null }, { "ApplicationName": "HDFS", "FileName": "hadoop-env.sh", "FilePath": "/etc/emr/hadoop/conf", "FileMode": null, "FileUser": "hdfs", "FileGroup": "hadoop", "SupportCustomConfigItem": null, "Description": null }, ... ], "TotalCount": 9, "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 | Description |
|---|---|---|
400 | IllegalOperationForCluster | Illegal operation. The cluster does not support this operation. |
400 | InvalidRequest | No permission for this cluster. |
400 | InvalidClusterId | Cluster does not exist. |
405 | UnSupportedListConfigFiles |