Skip to main content

Create a home directory search path

Contributors

POST /protocols/cifs/home-directory/search-paths

Introduced In: 9.6

Creates a home directory search path.

Required properties

  • svm.uuid or svm.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.

  • 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.

  • Default value:

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

svm

SVM, applies only to SVM-scoped objects.

Example request
{
  "index": 0,
  "path": "/HomeDirectory/EngDomain",
  "svm": {
    "_links": {
      "self": {
        "href": "/api/resourcelink"
      }
    },
    "name": "svm1",
    "uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
  }
}

Response

Status: 201, Created
Name Type Description

_links

_links

num_records

integer

Number of records

records

array[cifs_search_path]

Example response
{
  "_links": {
    "next": {
      "href": "/api/resourcelink"
    },
    "self": {
      "href": "/api/resourcelink"
    }
  },
  "num_records": 1,
  "records": [
    {
      "index": 0,
      "path": "/HomeDirectory/EngDomain",
      "svm": {
        "_links": {
          "self": {
            "href": "/api/resourcelink"
          }
        },
        "name": "svm1",
        "uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
      }
    }
  ]
}

Headers

Name Description Type

Location

Useful for tracking the resource location

string

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

Name Type Description

error

returned_error

Example error
{
  "error": {
    "arguments": [
      {
        "code": "string",
        "message": "string"
      }
    ],
    "code": "4",
    "message": "entry doesn't exist",
    "target": "uuid"
  }
}

Definitions

See Definitions

href