Mengambil daftar komponen.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
emr:ListComponents |
list |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah. Anda dapat memanggil Tampilan ListRegions. |
cn-hangzhou |
| ClusterId |
string |
Yes |
ID kluster. |
C-8CFEBCCFFEF5**** |
| NextToken |
string |
No |
Token paginasi yang digunakan di permintaan berikutnya untuk mengambil halaman hasil baru. Jika Anda mengosongkan parameter ini, kueri dimulai dari awal. |
"" |
| MaxResults |
integer |
No |
Jumlah entri yang akan dikembalikan di setiap halaman. |
10 |
| ApplicationNames |
array |
No |
Nama aplikasi. |
20 |
|
string |
No |
The application name. |
KNOX |
|
| ComponentNames |
array |
No |
Daftar nama komponen. |
["HDFS"] |
|
string |
No |
The component name. |
KNOX |
|
| ComponentStates |
array |
No |
Daftar status komponen. |
null |
|
string |
No |
The status of the component. |
INSTALLED |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Components |
array<object> |
The list of component information. |
|
|
object |
The component information. |
||
| ComponentName |
string |
The component name. |
KNOX |
| ApplicationName |
string |
The application name. |
KNOX |
| Replica |
integer |
The total number of instances on which the component is installed. |
1 |
| Namespace |
string |
The reserved field. |
“” |
| Attributes |
array |
The list of attributes. |
|
|
Attribute |
The name of the attribute. |
||
| RequestId |
string |
The request ID. |
FFAC608A-5DC3-174F-93C6-9F88CA6D5875 |
| NextToken |
string |
A pagination token. It can be used in the next request to retrieve a new page of results. |
DD6B1B2A-5837-5237-ABE4-FF0C89568980 |
| MaxResults |
integer |
The maximum number of entries returned. |
20 |
| TotalCount |
integer |
The total number of entries returned. |
200 |
Contoh
Respons sukses
JSONformat
{
"Components": [
{
"ComponentName": "KNOX",
"ApplicationName": "KNOX",
"Replica": 1,
"Namespace": "“”",
"Attributes": [
{
"Key": "currentYarnRangerPluginState",
"Value": "true"
}
]
}
],
"RequestId": "FFAC608A-5DC3-174F-93C6-9F88CA6D5875",
"NextToken": "DD6B1B2A-5837-5237-ABE4-FF0C89568980",
"MaxResults": 20,
"TotalCount": 200
}
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.