Verify Protection Policy Creation

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

Returns the list of policies available on the Cohesity cluster along with their policy IDs and information on the parameters configured for the Protection Policy.

You can run this API to:

  • Ensure whether the policy you configured is created on the Cohesity cluster.
  • Obtain the ID of the Protection Policy you want to use for creating the Protection Group.

To return information only about a particular Protection Policy, provide the Protection Policy name as the parameter in the API URL.

https://{{cluster_1-ip}}/v2/data-protect/policies?names={{policy_name}}

Request Body

{"policyNames"=>["NASAPITest"]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring

RESPONSES

status: OK

{"policies":[{"name":"Linux_NFS_Policy1","backupPolicy":{"regular":{"incremental":{"schedule":{"unit":"Days","daySchedule":{"frequency":1}}},"retention":{"unit":"Weeks","duration":2}}},"description":"Policy for File, Folder Testing","blackoutWindow":null,"extendedRetention":null,"cascadedTargetsConfig":null,"retryOptions":{"retries":3,"retryIntervalMins":5},"id":"8743635867054034:1666901032964:412244"},{"name":"LinuxFileFolderTestPolicy","backupPolicy":{"regular":{"incremental":{"schedule":{"unit":"Days","daySchedule":{"frequency":1}}},"retention":{"unit":"Weeks","duration":2}}},"description":"Policy for File, Folder Testing","blackoutWindow":null,"extendedRetention":null,"cascadedTargetsConfig":null,"retryOptions":{"retries":3,"retryIntervalMins":5},"id":"8743635867054034:1666901032964:412243"},{"name":"Linux_NFS_Policy","backupPolicy":{"regular":{"incremental":{"schedule":{"unit":"Days","daySchedule":{"frequency":1}}},"retention":{"unit":"Weeks","duration":2}}},"description":"Policy for File, Folder Testing","blackoutWindow":null,"extendedRetention":null,"cascadedTargetsConfig":null,"retryOptions":{"retries":3,"retryIntervalMins":5},"id":"8743635867054034:1666901032964:412244"}]}