ONTAP Rest API Discussions

REST API - Service Processor

TAO1
4,916 Views

Hi,

 

I am trying to retrieve the Service Processor information using PowerShell via REST API. I notice in the ONTAP REST API Online Reference that there doesn't seem to be a section under the 'Schemes' section:

TAO1_0-1663757694795.png

However, I notice there is a 'Models' section:

TAO1_1-1663757771638.png

With a Service Processor section under it:

TAO1_2-1663757855141.png

How do I use this section to create a URI in order to GET the SP config pls? Or do I need to use an alterative method?

 

Thanks

 

 

 

1 ACCEPTED SOLUTION

JohnChampion
4,817 Views

GET /cluster/nodes

GET /cluster/nodes/{uuid}

View solution in original post

7 REPLIES 7

TAO1
4,887 Views

Ah! There is a section in the REST API docs, 'Using the private CLI passthrough with ONTAP REST API'

JohnChampion
4,818 Views

GET /cluster/nodes

GET /cluster/nodes/{uuid}

VHACMOTRUMBW
1,891 Views

This is the way, I had been struggling to locate and query for the SP IP address information on a system.  Thank you!

DarrenBrent1
1,364 Views

can you show your get statement please to obtain the sp details / ip

thanks

Sorry for the long delay on response, here is the url I hit to get this information:

https://<ONTAP_MGMT>/api/cluster/nodes?fields=service_processor

above will give me both nodes, but you can target an individual node by including the UUID of the node.

 

DarrenBrent1
1,364 Views

John, are you using the node uuid or the cluster uuid for this GET? I have used both and still cannot see the SP information in the response, desperately trying to get the SP IP addresses. Thanks

 

Robinwa
1,310 Views

Ah There is a section in the REST API docs Using the private CLI passthrough with ONTAP REST API

 
 
 
 
 
 
Public