共用方式為


Protection Policies - Create Or Update

建立或修改備份原則。 這是異步操作。 您可以使用 GetPolicyOperationResult API 來擷取作業的狀態。

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}?api-version=2024-10-01

URI 參數

名稱 位於 必要 類型 Description
policyName
path True

string

要建立的備份原則。

resourceGroupName
path True

string

復原服務保存庫所在的資源群組名稱。

subscriptionId
path True

string

訂用帳戶標識碼。

vaultName
path True

string

復原服務保存庫的名稱。

api-version
query True

string

用戶端 API 版本。

要求標頭

名稱 必要 類型 Description
x-ms-authorization-auxiliary

string

要求本文

名稱 類型 Description
eTag

string

選擇性 ETag。

location

string

資源位置。

properties ProtectionPolicy:

ProtectionPolicyResource 屬性

tags

object

資源標籤。

回應

名稱 類型 Description
200 OK

ProtectionPolicyResource

還行

202 Accepted

接受

Other Status Codes

CloudError

描述作業失敗原因的錯誤回應。

安全性

azure_auth

Azure Active Directory OAuth2 Flow

類型: oauth2
Flow: implicit
授權 URL: https://login.microsoftonline.com/common/oauth2/authorize

範圍

名稱 Description
user_impersonation 模擬您的用戶帳戶。

範例

Create or Update Azure Storage Vault Standard Protection Policy
Create or Update Daily Azure Storage Protection Policy
Create or Update Enhanced Azure Vm Protection Policy with daily backup
Create or Update Enhanced Azure Vm Protection Policy with Hourly backup
Create or Update Full Azure Vm Protection Policy
Create or Update Full Azure Workload Protection Policy
Create or Update Hourly Azure Storage Protection Policy
Create or Update Simple Azure Vm Protection Policy

Create or Update Azure Storage Vault Standard Protection Policy

範例要求

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/swaggertestvault/backupPolicies/newPolicyV2?api-version=2024-10-01

{
  "properties": {
    "backupManagementType": "AzureStorage",
    "workLoadType": "AzureFileShare",
    "schedulePolicy": {
      "schedulePolicyType": "SimpleSchedulePolicy",
      "scheduleRunFrequency": "Daily",
      "scheduleRunTimes": [
        "2023-07-18T09:30:00.000Z"
      ]
    },
    "timeZone": "UTC",
    "vaultRetentionPolicy": {
      "snapshotRetentionInDays": 5,
      "vaultRetention": {
        "retentionPolicyType": "LongTermRetentionPolicy",
        "dailySchedule": {
          "retentionTimes": [
            "2023-07-18T09:30:00.000Z"
          ],
          "retentionDuration": {
            "count": 30,
            "durationType": "Days"
          }
        },
        "weeklySchedule": {
          "daysOfTheWeek": [
            "Sunday"
          ],
          "retentionTimes": [
            "2023-07-18T09:30:00.000Z"
          ],
          "retentionDuration": {
            "count": 12,
            "durationType": "Weeks"
          }
        },
        "monthlySchedule": {
          "retentionScheduleFormatType": "Weekly",
          "retentionScheduleDaily": null,
          "retentionScheduleWeekly": {
            "daysOfTheWeek": [
              "Sunday"
            ],
            "weeksOfTheMonth": [
              "First"
            ]
          },
          "retentionTimes": [
            "2023-07-18T09:30:00.000Z"
          ],
          "retentionDuration": {
            "count": 60,
            "durationType": "Months"
          }
        },
        "yearlySchedule": {
          "retentionScheduleFormatType": "Weekly",
          "monthsOfYear": [
            "January"
          ],
          "retentionScheduleDaily": null,
          "retentionScheduleWeekly": {
            "daysOfTheWeek": [
              "Sunday"
            ],
            "weeksOfTheMonth": [
              "First"
            ]
          },
          "retentionTimes": [
            "2023-07-18T09:30:00.000Z"
          ],
          "retentionDuration": {
            "count": 10,
            "durationType": "Years"
          }
        }
      }
    }
  }
}

範例回覆

{
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/swaggertestvault/backupPolicies/newPolicyV2",
  "name": "newPolicyV2",
  "type": "Microsoft.RecoveryServices/vaults/backupPolicies",
  "properties": {
    "backupManagementType": "AzureStorage",
    "schedulePolicy": {
      "schedulePolicyType": "SimpleSchedulePolicy",
      "scheduleRunFrequency": "Daily",
      "scheduleRunTimes": [
        "2023-07-18T09:30:00.000Z"
      ]
    },
    "vaultRetentionPolicy": {
      "snapshotRetentionInDays": 5,
      "vaultRetention": {
        "retentionPolicyType": "LongTermRetentionPolicy",
        "dailySchedule": {
          "retentionTimes": [
            "2023-07-18T09:30:00.000Z"
          ],
          "retentionDuration": {
            "count": 30,
            "durationType": "Days"
          }
        },
        "weeklySchedule": {
          "daysOfTheWeek": [
            "Sunday"
          ],
          "retentionTimes": [
            "2023-07-18T09:30:00.000Z"
          ],
          "retentionDuration": {
            "count": 12,
            "durationType": "Weeks"
          }
        },
        "monthlySchedule": {
          "retentionScheduleFormatType": "Weekly",
          "retentionScheduleDaily": null,
          "retentionScheduleWeekly": {
            "daysOfTheWeek": [
              "Sunday"
            ],
            "weeksOfTheMonth": [
              "First"
            ]
          },
          "retentionTimes": [
            "2023-07-18T09:30:00.000Z"
          ],
          "retentionDuration": {
            "count": 60,
            "durationType": "Months"
          }
        },
        "yearlySchedule": {
          "retentionScheduleFormatType": "Weekly",
          "monthsOfYear": [
            "January"
          ],
          "retentionScheduleDaily": null,
          "retentionScheduleWeekly": {
            "daysOfTheWeek": [
              "Sunday"
            ],
            "weeksOfTheMonth": [
              "First"
            ]
          },
          "retentionTimes": [
            "2023-07-18T09:30:00.000Z"
          ],
          "retentionDuration": {
            "count": 10,
            "durationType": "Years"
          }
        }
      }
    },
    "timeZone": "UTC",
    "protectedItemsCount": 0
  }
}
Location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/swaggertestvault/backupPolicies/newPolicyV2/operationResults/00000000-0000-0000-0000-000000000000?api-version=2024-10-01
Azure-AsyncOperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/swaggertestvault/backupPolicies/newPolicyV2/operations/00000000-0000-0000-0000-000000000000?api-version=2024-10-01
Retry-After: 60

Create or Update Daily Azure Storage Protection Policy

範例要求

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/swaggertestvault/backupPolicies/dailyPolicy2?api-version=2024-10-01

