下载
中文
注册

查询NFS分区信息

命令功能

查询当前已配置的NFS分区信息。

命令格式

操作类型:GET

URLhttps://device_ip/redfish/v1/Systems/NfsManage

请求头:

X-Auth-Token: auth_value

请求消息体:无

使用指南

使用实例

请求样例:

GET https://10.10.10.10/redfish/v1/Systems/NfsManage

请求头:

X-Auth-Token: auth_value

请求消息体:无

响应样例:

{
    "@odata.context": "/redfish/v1/$metadata#Systems/Members/NfsManage",
    "@odata.type": "#MindXEdgeNfsManage.v1_0_0.MindXEdgeNfsManage",
    "@odata.id": "/redfish/v1/Systems/NfsManage",
    "Id": "1",
    "Name": "Nfs Manage",
    "nfsList": [{
        "ServerIP": "xx.xx.xx.xx",
        "ServerDir": "/home/huawei/nfstest",
        "MountPath": "/home/test2",
        "FileSystem": "nfs4",
        "Status": "ok",
        "CapacityBytes": 585995649024,
        "FreeBytes": 497078501376
    },
    {
        "ServerIP": "xx.xx.xx.xx",
        "ServerDir": "/home",
        "MountPath": "/home/test3",
        "FileSystem": "nfs4",
        "Status": "error",
        "CapacityBytes": "NA",
        "FreeBytes": "NA"
    }]
    "Actions": {
        "#NfsManage.Mount": {
            "target": "/redfish/v1/Systems/NfsManage/Actions/NfsManage.Mount"
        },
        "#NfsManage.Unmount": {
            "target": "/redfish/v1/Systems/NfsManage/Actions/NfsManage.Unmount"
        }
    }
}

响应码:200

输出说明

表1 操作输出说明

字段

类型

说明

@odata.context

字符串

NFS分区信息的Odata描述信息。

@odata.type

字符串

NFS分区信息的类型。

@odata.id

字符串

NFS分区信息的访问路径。

Id

字符串

NFS分区信息的ID。

Name

字符串

NFS分区信息的名称。

nfsList

数组

NFS分区信息列表。

ServerIP

字符串

NFS服务器IP地址。

ServerDir

字符串

NFS服务器共享路径。

MountPath

字符串

NFS分区本地挂载路径。

FileSystem

字符串

NFS版本信息。

Status

字符串

NFS分区健康状态。

CapacityBytes

数字

NFS分区总容量。

FreeBytes

数字

NFS分区剩余空闲容量。

Actions

对象

NFS资源可执行的操作。

#NfsManage.Mount

对象

挂载NFS资源。

target

字符串

挂载NFS资源的访问路径。

#NfsManage.Unmount

对象

解挂NFS资源。

target

字符串

解挂NFS资源的访问路径。