Hey All, I am stuck with the cifs share export with the pather option . Code only works if I mention path="/", not working if I mention pather="/" + vol_name in the below code. Note: I am running the script without input option in Rundeck, for example
python cifs_share_create.py --cluster xxx --username xxx --password xxx --vol_nmae vol123 --vol_size 1G --aggregate xxx.
Appreciate if you get me an alternate option. I tried several options, no luck.
payload3 = {"path": pather, "svm": {"name": svm_name},"name": share_name}
url3 = "https://{}/api/protocols/cifs/shares".format(cluster)
try:
response = requests.post(
url3,
headers=headers_inc,
json=payload3,
verify=False)