问题描述
当前redfish导出BMC配置满足下方请求样例第3点中的返回Location下载路径吗?
请求样例:
1.POST操作(POST https://device_ip/redfish/v1/Managers/1/Actions/Oem/{{OemIdentifier}}/Manager.ExportConfiguration) 响应的HTTP Status Code为202,且包含了一个指向Task URI的Location Header,
如:Location: /redfish/v1/TaskService/Tasks/545
(curl请求样例:curl --insecure -u root:root -X POST https://device_ip/redfish/v1/Managers/1/Actions/Oem/{{OemIdentifier}}/Manager.ExportConfiguration)
2. 然后不断GET Task URI,直到task结束(TaskState为Completed、Cancelled、Cancelling、Exception、Killed)
3. 当task完成(TaskState为Completed)时,GET Task URI响应的HTTP Status Code为201,包含了一个Location Header,该Location就是下载BMC配置文件的URI,然后对该URI执行Get操作下载文件
如: Location: /redfish/v1/Managers/1/LogServices/Collect/Entries/{EntriesID}/Oem/{{OemIdentifier}}/BmcConfigdata
用curl命令下载示例: curl --insecure -u root:root -X GET /redfish/v1/Managers/1/LogServices/Collect/Entries/{EntriesID}/Oem/{{OemIdentifier}}/BmcConfigdata --output {filename}