导入登录规则信息
命令功能
导入登录规则信息。
命令格式
操作类型:POST
URL:https://device_ip/redfish/v1/Systems/SecurityService/SecurityLoad/Actions/SecurityLoad.Import
请求头:
X-Auth-Token: auth_value
请求消息体:
{
    "Password": password,
    "file_name": file_name
}
请求参数
| 参数 | 是否必选 | 参数说明 | 取值 | 
|---|---|---|---|
| Password | 必选 | 用户密码 | 字符串,长度为8~20字符。 | 
| file_name | 必选 | 上传文件的文件名 | 字符串,长度为1~255,可由大小写字母(a~z、A~Z)、数字(0~9)和其他字符(_.-)组成,且不能包含“..”且后缀为“ini”。 | 
使用指南
无
使用实例
请求样例:
POST https://10.10.10.10/redfish/v1/Systems/SecurityService/SecurityLoad/Actions/SecurityLoad.Import
请求头:
X-Auth-Token: auth_value
请求消息体:
{
    "Password": "password",
    "file_name": "session_cfg.ini"
}
响应样例:
{
    "error": {
        "code": "Base.1.0.GeneralError",
        "message": "A GeneralError has occurred. See ExtendedInfo for more information.",
        "@Message.ExtendedInfo": [
            {
                "@odata.type": "#MessageRegistry.v1_0_0.MessageRegistry",
                "Description": "Indicates that no error has occurred.",
                "Message": "Import configuration of security load successfully.",
                "Severity": "Critical",
                "NumberOfArgs": null,
                "ParamTypes": null,
                "Resolution": "None"
            }
        ]
    }
}
响应码:202
输出说明
| 字段 | 类型 | 说明 | 
|---|---|---|
| code | 字符串 | 指示消息注册表中特定消息ID的字符串。 | 
| message | 字符串 | 与消息注册表中的消息对应的易读的消息。 | 
| @odata.type | 字符串 | 消息资源的OData描述信息。 | 
| Description | 字符串 | 消息资源的具体描述。 | 
| Message | 字符串 | 消息资源的详细信息。 | 
| Severity | 字符串 | 严重性。支持的严重级别包括: 
 | 
| NumberOfArgs | 数字 | 消息描述的参数个数。 | 
| ParamTypes | 数组 | 参数类型列表。 | 
| Resolution | 字符串 | 事件处理建议。 | 
父主题: 安全管理