Register Generic NAS Source
POST https://{{cluster_vip}}/irisservices/api/v1/backupsources
Registers Generic NAS of type SMB with the Cohesity cluster.
Ensure to set the following parameters in the request body:
- The path for mounting the NAS (
\\\\{{File_Client_Windows}}\\{{Windows_Share_Name}}
) - SMB mount credentials (
{{Windows_Username}}
{{Windows_Username}}
)
For NAS Generic of type SMB, the protocol
value in the request body will be set 2
.
Request Body
{"entity"=>{"type"=>11, "genericNasEntity"=>{"protocol"=>2, "type"=>1, "path"=>"\\\\{{File_Client_Windows}}\\{{Windows_Share_Name}}"}}, "entityInfo"=>{"endpoint"=>"\\\\{{File_Client_Windows}}\\{{Windows_Share_Name}}", "credentials"=>{"nasMountCredentials"=>{"username"=>"{{Windows_Username}}", "password"=>"{{Windows_Password}}", "protocol"=>2}}, "type"=>11}, "registeredEntityParams"=>{}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | string |
RESPONSES
status: OK
{"entity":{"type":11,"genericNasEntity":{"type":1,"uid":{"clusterId":1234567,"clusterIncarnationId":89101112,"objectId":25273},"protocol":2,"path":"\\\\NAS_hostname\\CIFS-1"},"id":25274,"displayName":"NAS"}}