Software Development Kit (SDK) and API Discussions
Software Development Kit (SDK) and API Discussions
Hello all !
I am trying to un-mount a volume using OnCommand API Services 2.1, this is my POST request :
https://{IP of API Server}:8443/api/4.0/ontap/volumes/{volume key}/jobs/un-mount
The volume exists and is mounted but I always get an 404 HTTP Error.
Any ideas ?
Thanks for your help.
Hello @DPS_ICS,
You have an extra hyphen in you "un-mount". It should be just "unmount".
https://{IP of API Server}:8443/api/4.0/ontap/volumes/{volume key}/jobs/unmount
Andrew
Hello and thanks for your answer.
Unfortunatly it doesn't work without the hyphen, I get error 415 instead of 404 :
https://{ip}:8443/api/4.0/ontap/volumes/{volume key}/jobs/unmount
In the documentation, the hyphen is present :
Regards
Interesting. I just installed a fresh 2.1RC1 and looking at the Swagger docs there is no hyphen present on my system:
If you browse to https://{name_or_ip}:8443/api/1.0/admin/server-info on your system, what is the product name, version, and build number values?
Andrew
Hyphen on 'un-mount' is not the problem. The syntax is hyphened.
As you pointed out yourselves Error 404 specifies "Storage system not found for the specified request". Which is correct.
Restart the API Services service. Try a GET Volume operation with the specified Volume UID(key). Post the contents of the response.
I am assuming you are NOT un-mouting "Vserver namespace root volume". before unmount, check attributes is_junction_active=true and junction_path is set.
also, pl. check the unmount job for further details:
POST :
https://<ip_address:port>/api/4.0/ontap/volumes/<key>/jobs/unmount
JOB:
https://<ip_address:port>/api/1.0/jobs/<key>
You may use below option during unmount
POST
https://<ip_address:port>/api/4.0/ontap/volumes/<key>/jobs/unmount
BODY
{
"force": true
}