Menampilkan daftar kluster EMR.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
emr:ListClusters |
list |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah. |
cn-hangzhou |
| NextToken |
string |
No |
Token yang menentukan posisi awal kueri. Jika Anda mengosongkan parameter ini, kueri akan dimulai dari awal. |
eyJlY21OZXh0VG9rZW4iOiIxIiwidGFpaGFvTmV4dFRva2VuIjoiNTYiLCJ0YWloYW9OZXh0VG9rZW5JbnQiOjU2LCJlY21OZXh0VG9rZW5JbnQiOjF9 |
| MaxResults |
integer |
No |
Jumlah maksimum entri yang dikembalikan per halaman. Nilai yang valid: 1 hingga 100. |
20 |
| ClusterName |
string |
No |
Nama kluster. |
emrtest |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-acfmzabjyop**** |
| ClusterIds |
array |
No |
Daftar ID kluster. Jumlah elemen array N berkisar antara 1 hingga 100. |
rg-acfmzabjyop**** |
|
string |
No |
ID kluster. |
c-b933c5aac8fe**** |
|
| ClusterTypes |
array |
No |
Daftar tipe kluster. Jumlah elemen array N berkisar antara 1 hingga 100. |
["c-b933c5aac8fe****"] |
|
string |
No |
Tipe kluster. Nilai yang valid:
|
DATALAKE |
|
| ClusterStates |
array |
No |
Array status kluster. Jumlah elemen array N berkisar antara 1 hingga 100. |
["HADOOP"] |
|
string |
No |
Status kluster. Nilai yang valid:
|
RUNNING |
|
| PaymentTypes |
array |
No |
Metode penagihan. Jumlah elemen array N dapat berupa 1 atau 2. |
["ECS"] |
|
string |
No |
Metode penagihan. Nilai yang valid:
|
PayAsYouGo |
|
| Tags |
array |
No |
Daftar tag. Jumlah elemen array N berkisar antara 1 hingga 20. |
["PayAsYouGo"] |
| Tag |
No |
Tag. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Data yang dikembalikan. |
||
| Clusters |
array |
Daftar kluster. |
|
| ClusterSummary |
Informasi kluster. |
||
| RequestId |
string |
ID permintaan. |
9E3A7161-EB7B-172B-8D18-FFB06BA3896A |
| NextToken |
string |
Token untuk halaman hasil berikutnya. |
eyJlY21OZXh0VG9rZW4iOiIxIiwidGFpaGFvTmV4dFRva2VuIjoiNTYiLCJ0YWloYW9OZXh0VG9rZW5JbnQiOjU2LCJlY21OZXh0VG9rZW5JbnQiOjF9 |
| MaxResults |
integer |
Jumlah entri yang dikembalikan per halaman. |
20 |
| TotalCount |
integer |
Total jumlah entri. |
1000 |
Contoh
Respons sukses
JSONformat
{
"Clusters": [
{
"ClusterId": "c-b933c5aac8fe****",
"ClusterName": "emrtest",
"ClusterType": "DATALAKE",
"ClusterState": "RUNNING",
"PaymentType": "PayAsYouGo",
"CreateTime": 1592837465788,
"ReadyTime": 1592837465788,
"ExpireTime": 1592837475788,
"EndTime": 1592837485788,
"ReleaseVersion": "EMR-5.8.0",
"ResourceGroupId": "rg-acfmzabjyop****",
"StateChangeReason": {
"Code": "OutOfStock",
"Message": "The requested resource is sold out in the specified zone, try other types of resources or other regions and zones."
},
"Tags": [
{
"Key": "department",
"Value": "IT"
}
],
"EmrDefaultRole": "AliyunEMRDefaultRole",
"Description": "EMR cluster",
"DeletionProtection": false
}
],
"RequestId": "9E3A7161-EB7B-172B-8D18-FFB06BA3896A",
"NextToken": "eyJlY21OZXh0VG9rZW4iOiIxIiwidGFpaGFvTmV4dFRva2VuIjoiNTYiLCJ0YWloYW9OZXh0VG9rZW5JbnQiOjU2LCJlY21OZXh0VG9rZW5JbnQiOjF9",
"MaxResults": 20,
"TotalCount": 1000
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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.