Long Term Retention Backups - Change Access Tier By Resource Group
Hosszú távú adatmegőrzési biztonsági mentés hozzáférési szintjének módosítása.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/changeAccessTier?api-version=2023-08-01
URI-paraméterek
Name | In | Kötelező | Típus | Description |
---|---|---|---|---|
backup
|
path | True |
string |
|
location
|
path | True |
string |
|
long
|
path | True |
string |
|
long
|
path | True |
string |
|
resource
|
path | True |
string |
Az erőforrást tartalmazó erőforráscsoport neve. Ezt az értéket az Azure Resource Manager API-ból vagy a portálról szerezheti be. |
subscription
|
path | True |
string |
Az Azure-előfizetést azonosító előfizetés-azonosító. |
api-version
|
query | True |
string |
A kéréshez használni kívánt API-verzió. |
Kérelem törzse
Name | Kötelező | Típus | Description |
---|---|---|---|
backupStorageAccessTier | True |
string |
A hosszú távú adatmegőrzési biztonsági mentés tárolási hozzáférési szintje |
operationMode | True |
string |
A műveleti mód az ltr biztonsági mentési tár hozzáférési szintjének frissítésekor |
Válaszok
Name | Típus | Description |
---|---|---|
200 OK |
Sikeresen módosította a hosszú távú adatmegőrzési biztonsági mentés hozzáférési szintjét. |
|
202 Accepted |
Elfogadott Fejlécek Location: string |
|
Other Status Codes |
Hibaválaszok: ***
|
Példák
Change the long term retention backup storage access tier for a resource group.
Mintakérelem
POST https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroupName/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/serverName/longTermRetentionDatabases/databaseName/longTermRetentionBackups/55555555-6666-7777-8888-999999999999;131637960820000000;Archive/changeAccessTier?api-version=2023-08-01
{
"backupStorageAccessTier": "Hot",
"operationMode": "Copy"
}
Mintaválasz
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroupName/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/serverName/longTermRetentionDatabases/databaseName/longTermRetentionBackups/55555555-6666-7777-8888-999999999999;131637960820000000;Archive",
"name": "55555555-6666-7777-8888-999999999999;131637960820000000;Archive",
"type": "Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups",
"properties": {
"serverName": "serverName",
"serverCreateTime": "2017-09-06T08:00:00Z",
"databaseName": "databaseName",
"databaseDeletionTime": null,
"backupTime": "2017-09-06T08:00:00Z",
"backupExpirationTime": null,
"backupStorageRedundancy": "Geo"
}
}
Azure-AsyncOperation: https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroupName/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/serverName/longTermRetentionDatabases/databaseName/longTermRetentionBackups/55555555-6666-7777-8888-999999999999;131637960820000000;Archive/operations/55555555-6666-7777-8888-999999999999?api-version=2023-05-01-preview
Definíciók
Name | Description |
---|---|
Backup |
A BackupStorageAccessTier az LTR biztonsági mentéséhez |
Backup |
A másolt biztonsági másolat tárolási redundanciatípusa |
Change |
A hosszú távú adatmegőrzési biztonsági mentés hozzáférési szintjének és a kapcsolódó műveleti módnak a módosításához szükséges információkat tartalmazza. |
Error |
Az erőforrás-kezelési hiba további információi. |
Error |
A hiba részletei. |
Error |
Hibaválasz |
Long |
Hosszú távú megőrzési biztonsági mentés. |
BackupStorageAccessTier
A BackupStorageAccessTier az LTR biztonsági mentéséhez
Érték | Description |
---|---|
Archive | |
Hot |
BackupStorageRedundancy
A másolt biztonsági másolat tárolási redundanciatípusa
Érték | Description |
---|---|
Geo | |
GeoZone | |
Local | |
Zone |
ChangeLongTermRetentionBackupAccessTierParameters
A hosszú távú adatmegőrzési biztonsági mentés hozzáférési szintjének és a kapcsolódó műveleti módnak a módosításához szükséges információkat tartalmazza.
Name | Típus | Description |
---|---|---|
backupStorageAccessTier |
string |
A hosszú távú adatmegőrzési biztonsági mentés tárolási hozzáférési szintje |
operationMode |
string |
A műveleti mód az ltr biztonsági mentési tár hozzáférési szintjének frissítésekor |
ErrorAdditionalInfo
Az erőforrás-kezelési hiba további információi.
Name | Típus | Description |
---|---|---|
info |
object |
A további információk. |
type |
string |
A további információtípus. |
ErrorDetail
A hiba részletei.
Name | Típus | Description |
---|---|---|
additionalInfo |
A hiba további információi. |
|
code |
string |
A hibakód. |
details |
A hiba részletei. |
|
message |
string |
A hibaüzenet. |
target |
string |
A hibacél. |
ErrorResponse
Hibaválasz
Name | Típus | Description |
---|---|---|
error |
A hibaobjektum. |
LongTermRetentionBackup
Hosszú távú megőrzési biztonsági mentés.
Name | Típus | Description |
---|---|---|
id |
string |
Erőforrás-azonosító. |
name |
string |
Erőforrás neve. |
properties.backupExpirationTime |
string (date-time) |
A hosszú távú megőrzési biztonsági mentés lejárati ideje. |
properties.backupStorageAccessTier |
A BackupStorageAccessTier az LTR biztonsági mentéséhez |
|
properties.backupStorageRedundancy |
A biztonsági mentés tárolási redundanciatípusa |
|
properties.backupTime |
string (date-time) |
A biztonsági másolat készítésének időpontja |
properties.databaseDeletionTime |
string (date-time) |
Az adatbázis törlési ideje |
properties.databaseName |
string |
Annak az adatbázisnak a neve, amelyhez a biztonsági másolat tartozik |
properties.isBackupImmutable |
boolean |
A beállítás, hogy az LTR biztonsági mentése nem módosítható-e |
properties.requestedBackupStorageRedundancy |
A biztonsági mentés tárolási redundanciatípusa |
|
properties.serverCreateTime |
string (date-time) |
A kiszolgáló létrehozási ideje. |
properties.serverName |
string |
A kiszolgáló neve, amelyhez a biztonsági mentési adatbázis tartozik. |
type |
string |
Erőforrás típusa. |