Request: GET https://135.169.170.192:11005/api/v1/policies Request Header: Authorization: Bearer <Access-Token> x-api-version: 1.0-rev0 Response: 200 Response Body: { "totalCount": 1, "results": [ { "backupType": "SelectedItems", "id": "6ac40b80-4bdb-46e9-9759-0fc0d1166ccf", "snapshotSettings": { "additionalTags": [ { "key": "policy", "value": "dept01" } ], "copyTagsFromVolumeEnabled": true, "tryCreateVSSSnapshot": true }, "replicaSettings": { "mapping": [ { "sourceRegionId": "b7ec414c-dff8-467a-8dd9-fa52e5d684f8", "targetRegionId": "46ecc0f7-cbb8-496e-a2d3-808c06e1360a", "targetAmazonAccountId": "d98f4d37-7874-4be1-9702-770078f5c9cd", "encryptionKey": "arn:aws:kms:eu-west-2:534095521853:key/8c18bc6a-18f6-4f61-8f89-970cd263e653" }, { "sourceRegionId": "dd4bfe66-f671-4797-9228-1b779a24654b", "targetRegionId": "46ecc0f7-cbb8-496e-a2d3-808c06e1360a", "targetAmazonAccountId": "d98f4d37-7874-4be1-9702-770078f5c9cd", "encryptionKey": "arn:aws:kms:eu-west-2:534095521853:key/8c18bc6a-18f6-4f61-8f89-970cd263e653" } ], "additionalTags": [ { "key": "policy", "value": "dept01" } ], "copyTagsFromVolumeEnabled": true }, "backupSettings": { "targetRepositoryId": "a7bcabe6-91f7-40ca-ad73-915d43a8e86b" }, "regionIds": [ "b7ec414c-dff8-467a-8dd9-fa52e5d684f8", "dd4bfe66-f671-4797-9228-1b779a24654b" ], "selectedItems": { "virtualMachineIds": [ "2c9e17f0-6690-41a3-aa95-f5e824bf4307", "c27fdf69-2761-4e31-a768-6576291018e5" ], "tagIds": [ "1f3b938b-7ef9-4857-95d7-4ff8d0104e4f" ] }, "excludedItems": { "virtualMachineIds": [], "tagIds": [] }, "scheduleSettings": { "dailyScheduleEnabled": true, "dailySchedule": { "kind": "Everyday", "runsPerHour": 1, "days": [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], "snapshotOptions": { "retention": { "count": 7 }, "schedule": { "hours": [ false, false, false, false, false, false, false, false, false, false, false, false, true, true, true, false, false, false, false, false, false, false, false, false ] } }, "backupOptions": { "retention": { "type": "Days", "count": 21 }, "schedule": { "hours": [ false, false, false, false, false, false, false, false, false, false, false, false, false, false, true, false, false, false, false, false, false, false, false, false ] } }, "replicaOptions": { "retention": { "count": 7 }, "schedule": { "hours": [ false, false, false, false, false, false, false, false, false, false, false, false, false, true, false, false, false, false, false, false, false, false, false, false ] } } }, "weeklyScheduleEnabled": true, "weeklySchedule": { "timeLocal": "2020-06-20T12:00:00", "snapshotOptions": { "retention": { "count": 7 }, "schedule": { "days": [ "Monday", "Thursday", "Saturday" ] } }, "backupOptions": { "retention": { "type": "Days", "count": 21 }, "schedule": { "days": [ "Thursday", "Saturday" ] } }, "replicaOptions": { "retention": { "count": 7 }, "schedule": { "days": [ "Monday", "Thursday" ] } } }, "monthlyScheduleEnabled": true, "monthlySchedule": { "dayNumberInMonth": "First", "dayOfWeek": "Monday", "timeLocal": "2020-06-20T12:00:00", "dayOfMonth": 1, "snapshotOptions": { "retention": { "count": 7 }, "schedule": { "months": [ "January", "May", "August" ] } }, "backupOptions": { "retention": { "type": "Months", "count": 6 }, "schedule": { "months": [ "August" ] } }, "replicaOptions": { "retention": { "count": 7 }, "schedule": { "months": [ "May" ] } } }, "yearlyScheduleEnabled": true, "yearlySchedule": { "dayNumberInMonth": "First", "dayOfWeek": "Monday", "month": "January", "timeLocal": "2020-06-20T12:00:00", "retention": { "type": "Years", "count": 100 } } }, "name": "Dept-01 Backup Policy", "description": "Backup policy for Dept-01 data protection", "priority": 4, "amazonAccountId": "d98f4d37-7874-4be1-9702-770078f5c9cd", "retrySettings": { "retryTimes": 3 }, "policyNotificationSettings": { "recipient": "sara_baker@company.mail", "notifyOnSuccess": true, "notifyOnWarning": true, "notifyOnFailure": true }, "isEnabled": true, "createdBy": "administrator", "modifiedBy": "administrator", "usn": 114947, "_embeddedResources": { "targetRepository": { "method": "GET", "rel": "TargetRepository", "href": "https://135.169.170.192:11005/api/v1/repositories/a7bcabe6-91f7-40ca-ad73-915d43a8e86b" }, "protectedResources": { "method": "GET", "rel": "SelectedItems", "href": "https://135.169.170.192:11005/api/v1/policies/6ac40b80-4bdb-46e9-9759-0fc0d1166ccf/selectedItems" }, "excludedResources": { "method": "GET", "rel": "ExcludedItems", "href": "https://135.169.170.192:11005/api/v1/policies/6ac40b80-4bdb-46e9-9759-0fc0d1166ccf/excludedItems" }, "regions": { "method": "GET", "rel": "Regions", "href": "https://135.169.170.192:11005/api/v1/policies/6ac40b80-4bdb-46e9-9759-0fc0d1166ccf/regions" } }, "_links": [ { "method": "GET", "rel": "self", "href": "https://135.169.170.192:11005/api/v1/policies/6ac40b80-4bdb-46e9-9759-0fc0d1166ccf" }, { "method": "PUT", "rel": "update", "href": "https://135.169.170.192:11005/api/v1/policies/6ac40b80-4bdb-46e9-9759-0fc0d1166ccf" }, { "method": "DELETE", "rel": "delete", "href": "https://135.169.170.192:11005/api/v1/policies/6ac40b80-4bdb-46e9-9759-0fc0d1166ccf" }, { "method": "POST", "rel": "disable", "href": "https://135.169.170.192:11005/api/v1/policies/6ac40b80-4bdb-46e9-9759-0fc0d1166ccf/disable" } ] } ], "_links": [ { "method": "POST", "rel": "create", "href": "https://135.169.170.192:11005/api/v1/policies" }, { "method": "POST", "rel": "export", "href": "https://135.169.170.192:11005/api/v1/policies/export" }, { "method": "GET", "rel": "self", "href": "https://135.169.170.192:11005/api/v1/policies" } ] } |