Unsolved

492

July 16th, 2021 08:00

Unity OS patch upload using API

Team,

I have tried to perform patch upload of Dell Unity Storage Systems using below API with Postman, Curl(In Power shell) and Invoke web request (In Power shell).

https:// /upload/files/types/candidateSoftwareVersion
 
1. Postman
It works fine with postman, I am able to upload the files.
 
2. Curl
It is failed with curl command, find details below. Please suggest how to fix this issue
$REST_URI =  'https:// /upload/files/types/candidateSoftwareVersion'
curl -H  'Accept:application /json'  -H  'Content-type:application/json'  -H  'X-EMC-REST-CLIENT:true'  -H 'EMC-CSRF-TOKEN:xyz'  -X POST  $REST_URI  -b cookie.txt --form  'filename=@"C:/Work/Unity-5.1.0.0.5.394.tgz.bin.gpg"'
 
Error message 
{"error":{"errorCode":131149825,"httpStatusCode":500,"messages":[{"en - US":" The system encountered an unexpected error. Search for the error code on the support website or product forums, or contact your service provider, if available. (Error Code:0x7d13001)"}],"created":"2021-07-16T15:13:25.933Z"}}
 
3. Invoke_webrequest (Power shell)
It is expecting to pass cookie in the header, but I am not sure how to populate the cookie with MOD_AUTH_CAS_S and mod_sec_emc.
 
Please suggest how to populate the cookie value in the header before sending the request.
 
No Events found!

Top