All Products
Search
Document Center

E-MapReduce:ListApplicationConfigs

Last Updated:Jun 11, 2026

Mengkueri konfigurasi aplikasi.

Deskripsi operasi

Queries application configurations.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

emr:ListApplicationConfigs

list

*All Resource

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

RegionId

string

Yes

ID wilayah.

cn-hangzhou

ClusterId

string

Yes

ID kluster.

c-e6a9d46e9267****

NextToken

string

No

Nomor halaman berikutnya yang dikembalikan.

1

MaxResults

integer

No

Jumlah entri per halaman.

100

ApplicationName

string

No

Nama aplikasi.

HDFS

NodeGroupId

string

No

ID kelompok node.

ng-d555335ced5c****

ConfigFileName

string

No

Nama file konfigurasi.

hdfs-site.xml

ConfigItemKey

string

No

Kunci item konfigurasi.

dfs.replication

ConfigItemValue

string

No

Nilai item konfigurasi.

2

NodeId

string

No

ID node.

i-bp10h9rezawz1i4o****

Elemen respons

Element

Type

Description

Example

object

The response parameters.

ApplicationConfigs

array<object>

The application configurations.

object

ApplicationName

string

The name of the application.

HDFS

ConfigFileName

string

The name of the configuration file.

hdfs-site.xml

ConfigItemKey

string

The key of the configuration item.

dfs.replication

ConfigItemValue

string

The value of the configuration item.

2

CreateTime

integer

The creation time.

1628589439114

UpdateTime

integer

The update time.

1628589439114

Modifier

string

The person who modified the configurations.

170906468757****

Custom

boolean

Indicates whether the configurations are custom.

false

InitValue

string

The initial value.

2

Description

string

The description.

dfs.replication description

ConfigEffectState

string

The status of the configuration value.

EFFECT

NodeId

string

The node ID.

i-bp18y0ng3qqxog4mw****

NodeGroupId

string

The node group ID.

ng-d555335ced5****

RequestId

string

The request ID.

9E3A7161-EB7B-172B-8D18-FFB06BA3****

NextToken

string

The page number of the next page returned.

1

MaxResults

integer

The number of entries per page.

100

TotalCount

integer

The total number of pages returned.

100

Contoh

Respons sukses

JSONformat

{
  "ApplicationConfigs": [
    {
      "ApplicationName": "HDFS",
      "ConfigFileName": "hdfs-site.xml",
      "ConfigItemKey": "dfs.replication\n",
      "ConfigItemValue": "2",
      "CreateTime": 1628589439114,
      "UpdateTime": 1628589439114,
      "Modifier": "170906468757****",
      "Custom": false,
      "InitValue": "2",
      "Description": "dfs.replication description",
      "ConfigEffectState": "EFFECT",
      "NodeId": "i-bp18y0ng3qqxog4mw****",
      "NodeGroupId": "ng-d555335ced5****"
    }
  ],
  "RequestId": "9E3A7161-EB7B-172B-8D18-FFB06BA3****",
  "NextToken": "1",
  "MaxResults": 100,
  "TotalCount": 100
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 InvokeEcmError An error occurred while invoking ECM service.
400 NotFound.Cluster The cluster is not found.
400 InvalidParameter.Application The specified application is invalid.
400 ConflictParameters Parameters that must not be used together. %s
400 IncompleteSignature The request signature is invalid.
400 InvalidAction The action %s requested is invalid.
400 InvalidParameter The specified parameter %s is not valid.
400 InvalidParameterValue The input parameter %s is invalid or out of range.
400 MissingAction The action %s requested is missing.
400 MissingParameter The input parameter %s that is mandatory for processing this request is not supplied.
400 NotAuthorized You do not have permission to perform this action. %s
400 ThrottlingException The request was denied due to request throttling. %s
500 InternalError The request processing has failed due to some unknown error, exception or failure.
404 ResourceNotFound The resource not found by %s.
503 ServiceFailure The request has failed due to a temporary failure of %s service.
503 ServiceUnavailable The request has failed due to a temporary failure of the server.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.