Backup Resource Storage Configs - patch
Updates vault storage model type.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig?api-version=2023-01-15
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 Body
Name | Type | Description |
---|---|---|
eTag |
string |
Optional ETag. |
location |
string |
Resource location. |
properties |
BackupResourceConfigResource properties |
|
tags |
object |
Resource tags. |
Responses
Name | Type | Description |
---|---|---|
204 No Content |
NoContent |
|
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 Storage Configuration
Sample request
PATCH https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PythonSDKBackupTestRg/providers/Microsoft.RecoveryServices/vaults/PySDKBackupTestRsVault/backupstorageconfig/vaultstorageconfig?api-version=2023-01-15
{
"properties": {
"storageType": "LocallyRedundant",
"storageTypeState": "Unlocked"
}
}
Sample response
Definitions
Name | Description |
---|---|
Backup |
The resource storage details. |
Backup |
The resource storage details. |
Error |
The error object. |
Error |
The resource management error additional info. |
New |
The resource management error response. |
Storage |
Storage type |
Storage |
Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked. |
BackupResourceConfig
The resource storage details.
Name | Type | Description |
---|---|---|
crossRegionRestoreFlag |
boolean |
Opt in details of Cross Region Restore feature. |
storageModelType |
Storage type |
|
storageType |
Storage type. |
|
storageTypeState |
Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked. |
BackupResourceConfigResource
The resource storage 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 |
BackupResourceConfigResource properties |
|
tags |
object |
Resource tags. |
type |
string |
Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... |
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. |
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 |