Ask The Experts

"API not found"

sigma77in
4,941 Views

Hello Experts,

 

I am new to NetApp api.  My cluster is on NetApp Release 9.5P6. Running a curl api query against this cluster gives me "API not found" error. Why is that so since I am using admin user to authenticate ? Does API needs to be enabled separately. 

 

curl -X GET -u admin:password -k 'https://xx.xx.xx.xx/api/storage/volumes'

{
"error": {
"message": "API not found",
"code": "3"
}

1 ACCEPTED SOLUTION

Girton
4,928 Views

Per this link ONTAP didn't start supporting the REST API until version 9.6 (https://devnet.netapp.com/restapi).

 

Your post referenced ONTAP 9.5P6, which means you'll need to continue using traditional ZAPI calls, and not REST API calls.

 

 

View solution in original post

2 REPLIES 2

Girton
4,929 Views

Per this link ONTAP didn't start supporting the REST API until version 9.6 (https://devnet.netapp.com/restapi).

 

Your post referenced ONTAP 9.5P6, which means you'll need to continue using traditional ZAPI calls, and not REST API calls.

 

 

sigma77in
4,920 Views

thanks for pointing this out. 

 

Regards,

Raghav Sood

Public