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

Elastic Pool Operations - List By Elastic Pool

获取对弹性池执行的操作的列表。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/operations?api-version=2021-11-01

URI 参数

名称 必需 类型 说明
elasticPoolName
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 版本。

响应

名称 类型 说明
200 OK

ElasticPoolOperationListResult

已成功执行获取弹性池操作的请求。

Other Status Codes

错误响应:***

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

  • 404 ServerNotInSubscriptionResourceGroup - 指定的服务器不存在于指定的资源组和订阅中。

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

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

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

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

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

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

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

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

示例

List the elastic pool management operations

Sample Request

GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtestgroup/providers/Microsoft.Sql/servers/sqlcrudtestserver/elasticPools/testpool/operations?api-version=2021-11-01

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtestgroup/providers/Microsoft.Sql/servers/sqlcrudtestserver/elasticPools/testpool/operations/11111111-1111-1111-1111-111111111111",
      "name": "11111111-1111-1111-1111-111111111111",
      "type": "Microsoft.Sql/servers/elasticPools/operations",
      "properties": {
        "elasticPoolName": "testpool",
        "operation": "UPDATE",
        "operationFriendlyName": "UPDATE",
        "percentComplete": 100,
        "serverName": "sqlcrudtestserver",
        "startTime": "2017-10-30T09:10:08.1Z",
        "state": "COMPLETED"
      }
    },
    {
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtestgroup/providers/Microsoft.Sql/servers/sqlcrudtestserver/elasticPools/testpool/operations/55555555-5555-5555-5555-555555555555",
      "name": "55555555-5555-5555-5555-555555555555",
      "type": "Microsoft.Sql/servers/elasticPools/operations",
      "properties": {
        "elasticPoolName": "testpool",
        "operation": "UPDATE",
        "operationFriendlyName": "UPDATE",
        "percentComplete": 0,
        "serverName": "sqlcrudtestserver",
        "startTime": "2017-10-30T10:10:08.1Z",
        "state": "IN_PROGRESS"
      }
    }
  ]
}

定义

名称 说明
ElasticPoolOperation

弹性池操作。

ElasticPoolOperationListResult

对列表弹性池操作请求的响应

ElasticPoolOperation

弹性池操作。

名称 类型 说明
id

string

资源 ID。

name

string

资源名称。

properties.description

string

操作说明。

properties.elasticPoolName

string

正在其上执行操作的弹性池的名称。

properties.errorCode

integer

操作错误代码。

properties.errorDescription

string

操作错误说明。

properties.errorSeverity

integer

操作错误严重性。

properties.estimatedCompletionTime

string

操作的估计完成时间。

properties.isCancellable

boolean

是否可以取消操作。

properties.isUserError

boolean

错误是否为用户错误。

properties.operation

string

操作的名称。

properties.operationFriendlyName

string

操作的友好名称。

properties.percentComplete

integer

操作已完成的百分比。

properties.serverName

string

服务器的名称。

properties.startTime

string

操作开始时间。

properties.state

string

操作状态。

type

string

资源类型。

ElasticPoolOperationListResult

对列表弹性池操作请求的响应

名称 类型 说明
nextLink

string

用于检索下一页结果的链接。

value

ElasticPoolOperation[]

结果数组。