ONTAP Rest API Discussions

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

ojuliano
2,822 Views
 
1 ACCEPTED SOLUTION

Twesha
2,583 Views

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

View solution in original post

5 REPLIES 5

Twesha
2,668 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
2,664 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
2,661 Views

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

ojuliano
2,659 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
2,584 Views

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

Public