{
  "properties": {
    "backupManagementType": "AzureStorage",
    "workLoadType": "AzureFileShare",
    "schedulePolicy": {
      "schedulePolicyType": "SimpleSchedulePolicy",
      "scheduleRunFrequency": "Daily",
      "scheduleRunTimes": [
        "2021-09-29T08:00:00.000Z"
      ]
    },
    "timeZone": "UTC",
    "retentionPolicy": {
      "retentionPolicyType": "LongTermRetentionPolicy",
      "dailySchedule": {
        "retentionTimes": [
          "2021-09-29T08:00:00.000Z"
        ],
        "retentionDuration": {
          "count": 5,
          "durationType": "Days"
        }
      },
      "weeklySchedule": {
        "daysOfTheWeek": [
          "Sunday"
        ],
        "retentionTimes": [
          "2021-09-29T08:00:00.000Z"
        ],
        "retentionDuration": {
          "count": 12,
          "durationType": "Weeks"
        }
      },
      "monthlySchedule": {
        "retentionScheduleFormatType": "Weekly",
        "retentionScheduleDaily": null,
        "retentionScheduleWeekly": {
          "daysOfTheWeek": [
            "Sunday"
          ],
          "weeksOfTheMonth": [
            "First"
          ]
        },
        "retentionTimes": [
          "2021-09-29T08:00:00.000Z"
        ],
        "retentionDuration": {
          "count": 60,
          "durationType": "Months"
        }
      },
      "yearlySchedule": {
        "retentionScheduleFormatType": "Weekly",
        "monthsOfYear": [
          "January"
        ],
        "retentionScheduleDaily": null,
        "retentionScheduleWeekly": {
          "daysOfTheWeek": [
            "Sunday"
          ],
          "weeksOfTheMonth": [
            "First"
          ]
        },
        "retentionTimes": [
          "2021-09-29T08:00:00.000Z"
        ],
        "retentionDuration": {
          "count": 10,
          "durationType": "Years"
        }
      }
    }
  }
}

範例回覆

{
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/swaggertestvault/backupPolicies/dailyPolicy2",
  "name": "dailyPolicy2",
  "type": "Microsoft.RecoveryServices/vaults/backupPolicies",
  "properties": {
    "backupManagementType": "AzureStorage",
    "schedulePolicy": {
      "schedulePolicyType": "SimpleSchedulePolicy",
      "scheduleRunFrequency": "Daily",
      "scheduleRunTimes": [
        "2021-09-29T08:00:00Z"
      ],
      "scheduleWeeklyFrequency": 0
    },
    "retentionPolicy": {
      "retentionPolicyType": "LongTermRetentionPolicy",
      "dailySchedule": {
        "retentionTimes": [
          "2021-09-29T08:00:00Z"
        ],
        "retentionDuration": {
          "count": 5,
          "durationType": "Days"
        }
      },
      "weeklySchedule": {
        "daysOfTheWeek": [
          "Sunday"
        ],
        "retentionTimes": [
          "2021-09-29T08:00:00Z"
        ],
        "retentionDuration": {
          "count": 12,
          "durationType": "Weeks"
        }
      },
      "monthlySchedule": {
        "retentionScheduleFormatType": "Weekly",
        "retentionScheduleWeekly": {
          "daysOfTheWeek": [
            "Sunday"
          ],
          "weeksOfTheMonth": [
            "First"
          ]
        },
        "retentionTimes": [
          "2021-09-29T08:00:00Z"
        ],
        "retentionDuration": {
          "count": 60,
          "durationType": "Months"
        }
      },
      "yearlySchedule": {
        "retentionScheduleFormatType": "Weekly",
        "monthsOfYear": [
          "January"
        ],
        "retentionScheduleWeekly": {
          "daysOfTheWeek": [
            "Sunday"
          ],
          "weeksOfTheMonth": [
            "First"
          ]
        },
        "retentionTimes": [
          "2021-09-29T08:00:00Z"
        ],
        "retentionDuration": {
          "count": 10,
          "durationType": "Years"
        }
      }
    },
    "timeZone": "UTC",
    "protectedItemsCount": 0
  }
}
Location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/swaggertestvault/backupPolicies/dailyPolicy2/operationResults/00000000-0000-0000-0000-000000000000?api-version=2016-06-01
Azure-AsyncOperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/swaggertestvault/backupPolicies/dailyPolicy2/operations/00000000-0000-0000-0000-000000000000?api-version=2016-06-01
Retry-After: 60

Create or Update Enhanced Azure Vm Protection Policy with daily backup

範例要求

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/v2-daily-sample?api-version=2024-10-01

{
  "properties": {
    "backupManagementType": "AzureIaasVM",
    "timeZone": "India Standard Time",
    "instantRpRetentionRangeInDays": 30,
    "policyType": "V2",
    "snapshotConsistencyType": "OnlyCrashConsistent",
    "schedulePolicy": {
      "schedulePolicyType": "SimpleSchedulePolicyV2",
      "scheduleRunFrequency": "Daily",
      "dailySchedule": {
        "scheduleRunTimes": [
          "2018-01-24T10:00:00Z"
        ]
      }
    },
    "retentionPolicy": {
      "retentionPolicyType": "LongTermRetentionPolicy",
      "dailySchedule": {
        "retentionDuration": {
          "count": 180,
          "durationType": "Days"
        },
        "retentionTimes": [
          "2021-12-17T08:00:00+00:00"
        ]
      },
      "weeklySchedule": {
        "daysOfTheWeek": [
          "Sunday"
        ],
        "retentionDuration": {
          "count": 12,
          "durationType": "Weeks"
        },
        "retentionTimes": [
          "2021-12-17T08:00:00+00:00"
        ]
      },
      "monthlySchedule": {
        "retentionDuration": {
          "count": 60,
          "durationType": "Months"
        },
        "retentionScheduleDaily": null,
        "retentionScheduleFormatType": "Weekly",
        "retentionScheduleWeekly": {
          "daysOfTheWeek": [
            "Sunday"
          ],
          "weeksOfTheMonth": [
            "First"
          ]
        },
        "retentionTimes": [
          "2021-12-17T08:00:00+00:00"
        ]
      },
      "yearlySchedule": {
        "monthsOfYear": [
          "January"
        ],
        "retentionDuration": {
          "count": 10,
          "durationType": "Years"
        },
        "retentionScheduleDaily": null,
        "retentionScheduleFormatType": "Weekly",
        "retentionScheduleWeekly": {
          "daysOfTheWeek": [
            "Sunday"
          ],
          "weeksOfTheMonth": [
            "First"
          ]
        },
        "retentionTimes": [
          "2021-12-17T08:00:00+00:00"
        ]
      }
    }
  }
}

範例回覆

{
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/v2-daily-sample",
  "name": "v2-daily-sample",
  "properties": {
    "backupManagementType": "AzureIaasVM",
    "instantRpRetentionRangeInDays": 30,
    "policyType": "V2",
    "snapshotConsistencyType": "OnlyCrashConsistent",
    "protectedItemsCount": 0,
    "resourceGuardOperationRequests": null,
    "retentionPolicy": {
      "dailySchedule": {
        "retentionDuration": {
          "count": 180,
          "durationType": "Days"
        },
        "retentionTimes": [
          "2021-12-17T08:00:00+00:00"
        ]
      },
      "monthlySchedule": {
        "retentionDuration": {
          "count": 60,
          "durationType": "Months"
        },
        "retentionScheduleDaily": null,
        "retentionScheduleFormatType": "Weekly",
        "retentionScheduleWeekly": {
          "daysOfTheWeek": [
            "Sunday"
          ],
          "weeksOfTheMonth": [
            "First"
          ]
        },
        "retentionTimes": [
          "2021-12-17T08:00:00+00:00"
        ]
      },
      "retentionPolicyType": "LongTermRetentionPolicy",
      "weeklySchedule": {
        "daysOfTheWeek": [
          "Sunday"
        ],
        "retentionDuration": {
          "count": 12,
          "durationType": "Weeks"
        },
        "retentionTimes": [
          "2021-12-17T08:00:00+00:00"
        ]
      },
      "yearlySchedule": {
        "monthsOfYear": [
          "January"
        ],
        "retentionDuration": {
          "count": 10,
          "durationType": "Years"
        },
        "retentionScheduleDaily": null,
        "retentionScheduleFormatType": "Weekly",
        "retentionScheduleWeekly": {
          "daysOfTheWeek": [
            "Sunday"
          ],
          "weeksOfTheMonth": [
            "First"
          ]
        },
        "retentionTimes": [
          "2021-12-17T08:00:00+00:00"
        ]
      }
    },
    "schedulePolicy": {
      "dailySchedule": {
        "scheduleRunTimes": [
          "2018-01-24T10:00:00Z"
        ]
      },
      "schedulePolicyType": "SimpleSchedulePolicyV2",
      "scheduleRunFrequency": "Daily"
    },
    "timeZone": "India Standard Time"
  },
  "type": "Microsoft.RecoveryServices/vaults/backupPolicies"
}
Location: https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/v2-daily-sample/operationResults/00000000-0000-0000-0000-000000000000?api-version=2020-06-01
Azure-AsyncOperation: https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/v2-daily-sample/operations/00000000-0000-0000-0000-000000000000?api-version=2020-06-01
Retry-After: 60

Create or Update Enhanced Azure Vm Protection Policy with Hourly backup

範例要求

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/v2-daily-sample?api-version=2024-10-01

{
  "properties": {
    "backupManagementType": "AzureIaasVM",
    "timeZone": "India Standard Time",
    "instantRpRetentionRangeInDays": 30,
    "policyType": "V2",
    "snapshotConsistencyType": "OnlyCrashConsistent",
    "schedulePolicy": {
      "hourlySchedule": {
        "interval": 4,
        "scheduleWindowDuration": 16,
        "scheduleWindowStartTime": "2021-12-17T08:00:00Z"
      },
      "schedulePolicyType": "SimpleSchedulePolicyV2",
      "scheduleRunFrequency": "Hourly"
    },
    "retentionPolicy": {
      "retentionPolicyType": "LongTermRetentionPolicy",
      "dailySchedule": {
        "retentionDuration": {
          "count": 180,
          "durationType": "Days"
        },
        "retentionTimes": [
          "2021-12-17T08:00:00+00:00"
        ]
      },
      "weeklySchedule": {
        "daysOfTheWeek": [
          "Sunday"
        ],
        "retentionDuration": {
          "count": 12,
          "durationType": "Weeks"
        },
        "retentionTimes": [
          "2021-12-17T08:00:00+00:00"
        ]
      },
      "monthlySchedule": {
        "retentionDuration": {
          "count": 60,
          "durationType": "Months"
        },
        "retentionScheduleDaily": null,
        "retentionScheduleFormatType": "Weekly",
        "retentionScheduleWeekly": {
          "daysOfTheWeek": [
            "Sunday"
          ],
          "weeksOfTheMonth": [
            "First"
          ]
        },
        "retentionTimes": [
          "2021-12-17T08:00:00+00:00"
        ]
      },
      "yearlySchedule": {
        "monthsOfYear": [
          "January"
        ],
        "retentionDuration": {
          "count": 10,
          "durationType": "Years"
        },
        "retentionScheduleDaily": null,
        "retentionScheduleFormatType": "Weekly",
        "retentionScheduleWeekly": {
          "daysOfTheWeek": [
            "Sunday"
          ],
          "weeksOfTheMonth": [
            "First"
          ]
        },
        "retentionTimes": [
          "2021-12-17T08:00:00+00:00"
        ]
      }
    }
  }
}

範例回覆

{
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/v2-daily-sample",
  "name": "v2-daily-sample",
  "properties": {
    "backupManagementType": "AzureIaasVM",
    "instantRpRetentionRangeInDays": 30,
    "policyType": "V2",
    "snapshotConsistencyType": "OnlyCrashConsistent",
    "protectedItemsCount": 0,
    "resourceGuardOperationRequests": null,
    "retentionPolicy": {
      "dailySchedule": {
        "retentionDuration": {
          "count": 180,
          "durationType": "Days"
        },
        "retentionTimes": [
          "2021-12-17T08:00:00+00:00"
        ]
      },
      "monthlySchedule": {
        "retentionDuration": {
          "count": 60,
          "durationType": "Months"
        },
        "retentionScheduleDaily": null,
        "retentionScheduleFormatType": "Weekly",
        "retentionScheduleWeekly": {
          "daysOfTheWeek": [
            "Sunday"
          ],
          "weeksOfTheMonth": [
            "First"
          ]
        },
        "retentionTimes": [
          "2021-12-17T08:00:00+00:00"
        ]
      },
      "retentionPolicyType": "LongTermRetentionPolicy",
      "weeklySchedule": {
        "daysOfTheWeek": [
          "Sunday"
        ],
        "retentionDuration": {
          "count": 12,
          "durationType": "Weeks"
        },
        "retentionTimes": [
          "2021-12-17T08:00:00+00:00"
        ]
      },
      "yearlySchedule": {
        "monthsOfYear": [
          "January"
        ],
        "retentionDuration": {
          "count": 10,
          "durationType": "Years"
        },
        "retentionScheduleDaily": null,
        "retentionScheduleFormatType": "Weekly",
        "retentionScheduleWeekly": {
          "daysOfTheWeek": [
            "Sunday"
          ],
          "weeksOfTheMonth": [
            "First"
          ]
        },
        "retentionTimes": [
          "2021-12-17T08:00:00+00:00"
        ]
      }
    },
    "schedulePolicy": {
      "hourlySchedule": {
        "interval": 4,
        "scheduleWindowDuration": 16,
        "scheduleWindowStartTime": "2021-12-17T08:00:00Z"
      },
      "schedulePolicyType": "SimpleSchedulePolicyV2",
      "scheduleRunFrequency": "Hourly"
    },
    "timeZone": "India Standard Time"
  },
  "type": "Microsoft.RecoveryServices/vaults/backupPolicies"
}
Location: https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/v2-daily-sample/operationResults/00000000-0000-0000-0000-000000000000?api-version=2020-06-01
Azure-AsyncOperation: https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/v2-daily-sample/operations/00000000-0000-0000-0000-000000000000?api-version=2020-06-01
Retry-After: 60

Create or Update Full Azure Vm Protection Policy

範例要求

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/testPolicy1?api-version=2024-10-01

