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

Sql Pools - List By Workspace

列出 SQL 池
列出所有 SQL 池

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools?api-version=2021-06-01

URI 参数

名称 必需 类型 说明
resourceGroupName
path True

string

资源组的名称。 此名称不区分大小写。

subscriptionId
path True

string

目标订阅的 ID。

workspaceName
path True

string

工作区的名称。

api-version
query True

string

要用于此操作的 API 版本。

响应

名称 类型 说明
200 OK

SqlPoolInfoListResult

Other Status Codes

ErrorResponse

示例

List SQL Analytics pools in a workspace
List SQL Analytics pools in a workspace with filter

List SQL Analytics pools in a workspace

Sample Request

GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Synapse/workspaces/sqlcrudtest-7177/sqlPools?api-version=2021-06-01

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Synapse/workspaces/sqlcrudtest-7177/sqlPools/master",
      "name": "master",
      "type": "Microsoft.Synapse/workspaces/sqlPools",
      "location": "Japan East",
      "properties": {
        "status": "Online",
        "collation": "SQL_Latin1_General_CP1_CI_AS",
        "maxSizeBytes": 32212254720,
        "creationDate": "2017-02-10T00:59:33.483Z",
        "provisioningState": "Succeeded",
        "restorePointInTime": "0001-01-01T00:00:00Z",
        "storageAccountType": "GRS"
      },
      "sku": {
        "name": "GP_Gen5_2"
      }
    },
    {
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Synapse/workspaces/sqlcrudtest-7177/sqlPools/sqlcrudtest-1142",
      "name": "sqlcrudtest-1142",
      "type": "Microsoft.Synapse/workspaces/sqlPools",
      "location": "Japan East",
      "properties": {
        "status": "Online",
        "collation": "SQL_Latin1_General_CP1_CI_AS",
        "maxSizeBytes": 268435456000,
        "creationDate": "2017-02-10T01:03:34.04Z",
        "provisioningState": "Succeeded",
        "restorePointInTime": "0001-01-01T00:00:00Z",
        "storageAccountType": "GRS"
      },
      "sku": {
        "name": "DW100c"
      }
    },
    {
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Synapse/workspaces/sqlcrudtest-7177/sqlPools/sqlcrudtest-2788",
      "name": "sqlcrudtest-2788",
      "type": "Microsoft.Synapse/workspaces/sqlPools",
      "location": "Japan East",
      "properties": {
        "status": "Online",
        "collation": "SQL_Latin1_General_CP1_CI_AS",
        "maxSizeBytes": 268435456000,
        "creationDate": "2017-02-10T01:00:21.067Z",
        "provisioningState": "Succeeded",
        "restorePointInTime": "0001-01-01T00:00:00Z",
        "storageAccountType": "GRS"
      },
      "sku": {
        "name": "DW100c"
      }
    },
    {
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Synapse/workspaces/sqlcrudtest-7177/sqlPools/sqlcrudtest-6877",
      "name": "sqlcrudtest-6877",
      "type": "Microsoft.Synapse/workspaces/sqlPools",
      "location": "Southeast Asia",
      "properties": {
        "status": "Online",
        "collation": "SQL_Latin1_General_CP1_CI_AS",
        "maxSizeBytes": 268435456000,
        "creationDate": "2017-02-10T01:02:28.853Z",
        "provisioningState": "Succeeded",
        "restorePointInTime": "0001-01-01T00:00:00Z",
        "storageAccountType": "LRS"
      },
      "sku": {
        "name": "DW100c"
      }
    },
    {
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Synapse/workspaces/sqlcrudtest-7177/sqlPools/sqlcrudtest-9888",
      "name": "sqlcrudtest-9888",
      "type": "Microsoft.Synapse/workspaces/sqlPools",
      "location": "Japan East",
      "properties": {
        "status": "Online",
        "collation": "SQL_Latin1_General_CP1_CI_AS",
        "maxSizeBytes": 268435456000,
        "creationDate": "2017-02-10T01:01:25.347Z",
        "provisioningState": "Succeeded",
        "restorePointInTime": "0001-01-01T00:00:00Z",
        "storageAccountType": "GRS"
      },
      "sku": {
        "name": "DW100c"
      }
    }
  ]
}

List SQL Analytics pools in a workspace with filter

Sample Request

GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Synapse/workspaces/sqlcrudtest-7177/sqlPools?api-version=2021-06-01

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Synapse/workspaces/sqlcrudtest-7177/sqlPools/master",
      "name": "master",
      "type": "Microsoft.Synapse/workspaces/sqlPools",
      "location": "Japan East",
      "properties": {
        "status": "Online",
        "collation": "SQL_Latin1_General_CP1_CI_AS",
        "maxSizeBytes": 32212254720,
        "creationDate": "2017-02-10T00:59:33.483Z",
        "provisioningState": "Succeeded",
        "restorePointInTime": "0001-01-01T00:00:00Z",
        "storageAccountType": "GRS"
      },
      "sku": {
        "name": "GP_Gen5_2"
      }
    }
  ]
}

