Example Redfish REST calls: Attach / Detach ISO file
Example Redfish REST calls: Attach / Detach ISO file
Assumptions:
- PowerEdge Gen 14 server (R740, M640, etc)
- iDRAC 9 with firmware version: 3.30.30.30 or above
- The ISO file is hosted on a web server and can be reached via HTTP
Attach:
Method: POST
URI: https://<idrac_ip_address>/redfish/v1/Managers/iDRAC.Embedded.1/VirtualMedia/CD/Actions/VirtualMedia.InsertMedia
BODY:
1
2
3
{
"Image": "https://<web_server>/<iso_file>.iso"
}</iso_file></web_server>
Detach
Method: POST
URI: https://<idrac_ip_address>/redfish/v1/Managers/iDRAC.Embedded.1/VirtualMedia/CD/Actions/VirtualMedia.EjectMedia
BODY:
1
{}
Yes, for the detach the BODY of the request is an empty pair of curly braces “{}”.
If all goes well, each REST call will return a “204 No Content” in response.
This post is licensed under
CC BY 4.0
by the author.