日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Redfish协议测试工具–Postman

發布時間:2023/12/31 编程问答 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Redfish协议测试工具–Postman 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

  • 1. 工具和資料獲取
  • 2. 簡單使用說明
  • 1. GET類舉例
  • 2. PATCH類舉例
  • 3. 常見命令
  • §?1. 工具和資料獲取

    Postman工具獲取

    服務器Redfish接口說明文檔

    使用前必讀接口文檔中“適用的產品”,查看自己的服務器是否支持此協議。

    §?2. 簡單使用說明

    §?1. GET類舉例

    查看系統信息: SystemOverview

    查看文檔:

    實操:

    §?2. PATCH類舉例

    首先獲取指定用戶信息:

    查看文檔:

    要有Etag:獲取方式是通過GET得到返回的響應頭中找。

    根據文檔修改:


    修改成功:

    其他樣例請查看文檔。

    §?3. 常見命令

    1

    2

    3

    1.獲取系統信息

    4

    白牌: GET https://150.1.24.109/redfish/v1/SystemInfo

    5

    華為:

    6

    1)?主機名稱

    7

    https://150.1.24.109/redfish/v1/SystemOverview

    8

    https://150.1.24.109/redfish/v1/Managers/1

    9

    2)?主機BMC管理地址

    10

    https://150.1.24.109/redfish/v1/Chassis/1/Drives/HDDPlaneDisk0

    11

    3)?本地存儲信息

    12

    https://150.1.24.109/redfish/v1/Storages/RAIDStorage0

    13

    4)?服務器電源信息

    14

    https://150.1.24.109/redfish/v1/Chassis/1/Power

    15

    5)?服務器風扇信息

    16

    https://150.1.24.109/redfish/v1/Chassis/1/Thermal

    17

    6)?服務器資產信息

    18

    https://150.1.24.109/redfish/v1/Systems/1

    19

    20

    2.獲取所有BMC用戶信息

    21

    白牌:GET https://150.1.24.109/redfish/v1/AccountService/AccountsInfo

    22

    華為:GET https://150.1.24.109/redfish/v1/AccountService/Accounts

    23

    24

    3.添加BMC用戶

    25

    POST https://150.1.24.109/redfish/v1/AccountService/AccountsInfo

    26

    POST https://150.1.24.109/redfish/v1/AccountService/Accounts

    27

    28

    4.獲取單個BMC用戶信息

    29

    白牌:GET https://150.1.24.109/redfish/v1/AccountService/AccountsInfo/4

    30

    華為:GET https://150.1.24.109/redfish/v1/AccountService/Accounts/4

    31

    32

    5.修改BMC用戶信息

    33

    白牌:PATCH https://150.1.24.109/redfish/v1/AccountService/AccountsInfo/4

    34

    華為:PATCH https://150.1.24.109/redfish/v1/AccountService/Accounts/4

    35

    36

    6.刪除BMC用戶

    37

    白牌: DELETE https://150.1.24.109/redfish/v1/AccountService/AccountsInfo/4

    38

    華為: DELETE https://150.1.24.109/redfish/v1/AccountService/Accounts/4

    39

    40

    7.查詢BMC地址

    41

    白牌:GET https://150.1.24.109/redfish/v1/Managers/1/NICsInfo/DedicatedPort1

    42

    華為:GET https://150.1.24.109/redfish/v1/Managers/1/NICs/DedicatedPort1

    43

    44

    8.修改BMC ip地址

    45

    白牌:PATCH https://150.1.24.109/redfish/v1/Managers/1/NICsInfo/DedicatedPort1

    46

    華為:PATCH https://150.1.24.109/redfish/v1/Managers/1/NICs/DedicatedPort1

    47

    48

    9.查詢啟動順序

    49

    白牌:GET https://150.1.24.109/redfish/v1/Systems/1/Bios/SettingsInfo

    50

    華為:GET https://150.1.24.109/redfish/v1/Systems/1/Bios/Settings

    51

    52

    10.修改啟動順序

    53

    白牌:PATCH https://150.1.24.109/redfish/v1/Systems/1/Bios/SettingsInfo

    54

    華為:PATCH https://150.1.24.109/redfish/v1/Systems/1/Bios/Settings

    55

    總結

    以上是生活随笔為你收集整理的Redfish协议测试工具–Postman的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。