Resource Guards - Get Resources In Resource Group
返回属于 ResourceGroup 的 ResourceGuards 集合。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards?api-version=2025-07-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
resource
|
path | True |
string minLength: 1maxLength: 90 |
资源组的名称。 此名称不区分大小写。 |
subscription
|
path | True |
string (uuid) |
目标订阅的 ID。 该值必须是 UUID。 |
api-version
|
query | True |
string minLength: 1 |
用于此操作的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
好的 |
|
Other Status Codes |
描述作失败的原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户。 |
示例
Get ResourceGuards in ResourceGroup
示例请求
GET https://management.azure.com/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/resourceGuards?api-version=2025-07-01
示例响应
{
"value": [
{
"location": "eastus",
"tags": {
"TestKey": "TestValue"
},
"id": "/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/resourceGuards/VaultGuardTestNew",
"name": "VaultGuardTestNew",
"type": "Microsoft.DataProtection/resourceGuards",
"properties": {
"provisioningState": "Succeeded",
"allowAutoApprovals": true,
"resourceGuardOperations": [
{
"vaultCriticalOperation": "Microsoft.RecoveryServices/vaults/backupResourceGuardProxies/delete",
"requestResourceType": "Microsoft.DataProtection/resourceGuards/deleteResourceGuardProxyRequests"
},
{
"vaultCriticalOperation": "Microsoft.RecoveryServices/vaults/backupconfig/write",
"requestResourceType": "Microsoft.DataProtection/resourceGuards/disableSoftDeleteRequests"
}
],
"description": "Please take JIT access before performing any of the critical operation",
"vaultCriticalOperationExclusionList": []
}
}
]
}
定义
名称 | 说明 |
---|---|
Cloud |
CloudError 错误 |
created |
创建资源的标识的类型。 |
Error |
资源管理错误响应。 |
Error |
资源管理错误附加信息。 |
Provisioning |
BackupVault 资源的预配状态 |
Resource |
|
Resource |
此类包含有关关键作的所有详细信息。 |
Resource |
|
Resource |
ResourceGuard 资源列表 |
system |
与创建和上次修改资源相关的元数据。 |
CloudError
CloudError 错误
名称 | 类型 | 说明 |
---|---|---|
error |
资源管理错误响应。 |
createdByType
创建资源的标识的类型。
值 | 说明 |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
Error
资源管理错误响应。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
Error[] |
错误详细信息。 |
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ProvisioningState
BackupVault 资源的预配状态
值 | 说明 |
---|---|
Failed | |
Provisioning | |
Succeeded | |
Unknown | |
Updating |
ResourceGuard
名称 | 类型 | 说明 |
---|---|---|
allowAutoApprovals |
boolean |
此标志指示是否允许自动批准。 |
description |
string |
有关执行所有关键作的预请求步骤的说明。 |
provisioningState |
BackupVault 资源的预配状态 |
|
resourceGuardOperations |
{readonly}由 ResourceGuard 资源保护的作详细信息列表 |
|
vaultCriticalOperationExclusionList |
string[] |
不受此 resourceGuard 保护的关键作列表 |
ResourceGuardOperation
此类包含有关关键作的所有详细信息。
名称 | 类型 | 说明 |
---|---|---|
requestResourceType |
string |
资源请求的类型。 |
vaultCriticalOperation |
string |
关键作的名称。 |
ResourceGuardResource
名称 | 类型 | 说明 |
---|---|---|
eTag |
string |
可选 ETag。 |
id |
string |
资源 ID 表示资源的完整路径。 |
location |
string |
资源位置。 |
name |
string |
与资源关联的资源名称。 |
properties |
ResourceGuardResource 属性 |
|
systemData |
与创建和上次修改资源相关的元数据。 |
|
tags |
object |
资源标记。 |
type |
string |
资源类型表示命名空间/ResourceType/ResourceType/... |
ResourceGuardResourceList
ResourceGuard 资源列表
名称 | 类型 | 说明 |
---|---|---|
nextLink |
string |
用于提取下一页资源的 URI。 调用 ListNext() 提取下一页的资源。 |
value |
资源列表。 |
systemData
与创建和上次修改资源相关的元数据。
名称 | 类型 | 说明 |
---|---|---|
createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
createdBy |
string |
创建资源的标识。 |
createdByType |
创建资源的标识的类型。 |
|
lastModifiedAt |
string (date-time) |
上次修改的资源时间戳(UTC) |
lastModifiedBy |
string |
上次修改资源的标识。 |
lastModifiedByType |
上次修改资源的标识的类型。 |