Inspur NF5280M5 User Manual page 182

Table of Contents

Advertisement

Actions/ComputerSystem.Reset -X POST -H 'Content-Type: application/json' -d
'{"ResetType":"ForceOff"}'
Note:
https://BMC_IP:8080/redfish/v1/Systems/System1/Actions/ComputerSystem.Reset is the
requested URL.
-H
The parameter is the format of the requested data.
-d The parameter is the requested data.
9.28.3 DELETE
The client deletes the data of the specified URL via HTTP DELTE, and the server deletes the
configuration according to the URL. The basic format is as follows:
curl -k -u username:password https://BMC_IP:8080/redfish/v1/SessionService/Sessions/1
-X DELETE
Note:
https://BMC_IP:8080/redfish/v1/SessionService/Sessions/1 is the deleted address.
9.28.4 Steps
1. Get the resources provided by Redfish, Redfish's root directory visit does not require
authorization. Get the accessible resource URL through visiting the Redfish root directory.
Request:
curl -k -u username:password https://BMC_IP:8080/redfish/v1/
Response:
{
"@Redfish.Copyright": "Copyright 2014-2016 Distributed Management Task Force, Inc. (DMTF). For the
full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright.",
"@odata.context": "/redfish/v1/$metadata#ServiceRoot.ServiceRoot",
"@odata.id": "/redfish/v1/",
"@odata.type": "#ServiceRoot.v1_1_0.ServiceRoot",
"AccountService": {
"@odata.id": "/redfish/v1/AccountService"
},
"Chassis": {
"@odata.id": "/redfish/v1/Chassis"
},
176

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents