Share via


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=2023-02-01

URI パラメーター

名前 / 必須 説明
policyName
path True

string

作成するバックアップ ポリシー。

resourceGroupName
path True

string

Recovery Services コンテナーが存在するリソース グループの名前。

subscriptionId
path True

string

サブスクリプション ID。

vaultName
path True

string

Recovery Services コンテナーの名前。

api-version
query True

string

クライアント API のバージョン。

要求本文

名前 説明
eTag

string

オプションの ETag。

location

string

リソースの場所。

properties ProtectionPolicy:

ProtectionPolicyResource のプロパティ

tags

object

リソース タグ。

応答

名前 説明
200 OK

ProtectionPolicyResource

OK

202 Accepted

同意

Other Status Codes

CloudError

操作に失敗した理由を説明するエラー応答。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名前 説明
user_impersonation ユーザー アカウントを偽装します。

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 Daily Azure Storage Protection Policy

Sample Request

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/swaggertestvault/backupPolicies/dailyPolicy2?api-version=2023-02-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"
        }
      }
    }
  }
}

Sample Response

{
  "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

Sample Request

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

{
  "properties": {
    "backupManagementType": "AzureIaasVM",
    "timeZone": "India Standard Time",
    "instantRpRetentionRangeInDays": 30,
    "policyType": "V2",
    "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"
        ]
      }
    }
  }
}

Sample Response

{
  "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",
    "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

Sample Request

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

{
  "properties": {
    "backupManagementType": "AzureIaasVM",
    "timeZone": "India Standard Time",
    "instantRpRetentionRangeInDays": 30,
    "policyType": "V2",
    "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"
        ]
      }
    }
  }
}

Sample Response

{
  "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",
    "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

Sample Request

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/testPolicy1?api-version=2023-02-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"
        }
      }
    }
  }
}

Sample Response

{
  "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

Sample Request

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/testPolicy1?api-version=2023-02-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"
          }
        }
      }
    ]
  }
}

Sample Response

{
  "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

Sample Request

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/swaggertestvault/backupPolicies/newPolicy2?api-version=2023-02-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"
        }
      }
    }
  }
}

Sample Response

{
  "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

Sample Request

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/testPolicy1?api-version=2023-02-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"
        }
      }
    }
  }
}

Sample Response

