Create a home directory search path
Creates a home directory search path to specify where ONTAP should look for user home directories within an existing SVM. This helps organize and manage user data efficiently by defining the directory locations.
HTTP method and endpoint
POST /protocols/cifs/home-directory/search-paths
Introduced in
ONTAP 9.6
Required properties
-
svm.uuidorsvm.name- Existing SVM in which to create the home directory search path. -
path- Path in the owning SVM namespace that is used to search for home directories.
Related ONTAP commands
-
cifs server home-directory search-path add
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
return_records |
boolean |
query |
False |
The default is false. If set to true, the records are returned.
|
Request Body
| Name | Type | Description |
|---|---|---|
index |
integer |
The position in the list of paths that is searched to find the home directory of the CIFS client. Not available in POST. |
path |
string |
The file system path that is searched to find the home directory of the CIFS client. |
svm |
Example request
{
"index": 0,
"path": "/HomeDirectory/EngDomain",
"svm": {
"name": "svm1",
"uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
}
}
Response
Status: 201, Created
| Name | Type | Description |
|---|---|---|
num_records |
integer |
Number of records |
records |
array[cifs_search_path] |
Example response
{
"records": [
{
"index": 0,
"path": "/HomeDirectory/EngDomain",
"svm": {
"name": "svm1",
"uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
}
}
]
}
Error
Status: Default
ONTAP Error Response Codes
| Error Code | Description |
|---|---|
655551 |
Invalid home-directory search-path path |
655462 |
The specified path is an invalid file-type |
Definitions
See Definitions
href
| Name | Type | Description |
|---|---|---|
href |
string |
_links
svm
| Name | Type | Description |
|---|---|---|
name |
string |
The name of the SVM. |
uuid |
string |
The unique identifier of the SVM. |
cifs_search_path
This is a list of CIFS home directory search paths. When a CIFS client connects to a home directory share, these paths are searched in the order indicated by the position field to find the home directory of the connected CIFS client.
| Name | Type | Description |
|---|---|---|
index |
integer |
The position in the list of paths that is searched to find the home directory of the CIFS client. Not available in POST. |
path |
string |
The file system path that is searched to find the home directory of the CIFS client. |
svm |
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. |