PolicyRule

data class PolicyRule(val archiveDays: Int? = null, val backupType: String? = null, val keepLatestSnapshots: Int? = null, val replicationRegionId: String? = null, val retention: Int? = null, val retentionRules: List<PolicyRuleRetentionRule>? = null, val ruleId: String? = null, val ruleType: String, val schedule: String? = null, val vaultId: String? = null)

Constructors

Link copied to clipboard
constructor(archiveDays: Int? = null, backupType: String? = null, keepLatestSnapshots: Int? = null, replicationRegionId: String? = null, retention: Int? = null, retentionRules: List<PolicyRuleRetentionRule>? = null, ruleId: String? = null, ruleType: String, schedule: String? = null, vaultId: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val archiveDays: Int? = null

This parameter is required only when the value of RuleType is **TRANSITION. The minimum value is 30, and the Retention-ArchiveDays needs to be greater than or equal to 60.

Link copied to clipboard
val backupType: String? = null

This parameter is required only when the RuleType value is **BACKUP. Backup Type.

Link copied to clipboard

This parameter is required only when RuleType is set to BACKUP.

Link copied to clipboard

Only when the RuleType value is.

Link copied to clipboard
val retention: Int? = null

Retention time, in days.

Link copied to clipboard

This parameter is required only when the value of RuleType is TRANSITION. See retention_rules below.

Link copied to clipboard
val ruleId: String? = null

Rule ID.

Link copied to clipboard

Rule Type.

Link copied to clipboard
val schedule: String? = null

This parameter is required only if you set the RuleType parameter to BACKUP. This parameter specifies the backup schedule settings. Format: I|{startTime}|{interval}. The system runs the first backup job at a point in time that is specified in the {startTime} parameter and the subsequent backup jobs at an interval that is specified in the {interval} parameter. The system does not run a backup job before the specified point in time. Each backup job, except the first one, starts only after the previous backup job is complete. For example, I|1631685600|P1D specifies that the system runs the first backup job at 14:00:00 on September 15, 2021 and the subsequent backup jobs once a day. * startTime: the time at which the system starts to run a backup job. The time must follow the UNIX time format. Unit: seconds. * interval: the interval at which the system runs a backup job. The interval must follow the ISO 8601 standard. For example, PT1H specifies an interval of one hour. P1D specifies an interval of one day.

Link copied to clipboard
val vaultId: String? = null

Vault ID.