全部產品
Search
文件中心

Elastic High Performance Computing:UpdateUser - 更新叢集使用者

更新時間:Feb 25, 2026

更新指定叢集使用者的資訊,包括使用者組、密碼等屬性。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

ehpc:UpdateUser

update

*全部資源

*

請求參數

名稱

類型

必填

描述

樣本值

ClusterId

string

叢集 ID。

ehpc-hz-FYUr32****

UserName

string

使用者名稱。

testuser

Group

string

待更新的使用者組屬性。取值範圍:

  • users:普通許可權組,適用於只有提交、調試作業需求的普通使用者。

  • wheel:sudo 許可權組,適用於需要管理叢集的管理員,除提交、調試作業外,還可以執行 sudo 命令進行安裝軟體、重啟節點等操作。

users

Password

string

待更新的使用者密碼屬性。長度為 6~30 個字元,必須同時包含以下四項中的三項:

  • 大寫英文字母

  • 小寫英文字母

  • 數字

  • 特殊字元:()~!@#$%^&*-_+=|{}[]:;'/<>,.?/

123****

返回參數

名稱

類型

描述

樣本值

object

返回資訊集合。

RequestId

string

請求 ID。

04F0F334-1335-436C-A1D7-6C044FE7****

Success

string

請求結果,可能值:

  • true:請求成功。

  • false:請求失敗。

true

樣本

正常返回樣本

JSON格式

{
  "RequestId": "04F0F334-1335-436C-A1D7-6C044FE7****",
  "Success": "true"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 InvalidParams The specified parameter %s is invalid. 指定的參數 %s 無效。
400 NotEnabled You have not enabled this service 您的賬戶還未開通此服務
400 InDebt Your account has overdue payments. 您的賬戶已欠費
500 UnknownError An unknown error occurred. 未知錯誤
403 InvalidClusterStatus The operation failed due to invalid cluster status. 叢集狀態不允許執行本次操作。
404 ClusterNotFound The specified cluster does not exist. 指定的叢集不存在,請您檢查該參數是否正確。
404 ManagerNotFound The manager nodes do not exist or their status is abnormal. 管理節點不存在或狀態異常。
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.UserAlreadyExist The specified user already exists in domain: %s. 使用者在域中已存在:{}
406 AgentError.Account.UserAddFailure Failed to add user to domain: %s. 添加使用者到域失敗:{}
406 AgentError.Account.UserNotExist The specified user is not found in the domain: %s. 使用者在域中不存在:%s,請您檢查該參數是否正確。
406 AgentError.Account.UserModifyGroupFailure Failed to modify user groups in domain: %s. 修改使用者權限組失敗:{}
406 AgentError.Account.UserChangePasswordFailure Failed to modify user password in domain: %s. 修改使用者密碼失敗
407 NotAuthorized You are not authorized by RAM for this request. 此請求未獲得RAM授權
409 PartFailure Part of the batch operation failed. 大量操作部分失敗

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情