Assign a Protection Policy to an asset.
Accepted
Bad request
Unauthorized request
Forbidden
Internal / unexpected error
{- "assetInfo": {
- "id": "d0e48314-730a-11ea-b496-48452098762c",
- "type": "virtualization/virtual-machine"
}, - "effectiveFromDateTime": "2020-03-03T05:03:08.902Z",
- "overrides": {
- "protections": [
- {
- "id": "2a1172be-4281-44f9-848b-9c3f86378b13",
- "protectionStoreId": "2a1172be-4281-44f9-848b-9c3f86378b13",
- "schedules": [
- {
- "backupGranularity": "VOLUME",
- "consistency": "APPLICATION",
- "createSnapshotOnFailure": true,
- "expireAfter": {
- "unit": "HOURS",
- "value": 1
}, - "lockFor": {
- "unit": "HOURS",
- "value": 1
}, - "namePattern": {
- "format": "Test_{SourceAssetName}_Copy_{DateFormat}"
}, - "postScriptInfo": {
- "params": "string"
}, - "preScriptInfo": {
- "params": "string"
}, - "scheduleId": 0,
- "vmwareOptions": {
- "includeRdmDisks": true
}
}
]
}
]
}, - "protectionPolicyId": "c9cdeb6b-24cb-43c1-828a-e8b1b050f3f4"
}
{ }