Backup Resource Vault Configs - Put
Updates vault security config.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig?api-version=2024-04-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
resource
|
path | True |
string |
The name of the resource group where the recovery services vault is present. |
subscription
|
path | True |
string |
The subscription Id. |
vault
|
path | True |
string |
The name of the recovery services vault. |
api-version
|
query | True |
string |
Client Api Version. |
Request Header
Name | Required | Type | Description |
---|---|---|---|
x-ms-authorization-auxiliary |
string |
Request Body
Name | Type | Description |
---|---|---|
eTag |
string |
Optional ETag. |
location |
string |
Resource location. |
properties |
BackupResourceVaultConfigResource properties |
|
tags |
object |
Resource tags. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account. |
Examples
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=2024-04-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"
}
}
Definitions
Name | Description |
---|---|
Backup |
Backup resource vault config details. |
Backup |
Backup resource vault config details. |
Enhanced |
Enabled or Disabled. |
Error |
The error object. |
Error |
The resource management error additional info. |
New |
The resource management error response. |
Soft |
Soft Delete feature state |
Storage |
Storage type |
Storage |
Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked. |
BackupResourceVaultConfig
Backup resource vault config details.
Name | Type | Description |
---|---|---|
enhancedSecurityState |
Enabled or Disabled. |
|
isSoftDeleteFeatureStateEditable |
boolean |
This flag is no longer in use. Please use 'softDeleteFeatureState' to set the soft delete state for the vault |
resourceGuardOperationRequests |
string[] |
ResourceGuard Operation Requests |
softDeleteFeatureState |
Soft Delete feature state |
|
softDeleteRetentionPeriodInDays |
integer |
Soft delete retention period in days |
storageModelType |
Storage type. |
|
storageType |
Storage type. |
|
storageTypeState |
Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked. |
BackupResourceVaultConfigResource
Backup resource vault config details.
Name | Type | Description |
---|---|---|
eTag |
string |
Optional ETag. |
id |
string |
Resource Id represents the complete path to the resource. |
location |
string |
Resource location. |
name |
string |
Resource name associated with the resource. |
properties |
BackupResourceVaultConfigResource properties |
|
tags |
object |
Resource tags. |
type |
string |
Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... |
EnhancedSecurityState
Enabled or Disabled.
Name | Type | Description |
---|---|---|
Disabled |
string |
|
Enabled |
string |
|
Invalid |
string |
Error
The error object.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
NewErrorResponse
The resource management error response.
Name | Type | Description |
---|---|---|
error |
The error object. |
SoftDeleteFeatureState
Soft Delete feature state
Name | Type | Description |
---|---|---|
AlwaysON |
string |
|
Disabled |
string |
|
Enabled |
string |
|
Invalid |
string |
StorageType
Storage type
Name | Type | Description |
---|---|---|
GeoRedundant |
string |
|
Invalid |
string |
|
LocallyRedundant |
string |
|
ReadAccessGeoZoneRedundant |
string |
|
ZoneRedundant |
string |
StorageTypeState
Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked.
Name | Type | Description |
---|---|---|
Invalid |
string |
|
Locked |
string |
|
Unlocked |
string |