ONTAP Rest API Discussions

Is there an API call to get to node shell and issue command?

ojuliano
1,400 Views
 
1 ACCEPTED SOLUTION

Twesha
1,159 Views

Unfortunately, there is no API that gives you access to the node system shell. 

View solution in original post

5 REPLIES 5

Twesha
1,244 Views

Hi, what information are you trying to get by doing that? I can point you to some APIs based on the workflows you are trying to automate.

ojuliano
1,240 Views

Hi, I'm trying to verify if an existing snapshot delete job is currently running on a volume before allowing new snapshot deletion job. Workflow would be,

1) got to node shell

> system node run -node <node>

2) priv set diag

3) verify volume snap status,

*> snap status <volume>

Thanks!

Twesha
1,237 Views

Got it. Have you tried using the /storage/volumes/{volume.uuid}/snapshots API? That might give you what you need.

ojuliano
1,235 Views

It does not. I'm hoping that there is a way to issue an API call to go to the node shell (then I'll figure out how to issue a command with it). The key is to have a REST API call that can take me to the node shell. 

Twesha
1,160 Views

Unfortunately, there is no API that gives you access to the node system shell. 

Public