VMware Solutions Discussions

ONTAP Tools for VMware CLI/API for automation?

SuperTeam
1,493 Views

Hi,

Is there a CLI or an API interface for ONTAP tools (especially the VSC part of allocating storage + creating datastores) in order to automate the process for the creation of tens and hundreds of datastores for migration purposes?

I couldn't find anything the documentations.

Thanks! 

1 ACCEPTED SOLUTION

mbeattie
1,453 Views

Hi,

 

Did you try checking the Swagger UI? https://<%vsc%>:<%port_number%>/api/rest/swagger-ui.html#

I developed a wrapper around the VSC REST API in PowerShell, perhaps this code might help you? You can use this function to add datastores.

 

/Matt

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

View solution in original post

3 REPLIES 3

mbeattie
1,454 Views

Hi,

 

Did you try checking the Swagger UI? https://<%vsc%>:<%port_number%>/api/rest/swagger-ui.html#

I developed a wrapper around the VSC REST API in PowerShell, perhaps this code might help you? You can use this function to add datastores.

 

/Matt

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

SuperTeam
1,377 Views

Thank you very much

ChanceBingen
1,424 Views

@mbeattie nailed it in the previous post.

 

I just wanted to add that there is a shortcut to the swagger UI on the getting started page in the newer releases. It will be towards the bottom.

Public