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
Authorizationstring
Content-Typestring

RESPONSES

status: OK

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