Get Sources List

GET https://{{cluster-vip}}/v2/data-protect/sources/registrations

Returns the list of sources registered with the Cohesity cluster.

You can run this API to:

  • Ensure whether the Genric NAS is registered with the Cohesity cluster
  • Obtain the Id (sourceId) of the Generic NAS.
    The sourceId is required for creating a Protection Group.

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring

RESPONSES

status: OK

"{\n    \"id\": 25278,\n    \"sourceId\": 25278,\n    \"sourceInfo\": {\n        \"id\": 25278,\n        \"name\": \"\\\\\\\\{{NAS_hostname}}\\\\CIFS-1\",\n        \"environment\": \"kGenericNas\",\n        \"objectType\": \"kHost\",\n        \"protectionStats\": null,\n        \"genericNasParams\": {\n            \"supportedNasMountProtocols\": [\n                \"kCifs1\"\n            ]\n        }\n    },\n    \"environment\": \"kGenericNas\",\n    \"registrationTimeMsecs\": 1675211867095,\n    \"lastRefreshedTimeMsecs\": 1675211867095,\n    \"genericNasParams\": {\n        \"mountPoint\": \"\\\\\\\\{{NAS_hostname}}\\\\CIFS-1\",\n        \"mode\": \"kCifs1\",\n        \"smbMountCredentials\": {\n            \"username\": \"{{Username}}\",\n            \"password\": {{password}}\n        }\n    }\n}"