Backup Resource Storage Configs - Update
更新保存庫記憶體模型類型。
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig?api-version=2023-01-15
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
resource
|
path | True |
string |
復原服務保存庫所在的資源群組名稱。 |
subscription
|
path | True |
string |
訂用帳戶標識碼。 |
vault
|
path | True |
string |
復原服務保存庫的名稱。 |
api-version
|
query | True |
string |
用戶端 API 版本。 |
要求本文
名稱 | 類型 | Description |
---|---|---|
eTag |
string |
選擇性 ETag。 |
location |
string |
資源位置。 |
properties |
BackupResourceConfigResource 屬性 |
|
tags |
object |
資源標籤。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
還行 |
|
Other Status Codes |
描述作業失敗原因的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶。 |
範例
Update Vault Storage Configuration
範例要求
PUT 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"
}
}
範例回覆
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PythonSDKBackupTestRg/providers/Microsoft.RecoveryServices/vaults/PySDKBackupTestRsVault/backupstorageconfig/vaultstorageconfig",
"name": "vaultstorageconfig",
"type": "Microsoft.RecoveryServices/vaults/backupstorageconfig",
"properties": {
"storageModelType": "LocallyRedundant",
"storageType": "LocallyRedundant",
"storageTypeState": "Unlocked"
}
}
定義
名稱 | Description |
---|---|
Backup |
資源記憶體詳細數據。 |
Backup |
資源記憶體詳細數據。 |
Error |
error 物件。 |
Error |
資源管理錯誤其他資訊。 |
New |
資源管理錯誤回應。 |
Storage |
記憶體類型 |
Storage |
鎖定或解除鎖定。 針對資源註冊計算機之後,storageTypeState 一律會鎖定。 |
BackupResourceConfig
資源記憶體詳細數據。
名稱 | 類型 | Description |
---|---|---|
crossRegionRestoreFlag |
boolean |
選擇跨區域還原功能的詳細數據。 |
storageModelType |
記憶體類型 |
|
storageType |
記憶體類型。 |
|
storageTypeState |
鎖定或解除鎖定。 針對資源註冊計算機之後,storageTypeState 一律會鎖定。 |
BackupResourceConfigResource
資源記憶體詳細數據。
名稱 | 類型 | Description |
---|---|---|
eTag |
string |
選擇性 ETag。 |
id |
string |
資源標識子代表資源的完整路徑。 |
location |
string |
資源位置。 |
name |
string |
與資源相關聯的資源名稱。 |
properties |
BackupResourceConfigResource 屬性 |
|
tags |
object |
資源標籤。 |
type |
string |
資源類型代表命名空間/ResourceType/ResourceType/... 格式的完整路徑。 |
Error
error 物件。
名稱 | 類型 | Description |
---|---|---|
additionalInfo |
錯誤其他資訊。 |
|
code |
string |
錯誤碼。 |
details |
錯誤詳細數據。 |
|
message |
string |
錯誤訊息。 |
target |
string |
錯誤目標。 |
ErrorAdditionalInfo
資源管理錯誤其他資訊。
名稱 | 類型 | Description |
---|---|---|
info |
object |
其他資訊。 |
type |
string |
其他信息類型。 |
NewErrorResponse
資源管理錯誤回應。
名稱 | 類型 | Description |
---|---|---|
error |
error 物件。 |
StorageType
記憶體類型
值 | Description |
---|---|
GeoRedundant | |
Invalid | |
LocallyRedundant | |
ReadAccessGeoZoneRedundant | |
ZoneRedundant |
StorageTypeState
鎖定或解除鎖定。 針對資源註冊計算機之後,storageTypeState 一律會鎖定。
值 | Description |
---|---|
Invalid | |
Locked | |
Unlocked |