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}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | string |
RESPONSES
status: OK
{"policies":[{"name":"NASIsilon","backupPolicy":{"regular":{"incremental":{"schedule":{"unit":"Days","daySchedule":{"frequency":1}}},"retention":{"unit":"Weeks","duration":2}}},"description":"Policy for newman automation","blackoutWindow":null,"extendedRetention":null,"retryOptions":{"retries":3,"retryIntervalMins":5},"id":"1867183226494767:1669693131113:82017"},{"name":"Diamond","backupPolicy":{"regular":{"incremental":{"schedule":{"unit":"Minutes","minuteSchedule":{"frequency":10}}},"retention":{"unit":"Weeks","duration":2}}},"blackoutWindow":null,"extendedRetention":null,"retryOptions":{"retries":3,"retryIntervalMins":5},"id":"1867183226494767:1669693131113:14307"}]}