Register Generic NAS Source
POST https://{{cluster-vip}}/irisservices/api/v1/backupsources
Registers Generic NAS of type NFS with the Cohesity cluster.
For NAS Generic of type NFS, ensure to set the following parameter in the request body:
- The path for mounting the NAS, (
{{File_Client_Linux}}\\mount path
) - The
protocol
value in the request body must be set 1. - For NFSv3, the value of the parameter,
type
must be set to 1. - For NFSv4.1, the value of the parameter,
type
must be set to 2.
The source ID from the response is required to create the Protection Group for protecting your NAS source.
Request Body
{"entity"=>{"type"=>11, "genericNasEntity"=>{"protocol"=>1, "type"=>1, "path"=>"{{File_Client_Linux1}}:/mnt/mountpoint_1"}}, "entityInfo"=>{"endpoint"=>"{{File_Client_Linux1}}:/mnt/mountpoint_1", "type"=>11}, "registeredEntityParams"=>{"description"=>"Linux NAS", "genericNasParams"=>{"skipValidation"=>true}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | string |
RESPONSES
status: OK
"{\n \"entity\": {\n \"type\": 11,\n \"genericNasEntity\": {\n \"type\": 1,\n \"uid\": {\n \"clusterId\": {{cluster_id}},\n \"clusterIncarnationId\": {{clusterincarnation_id}},\n \"objectId\": 25265\n },\n \"protocol\": 1,\n \"path\": \"{{NAS_hostname}}:/mnt/mountpoint_1\"\n },\n \"id\": 25267,\n \"displayName\": \"{{NAS_hostname}}:/mnt/mountpoint_1\"\n }\n}"