Querying Login Rule Information

Function

This interface is used to query login rule information.

Syntax

Operation type: GET

URL: https://device_ip/redfish/v1/Systems/SecurityService/SecurityLoad

Request header:

X-Auth-Token: auth_value

Request message body: None

Usage Guidelines

None

Example

Request:

GET https://10.10.10.10/redfish/v1/Systems/SecurityService/SecurityLoad

Request header:

X-Auth-Token: auth_value

Request message body: None

Response:

{
    "@odata.context": "/redfish/v1/$metadata#Systems/SecurityService/SecurityLoad",
    "@odata.id": "/redfish/v1/Systems/SecurityService/SecurityLoad",
    "@odata.type": "#MindXEdgeSecurityService.v1_0_0.MindXEdgeSecurityService",
    "Id": "SecurityLoad",
    "Name": "Security Load",
    "load_cfg":[{
        "enable": "true",
        "start_time": "06:00",
        "end_time": "12:00",
        "ip_addr": "xx.xx.xx.xx",
        "mac_addr": "00:89:01:xx:xx:04"
    }],
    "Actions": {
        "#SecurityLoad.Import": {
            "target": "/redfish/v1/Systems/SecurityService/SecurityLoad/Actions/SecurityLoad.Import"
  },
       "#SecurityLoad.Export": {
            "target": "/redfish/v1/Systems/SecurityService/SecurityLoad/Actions/SecurityLoad.Export"
        }
    }
}

Response code: 200

Output Description

Table 1 Operation output description

Field

Type

Description

@odata.context

Character string

OData description of a login rule resource model.

@odata.id

Character string

Path to access a login rule resource.

@odata.type

Character string

Type of a login rule resource.

Id

Character string

ID of a login rule resource.

Name

Character string

Name of a login rule resource.

load_cfg

List

Configuration item list.

enable

Character string

Whether a configuration item is enabled.

  • true
  • false

start_time

Character string

Allowed login start time.

The value is in 24-hour format, for example, hour:minute.

end_time

Character string

Allowed login end time.

The value is in 24-hour format, for example, hour:minute.

ip_addr

Character string

IPv4 address or IPv4 address and mask length allowed for login.

mac_addr

Character string

MAC address allowed for login.

Actions

Object

Operations that can be performed.

Actions.#SecurityLoad.Import

Object

Path of the resource for importing login rule information.

Actions.#SecurityLoad.Export

Object

Path of the resource for exporting login rule information.