{
  "properties": {
    "backupManagementType": "AzureIaasVM",
    "timeZone": "Pacific Standard Time",
    "schedulePolicy": {
      "schedulePolicyType": "SimpleSchedulePolicy",
      "scheduleRunFrequency": "Weekly",
      "scheduleRunTimes": [
        "2018-01-24T10:00:00Z"
      ],
      "scheduleRunDays": [
        "Monday",
        "Wednesday",
        "Thursday"
      ]
    },
    "retentionPolicy": {
      "retentionPolicyType": "LongTermRetentionPolicy",
      "weeklySchedule": {
        "daysOfTheWeek": [
          "Monday",
          "Wednesday",
          "Thursday"
        ],
        "retentionTimes": [
          "2018-01-24T10:00:00Z"
        ],
        "retentionDuration": {
          "count": 1,
          "durationType": "Weeks"
        }
      },
      "monthlySchedule": {
        "retentionScheduleFormatType": "Weekly",
        "retentionScheduleWeekly": {
          "daysOfTheWeek": [
            "Wednesday",
            "Thursday"
          ],
          "weeksOfTheMonth": [
            "First",
            "Third"
          ]
        },
        "retentionTimes": [
          "2018-01-24T10:00:00Z"
        ],
        "retentionDuration": {
          "count": 2,
          "durationType": "Months"
        }
      },
      "yearlySchedule": {
        "retentionScheduleFormatType": "Weekly",
        "monthsOfYear": [
          "February",
          "November"
        ],
        "retentionScheduleWeekly": {
          "daysOfTheWeek": [
            "Monday",
            "Thursday"
          ],
          "weeksOfTheMonth": [
            "Fourth"
          ]
        },
        "retentionTimes": [
          "2018-01-24T10:00:00Z"
        ],
        "retentionDuration": {
          "count": 4,
          "durationType": "Years"
        }
      }
    }
  }
}

範例回覆

{
  "id": "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/testPolicy1",
  "name": "testPolicy1",
  "type": "Microsoft.RecoveryServices/vaults/backupPolicies",
  "properties": {
    "backupManagementType": "AzureIaasVM",
    "schedulePolicy": {
      "schedulePolicyType": "SimpleSchedulePolicy",
      "scheduleRunFrequency": "Weekly",
      "scheduleRunDays": [
        "Monday",
        "Wednesday",
        "Thursday"
      ],
      "scheduleRunTimes": [
        "2018-01-24T10:00:00Z"
      ],
      "scheduleWeeklyFrequency": 0
    },
    "retentionPolicy": {
      "retentionPolicyType": "LongTermRetentionPolicy",
      "weeklySchedule": {
        "daysOfTheWeek": [
          "Monday",
          "Wednesday",
          "Thursday"
        ],
        "retentionTimes": [
          "2018-01-24T10:00:00Z"
        ],
        "retentionDuration": {
          "count": 1,
          "durationType": "Weeks"
        }
      },
      "monthlySchedule": {
        "retentionScheduleFormatType": "Weekly",
        "retentionScheduleWeekly": {
          "daysOfTheWeek": [
            "Wednesday",
            "Thursday"
          ],
          "weeksOfTheMonth": [
            "First",
            "Third"
          ]
        },
        "retentionTimes": [
          "2018-01-24T10:00:00Z"
        ],
        "retentionDuration": {
          "count": 2,
          "durationType": "Months"
        }
      },
      "yearlySchedule": {
        "retentionScheduleFormatType": "Weekly",
        "monthsOfYear": [
          "February",
          "November"
        ],
        "retentionScheduleWeekly": {
          "daysOfTheWeek": [
            "Monday",
            "Thursday"
          ],
          "weeksOfTheMonth": [
            "Fourth"
          ]
        },
        "retentionTimes": [
          "2018-01-24T10:00:00Z"
        ],
        "retentionDuration": {
          "count": 4,
          "durationType": "Years"
        }
      }
    },
    "timeZone": "Pacific Standard Time",
    "protectedItemsCount": 0
  }
}
Location: https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/testPolicy1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2016-06-01
Azure-AsyncOperation: https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/testPolicy1/operations/00000000-0000-0000-0000-000000000000?api-version=2016-06-01
Retry-After: 60

Create or Update Full Azure Workload Protection Policy

範例要求

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/testPolicy1?api-version=2024-10-01

{
  "properties": {
    "backupManagementType": "AzureWorkload",
    "workLoadType": "SQLDataBase",
    "settings": {
      "timeZone": "Pacific Standard Time",
      "issqlcompression": false
    },
    "subProtectionPolicy": [
      {
        "policyType": "Full",
        "schedulePolicy": {
          "schedulePolicyType": "SimpleSchedulePolicy",
          "scheduleRunFrequency": "Weekly",
          "scheduleRunTimes": [
            "2018-01-24T10:00:00Z"
          ],
          "scheduleRunDays": [
            "Sunday",
            "Tuesday"
          ]
        },
        "retentionPolicy": {
          "retentionPolicyType": "LongTermRetentionPolicy",
          "weeklySchedule": {
            "daysOfTheWeek": [
              "Sunday",
              "Tuesday"
            ],
            "retentionTimes": [
              "2018-01-24T10:00:00Z"
            ],
            "retentionDuration": {
              "count": 2,
              "durationType": "Weeks"
            }
          },
          "monthlySchedule": {
            "retentionScheduleFormatType": "Weekly",
            "retentionScheduleWeekly": {
              "daysOfTheWeek": [
                "Sunday"
              ],
              "weeksOfTheMonth": [
                "Second"
              ]
            },
            "retentionTimes": [
              "2018-01-24T10:00:00Z"
            ],
            "retentionDuration": {
              "count": 1,
              "durationType": "Months"
            }
          },
          "yearlySchedule": {
            "retentionScheduleFormatType": "Weekly",
            "monthsOfYear": [
              "January",
              "June",
              "December"
            ],
            "retentionScheduleWeekly": {
              "daysOfTheWeek": [
                "Sunday"
              ],
              "weeksOfTheMonth": [
                "Last"
              ]
            },
            "retentionTimes": [
              "2018-01-24T10:00:00Z"
            ],
            "retentionDuration": {
              "count": 1,
              "durationType": "Years"
            }
          }
        }
      },
      {
        "policyType": "Differential",
        "schedulePolicy": {
          "schedulePolicyType": "SimpleSchedulePolicy",
          "scheduleRunFrequency": "Weekly",
          "scheduleRunTimes": [
            "2018-01-24T10:00:00Z"
          ],
          "scheduleRunDays": [
            "Friday"
          ]
        },
        "retentionPolicy": {
          "retentionPolicyType": "SimpleRetentionPolicy",
          "retentionDuration": {
            "count": 8,
            "durationType": "Days"
          }
        }
      },
      {
        "policyType": "Log",
        "schedulePolicy": {
          "schedulePolicyType": "LogSchedulePolicy",
          "scheduleFrequencyInMins": 60
        },
        "retentionPolicy": {
          "retentionPolicyType": "SimpleRetentionPolicy",
          "retentionDuration": {
            "count": 7,
            "durationType": "Days"
          }
        }
      }
    ]
  }
}

範例回覆