{
  "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

定義

名前 説明
AzureFileShareProtectionPolicy

AzureStorage バックアップ ポリシー。

AzureIaaSVMProtectionPolicy

IaaS VM ワークロード固有のバックアップ ポリシー。

AzureSqlProtectionPolicy

ワークロード固有のバックアップ ポリシーをAzure SQLします。

AzureVmWorkloadProtectionPolicy

Azure VM (Mercury) ワークロード固有のバックアップ ポリシー。

CloudError

Container Instance サービスからのエラー応答。

CloudErrorBody

Container Instance サービスからのエラー応答。

DailyRetentionFormat

毎日の保持形式。

DailyRetentionSchedule

毎日の保持スケジュール。

DailySchedule
Day

曜日。

DayOfWeek
ErrorAdditionalInfo

リソース管理エラーの追加情報。

GenericProtectionPolicy

Azure VM (Mercury) ワークロード固有のバックアップ ポリシー。

HourlySchedule
IAASVMPolicyType
InstantRPAdditionalDetails
LogSchedulePolicy

ログ ポリシーのスケジュール。

LongTermRetentionPolicy

長期保持ポリシー。

LongTermSchedulePolicy

長期的なポリシー スケジュール。

MabProtectionPolicy

Mab コンテナー固有のバックアップ ポリシー。

MonthlyRetentionSchedule

毎月の保持スケジュール。

MonthOfYear

年単位のアイテム保持ポリシーの月の一覧。

PolicyType

バックアップ ポリシーの種類

ProtectionPolicyResource

バックアップ ポリシーの基本クラス。 ワークロード固有のバックアップ ポリシーは、このクラスから派生します。

RetentionDuration

保持期間。

RetentionDurationType

保持期間の種類: 日/週/月/年 TieringMode が TierAfter に設定されている場合にのみ使用されます

RetentionScheduleFormat

月次アイテム保持ポリシーの保持スケジュール形式の種類。

ScheduleRunType

このポリシーのスケジュール操作の頻度。

Settings

バックアップ管理の共通設定フィールド

SimpleRetentionPolicy

単純なポリシー保持。

SimpleSchedulePolicy

単純なポリシー スケジュール。

SimpleSchedulePolicyV2

時間単位のバックアップをサポートする IaaS の V2 ポリシー スケジュール。

SubProtectionPolicy

スケジュールと保持期間を含むサブ保護ポリシー

TieringMode

階層化モード: 復旧ポイントの自動階層化を制御します。 サポートされる値は次のとおりです。

  1. TierRecommended: 階層化することをお勧めするすべての復旧ポイントを階層化する
  2. TierAfter: 以下の duration + durationType で指定されているように、一定期間後にすべての復旧ポイントを階層化します。
  3. DoNotTier: 復旧ポイントを階層化しない
TieringPolicy

ターゲット層の階層化ポリシー。 特定のターゲット 層に対してポリシーが指定されていない場合、サービスはその階層に対して構成されている既存の階層化ポリシーを保持します

WeeklyRetentionFormat

週単位の保持形式。

WeeklyRetentionSchedule

毎週の保持スケジュール。

WeeklySchedule
WeekOfMonth

月の週の一覧。

WorkloadType

バックアップ管理のワークロードの種類

YearlyRetentionSchedule

毎年の保持スケジュール。

AzureFileShareProtectionPolicy

AzureStorage バックアップ ポリシー。

名前 説明
backupManagementType string:

AzureStorage

このプロパティは、型のポリモーフィック チェーン内の特定の型を決定するための識別子として使用されます。

protectedItemsCount

integer

このポリシーに関連付けられているアイテムの数。

resourceGuardOperationRequests

string[]

ResourceGuard 操作要求

retentionPolicy RetentionPolicy:

バックアップ コピーの保持範囲の詳細を含むアイテム保持ポリシー。

schedulePolicy SchedulePolicy:

バックアップ ポリシーの一部として指定されたバックアップ スケジュール。

timeZone

string

TimeZone 省略可能な入力を文字列として指定します。 たとえば、TimeZone = "Pacific Standard Time" です。

workLoadType

WorkloadType

バックアップ管理のワークロードの種類

AzureIaaSVMProtectionPolicy

IaaS VM ワークロード固有のバックアップ ポリシー。

名前 説明
backupManagementType string:

AzureIaasVM

このプロパティは、型のポリモーフィック チェーン内の特定の型を決定するための識別子として使用されます。

instantRPDetails

InstantRPAdditionalDetails

instantRpRetentionRangeInDays

integer

インスタント RP アイテム保持ポリシーの範囲 (日数)

policyType

IAASVMPolicyType

protectedItemsCount

integer

このポリシーに関連付けられているアイテムの数。

resourceGuardOperationRequests

string[]

ResourceGuard 操作要求

retentionPolicy RetentionPolicy:

バックアップ コピーの保持範囲の詳細を含むアイテム保持ポリシー。

schedulePolicy SchedulePolicy:

バックアップ ポリシーの一部として指定されたバックアップ スケジュール。

tieringPolicy

<string,  TieringPolicy>

RP を別の層に自動的に移動する階層化ポリシー Key は、RecoveryPointTierType 列挙型で定義されているターゲット層です。 階層化ポリシーでは、RP をターゲット層に移動する条件を指定します。

timeZone

string

TimeZone 省略可能な入力を文字列として指定します。 たとえば、TimeZone = "Pacific Standard Time" です。

AzureSqlProtectionPolicy

ワークロード固有のバックアップ ポリシーをAzure SQLします。

名前 説明
backupManagementType string:

AzureSql

このプロパティは、型のポリモーフィック チェーン内の特定の型を決定するための識別子として使用されます。

protectedItemsCount

integer

このポリシーに関連付けられているアイテムの数。

resourceGuardOperationRequests

string[]

ResourceGuard 操作要求

retentionPolicy RetentionPolicy:

アイテム保持ポリシーの詳細。

AzureVmWorkloadProtectionPolicy

Azure VM (Mercury) ワークロード固有のバックアップ ポリシー。

名前 説明
backupManagementType string:

AzureWorkload

このプロパティは、型のポリモーフィック チェーン内の特定の型を決定するための識別子として使用されます。

makePolicyConsistent

boolean

ポリシーの不整合を修正する

protectedItemsCount

integer

このポリシーに関連付けられているアイテムの数。

resourceGuardOperationRequests

string[]

ResourceGuard 操作要求

settings

Settings

バックアップ管理の一般的な設定

subProtectionPolicy

SubProtectionPolicy[]

スケジュールと保持期間を含むサブ保護ポリシーの一覧

workLoadType

WorkloadType

バックアップ管理のワークロードの種類

CloudError

Container Instance サービスからのエラー応答。

名前 説明
error

CloudErrorBody

error オブジェクト。

CloudErrorBody

Container Instance サービスからのエラー応答。

名前 説明
additionalInfo

ErrorAdditionalInfo[]

エラーの追加情報。

code

string

エラーの識別子。 コードは不変であり、プログラムによって使用されることを意図しています。

details

CloudErrorBody[]

エラーに関する追加の詳細の一覧。

message

string

ユーザー インターフェイスでの表示に適したエラーを説明するメッセージ。

target

string

特定のエラーのターゲット。 たとえば、エラーが発生したプロパティの名前です。

DailyRetentionFormat

毎日の保持形式。

名前 説明
daysOfTheMonth

Day[]

月の日の一覧。

DailyRetentionSchedule

毎日の保持スケジュール。

名前 説明
retentionDuration

RetentionDuration

アイテム保持ポリシーの保持期間。

retentionTimes

string[]

アイテム保持ポリシーの保持時間。

DailySchedule

名前 説明
scheduleRunTimes

string[]

このスケジュールを実行する必要がある時刻の一覧。

Day

曜日。

名前 説明
date

integer

月の日付

isLast

boolean

日付が月の最後の日付かどうか

DayOfWeek

名前 説明
Friday

string

Monday

string

Saturday

string

Sunday

string

Thursday

string

Tuesday

string

Wednesday

string

ErrorAdditionalInfo

リソース管理エラーの追加情報。

名前 説明
info

object

追加情報。

type

string

追加情報の種類。

GenericProtectionPolicy

Azure VM (Mercury) ワークロード固有のバックアップ ポリシー。

名前 説明
backupManagementType string:

GenericProtectionPolicy

このプロパティは、型のポリモーフィック チェーン内の特定の型を決定するための識別子として使用されます。

fabricName

string

このポリシーのファブリックの名前。

protectedItemsCount

integer

このポリシーに関連付けられているアイテムの数。

resourceGuardOperationRequests

string[]

ResourceGuard 操作要求

subProtectionPolicy

SubProtectionPolicy[]

スケジュールと保持期間を含むサブ保護ポリシーの一覧

timeZone

string

TimeZone 省略可能な入力を文字列として指定します。 たとえば、TimeZone = "Pacific Standard Time" です。

HourlySchedule

名前 説明
interval

integer

バックアップをトリガーする必要がある間隔。 時間単位の場合、値は 4/6/8/12 にすることができます

scheduleWindowDuration

integer

バックアップ ウィンドウの期間を指定するには

scheduleWindowStartTime

string

バックアップ ウィンドウの開始時刻を指定するには

IAASVMPolicyType

名前 説明
Invalid

string

V1

string

V2

string

InstantRPAdditionalDetails

名前 説明
azureBackupRGNamePrefix

string

azureBackupRGNameSuffix

string

LogSchedulePolicy

ログ ポリシーのスケジュール。

名前 説明
scheduleFrequencyInMins

integer

このポリシーのログ スケジュール操作の頻度 (分単位)。

schedulePolicyType string:

LogSchedulePolicy

このプロパティは、型のポリモーフィック チェーン内の特定の型を決定するための識別子として使用されます。

LongTermRetentionPolicy

長期保持ポリシー。

名前 説明
dailySchedule

DailyRetentionSchedule

保護ポリシーの毎日の保持スケジュール。

monthlySchedule

MonthlyRetentionSchedule

保護ポリシーの月単位の保持スケジュール。

retentionPolicyType string:

LongTermRetentionPolicy

このプロパティは、型のポリモーフィック チェーン内の特定の型を決定するための識別子として使用されます。

weeklySchedule

WeeklyRetentionSchedule

保護ポリシーの毎週の保持スケジュール。

yearlySchedule

YearlyRetentionSchedule

保護ポリシーの毎年の保持スケジュール。

LongTermSchedulePolicy

長期的なポリシー スケジュール。

名前 説明
schedulePolicyType string:

LongTermSchedulePolicy

このプロパティは、型のポリモーフィック チェーン内の特定の型を決定するための識別子として使用されます。

MabProtectionPolicy

Mab コンテナー固有のバックアップ ポリシー。

名前 説明
backupManagementType string:

MAB

このプロパティは、型のポリモーフィック チェーン内の特定の型を決定するための識別子として使用されます。

protectedItemsCount

integer

このポリシーに関連付けられているアイテムの数。

resourceGuardOperationRequests

string[]

ResourceGuard 操作要求

retentionPolicy RetentionPolicy:

アイテム保持ポリシーの詳細。

schedulePolicy SchedulePolicy:

バックアップ ポリシーのバックアップ スケジュール。

MonthlyRetentionSchedule

毎月の保持スケジュール。

名前 説明
retentionDuration

RetentionDuration

アイテム保持ポリシーの保持期間。

retentionScheduleDaily

DailyRetentionFormat

毎月のアイテム保持ポリシーの毎日の保持形式。

retentionScheduleFormatType

RetentionScheduleFormat

月次アイテム保持ポリシーの保持スケジュール形式の種類。

retentionScheduleWeekly

WeeklyRetentionFormat

毎月のアイテム保持ポリシーの週単位の保持形式。

retentionTimes

string[]

アイテム保持ポリシーの保持時間。

MonthOfYear

年単位のアイテム保持ポリシーの月の一覧。

名前 説明
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

バックアップ ポリシーの種類

名前 説明
CopyOnlyFull

string

Differential

string

Full

string

Incremental

string

Invalid

string

Log

string

SnapshotCopyOnlyFull

string

SnapshotFull

string

ProtectionPolicyResource

バックアップ ポリシーの基本クラス。 ワークロード固有のバックアップ ポリシーは、このクラスから派生します。

名前 説明
eTag

string

オプションの ETag。

id

string

リソース ID は、リソースへの完全なパスを表します。

location

string

リソースの場所。

name

string

リソースに関連付けられているリソース名。

properties ProtectionPolicy:

ProtectionPolicyResource のプロパティ

tags

object

リソース タグ。

type

string

リソースの種類は、Namespace/ResourceType/ResourceType/..フォームの完全なパスを表します。

RetentionDuration

保持期間。

名前 説明
count

integer

期間の種類の数。 保持期間は、期間の種類 Count times をカウントすることによって取得されます。 たとえば、Count = 3、DurationType = Weeks の場合、保持期間は 3 週間になります。

durationType

RetentionDurationType

アイテム保持ポリシーの保持期間の種類。

RetentionDurationType

保持期間の種類: 日/週/月/年 TieringMode が TierAfter に設定されている場合にのみ使用されます

名前 説明
Days

string

Invalid

string

Months

string

Weeks

string

Years

string

RetentionScheduleFormat

月次アイテム保持ポリシーの保持スケジュール形式の種類。

名前 説明
Daily

string

Invalid

string

Weekly

string

ScheduleRunType

このポリシーのスケジュール操作の頻度。

名前 説明
Daily

string

Hourly

string

Invalid

string

Weekly

string

Settings

バックアップ管理の共通設定フィールド

名前 説明
isCompression

boolean

ワークロード圧縮フラグ。 これは、クライアントがこのフラグを考慮するようにアップグレードすると、'isSqlCompression' が非推奨になるように追加されました。

issqlcompression

boolean

SQL 圧縮フラグ

timeZone

string

TimeZone 省略可能な入力を文字列として指定します。 たとえば、TimeZone = "Pacific Standard Time" です。

SimpleRetentionPolicy

単純なポリシー保持。

名前 説明
retentionDuration

RetentionDuration

保護ポリシーの保持期間。

retentionPolicyType string:

SimpleRetentionPolicy

このプロパティは、型のポリモーフィック チェーン内の特定の型を決定するための識別子として使用されます。

SimpleSchedulePolicy

単純なポリシー スケジュール。

名前 説明
hourlySchedule

HourlySchedule

本ポリシーの時間単位のスケジュール

schedulePolicyType string:

SimpleSchedulePolicy

このプロパティは、型のポリモーフィック チェーン内の特定の型を決定するための識別子として使用されます。

scheduleRunDays

DayOfWeek[]

このスケジュールを実行する必要がある曜日の一覧。

scheduleRunFrequency

ScheduleRunType

このポリシーのスケジュール操作の頻度。

scheduleRunTimes

string[]

このスケジュールを実行する必要がある時刻の一覧。

scheduleWeeklyFrequency

integer

週ごとに、このスケジュールを実行する必要があります。

SimpleSchedulePolicyV2

時間単位のバックアップをサポートする IaaS の V2 ポリシー スケジュール。

名前 説明
dailySchedule

DailySchedule

このポリシーの毎日のスケジュール

hourlySchedule

HourlySchedule

このポリシーの時間単位のスケジュール

schedulePolicyType string:

SimpleSchedulePolicyV2

このプロパティは、型のポリモーフィック チェーン内の特定の型を決定するための識別子として使用されます。

scheduleRunFrequency

ScheduleRunType

このポリシーのスケジュール操作の頻度。

weeklySchedule

WeeklySchedule

このポリシーの週単位のスケジュール

SubProtectionPolicy

スケジュールと保持期間を含むサブ保護ポリシー

名前 説明
policyType

PolicyType

バックアップ ポリシーの種類

retentionPolicy RetentionPolicy:

バックアップ コピーの保持範囲の詳細を含むアイテム保持ポリシー。

schedulePolicy SchedulePolicy:

バックアップ ポリシーの一部として指定されたバックアップ スケジュール。

tieringPolicy

<string,  TieringPolicy>

RP を別のレベルに自動的に移動する階層化ポリシー。 キーは、RecoveryPointTierType 列挙型で定義されているターゲット層です。 階層化ポリシーでは、RP をターゲット層に移動する条件を指定します。

TieringMode

階層化モード: 復旧ポイントの自動階層化を制御します。 サポートされる値は次のとおりです。

  1. TierRecommended: 階層化することをお勧めするすべての復旧ポイントを階層化する
  2. TierAfter: 以下の duration + durationType で指定されているように、一定期間後にすべての復旧ポイントを階層化します。
  3. DoNotTier: 復旧ポイントを階層化しない
名前 説明
DoNotTier

string

Invalid

string

TierAfter

string

TierRecommended

string

TieringPolicy

ターゲット層の階層化ポリシー。 特定のターゲット 層に対してポリシーが指定されていない場合、サービスはその階層に対して構成されている既存の階層化ポリシーを保持します

名前 説明
duration

integer

階層化する前に現在のレベルでバックアップを保持する日数/週/月/年数。 TieringMode が TierAfter に設定されている場合にのみ使用されます

durationType

RetentionDurationType

保持期間の種類: 日/週/月/年 TieringMode が TierAfter に設定されている場合にのみ使用されます

tieringMode

TieringMode

階層化モード: 復旧ポイントの自動階層化を制御します。 サポートされる値は次のとおりです。

  1. TierRecommended: 階層化することをお勧めするすべての復旧ポイントを階層化する
  2. TierAfter: 以下の duration + durationType で指定されているように、一定期間後にすべての復旧ポイントを階層化します。
  3. DoNotTier: 復旧ポイントを階層化しない

WeeklyRetentionFormat

週単位の保持形式。

名前 説明
daysOfTheWeek

DayOfWeek[]

曜日の一覧。

weeksOfTheMonth

WeekOfMonth[]

月の週の一覧。

WeeklyRetentionSchedule

毎週の保持スケジュール。

名前 説明
daysOfTheWeek

DayOfWeek[]

毎週のアイテム保持ポリシーの曜日の一覧。

retentionDuration

RetentionDuration

アイテム保持ポリシーの保持期間。

retentionTimes

string[]

アイテム保持ポリシーの保持時間。

WeeklySchedule

名前 説明
scheduleRunDays

DayOfWeek[]

scheduleRunTimes

string[]

このスケジュールを実行する必要がある時刻の一覧。

WeekOfMonth

月の週の一覧。

名前 説明
First

string

Fourth

string

Invalid

string

Last

string

Second

string

Third

string

WorkloadType

バックアップ管理のワークロードの種類

名前 説明
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

毎年の保持スケジュール。

名前 説明
monthsOfYear

MonthOfYear[]

年単位のアイテム保持ポリシーの月の一覧。

retentionDuration

RetentionDuration

アイテム保持ポリシーの保持期間。

retentionScheduleDaily

DailyRetentionFormat

毎年のアイテム保持ポリシーの毎日の保持形式。

retentionScheduleFormatType

RetentionScheduleFormat

毎年のアイテム保持ポリシーの保持スケジュールの形式。

retentionScheduleWeekly

WeeklyRetentionFormat

毎年のアイテム保持ポリシーの週単位の保持形式。

retentionTimes

string[]

アイテム保持ポリシーの保持時間。