This action attaches remote media to virtual media.
Important Notes:
- HTTP shares with authentication are not supported for virtual media.
- Using the character '@' in virtual media UserName, Password, or Image is not supported.
- From iDRAC firmware version 4.20.20.20 release onwards, Redfish supports inserting Username, Password, and Share name as separate fields in the payload while performing the action. Firmware backward compatibility allows you to continue using the previous supported method that is by inserting the credentials in the payload in the format:
{username}:{Password}@{share name}In the latest version of iDRAC, if both these methods are used then the information that is provided in separate fields take precedence over the previous supported method.- While performing this action, if TransferProtocolType property is set to CIFS, then avoid specifying the method for the Image property in the payload.
username:passwordAuthorization: Basic *****************X-Auth-Token: ********************curl --location '/redfish/v1/Systems//VirtualMedia//Actions/VirtualMedia.InsertMedia' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"Image": "<imagefile.iso>",
"Password": "password",
"UserName": "username"
}'{
"error": {
"@Message.ExtendedInfo": [
{}
],
"code": "string",
"message": "string"
}
}