你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Backup Resource Vault Configs - Put

汇报保管库安全配置。

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig?api-version=2023-02-01

URI 参数

名称 必需 类型 说明
resourceGroupName
path True

string

恢复服务保管库所在的资源组的名称。

subscriptionId
path True

string

订阅 ID。

vaultName
path True

string

恢复服务保管库的名称。

api-version
query True

string

客户端 API 版本。

请求正文

名称 类型 说明
eTag

string

可选 ETag。

location

string

资源位置。

properties

BackupResourceVaultConfig

BackupResourceVaultConfigResource 属性

tags

object

资源标记。

响应

名称 类型 说明
200 OK

BackupResourceVaultConfigResource

确定

Other Status Codes

NewErrorResponse

描述操作失败原因的错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 流

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

Scopes

名称 说明
user_impersonation 模拟用户帐户。

示例

Update Vault Security Config

Sample Request

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/SwaggerTest/backupconfig/vaultconfig?api-version=2023-02-01

{
  "properties": {
    "enhancedSecurityState": "Enabled",
    "softDeleteFeatureState": "Enabled"
  }
}

Sample Response

{
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/SwaggerTest/backupconfig/vaultconfig",
  "name": "vaultconfig",
  "type": "Microsoft.RecoveryServices/vaults/backupconfig",
  "properties": {
    "enhancedSecurityState": "Enabled",
    "softDeleteFeatureState": "Enabled"
  }
}

定义

名称 说明
BackupResourceVaultConfig

备份资源保管库配置详细信息。

BackupResourceVaultConfigResource

备份资源保管库配置详细信息。

EnhancedSecurityState

已启用或已禁用。

Error

错误对象。

ErrorAdditionalInfo

资源管理错误附加信息。

NewErrorResponse

资源管理错误响应。

SoftDeleteFeatureState

软删除功能状态

StorageType

存储类型

StorageTypeState

已锁定或已解锁。 针对资源注册计算机后,storageTypeState 始终处于锁定状态。

BackupResourceVaultConfig

备份资源保管库配置详细信息。

名称 类型 说明
enhancedSecurityState

EnhancedSecurityState

已启用或已禁用。

isSoftDeleteFeatureStateEditable

boolean

此标志不再使用。 请使用“softDeleteFeatureState”设置保管库的软删除状态

resourceGuardOperationRequests

string[]

ResourceGuard 操作请求

softDeleteFeatureState

SoftDeleteFeatureState

软删除功能状态

softDeleteRetentionPeriodInDays

integer

软删除保留期(天)

storageModelType

StorageType

存储类型。

storageType

StorageType

存储类型。

storageTypeState

StorageTypeState

已锁定或已解锁。 针对资源注册计算机后,storageTypeState 始终处于锁定状态。

BackupResourceVaultConfigResource

备份资源保管库配置详细信息。

名称 类型 说明
eTag

string

可选 ETag。

id

string

资源 ID 表示资源的完整路径。

location

string

资源位置。

name

string

与资源关联的资源名称。

properties

BackupResourceVaultConfig

BackupResourceVaultConfigResource 属性

tags

object

资源标记。

type

string

资源类型表示命名空间/ResourceType/ResourceType/... 格式的完整路径

EnhancedSecurityState

已启用或已禁用。

名称 类型 说明
Disabled

string

Enabled

string

Invalid

string

Error

错误对象。

名称 类型 说明
additionalInfo

ErrorAdditionalInfo[]

错误附加信息。

code

string

错误代码。

details

NewErrorResponse[]

错误详细信息。

message

string

错误消息。

target

string

错误目标。

ErrorAdditionalInfo

资源管理错误附加信息。

名称 类型 说明
info

object

其他信息。

type

string

其他信息类型。

NewErrorResponse

资源管理错误响应。

名称 类型 说明
error

Error

错误对象。

SoftDeleteFeatureState

软删除功能状态

名称 类型 说明
AlwaysON

string

Disabled

string

Enabled

string

Invalid

string

StorageType

存储类型

名称 类型 说明
GeoRedundant

string

Invalid

string

LocallyRedundant

string

ReadAccessGeoZoneRedundant

string

ZoneRedundant

string

StorageTypeState

已锁定或已解锁。 针对资源注册计算机后,storageTypeState 始终处于锁定状态。

名称 类型 说明
Invalid

string

Locked

string

Unlocked

string