定义

名称 说明
createMode

指定 sql 池创建模式。

默认值:常规 sql 池创建。

PointInTimeRestore:通过还原现有 sql 池的时间点备份来创建 sql 池。 sourceDatabaseId 必须指定为现有 sql 池的资源 ID,并且必须指定 restorePointInTime。

恢复:通过异地复制的备份创建 sql 池。 sourceDatabaseId 必须指定为 recoverableDatabaseId 才能还原。

还原:通过还原已删除 sql 池的备份来创建 sql 池。 SourceDatabaseId 应该是 sql 池的原始资源 ID。 必须指定 SourceDatabaseId 和 sourceDatabaseDeletionDate。

ErrorAdditionalInfo

资源管理错误附加信息。

ErrorDetail

错误详细信息。

ErrorResponse

错误响应

Sku

SKU

SqlPool

SQL 池

SqlPoolInfoListResult

SQL 池集合

StorageAccountType

用于存储此 sql 池备份的存储帐户类型。

createMode

指定 sql 池创建模式。

默认值:常规 sql 池创建。

PointInTimeRestore:通过还原现有 sql 池的时间点备份来创建 sql 池。 sourceDatabaseId 必须指定为现有 sql 池的资源 ID,并且必须指定 restorePointInTime。

恢复:通过异地复制的备份创建 sql 池。 sourceDatabaseId 必须指定为 recoverableDatabaseId 才能还原。

还原:通过还原已删除 sql 池的备份来创建 sql 池。 SourceDatabaseId 应该是 sql 池的原始资源 ID。 必须指定 SourceDatabaseId 和 sourceDatabaseDeletionDate。

名称 类型 说明
Default

string

PointInTimeRestore

string

Recovery

string

Restore

string

ErrorAdditionalInfo

资源管理错误附加信息。

名称 类型 说明
info

object

其他信息。

type

string

其他信息类型。

ErrorDetail

错误详细信息。

名称 类型 说明
additionalInfo

ErrorAdditionalInfo[]

错误附加信息。

code

string

错误代码。

details

ErrorDetail[]

错误详细信息。

message

string

错误消息。

target

string

错误目标。

ErrorResponse

错误响应

名称 类型 说明
error

ErrorDetail

错误对象。

Sku

SKU

名称 类型 说明
capacity

integer

如果 SKU 支持横向扩展/缩减,则应包含容量整数。 如果资源无法横向扩展/缩减,则可能会省略这一点。

name

string

SKU 名称

tier

string

服务层

SqlPool

SQL 池

名称 类型 默认值 说明
id

string

资源的完全限定的资源 ID。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

location

string

资源所在的地理位置

name

string

资源的名称

properties.collation

string

排序规则模式

properties.createMode

createMode

指定 sql 池创建模式。

默认值:常规 sql 池创建。

PointInTimeRestore:通过还原现有 sql 池的时间点备份来创建 sql 池。 sourceDatabaseId 必须指定为现有 sql 池的资源 ID,并且必须指定 restorePointInTime。

恢复:通过异地复制的备份创建 sql 池。 sourceDatabaseId 必须指定为 recoverableDatabaseId 才能还原。

还原:通过还原已删除 sql 池的备份来创建 sql 池。 SourceDatabaseId 应该是 sql 池的原始资源 ID。 必须指定 SourceDatabaseId 和 sourceDatabaseDeletionDate。

properties.creationDate

string

SQL 池的创建日期

properties.maxSizeBytes

integer

最大大小(以字节为单位)

properties.provisioningState

string

资源状态

properties.recoverableDatabaseId

string

要从中还原的备份数据库

properties.restorePointInTime

string

要还原的快照时间

properties.sourceDatabaseDeletionDate

string

指定删除 sql 池的时间

properties.sourceDatabaseId

string

要从中创建的源数据库

properties.status

string

资源状态

properties.storageAccountType

StorageAccountType

GRS

用于存储此 sql 池备份的存储帐户类型。

sku

Sku

SKU
SQL 池 SKU

tags

object

资源标记。

type

string

资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts”

SqlPoolInfoListResult

SQL 池集合

名称 类型 说明
nextLink

string

链接到结果的下一页

value

SqlPool[]

SQL 池列表

StorageAccountType

用于存储此 sql 池备份的存储帐户类型。

名称 类型 说明
GRS

string

LRS

string