I am using this Python package of StorOps from https://pypi.org/project/storops/ in my script to do API calls with Unity. The tutorial looks helpful but I want to know more user guide such as creating CIFS servers, CIFS shares. Can anyone advise how to implement this please?
I can successfully connect to the Unity system in Python,
>>> unity=UnitySystem('10.xx.xx.xx','user','pwd')
when doing "dir(unity)" to search available functions/properties, only "get_cifs_server" was found.
After reviewing the the details provided, a POST request can be done to create a CIFS Server or a CIFS share.
For the task I recommend reviewing the cifsServer and CifsShare sections of the Unisphere Management REST API Reference Guide.
Please note that in order to submit POST requests to the array, certain criteria such as a CSRF Token and a Cookie need to be included. This information can be also found in the Programmers guide present here.
I hope that the above details are useful to answer your queries.
@Ricardo_Lopes, Much appreciated for your reply. I was lazy and wanted to utilize the Python package of storops instead of scripting API code. Now I know programming is not that much difficult and I understand how to do with that.
Ricardo_Lopes
14 Posts
1482
0
Posted February 12th, 2019 06:00
Hi @Brian119
Thank you for your post.
After reviewing the the details provided, a POST request can be done to create a CIFS Server or a CIFS share.
For the task I recommend reviewing the cifsServer and CifsShare sections of the Unisphere Management REST API Reference Guide.
Please note that in order to submit POST requests to the array, certain criteria such as a CSRF Token and a Cookie need to be included. This information can be also found in the Programmers guide present here.
I hope that the above details are useful to answer your queries.