Update a Protection Policy for data protection before assignment.
Success
Bad request
Unauthorized request
Forbidden
Internal / unexpected error
{- "applicationType": "VMWARE",
- "description": "Protection Policy protecting Finance department's Virtual Machines or datastores.",
- "name": "Gold-Protection-Policy",
- "protections": [
- {
- "protectionStoreId": "2a1172be-4281-44f9-848b-9c3f86378b13",
- "schedules": [
- {
- "expireAfter": {
- "unit": "HOURS",
- "value": 1
}, - "lockFor": {
- "unit": "HOURS",
- "value": 1
}, - "name": "Hourly snapshot schedule",
- "namePattern": {
- "format": "Test_{SourceAssetName}_Copy_{DateFormat}"
}, - "postScriptInfo": {
- "hostId": "string",
- "params": "string",
- "path": "string",
- "timeoutInSeconds": 0
}, - "preScriptInfo": {
- "hostId": "string",
- "params": "string",
- "path": "string",
- "timeoutInSeconds": 0
}, - "schedule": {
- "activeTime": {
- "activeFromTime": "16:15",
- "activeUntilTime": "20:15"
}, - "recurrence": "BY_MINUTES",
- "repeatInterval": {
- "every": 0,
- "on": [
- null
]
}, - "startTime": "16:35"
}, - "scheduleId": 0,
- "sourceProtectionScheduleId": 0
}
], - "type": "SNAPSHOT"
}
]
}
{- "applicationType": "VMWARE",
- "assigned": true,
- "consoleUri": "string",
- "createdAt": "2019-07-21T17:32:28Z",
- "createdBy": {
- "id": "2a1172be-4281-44f9-848b-9c3f86378b13",
- "name": "Admin"
}, - "description": "Protection Policy protecting Finance department's Virtual Machines or datastores.",
- "generation": 0,
- "id": "c9cdeb6b-24cb-43c1-828a-e8b1b050f3f4",
- "name": "Gold-Protection-Policy",
- "protectionJobsInfo": [
- {
- "assetInfo": {
- "displayName": "string",
- "id": "d0e48314-730a-11ea-b496-48452098762c",
- "name": "VM-Finance",
- "resourceUri": "string",
- "type": "virtualization/virtual-machine"
}, - "id": "2a1172be-4281-44f9-848b-9c3f86378b14",
- "resourceUri": "string",
- "type": "string"
}
], - "protections": [
- {
- "id": "2a1172be-4281-44f9-848b-9c3f86378b13",
- "protectionStoreInfo": {
- "id": "6a38acc7-e470-4ed7-b141-ca9509672dac",
- "name": "string",
- "protectionStoreType": "ON_PREMISES",
- "resourceUri": "/backup-recovery/v1beta1/protection-stores/6a38acc7-e470-4ed7-b141-ca9509672da",
- "type": "backup-recovery/protection-store"
}, - "schedules": [
- {
- "expireAfter": {
- "unit": "HOURS",
- "value": 1
}, - "lockFor": {
- "unit": "HOURS",
- "value": 1
}, - "name": "Hourly snapshot schedule",
- "namePattern": {
- "format": "Test_{SourceAssetName}_Copy_{DateFormat}"
}, - "postScriptInfo": {
- "hostId": "string",
- "params": "string",
- "path": "string",
- "timeoutInSeconds": 0
}, - "preScriptInfo": {
- "hostId": "string",
- "params": "string",
- "path": "string",
- "timeoutInSeconds": 0
}, - "schedule": {
- "activeTime": {
- "activeFromTime": "16:15",
- "activeUntilTime": "20:15"
}, - "recurrence": "BY_MINUTES",
- "repeatInterval": {
- "every": 0,
- "on": [
- null
]
}, - "startTime": "16:35"
}, - "scheduleId": 0,
- "sourceProtectionScheduleId": 0
}
], - "type": "SNAPSHOT"
}
], - "resourceUri": "string",
- "type": "string",
- "updatedAt": "2019-07-21T17:32:28Z"
}