{
  "id": "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/testPolicy1",
  "name": "testPolicy1",
  "type": "Microsoft.RecoveryServices/vaults/backupPolicies",
  "properties": {
    "backupManagementType": "AzureWorkload",
    "workLoadType": "SQLDataBase",
    "settings": {
      "timeZone": "Pacific Standard Time",
      "issqlcompression": false
    },
    "subProtectionPolicy": [
      {
        "policyType": "Full",
        "schedulePolicy": {
          "schedulePolicyType": "SimpleSchedulePolicy",
          "scheduleRunFrequency": "Weekly",
          "scheduleRunDays": [
            "Sunday",
            "Tuesday"
          ],
          "scheduleRunTimes": [
            "2018-01-24T10:00:00Z"
          ],
          "scheduleWeeklyFrequency": 0
        },
        "retentionPolicy": {
          "retentionPolicyType": "LongTermRetentionPolicy",
          "weeklySchedule": {
            "daysOfTheWeek": [
              "Sunday",
              "Tuesday"
            ],
            "retentionTimes": [
              "2018-01-24T10:00:00Z"
            ],
            "retentionDuration": {
              "count": 2,
              "durationType": "Weeks"
            }
          },
          "monthlySchedule": {
            "retentionScheduleFormatType": "Weekly",
            "retentionScheduleWeekly": {
              "daysOfTheWeek": [
                "Sunday"
              ],
              "weeksOfTheMonth": [
                "Second"
              ]
            },
            "retentionTimes": [
              "2018-01-24T10:00:00Z"
            ],
            "retentionDuration": {
              "count": 1,
              "durationType": "Months"
            }
          },
          "yearlySchedule": {
            "retentionScheduleFormatType": "Weekly",
            "monthsOfYear": [
              "January",
              "June",
              "December"
            ],
            "retentionScheduleWeekly": {
              "daysOfTheWeek": [
                "Sunday"
              ],
              "weeksOfTheMonth": [
                "Last"
              ]
            },
            "retentionTimes": [
              "2018-01-24T10:00:00Z"
            ],
            "retentionDuration": {
              "count": 1,
              "durationType": "Years"
            }
          }
        }
      },
      {
        "policyType": "Differential",
        "schedulePolicy": {
          "schedulePolicyType": "SimpleSchedulePolicy",
          "scheduleRunFrequency": "Weekly",
          "scheduleRunDays": [
            "Friday"
          ],
          "scheduleRunTimes": [
            "2018-01-24T10:00:00Z"
          ],
          "scheduleWeeklyFrequency": 0
        },
        "retentionPolicy": {
          "retentionPolicyType": "SimpleRetentionPolicy",
          "retentionDuration": {
            "count": 8,
            "durationType": "Days"
          }
        }
      },
      {
        "policyType": "Log",
        "schedulePolicy": {
          "schedulePolicyType": "LogSchedulePolicy",
          "scheduleFrequencyInMins": 60
        },
        "retentionPolicy": {
          "retentionPolicyType": "SimpleRetentionPolicy",
          "retentionDuration": {
            "count": 7,
            "durationType": "Days"
          }
        }
      }
    ],
    "protectedItemsCount": 0
  }
}
Location: https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/testPolicy1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2016-06-01
Azure-AsyncOperation: https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/testPolicy1/operations/00000000-0000-0000-0000-000000000000?api-version=2016-06-01
Retry-After: 60

Create or Update Hourly Azure Storage Protection Policy

範例要求

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/swaggertestvault/backupPolicies/newPolicy2?api-version=2024-10-01

{
  "properties": {
    "backupManagementType": "AzureStorage",
    "workLoadType": "AzureFileShare",
    "schedulePolicy": {
      "schedulePolicyType": "SimpleSchedulePolicy",
      "scheduleRunFrequency": "Hourly",
      "hourlySchedule": {
        "interval": 4,
        "scheduleWindowStartTime": "2021-09-29T08:00:00.000Z",
        "scheduleWindowDuration": 12
      }
    },
    "timeZone": "UTC",
    "retentionPolicy": {
      "retentionPolicyType": "LongTermRetentionPolicy",
      "dailySchedule": {
        "retentionTimes": null,
        "retentionDuration": {
          "count": 5,
          "durationType": "Days"
        }
      },
      "weeklySchedule": {
        "daysOfTheWeek": [
          "Sunday"
        ],
        "retentionTimes": null,
        "retentionDuration": {
          "count": 12,
          "durationType": "Weeks"
        }
      },
      "monthlySchedule": {
        "retentionScheduleFormatType": "Weekly",
        "retentionScheduleDaily": null,
        "retentionScheduleWeekly": {
          "daysOfTheWeek": [
            "Sunday"
          ],
          "weeksOfTheMonth": [
            "First"
          ]
        },
        "retentionTimes": null,
        "retentionDuration": {
          "count": 60,
          "durationType": "Months"
        }
      },
      "yearlySchedule": {
        "retentionScheduleFormatType": "Weekly",
        "monthsOfYear": [
          "January"
        ],
        "retentionScheduleDaily": null,
        "retentionScheduleWeekly": {
          "daysOfTheWeek": [
            "Sunday"
          ],
          "weeksOfTheMonth": [
            "First"
          ]
        },
        "retentionTimes": null,
        "retentionDuration": {
          "count": 10,
          "durationType": "Years"
        }
      }
    }
  }
}

範例回覆

{
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/swaggertestvault/backupPolicies/newPolicy2",
  "name": "newPolicy2",
  "type": "Microsoft.RecoveryServices/vaults/backupPolicies",
  "properties": {
    "backupManagementType": "AzureStorage",
    "schedulePolicy": {
      "schedulePolicyType": "SimpleSchedulePolicy",
      "scheduleRunFrequency": "Hourly",
      "hourlySchedule": {
        "interval": 4,
        "scheduleWindowStartTime": "2021-09-29T08:00:00Z",
        "scheduleWindowDuration": 12
      },
      "scheduleWeeklyFrequency": 0
    },
    "retentionPolicy": {
      "retentionPolicyType": "LongTermRetentionPolicy",
      "dailySchedule": {
        "retentionTimes": [
          "2021-09-29T20:00:00Z"
        ],
        "retentionDuration": {
          "count": 5,
          "durationType": "Days"
        }
      },
      "weeklySchedule": {
        "daysOfTheWeek": [
          "Sunday"
        ],
        "retentionTimes": [
          "2021-09-29T20:00:00Z"
        ],
        "retentionDuration": {
          "count": 12,
          "durationType": "Weeks"
        }
      },
      "monthlySchedule": {
        "retentionScheduleFormatType": "Weekly",
        "retentionScheduleWeekly": {
          "daysOfTheWeek": [
            "Sunday"
          ],
          "weeksOfTheMonth": [
            "First"
          ]
        },
        "retentionTimes": [
          "2021-09-29T20:00:00Z"
        ],
        "retentionDuration": {
          "count": 60,
          "durationType": "Months"
        }
      },
      "yearlySchedule": {
        "retentionScheduleFormatType": "Weekly",
        "monthsOfYear": [
          "January"
        ],
        "retentionScheduleWeekly": {
          "daysOfTheWeek": [
            "Sunday"
          ],
          "weeksOfTheMonth": [
            "First"
          ]
        },
        "retentionTimes": [
          "2021-09-29T20:00:00Z"
        ],
        "retentionDuration": {
          "count": 10,
          "durationType": "Years"
        }
      }
    },
    "timeZone": "UTC",
    "protectedItemsCount": 0
  }
}
Location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/swaggertestvault/backupPolicies/newPolicy2/operationResults/00000000-0000-0000-0000-000000000000?api-version=2016-06-01
Azure-AsyncOperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/swaggertestvault/backupPolicies/newPolicy2/operations/00000000-0000-0000-0000-000000000000?api-version=2016-06-01
Retry-After: 60

