調用ListUsers查詢叢集使用者列表。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ehpc:ListUsers |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ClusterId |
string |
是 |
叢集 ID。 您可以通過調用 ListClusters 擷取叢集 ID。 |
ehpc-hz-FYUr32**** |
| PageNumber |
integer |
否 |
當前頁碼。 起始值:1 預設值:1 |
1 |
| PageSize |
integer |
否 |
每頁顯示的條數。取值範圍:1~50 預設值:10 |
10 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| PageSize |
integer |
本頁條數。 |
1 |
| RequestId |
string |
請求 ID。 |
04F0F334-1335-436C-A1D7-6C044FE7**** |
| PageNumber |
integer |
當前頁碼。 |
1 |
| TotalCount |
integer |
列表條目總數。 |
1 |
| Users |
object |
||
| UserInfo |
array<object> |
使用者列表資訊。 |
|
|
object |
|||
| Name |
string |
使用者名稱。 |
user1 |
| AddTime |
string |
添加使用者的時間。 |
2018-07-18T17:46:47 |
| Group |
string |
使用者組。可能值:
|
wheel |
樣本
正常返回樣本
JSON格式
{
"PageSize": 1,
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE7****",
"PageNumber": 1,
"TotalCount": 1,
"Users": {
"UserInfo": [
{
"Name": "user1",
"AddTime": "2018-07-18T17:46:47",
"Group": "wheel"
}
]
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidParams | The specified parameter %s is invalid. | 指定的參數 %s 無效。 |
| 500 | UnknownError | An unknown error occurred. | 未知錯誤 |
| 403 | InvalidClusterStatus | The operation failed due to invalid cluster status. | 叢集狀態不允許執行本次操作。 |
| 404 | ManagerNotFound | The manager nodes do not exist or their status is abnormal. | 管理節點不存在或狀態異常。 |
| 404 | ClusterNotFound | The specified cluster does not exist. | 指定的叢集不存在,請您檢查該參數是否正確。 |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | 請求失敗,服務暫時不可用 |
| 406 | AgentError | The agent service request failed. | 叢集側命令運行失敗。%s |
| 406 | AgentError.Account.DomainNotExist | The specified domain does not exist: %s. | 網域服務不存在:{},請您檢查該參數是否正確。 |
| 406 | AgentError.Account.GetentPasswdFailure | Failed to get the user list: %s. | 擷取域使用者列表失敗:{} |
| 406 | AgentError.Account.GetUserListFailure | Get user list fail: %s | 擷取使用者列表失敗:%s |
| 407 | NotAuthorized | You are not authorized by RAM for this request. | 此請求未獲得RAM授權 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。