你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Restore Points - Create

为数据仓库创建还原点。

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/restorePoints?api-version=2021-11-01

URI 参数

名称 必需 类型 说明
databaseName
path True

string

数据库的名称。

resourceGroupName
path True

string

包含该资源的资源组名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serverName
path True

string

服务器的名称。

subscriptionId
path True

string

用于标识 Azure 订阅的订阅 ID。

api-version
query True

string

要用于请求的 API 版本。

请求正文

名称 必需 类型 说明
restorePointLabel True

string

要应用的还原点标签

响应

名称 类型 说明
200 OK

RestorePoint

已成功创建还原点请求。

201 Created

RestorePoint

已成功创建还原点请求。

202 Accepted

已接受

Other Status Codes

错误响应:***

  • 400 BackupNotAllowedOnDeactivatedDatabase - 无法在已停用的数据库上创建还原点。

  • 400 FeatureDisabledOnSelectedEdition - 用户尝试使用在当前数据库版本上禁用的功能。

  • 400 RestorePointLimitReached - 无法创建还原点,因为数据库将超过允许的还原点配额。

  • 400 RestorePointAttemptToDeleteSystemBackup - 无法删除系统还原点。

  • 404 DatabaseRestorePointNotFound - 找不到数据库还原点。

  • 404 SubscriptionDoesNotHaveServer - 找不到请求的服务器

  • 404 DatabaseDoesNotExist - 用户已指定此服务器实例上不存在的数据库名称。

  • 404 OperationIdNotFound - ID 为 的操作不存在。

  • 408 DatabaseRestorePointTimedOut - 创建数据库还原点失败。

  • 409 OperationCancelled - 用户已取消操作。

  • 409 操作中断 - 无法完成对资源的操作,因为同一资源上的另一个操作中断了该操作。

  • 429 SubscriptionTooManyCreateUpdateRequests - 请求数超出可用资源可以处理的最大请求数。

  • 429 SubscriptionTooManyRequests - 请求数超出可用资源可以处理的最大请求数。

  • 500 OperationTimedOut - 操作超时并自动回滚。 请重试该操作。

  • 503 TooManyRequests - 请求数超出可用资源可以处理的最大请求数。

示例

Creates datawarehouse database restore point.

Sample Request

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=2021-11-01

{
  "restorePointLabel": "mylabel"
}

Sample Response

{
  "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"
  }
}

定义

名称 说明
CreateDatabaseRestorePointDefinition

包含执行创建数据库还原点操作所需的信息。

RestorePoint

数据库还原点。

RestorePointType

还原点的类型

CreateDatabaseRestorePointDefinition

包含执行创建数据库还原点操作所需的信息。

名称 类型 说明
restorePointLabel

string

要应用的还原点标签

RestorePoint

数据库还原点。

名称 类型 说明
id

string

资源 ID。

location

string

资源位置。

name

string

资源名称。

properties.earliestRestoreDate

string

此数据库可以还原到的最早时间

properties.restorePointCreationDate

string

备份的时间

properties.restorePointLabel

string

用户备份请求的还原点标签

properties.restorePointType

RestorePointType

还原点的类型

type

string

资源类型。

RestorePointType

还原点的类型

名称 类型 说明
CONTINUOUS

string

DISCRETE

string