Platform O&M/Backup Management/Continuous Data Protection (CDP)/CDP Operations
POSTCDP OperationsSince 4.5.0SynchronousAuth Required
CreateCdpPolicy
CreateCdpPolicy
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
nameStringRequiredThe name of the resource.
descriptionStringOptional. Optional. The detailed description of the resource.
retentionTimePerDayIntegerRequiredThe retention time of the recovery points.
recoveryPointPerSecondIntegerRequiredThe retention interval of the recovery points.
hourlyRpSinceDayIntegerRequiredThe day from which to keep a recovery point hourly.
dailyRpSinceDayIntegerRequiredThe day from which to keep a recovery point per day.
expireTimeInDayIntegerRequiredThe valid time of the backup data.
fullBackupIntervalInDayIntegerRequiredThe interval of the full backup.
resourceUuidStringOptional. The UUID of the resource.
tagUuidsListOptional. The UUID list of the tags.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/cdp-backup-storage/policy
/zstack/v1/cdp-backup-storage/policy
Request Example
curl -X POST 'http://{host}/zstack/v1/cdp-backup-storage/policy' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"name":"<name>","description":"<description>","retentionTimePerDay":1,"recoveryPointPerSecond":1,"hourlyRpSinceDay":1,"dailyRpSinceDay":1,"expireTimeInDay":1,"fullBackupIntervalInDay":1,"resourceUuid":"<resourceUuid>","tagUuids":["<tagUuids>"]},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "name": "MyCdpPolicyName", "description": "MyCdpDescription", "retentionTimePerDay": 7.0, "recoveryPointPerSecond": 5.0 } }Change History
This API has no change history records yet.