Create or Update Simple Azure Vm Protection Policy

範例要求

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/testPolicy1?api-version=2024-10-01

{
  "properties": {
    "backupManagementType": "AzureIaasVM",
    "timeZone": "Pacific Standard Time",
    "schedulePolicy": {
      "schedulePolicyType": "SimpleSchedulePolicy",
      "scheduleRunFrequency": "Daily",
      "scheduleRunTimes": [
        "2018-01-24T02:00:00Z"
      ]
    },
    "retentionPolicy": {
      "retentionPolicyType": "LongTermRetentionPolicy",
      "dailySchedule": {
        "retentionTimes": [
          "2018-01-24T02:00:00Z"
        ],
        "retentionDuration": {
          "count": 1,
          "durationType": "Days"
        }
      }
    }
  }
}

範例回覆

{
  "id": "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/testPolicy1",
  "name": "testPolicy1",
  "type": "Microsoft.RecoveryServices/vaults/backupPolicies",
  "properties": {
    "backupManagementType": "AzureIaasVM",
    "schedulePolicy": {
      "schedulePolicyType": "SimpleSchedulePolicy",
      "scheduleRunFrequency": "Daily",
      "scheduleRunTimes": [
        "2018-01-24T02:00:00Z"
      ],
      "scheduleWeeklyFrequency": 0
    },
    "retentionPolicy": {
      "retentionPolicyType": "LongTermRetentionPolicy",
      "dailySchedule": {
        "retentionTimes": [
          "2018-01-24T02:00:00Z"
        ],
        "retentionDuration": {
          "count": 1,
          "durationType": "Days"
        }
      }
    },
    "timeZone": "Pacific Standard Time",
    "protectedItemsCount": 0
  }
}
Location: https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/testPolicy1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2016-06-01
Azure-AsyncOperation: https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/testPolicy1/operations/00000000-0000-0000-0000-000000000000?api-version=2016-06-01
Retry-After: 60

定義

名稱 Description
AzureFileShareProtectionPolicy

AzureStorage 備份原則。

AzureIaaSVMProtectionPolicy

IaaS VM 工作負載特定的備份原則。

AzureSqlProtectionPolicy

Azure SQL 工作負載特定的備份原則。

AzureVmWorkloadProtectionPolicy

Azure VM (Mercury) 工作負載特定的備份原則。

CloudError

來自容器實例服務的錯誤回應。

CloudErrorBody

來自容器實例服務的錯誤回應。

DailyRetentionFormat

每日保留格式。

DailyRetentionSchedule

每日保留排程。

DailySchedule
Day

一周中的一天。

DayOfWeek
ErrorAdditionalInfo

資源管理錯誤其他資訊。

GenericProtectionPolicy

Azure VM (Mercury) 工作負載特定的備份原則。

HourlySchedule
IAASVMPolicyType
IaasVMSnapshotConsistencyType
InstantRPAdditionalDetails
LogSchedulePolicy

記錄原則排程。

LongTermRetentionPolicy

長期保留原則。

LongTermSchedulePolicy

長期原則排程。

MabProtectionPolicy

Mab 容器特定的備份原則。

MonthlyRetentionSchedule

每月保留排程。

MonthOfYear

年度保留原則的月份清單。

PolicyType

備份原則類型

ProtectionPolicyResource

備份原則的基類。 工作負載特定的備份原則衍生自這個類別。

RetentionDuration

保留期間。

RetentionDurationType

保留期間類型:天數/周/月/年 只有在 TieringMode 設定為 TierAfter 時才使用

RetentionScheduleFormat

每月保留原則的保留排程格式類型。

ScheduleRunType

此原則的排程作業頻率。

Settings

備份管理的一般設定欄位

SimpleRetentionPolicy

簡單原則保留。

SimpleSchedulePolicy

簡單原則排程。

SimpleSchedulePolicyV2

支援每小時備份之 IaaS 的 V2 原則排程。

SnapshotBackupAdditionalDetails

WorkloadType SaPHanaSystem 的快照集備份相關欄位

SubProtectionPolicy

包含排程和保留的子保護原則

TieringMode

階層處理模式可控制恢復點的自動階層處理。 支援的值為:

  1. TierRecommended:分層建議的所有恢復點分層
  2. TierAfter:將固定期間之後的所有恢復點分層,如以下的 duration + durationType 中所指定。
  3. DoNotTier:不要將任何恢復點分層
TieringPolicy

目標層的分層原則。 如果未為指定的目標層指定原則,服務會保留該層的現有已設定階層處理原則

UserAssignedIdentityProperties

使用者指派的受控識別屬性

UserAssignedManagedIdentityDetails

使用者指派的受控識別詳細數據

VaultRetentionPolicy

AzureFileShare 的保存庫保留原則

WeeklyRetentionFormat

每周保留格式。

WeeklyRetentionSchedule

每周保留排程。

WeeklySchedule
WeekOfMonth

月份的周清單。

WorkloadType

備份管理的工作負載類型

YearlyRetentionSchedule

每年保留排程。

AzureFileShareProtectionPolicy

AzureStorage 備份原則。

名稱 類型 Description
backupManagementType string:

AzureStorage

這個屬性將做為決定型別多型鏈結中特定類型的歧視性。

protectedItemsCount

integer

與此原則相關聯的項目數目。

resourceGuardOperationRequests

string[]

ResourceGuard 作業要求

retentionPolicy RetentionPolicy:

保留原則,其中包含備份複製保留範圍的詳細數據。

schedulePolicy SchedulePolicy:

備份排程指定為備份原則的一部分。

timeZone

string

TimeZone 選擇性輸入做為字串。 例如:TimeZone = “Pacific Standard Time”。

vaultRetentionPolicy

VaultRetentionPolicy

保留原則,其中包含強化備份複製保留範圍的詳細數據。

workLoadType

WorkloadType

備份管理的工作負載類型

AzureIaaSVMProtectionPolicy

IaaS VM 工作負載特定的備份原則。

名稱 類型 Description
backupManagementType string:

AzureIaasVM

這個屬性將做為決定型別多型鏈結中特定類型的歧視性。

instantRPDetails

InstantRPAdditionalDetails

instantRpRetentionRangeInDays

integer

立即 RP 保留原則範圍天數

policyType

IAASVMPolicyType

protectedItemsCount

integer

與此原則相關聯的項目數目。

resourceGuardOperationRequests

string[]

ResourceGuard 作業要求

retentionPolicy RetentionPolicy:

保留原則,其中包含備份複製保留範圍的詳細數據。

schedulePolicy SchedulePolicy:

備份排程指定為備份原則的一部分。

snapshotConsistencyType

IaasVMSnapshotConsistencyType

tieringPolicy

<string,  TieringPolicy>

將 RP 自動移至另一層金鑰的分層原則是在 RecoveryPointTierType 列舉中定義的目標層。 階層處理原則會指定要將 RP 移至目標層的準則。

timeZone

