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.
ThesourceId
is required for creating a Protection Group.
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | string |
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}"