Subscribe

Trying to un-mount a volume with API Services

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.

 

Re: Trying to un-mount a volume with API Services

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

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Re: Trying to un-mount a volume with API Services

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 :

postunmount.JPG

 

Regards

Re: Trying to un-mount a volume with API Services

Interesting.  I just installed a fresh 2.1RC1 and looking at the Swagger docs there is no hyphen present on my system:

 

2018-01-03 13_02_56-OnCommand API Services REST APIs.png

 

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?

 

2018-01-03 13_06_02-https___10.63.171.25_8443_api_1.0_admin_server-info.png

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Re: Trying to un-mount a volume with API Services

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.

Re: Trying to un-mount a volume with API Services

[ Edited ]

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

}