下载
中文
注册

查询登录规则信息

命令功能

查询登录规则信息。

命令格式

操作类型:GET

URLhttps://device_ip/redfish/v1/Systems/SecurityService/SecurityLoad

请求头:

X-Auth-Token: auth_value

请求消息体:无

使用指南

使用实例

请求样例:

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

请求头:

X-Auth-Token: auth_value

请求消息体:无

响应样例:

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

响应码:200

输出说明

表1 操作输出说明

字段

类型

说明

@odata.context

字符串

登录规则资源模型的OData描述信息。

@odata.id

字符串

登录规则资源的访问路径。

@odata.type

字符串

登录规则资源的类型。

Id

字符串

登录规则资源的ID。

Name

字符串

登录规则资源的名称。

load_cfg

列表

配置项列表。

enable

字符串

配置项是否使能。

  • true
  • false

start_time

字符串

允许登录的时间起点。

24小时制,样例:“小时:分钟”

end_time

字符串

允许登录的时间终点。

24小时制,样例:“小时:分钟”

ip_addr

字符串

允许登录的IPv4地址或IPv4地址及掩码位数。

mac_addr

字符串

允许登录的MAC地址。

Actions

对象

可执行的操作。

Actions.#SecurityLoad.Import

对象

导入登录规则信息的资源路径。

Actions.#SecurityLoad.Export

对象

导出登录规则信息的资源路径。