Mengambil daftar semua pengguna dalam sebuah kluster.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ehpc:ListUsers |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
ID kluster E-HPC. Anda dapat memanggil operasi ListClusters untuk menanyakan ID kluster tersebut. |
ehpc-hz-FYUr32**** |
| PageNumber |
integer |
No |
Nomor halaman yang akan dikembalikan. Penomoran halaman dimulai dari halaman 1. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri yang dikembalikan per halaman. Nilai yang valid: 1 hingga 50. Nilai default: 10. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageSize |
integer |
Jumlah entri yang dikembalikan per halaman. |
1 |
| RequestId |
string |
ID permintaan. |
04F0F334-1335-436C-A1D7-6C044FE7**** |
| PageNumber |
integer |
Nomor halaman yang dikembalikan. |
1 |
| TotalCount |
integer |
Total jumlah entri yang dikembalikan. |
1 |
| Users |
object |
||
| UserInfo |
array<object> |
Daftar pengguna. |
|
|
object |
|||
| Name |
string |
Username akun. |
user1 |
| AddTime |
string |
Waktu saat pengguna dibuat. |
2018-07-18T17:46:47 |
| Group |
string |
Nama grup izin. Nilai yang valid:
|
wheel |
Contoh
Respons sukses
JSONformat
{
"PageSize": 1,
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE7****",
"PageNumber": 1,
"TotalCount": 1,
"Users": {
"UserInfo": [
{
"Name": "user1",
"AddTime": "2018-07-18T17:46:47",
"Group": "wheel"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParams | The specified parameter %s is invalid. | The specified parameter %s is invalid. |
| 500 | UnknownError | An unknown error occurred. | An unknown error occurred. |
| 403 | InvalidClusterStatus | The operation failed due to invalid cluster status. | The cluster status does not support the operation. |
| 404 | ManagerNotFound | The manager nodes do not exist or their status is abnormal. | The manager nodes do not exist or their status is abnormal. |
| 404 | ClusterNotFound | The specified cluster does not exist. | The specified instance does not exist. |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | The request has failed due to a temporary failure of the server. |
| 406 | AgentError | The agent service request failed. | The cluster-side command failed to run. %s |
| 406 | AgentError.Account.DomainNotExist | The specified domain does not exist: %s. | The domain service does not exist: %s |
| 406 | AgentError.Account.GetentPasswdFailure | Failed to get the user list: %s. | Failed to obtain the domain user list: %s |
| 406 | AgentError.Account.GetUserListFailure | Get user list fail: %s | Failed to query the list of users: %s |
| 407 | NotAuthorized | You are not authorized by RAM for this request. | The request is not authorized by RAM. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.