#not all options are available in /protocols/cifs/services REST API call?

1 messages · Page 1 of 1 (latest)

celest wraith
#

Do I have the correct understanding that the /protocols/cifs/services REST API only supports query/update of subsets of the "cifs options"? for example, the read-grants-exec doesn't seem to be available.

},
"options": {
"admin_to_root_mapping": true,
"advanced_sparse_file": true,
"copy_offload": true,
"fake_open": true,
"fsctl_trim": true,
"junction_reparse": true,
"large_mtu": true,
"multichannel": true,
"null_user_windows_name": "string",
"path_component_cache": true,
"referral": false,
"shadowcopy": false,
"shadowcopy_dir_depth": 0,
"smb_credits": 128,
"widelink_reparse_versions": [
"smb1"
]

}[root@centos1 ~]#curl -X GET "https://cluster1.demo.netapp.com/api/protocols/cifs/services?options.read_grants_exec=false&return_records=true&return_timeout=15" -H "accept: application/json" -H "authorization: Basic YWRtaW4xMjM6TmV0YXBwMSE=" -k
{
"error": {
"message": "Unexpected argument "options.read_grants_exec".",
"code": "262179",
"target": "options.read_grants_exec"
}
}[root@centos1 ~]# curl -X GET "https://cluster1.demo.netapp.com/api/protocols/cifs/services?options.admin_to_root_mapping=truse&return_records=true&return_timeout=15" -H "accept: application/json" -H "authorization: Basic YWRtaW4xMjM6TmV0YXBwMSE= -k
{
"records": [
{
"svm": {
"uuid": "c3e24351-610f-11ed-87a7-005056b0ffe4",
"name": "svm1_cluster1"
},
"options": {
"admin_to_root_mapping": true
}
}
],
"num_records": 1
}[root@centos1 ~]#

jolly eagle
#

Try fields=* or fields=** or use the cli passthrough api