string

TimeZone 選擇性輸入做為字串。 例如:TimeZone = “Pacific Standard Time”。

AzureSqlProtectionPolicy

Azure SQL 工作負載特定的備份原則。

名稱 類型 Description
backupManagementType string:

AzureSql

這個屬性將做為決定型別多型鏈結中特定類型的歧視性。

protectedItemsCount

integer

與此原則相關聯的項目數目。

resourceGuardOperationRequests

string[]

ResourceGuard 作業要求

retentionPolicy RetentionPolicy:

保留原則詳細數據。

AzureVmWorkloadProtectionPolicy

Azure VM (Mercury) 工作負載特定的備份原則。

名稱 類型 Description
backupManagementType string:

AzureWorkload

這個屬性將做為決定型別多型鏈結中特定類型的歧視性。

makePolicyConsistent

boolean

修正原則不一致

protectedItemsCount

integer

與此原則相關聯的項目數目。

resourceGuardOperationRequests

string[]

ResourceGuard 作業要求

settings

Settings

備份管理的常見設定

subProtectionPolicy

SubProtectionPolicy[]

包含排程和保留的子保護原則清單

workLoadType

WorkloadType

備份管理的工作負載類型

CloudError

來自容器實例服務的錯誤回應。

名稱 類型 Description
error

CloudErrorBody

error 物件。

CloudErrorBody

來自容器實例服務的錯誤回應。

名稱 類型 Description
additionalInfo

ErrorAdditionalInfo[]

錯誤其他資訊。

code

string

錯誤的識別碼。 程序代碼是不變的,而且是要以程序設計方式取用。

details

CloudErrorBody[]

錯誤的其他詳細數據清單。

message

string

描述錯誤的訊息,適用於在使用者介面中顯示。

target

string

特定錯誤的目標。 例如,錯誤中的屬性名稱。

DailyRetentionFormat

每日保留格式。

名稱 類型 Description
daysOfTheMonth

Day[]

月份的天數清單。

DailyRetentionSchedule

每日保留排程。

名稱 類型 Description
retentionDuration

RetentionDuration

保留原則的保留期間。

retentionTimes

string[]

保留原則的保留時間。

DailySchedule

名稱 類型 Description
scheduleRunTimes

string[]

此排程必須執行的一天時間清單。

Day

一周中的一天。

名稱 類型 Description
date

integer

月份的日期

isLast

boolean

Date 是否為月份的最後一個日期

DayOfWeek

名稱 類型 Description
Friday

string

Monday

string

Saturday

string

Sunday

string

Thursday

string

Tuesday

string

Wednesday

string

ErrorAdditionalInfo

資源管理錯誤其他資訊。

名稱 類型 Description
info

object

其他資訊。

type

string

其他信息類型。

GenericProtectionPolicy

Azure VM (Mercury) 工作負載特定的備份原則。

名稱 類型 Description
backupManagementType string:

GenericProtectionPolicy

這個屬性將做為決定型別多型鏈結中特定類型的歧視性。

fabricName

string

此原則網狀架構的名稱。

protectedItemsCount

integer

與此原則相關聯的項目數目。

resourceGuardOperationRequests

string[]

ResourceGuard 作業要求

subProtectionPolicy

SubProtectionPolicy[]

包含排程和保留的子保護原則清單

timeZone

string

TimeZone 選擇性輸入做為字串。 例如:TimeZone = “Pacific Standard Time”。

HourlySchedule

名稱 類型 Description
interval

integer

需要觸發備份的間隔。 針對每小時,此值可以是 4/6/8/12

scheduleWindowDuration

integer

若要指定備份視窗的持續時間

scheduleWindowStartTime

string

若要指定備份視窗的開始時間

IAASVMPolicyType

名稱 類型 Description
Invalid

string

V1

string

V2

string

IaasVMSnapshotConsistencyType

名稱 類型 Description
OnlyCrashConsistent

string

InstantRPAdditionalDetails

名稱 類型 Description
azureBackupRGNamePrefix

string

azureBackupRGNameSuffix

string

LogSchedulePolicy

記錄原則排程。

名稱 類型 Description
scheduleFrequencyInMins

integer

此原則的記錄排程作業頻率,以分鐘為單位。

schedulePolicyType string:

LogSchedulePolicy

這個屬性將做為決定型別多型鏈結中特定類型的歧視性。

LongTermRetentionPolicy

長期保留原則。

名稱 類型 Description
dailySchedule

DailyRetentionSchedule

保護原則的每日保留排程。

monthlySchedule

MonthlyRetentionSchedule

保護原則的每月保留排程。

retentionPolicyType string:

LongTermRetentionPolicy

這個屬性將做為決定型別多型鏈結中特定類型的歧視性。

weeklySchedule

WeeklyRetentionSchedule

保護原則的每周保留排程。

yearlySchedule

YearlyRetentionSchedule

保護原則的每年保留排程。

LongTermSchedulePolicy

長期原則排程。

名稱 類型 Description
schedulePolicyType string:

LongTermSchedulePolicy

這個屬性將做為決定型別多型鏈結中特定類型的歧視性。

MabProtectionPolicy

Mab 容器特定的備份原則。

名稱 類型 Description
backupManagementType string:

MAB

這個屬性將做為決定型別多型鏈結中特定類型的歧視性。

protectedItemsCount

integer

與此原則相關聯的項目數目。

resourceGuardOperationRequests

string[]

ResourceGuard 作業要求

retentionPolicy RetentionPolicy:

保留原則詳細數據。

schedulePolicy SchedulePolicy:

備份原則的備份排程。

MonthlyRetentionSchedule

每月保留排程。

名稱 類型 Description
retentionDuration

RetentionDuration

保留原則的保留期間。

retentionScheduleDaily

DailyRetentionFormat

每月保留原則的每日保留格式。

retentionScheduleFormatType

RetentionScheduleFormat

每月保留原則的保留排程格式類型。

retentionScheduleWeekly

WeeklyRetentionFormat

每月保留原則的每周保留格式。

retentionTimes

string[]

保留原則的保留時間。

MonthOfYear

年度保留原則的月份清單。

名稱 類型 Description
April

string

August

string

December

string

February

string

Invalid

string

January

string

July

string

June

string

March

string

May

string

November

string

October

string

September

string

PolicyType

備份原則類型

名稱 類型 Description
CopyOnlyFull

string

Differential

string

Full

string

Incremental

string

Invalid

string

Log

string

SnapshotCopyOnlyFull

string

SnapshotFull

string

ProtectionPolicyResource

備份原則的基類。 工作負載特定的備份原則衍生自這個類別。

名稱 類型 Description
eTag

string

選擇性 ETag。

id

string

資源標識子代表資源的完整路徑。

location

string

資源位置。

name

string

與資源相關聯的資源名稱。

properties ProtectionPolicy:

ProtectionPolicyResource 屬性

tags

object

資源標籤。

type

string

資源類型代表命名空間/ResourceType/ResourceType/... 格式的完整路徑。

RetentionDuration

保留期間。

名稱 類型 Description
count

integer

持續時間類型的計數。 保留期間是透過計算持續時間類型 Count 時間取得。 例如,當 Count = 3 且 DurationType = Weeks 時,保留期間會是三周。

