你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Backup Protection Intent - List
提供保管库中存在的所有意向的可分页列表。
GET https://management.azure.com/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectionIntents?api-version=2023-02-01
GET https://management.azure.com/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectionIntents?api-version=2023-02-01&$filter={$filter}&$skipToken={$skipToken}
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
resource
|
path | True |
string |
恢复服务保管库所在的资源组的名称。 |
subscription
|
path | True |
string |
订阅 ID。 |
vault
|
path | True |
string |
恢复服务保管库的名称。 |
api-version
|
query | True |
string |
客户端 API 版本。 |
$filter
|
query |
string |
OData 筛选器选项。 |
|
$skip
|
query |
string |
skipToken 筛选器。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
确定 |
安全性
azure_auth
Azure Active Directory OAuth2 流
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户。 |
示例
List protection intent with backupManagementType filter
Sample Request
Sample Response
{
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.RecoveryServices/vaults/myVault/backupFabrics/Azure/backupProtectionIntent/249D9B07-D2EF-4202-AA64-65F35418564E",
"name": "249D9B07-D2EF-4202-AA64-65F35418564E",
"type": "Microsoft.RecoveryServices/vaults/backupProtectionIntent",
"properties": {
"protectionIntentItemType": "AzureWorkloadContainerAutoProtectionIntent",
"backupManagementType": "AzureWorkload",
"policyId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.RecoveryServices/vaults/myVault/backupPolicies/myPolicy",
"itemId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.RecoveryServices/vaults/myVault/backupProtectionContainer/VMAppContainer;Compute;testVmName/backupProtectableItems/SQLInstance;MSSQLSERVER"
}
}
]
}
定义
名称 | 说明 |
---|---|
Azure |
Azure 恢复服务保管库特定的保护意向项。 |
Azure |
特定于 IaaS VM 的备份保护意向项。 |
Azure |
Azure 恢复服务保管库特定的保护意向项。 |
Azure |
Azure 工作负载特定的保护意向项。 |
Azure |
Azure 工作负载 SQL 自动保护意向项。 |
Backup |
备份项的备份管理类型。 |
Protection |
backup ProtectionIntent 的基类。 |
Protection |
ProtectionIntent 资源列表 |
Protection |
备份项的状态。 |
Workload |
要为其设置意向的项的工作负荷项类型 |
AzureRecoveryServiceVaultProtectionIntent
Azure 恢复服务保管库特定的保护意向项。
名称 | 类型 | 说明 |
---|---|---|
backupManagementType |
备份项的备份管理类型。 |
|
itemId |
string |
受保护项的 ID,如果是 Azure Vm,则为 ProtectedItemId |
policyId |
string |
用于备份此项的备份策略的 ID。 |
protectionIntentItemType |
string:
Recovery |
备份保护Intent 类型。 |
protectionState |
此备份项的备份状态。 |
|
sourceResourceId |
string |
要备份的资源的 ARM ID。 |
AzureResourceProtectionIntent
特定于 IaaS VM 的备份保护意向项。
名称 | 类型 | 说明 |
---|---|---|
backupManagementType |
备份项的备份管理类型。 |
|
friendlyName |
string |
此备份项表示的 VM 的友好名称。 |
itemId |
string |
受保护项的 ID,如果是 Azure Vm,则为 ProtectedItemId |
policyId |
string |
用于备份此项的备份策略的 ID。 |
protectionIntentItemType |
string:
Azure |
备份保护Intent 类型。 |
protectionState |
此备份项的备份状态。 |
|
sourceResourceId |
string |
要备份的资源的 ARM ID。 |
AzureWorkloadAutoProtectionIntent
Azure 恢复服务保管库特定的保护意向项。
名称 | 类型 | 说明 |
---|---|---|
backupManagementType |
备份项的备份管理类型。 |
|
itemId |
string |
受保护项的 ID,如果是 Azure Vm,则为 ProtectedItemId |
policyId |
string |
用于备份此项的备份策略的 ID。 |
protectionIntentItemType | string: |
备份保护Intent 类型。 |
protectionState |
此备份项的备份状态。 |
|
sourceResourceId |
string |
要备份的资源的 ARM ID。 |
AzureWorkloadContainerAutoProtectionIntent
Azure 工作负载特定的保护意向项。
名称 | 类型 | 说明 |
---|---|---|
backupManagementType |
备份项的备份管理类型。 |
|
itemId |
string |
受保护项的 ID,如果是 Azure Vm,则为 ProtectedItemId |
policyId |
string |
用于备份此项的备份策略的 ID。 |
protectionIntentItemType | string: |
备份保护Intent 类型。 |
protectionState |
此备份项的备份状态。 |
|
sourceResourceId |
string |
要备份的资源的 ARM ID。 |
AzureWorkloadSQLAutoProtectionIntent
Azure 工作负载 SQL 自动保护意向项。
名称 | 类型 | 说明 |
---|---|---|
backupManagementType |
备份项的备份管理类型。 |
|
itemId |
string |
受保护项的 ID,如果是 Azure Vm,则为 ProtectedItemId |
policyId |
string |
用于备份此项的备份策略的 ID。 |
protectionIntentItemType | string: |
备份保护Intent 类型。 |
protectionState |
此备份项的备份状态。 |
|
sourceResourceId |
string |
要备份的资源的 ARM ID。 |
workloadItemType |
要为其设置意向的项的工作负荷项类型 |
BackupManagementType
备份项的备份管理类型。
名称 | 类型 | 说明 |
---|---|---|
AzureBackupServer |
string |
|
AzureIaasVM |
string |
|
AzureSql |
string |
|
AzureStorage |
string |
|
AzureWorkload |
string |
|
DPM |
string |
|
DefaultBackup |
string |
|
Invalid |
string |
|
MAB |
string |
ProtectionIntentResource
backup ProtectionIntent 的基类。
名称 | 类型 | 说明 |
---|---|---|
eTag |
string |
可选 ETag。 |
id |
string |
资源 ID 表示资源的完整路径。 |
location |
string |
资源位置。 |
name |
string |
与资源关联的资源名称。 |
properties | ProtectionIntent: |
ProtectionIntentResource 属性 |
tags |
object |
资源标记。 |
type |
string |
资源类型表示命名空间/ResourceType/ResourceType/... 格式的完整路径 |
ProtectionIntentResourceList
ProtectionIntent 资源列表
名称 | 类型 | 说明 |
---|---|---|
nextLink |
string |
用于提取下一页资源的 URI。 调用 ListNext () 提取下一页资源。 |
value |
资源列表。 |
ProtectionStatus
备份项的状态。
名称 | 类型 | 说明 |
---|---|---|
Invalid |
string |
|
NotProtected |
string |
|
Protected |
string |
|
Protecting |
string |
|
ProtectionFailed |
string |
WorkloadItemType
要为其设置意向的项的工作负荷项类型
名称 | 类型 | 说明 |
---|---|---|
Invalid |
string |
|
SAPAseDatabase |
string |
|
SAPAseSystem |
string |
|
SAPHanaDBInstance |
string |
|
SAPHanaDatabase |
string |
|
SAPHanaSystem |
string |
|
SQLDataBase |
string |
|
SQLInstance |
string |