Retrieve a CIFS share
GET /protocols/cifs/shares/{svm.uuid}/{name}
Introduced In: 9.6
Retrieves a CIFS share.
Related ONTAP commands
-
vserver cifs share show
-
vserver cifs share properties show
Learn more
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
name |
string |
path |
True |
Share Name |
svm.uuid |
string |
path |
True |
UUID of the SVM to which this object belongs. |
fields |
array[string] |
query |
False |
Specify the fields to return. |
Response
Status: 200, Ok
Name | Type | Description |
---|---|---|
_links |
||
access_based_enumeration |
boolean |
If enabled, all folders inside this share are visible to a user based on that individual user access right; prevents the display of folders or other shared resources that the user does not have access to. |
acls |
array[acls] |
|
change_notify |
boolean |
Specifies whether CIFS clients can request for change notifications for directories on this share. |
comment |
string |
Specify the CIFS share descriptions. |
encryption |
boolean |
Specifies that SMB encryption must be used when accessing this share. Clients that do not support encryption are not able to access this share. |
home_directory |
boolean |
Specifies whether or not the share is a home directory share, where the share and path names are dynamic. ONTAP home directory functionality automatically offer each user a dynamic share to their home directory without creating an individual SMB share for each user. The ONTAP CIFS home directory feature enable us to configure a share that maps to different directories based on the user that connects to it. Instead of creating a separate shares for each user, a single share with a home directory parameters can be created. In a home directory share, ONTAP dynamically generates the share-name and share-path by substituting %w, %u, and %d variables with the corresponding Windows user name, UNIX user name, and domain name, respectively.
|
name |
string |
Specifies the name of the CIFS share that you want to create. If this is a home directory share then the share name includes the pattern as %w (Windows user name), %u (UNIX user name) and %d (Windows domain name) variables in any combination with this parameter to generate shares dynamically. |
no_strict_security |
boolean |
Specifies whether or not CIFS clients can follow a unix symlinks outside the share boundaries. |
oplocks |
boolean |
Specify whether opportunistic locks are enabled on this share. "Oplocks" allow clients to lock files and cache content locally, which can increase performance for file operations. |
path |
string |
The fully-qualified pathname in the owning SVM namespace that is shared through this share. If this is a home directory share then the path should be dynamic by specifying the pattern %w (Windows user name), %u (UNIX user name), or %d (domain name) variables in any combination. ONTAP generates the path dynamically for the connected user and this path is appended to each search path to find the full Home Directory path.
|
svm |
||
unix_symlink |
string |
Controls the access of UNIX symbolic links to CIFS clients. The supported values are:
|
volume |
Example response
{
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"acls": [
{
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"permission": "string",
"type": "string",
"user_or_group": "ENGDOMAIN\\ad_user"
}
],
"comment": "HR Department Share",
"name": "HR_SHARE",
"path": "/volume_1/eng_vol/",
"svm": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "svm1",
"uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
},
"unix_symlink": "string",
"volume": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "volume1",
"uuid": "028baa66-41bd-11e9-81d5-00a0986138f7"
}
}
Error
Status: Default, Error
Name | Type | Description |
---|---|---|
error |
Example error
{
"error": {
"arguments": [
{
"code": "string",
"message": "string"
}
],
"code": "4",
"message": "entry doesn't exist",
"target": "uuid"
}
}
Definitions
See Definitions
href
Name | Type | Description |
---|---|---|
href |
string |
_links
Name | Type | Description |
---|---|---|
self |
acls
The permissions that users and groups have on a CIFS share.
Name | Type | Description |
---|---|---|
_links |
||
permission |
string |
Specifies the access rights that a user or group has on the defined CIFS Share. The following values are allowed:
|
type |
string |
Specifies the type of the user or group to add to the access control list of a CIFS share. The following values are allowed:
|
user_or_group |
string |
Specifies the user or group name to add to the access control list of a CIFS share. |
svm
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
The name of the SVM. |
uuid |
string |
The unique identifier of the SVM. |
volume
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
The name of the volume. |
uuid |
string |
Unique identifier for the volume. This corresponds to the instance-uuid that is exposed in the CLI and ONTAPI. It does not change due to a volume move.
|
error_arguments
Name | Type | Description |
---|---|---|
code |
string |
Argument code |
message |
string |
Message argument |
error
Name | Type | Description |
---|---|---|
arguments |
array[error_arguments] |
Message arguments |
code |
string |
Error code |
message |
string |
Error message |
target |
string |
The target parameter that caused the error. |