#In Rest API CIFS share path does not work with /vol rather only works with "/" option

1 messages · Page 1 of 1 (latest)

twilit sonnet
#

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)
deft oyster
#

The path refers on the junction-path of the volume. Are you sure it is mounted where you expect it?