跳到主要内容

PATCH – 更新自定义角色权限

使用 PATCH 方法更新 Redfish 服务的 Role 资源中的属性。

请求 URL

PATCH https://<BMC_IPADDR>/redfish/v1/AccountService/Roles/$RoleId

请求正文

要更新的属性如下所示,所有这些属性都可以单独更改。

字段类型描述

OemPrivileges

数组
此属性的值是此角色包含的 OEM 权限集。对于预定义的角色,此属性应为 readOnly。这些值可以是:
  • Supervisor

  • ReadOnly

  • Configuration_NetworkingAndSecurity

  • UserAccountManagement

  • RemoteConsoleAccess

  • RemoteConsoleAndVirtualMediaAccess

  • RemoteServerPowerRestartAccess

  • Configuration_Basic

  • AbilityClearEventLogs

  • Configuration_Advanced

  • Configuration_UEFISecurity

响应

响应返回的内容与 GET 操作相同,但更新了属性。

状态代码

HTTP 状态代码错误消息 ID
500InternalError