Importing Login Rule Information

Function

This interface is used to import login rule information.

Syntax

Operation type: POST

URL: https://device_ip/redfish/v1/Systems/SecurityService/SecurityLoad/Actions/SecurityLoad.Import

Request header:

X-Auth-Token: auth_value

Request message body:

{
    "Password": password,
    "file_name": file_name
}

Request Parameters

Table 1 Parameter description

Parameter

Mandatory/Optional

Description

Value

Password

Mandatory

User password.

The value is a string of 8 to 20 characters.

file_name

Mandatory

Name of the file to be uploaded.

The value is a string of 1 to 255 characters, including uppercase and lowercase letters (a to z and A to Z), digits (0 to 9), and other characters (_.-). The value cannot contain two consecutive periods (..). The suffix is ini.

Usage Guidelines

None

Example

Request:

POST https://10.10.10.10/redfish/v1/Systems/SecurityService/SecurityLoad/Actions/SecurityLoad.Import

Request header:

X-Auth-Token: auth_value

Request message body:

{
    "Password": "password",
    "file_name": "session_cfg.ini"
}

Response:

{
    "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"
            }
        ]
    }
}

Response code: 202

Output Description

Table 2 Operation output description

Field

Type

Description

code

Character string

A string indicating the specific message ID in the message registry.

message

Character string

A readable message corresponding to a message in the message registry.

@odata.type

Character string

OData description of a message resource.

Description

Character string

Detailed description of a message resource.

Message

Character string

Detailed information about a message resource.

Severity

Character string

Severity. The following severity levels are supported:

  • OK
  • Warning
  • Critical

NumberOfArgs

Number

Number of parameters in a message description.

ParamTypes

Array

Parameter type list.

Resolution

Character string

Event handling suggestions.