durationType

RetentionDurationType

保留期間類型的保留原則。

RetentionDurationType

保留期間類型:天數/周/月/年 只有在 TieringMode 設定為 TierAfter 時才使用

名稱 類型 Description
Days

string

Invalid

string

Months

string

Weeks

string

Years

string

RetentionScheduleFormat

每月保留原則的保留排程格式類型。

名稱 類型 Description
Daily

string

Invalid

string

Weekly

string

ScheduleRunType

此原則的排程作業頻率。

名稱 類型 Description
Daily

string

Hourly

string

Invalid

string

Weekly

string

Settings

備份管理的一般設定欄位

名稱 類型 Description
isCompression

boolean

工作負載壓縮旗標。 已新增此專案,一旦用戶端升級以考慮此旗標,'isSqlCompression' 就會被取代。

issqlcompression

boolean

SQL 壓縮旗標

timeZone

string

TimeZone 選擇性輸入做為字串。 例如:TimeZone = “Pacific Standard Time”。

SimpleRetentionPolicy

簡單原則保留。

名稱 類型 Description
retentionDuration

RetentionDuration

保護原則的保留期間。

retentionPolicyType string:

SimpleRetentionPolicy

這個屬性將做為決定型別多型鏈結中特定類型的歧視性。

SimpleSchedulePolicy

簡單原則排程。

名稱 類型 Description
hourlySchedule

HourlySchedule

此原則的每小時排程

schedulePolicyType string:

SimpleSchedulePolicy

這個屬性將做為決定型別多型鏈結中特定類型的歧視性。

scheduleRunDays

DayOfWeek[]

此排程必須執行一周中的天數清單。

scheduleRunFrequency

ScheduleRunType

此原則的排程作業頻率。

scheduleRunTimes

string[]

此排程必須執行的一天時間清單。

scheduleWeeklyFrequency

integer

此排程必須在每一周執行一次。

SimpleSchedulePolicyV2

支援每小時備份之 IaaS 的 V2 原則排程。

名稱 類型 Description
dailySchedule

DailySchedule

此原則的每日排程

hourlySchedule

HourlySchedule

此原則的每小時排程

schedulePolicyType string:

SimpleSchedulePolicyV2

這個屬性將做為決定型別多型鏈結中特定類型的歧視性。

scheduleRunFrequency

ScheduleRunType

此原則的排程作業頻率。

weeklySchedule

WeeklySchedule

此原則的每周排程

SnapshotBackupAdditionalDetails

WorkloadType SaPHanaSystem 的快照集備份相關欄位

名稱 類型 Description
instantRPDetails

string

instantRpRetentionRangeInDays

integer

userAssignedManagedIdentityDetails

UserAssignedManagedIdentityDetails

使用者指派的受控識別詳細數據

SubProtectionPolicy

包含排程和保留的子保護原則

名稱 類型 Description
policyType

PolicyType

備份原則類型

retentionPolicy RetentionPolicy:

保留原則,其中包含備份複製保留範圍的詳細數據。

schedulePolicy SchedulePolicy:

備份排程指定為備份原則的一部分。

snapshotBackupAdditionalDetails

SnapshotBackupAdditionalDetails

WorkloadType SaPHanaSystem 的快照集備份相關欄位

tieringPolicy

<string,  TieringPolicy>

階層處理原則,可自動將 RP 移至另一層。 機碼是目標層,定義於 RecoveryPointTierType 列舉中。 階層處理原則會指定要將 RP 移至目標層的準則。

TieringMode

階層處理模式可控制恢復點的自動階層處理。 支援的值為:

  1. TierRecommended:分層建議的所有恢復點分層
  2. TierAfter:將固定期間之後的所有恢復點分層,如以下的 duration + durationType 中所指定。
  3. DoNotTier:不要將任何恢復點分層
名稱 類型 Description
DoNotTier

string

Invalid

string

TierAfter

string

TierRecommended

string

TieringPolicy

目標層的分層原則。 如果未為指定的目標層指定原則,服務會保留該層的現有已設定階層處理原則

名稱 類型 Description
duration

integer

在階層處理之前,保留目前層中的備份天數/周/月/年數。 只有在 TieringMode 設定為 TierAfter 時才使用

durationType

RetentionDurationType

保留期間類型:天數/周/月/年 只有在 TieringMode 設定為 TierAfter 時才使用

tieringMode

TieringMode

階層處理模式可控制恢復點的自動階層處理。 支援的值為:

  1. TierRecommended:分層建議的所有恢復點分層
  2. TierAfter:將固定期間之後的所有恢復點分層,如以下的 duration + durationType 中所指定。
  3. DoNotTier:不要將任何恢復點分層

UserAssignedIdentityProperties

使用者指派的受控識別屬性

名稱 類型 Description
clientId

string

指派之身分識別的用戶端標識碼。

principalId

string

指派之身分識別的主體標識碼。

UserAssignedManagedIdentityDetails

使用者指派的受控識別詳細數據

名稱 類型 Description
identityArmId

string

指派之身分識別的 ARM 識別碼。

identityName

string

指派的身分識別名稱。

userAssignedIdentityProperties

UserAssignedIdentityProperties

使用者指派的受控識別屬性

VaultRetentionPolicy

AzureFileShare 的保存庫保留原則

名稱 類型 Description
snapshotRetentionInDays

integer

vaultRetention RetentionPolicy:

保留原則的基類。

WeeklyRetentionFormat

每周保留格式。

名稱 類型 Description
daysOfTheWeek

DayOfWeek[]

星期幾的清單。

weeksOfTheMonth

WeekOfMonth[]

月份的周清單。

WeeklyRetentionSchedule

每周保留排程。

名稱 類型 Description
daysOfTheWeek

DayOfWeek[]

每周保留原則的星期幾清單。

retentionDuration

RetentionDuration

保留原則的保留期間。

retentionTimes

string[]

保留原則的保留時間。

WeeklySchedule

名稱 類型 Description
scheduleRunDays

DayOfWeek[]

scheduleRunTimes

string[]

此排程必須執行的一天時間清單。

WeekOfMonth

月份的周清單。

名稱 類型 Description
First

string

Fourth

string

Invalid

string

Last

string

Second

string

Third

string

WorkloadType

備份管理的工作負載類型

名稱 類型 Description
AzureFileShare

string

AzureSqlDb

string

Client

string

Exchange

string

FileFolder

string

GenericDataSource

string

Invalid

string

SAPAseDatabase

string

SAPHanaDBInstance

string

SAPHanaDatabase

string

SQLDB

string

SQLDataBase

string

Sharepoint

string

SystemState

string

VM

string

VMwareVM

string

YearlyRetentionSchedule

每年保留排程。

名稱 類型 Description
monthsOfYear

MonthOfYear[]

年度保留原則的月份清單。

retentionDuration

RetentionDuration

保留原則的保留期間。

retentionScheduleDaily

DailyRetentionFormat

每年保留原則的每日保留格式。

retentionScheduleFormatType

RetentionScheduleFormat

每年保留原則的保留排程格式。

retentionScheduleWeekly

WeeklyRetentionFormat

每年保留原則的每周保留格式。

retentionTimes

string[]

保留原則的保留時間。