Restore Points - Create
Hiermee maakt u een herstelpunt voor een datawarehouse.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/restorePoints?api-version=2023-08-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
database
|
path | True |
string |
De naam van de database. |
resource
|
path | True |
string |
De naam van de resourcegroep die de resource bevat. U kunt deze waarde verkrijgen via de Azure Resource Manager-API of de portal. |
server
|
path | True |
string |
De naam van de server. |
subscription
|
path | True |
string |
De abonnements-id waarmee een Azure-abonnement wordt geïdentificeerd. |
api-version
|
query | True |
string |
De API-versie die moet worden gebruikt voor de aanvraag. |
Aanvraagbody
Name | Vereist | Type | Description |
---|---|---|---|
restorePointLabel | True |
string |
Het herstelpuntlabel dat moet worden toegepast |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
De aanvraag voor het herstelpunt is gemaakt. |
|
201 Created |
De aanvraag voor het herstelpunt is gemaakt. |
|
202 Accepted |
Geaccepteerd Kopteksten Location: string |
|
Other Status Codes |
Foutreacties: ***
|
Voorbeelden
Creates datawarehouse database restore point.
Voorbeeldaanvraag
POST https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testserver/databases/testDatabase/restorePoints?api-version=2023-08-01
{
"restorePointLabel": "mylabel"
}
Voorbeeldrespons
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Sql/servers/testserver/databases/testDatabase/restorePoints/131546477590000000",
"name": "131546477590000000",
"type": "Microsoft.Sql/servers/databases/restorePoints",
"location": "japaneast",
"properties": {
"restorePointType": "DISCRETE",
"restorePointCreationDate": "2017-03-10T08:00:00Z",
"restorePointLabel": "mylabel"
}
}
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Sql/servers/testserver/databases/testDatabase/restorePoints/131546477590000000",
"name": "131546477590000000",
"type": "Microsoft.Sql/servers/databases/restorePoints",
"location": "southeastasia",
"properties": {
"restorePointType": "DISCRETE",
"restorePointCreationDate": "2017-03-10T08:00:00Z",
"restorePointLabel": "mylabel"
}
}
Location: https://management.azure.com/00000000-1111-2222-3333-444444444444/providers/Microsoft.Sql/locations/japaneast/manageddatabaserestoreazureasyncoperation/00000000-1111-2222-3333-444444444444?api-version=2022-11-01-preview
Definities
Name | Description |
---|---|
Create |
Bevat de informatie die nodig is om een herstelpuntbewerking voor de database uit te voeren. |
Error |
Aanvullende informatie over de resourcebeheerfout. |
Error |
De foutdetails. |
Error |
Foutreactie |
Restore |
Databaseherstelpunten. |
Restore |
Het type herstelpunt |
CreateDatabaseRestorePointDefinition
Bevat de informatie die nodig is om een herstelpuntbewerking voor de database uit te voeren.
Name | Type | Description |
---|---|---|
restorePointLabel |
string |
Het herstelpuntlabel dat moet worden toegepast |
ErrorAdditionalInfo
Aanvullende informatie over de resourcebeheerfout.
Name | Type | Description |
---|---|---|
info |
object |
De aanvullende informatie. |
type |
string |
Het extra informatietype. |
ErrorDetail
De foutdetails.
Name | Type | Description |
---|---|---|
additionalInfo |
De fout bevat aanvullende informatie. |
|
code |
string |
De foutcode. |
details |
De foutdetails. |
|
message |
string |
Het foutbericht. |
target |
string |
Het foutdoel. |
ErrorResponse
Foutreactie
Name | Type | Description |
---|---|---|
error |
Het foutobject. |
RestorePoint
Databaseherstelpunten.
Name | Type | Description |
---|---|---|
id |
string |
Resource-id. |
location |
string |
Resourcelocatie. |
name |
string |
Resourcenaam. |
properties.earliestRestoreDate |
string (date-time) |
De vroegste tijd waarop deze database kan worden hersteld |
properties.restorePointCreationDate |
string (date-time) |
De tijd waarop de back-up is gemaakt |
properties.restorePointLabel |
string |
Het label van het herstelpunt voor een back-upaanvraag per gebruiker |
properties.restorePointType |
Het type herstelpunt |
|
type |
string |
Resourcetype. |
RestorePointType
Het type herstelpunt
Waarde | Description |
---|---|
CONTINUOUS | |
DISCRETE |