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

Databases - List By Server

返回服务器中的数据库列表。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases?api-version=2014-04-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases?api-version=2014-04-01&$expand={$expand}&$filter={$filter}

URI 参数

名称 必需 类型 说明
resourceGroupName
path True

string

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

serverName
path True

string

服务器的名称。

subscriptionId
path True

string

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

api-version
query True

string

要用于请求的 API 版本。

$expand
query

string

要展开响应中的子对象的逗号分隔列表。 可能的属性:serviceTierAdvisors、transparentDataEncryption。

$filter
query

string

描述要返回的数据库子集的 OData 筛选器表达式。

响应

名称 类型 说明
200 OK

DatabaseListResult

确定

示例

List databases by server
List databases by server with filter

List databases by server

示例请求

GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Sql/servers/sqlcrudtest-7177/databases?api-version=2014-04-01

示例响应

{
  "value": [
    {
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Sql/servers/sqlcrudtest-7177/databases/master",
      "name": "master",
      "type": "Microsoft.Sql/servers/databases",
      "location": "Japan East",
      "kind": "v12.0,system",
      "properties": {
        "databaseId": "e760a51c-3dce-4d8c-976b-a2b929a73e08",
        "edition": "System",
        "status": "Online",
        "serviceLevelObjective": "System2",
        "collation": "SQL_Latin1_General_CP1_CI_AS",
        "maxSizeBytes": "32212254720",
        "creationDate": "2017-02-10T00:59:33.483Z",
        "currentServiceObjectiveId": "620323bf-2879-4807-b30d-c2e6d7b3b3aa",
        "requestedServiceObjectiveId": "620323bf-2879-4807-b30d-c2e6d7b3b3aa",
        "requestedServiceObjectiveName": "System2",
        "sampleName": null,
        "defaultSecondaryLocation": "Japan West",
        "earliestRestoreDate": null,
        "elasticPoolName": null,
        "containmentState": 2,
        "readScale": "Disabled",
        "failoverGroupId": null
      }
    },
    {
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Sql/servers/sqlcrudtest-7177/databases/sqlcrudtest-1142",
      "name": "sqlcrudtest-1142",
      "type": "Microsoft.Sql/servers/databases",
      "location": "Japan East",
      "kind": "v12.0,user",
      "properties": {
        "databaseId": "11c1813c-52db-4d17-95d7-119eda1850b1",
        "edition": "Standard",
        "status": "Online",
        "serviceLevelObjective": "S0",
        "collation": "SQL_Latin1_General_CP1_CI_AS",
        "maxSizeBytes": "268435456000",
        "creationDate": "2017-02-10T01:03:34.04Z",
        "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b",
        "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b",
        "requestedServiceObjectiveName": "S0",
        "sampleName": null,
        "defaultSecondaryLocation": "Japan West",
        "earliestRestoreDate": "2017-02-10T01:14:10.233Z",
        "elasticPoolName": null,
        "containmentState": 2,
        "readScale": "Disabled",
        "failoverGroupId": null
      }
    },
    {
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Sql/servers/sqlcrudtest-7177/databases/sqlcrudtest-2788",
      "name": "sqlcrudtest-2788",
      "type": "Microsoft.Sql/servers/databases",
      "location": "Japan East",
      "kind": "v12.0,user",
      "properties": {
        "databaseId": "d63e118b-41cf-49b9-8dac-aa6ef6f91731",
        "edition": "Standard",
        "status": "Online",
        "serviceLevelObjective": "S0",
        "collation": "SQL_Latin1_General_CP1_CI_AS",
        "maxSizeBytes": "268435456000",
        "creationDate": "2017-02-10T01:00:21.067Z",
        "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b",
        "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b",
        "requestedServiceObjectiveName": "S0",
        "sampleName": null,
        "defaultSecondaryLocation": "Japan West",
        "earliestRestoreDate": "2017-02-10T01:10:52.25Z",
        "elasticPoolName": null,
        "containmentState": 2,
        "readScale": "Disabled",
        "failoverGroupId": null
      }
    },
    {
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Sql/servers/sqlcrudtest-7177/databases/sqlcrudtest-6877",
      "name": "sqlcrudtest-6877",
      "type": "Microsoft.Sql/servers/databases",
      "location": "Japan East",
      "kind": "v12.0,user",
      "properties": {
        "databaseId": "40ac16e8-855c-439c-b495-c97e918a771c",
        "edition": "Standard",
        "status": "Online",
        "serviceLevelObjective": "S0",
        "collation": "SQL_Latin1_General_CP1_CI_AS",
        "maxSizeBytes": "268435456000",
        "creationDate": "2017-02-10T01:02:28.853Z",
        "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b",
        "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b",
        "requestedServiceObjectiveName": "S0",
        "sampleName": null,
        "defaultSecondaryLocation": "Japan West",
        "earliestRestoreDate": "2017-02-10T01:13:21.66Z",
        "elasticPoolName": null,
        "containmentState": 2,
        "readScale": "Disabled",
        "failoverGroupId": null
      }
    },
    {
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Sql/servers/sqlcrudtest-7177/databases/sqlcrudtest-9888",
      "name": "sqlcrudtest-9888",
      "type": "Microsoft.Sql/servers/databases",
      "location": "Japan East",
      "kind": "v12.0,user",
      "properties": {
        "databaseId": "59daf4ad-082f-4ac5-b38a-ed656b937980",
        "edition": "Standard",
        "status": "Online",
        "serviceLevelObjective": "S0",
        "collation": "SQL_Latin1_General_CP1_CI_AS",
        "maxSizeBytes": "268435456000",
        "creationDate": "2017-02-10T01:01:25.347Z",
        "currentServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b",
        "requestedServiceObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b",
        "requestedServiceObjectiveName": "S0",
        "sampleName": null,
        "defaultSecondaryLocation": "Japan West",
        "earliestRestoreDate": "2017-02-10T01:12:05.303Z",
        "elasticPoolName": null,
        "containmentState": 2,
        "readScale": "Disabled",
        "failoverGroupId": null
      }
    }
  ]
}

List databases by server with filter

示例请求

GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Sql/servers/sqlcrudtest-7177/databases?api-version=2014-04-01&$filter=properties/edition eq 'System'

示例响应

{
  "value": [
    {
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Sql/servers/sqlcrudtest-7177/databases/master",
      "name": "master",
      "type": "Microsoft.Sql/servers/databases",
      "location": "Japan East",
      "kind": "v12.0,system",
      "properties": {
        "databaseId": "e760a51c-3dce-4d8c-976b-a2b929a73e08",
        "edition": "System",
        "status": "Online",
        "serviceLevelObjective": "System2",
        "collation": "SQL_Latin1_General_CP1_CI_AS",
        "maxSizeBytes": "32212254720",
        "creationDate": "2017-02-10T00:59:33.483Z",
        "currentServiceObjectiveId": "620323bf-2879-4807-b30d-c2e6d7b3b3aa",
        "requestedServiceObjectiveId": "620323bf-2879-4807-b30d-c2e6d7b3b3aa",
        "requestedServiceObjectiveName": "System2",
        "sampleName": null,
        "defaultSecondaryLocation": "Japan West",
        "earliestRestoreDate": null,
        "elasticPoolName": null,
        "containmentState": 2,
        "readScale": "Disabled",
        "failoverGroupId": null
      }
    }
  ]
}

定义

名称 说明
CreateMode

指定数据库创建模式。

默认值:常规数据库创建。

复制:将数据库创建为现有数据库的副本。 sourceDatabaseId 必须指定为源数据库的资源 ID。

OnlineSecondary/NonReadableSecondary:将数据库创建为现有数据库的 (可读或不可读) 辅助副本 (replica) 。 sourceDatabaseId 必须指定为现有主数据库的资源 ID。

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

恢复:通过还原异地复制的备份来创建数据库。 sourceDatabaseId 必须指定为要还原的可恢复数据库资源 ID。

还原:通过还原已删除数据库的备份来创建数据库。 必须指定 sourceDatabaseId。 如果 sourceDatabaseId 是数据库的原始资源 ID,则必须指定 sourceDatabaseDeletionDate。 否则,sourceDatabaseId 必须是可还原的已删除数据库资源 ID,并且 sourceDatabaseDeletionDate 将被忽略。 还可以将 restorePointInTime 指定为从较早的时间点还原。

RestoreLongTermRetentionBackup:通过从长期保留保管库还原来创建数据库。 recoveryServicesRecoveryPointResourceId 必须指定为恢复点资源 ID。

DataWarehouse 版本不支持 Copy、NonReadableSecondary、OnlineSecondary 和 RestoreLongTermRetentionBackup。

Database

服务器中存储的数据库列表。

DatabaseEdition

数据库的版本。 DatabaseEditions 枚举包含所有有效版本。 如果 createMode 为 NonReadableSecondary 或 OnlineSecondary,则忽略此值。

SKU 列表可能因地区和支持产品/服务而异。 若要确定 SKU (包括 AZURE 区域中订阅可用的 SKU 名称、层/版本、系列和容量) ,请使用 Capabilities_ListByLocation REST API 或以下命令之一:

az sql db list-editions -l <location> -o table
Get-AzSqlServerServiceObjective -Location <location>
DatabaseListResult

表示对列表数据库请求的响应。

OperationImpact

执行建议的索引操作的估计影响。

ReadScale

条件。 如果数据库是异地辅助数据库,readScale 指示是否允许到此数据库的只读连接。 DataWarehouse 版本不支持。

RecommendedIndex

此数据库的建议索引。

RecommendedIndexAction

建议的索引操作。 可以创建缺失的索引、删除未使用的索引或重新生成现有索引以提高其性能。

RecommendedIndexState

当前建议状态。

RecommendedIndexType

索引的类型 (CLUSTERED、NONCLUSTERED、COLUMNSTORE、CLUSTERED COLUMNSTORE)

SampleName

指示创建此数据库时要应用的示例架构的名称。 如果 createMode 不是 Default,则忽略此值。 DataWarehouse 版本不支持。

ServiceObjectiveName

数据库的已配置服务级别目标的名称。 这是正在应用于数据库的服务级别目标。 成功更新后,它将匹配 serviceLevelObjective 属性的值。

SKU 列表可能因地区和支持产品/服务而异。 若要确定 SKU (包括 AZURE 区域中订阅可用的 SKU 名称、层/版本、系列和容量) ,请使用 Capabilities_ListByLocation REST API 或以下命令之一:

az sql db list-editions -l <location> -o table
Get-AzSqlServerServiceObjective -Location <location>
ServiceTierAdvisor

此数据库的服务层顾问列表。 展开的属性

SloUsageMetric

获取或设置服务层顾问的 serviceLevelObjectiveUsageMetrics。

TransparentDataEncryption

此数据库的透明数据加密信息。

TransparentDataEncryptionStatus

数据库透明数据加密的状态。

CreateMode

指定数据库创建模式。

默认值:常规数据库创建。

复制:将数据库创建为现有数据库的副本。 sourceDatabaseId 必须指定为源数据库的资源 ID。

OnlineSecondary/NonReadableSecondary:将数据库创建为现有数据库的 (可读或不可读) 辅助副本 (replica) 。 sourceDatabaseId 必须指定为现有主数据库的资源 ID。

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

恢复:通过还原异地复制的备份来创建数据库。 sourceDatabaseId 必须指定为要还原的可恢复数据库资源 ID。

还原:通过还原已删除数据库的备份来创建数据库。 必须指定 sourceDatabaseId。 如果 sourceDatabaseId 是数据库的原始资源 ID,则必须指定 sourceDatabaseDeletionDate。 否则,sourceDatabaseId 必须是可还原的已删除数据库资源 ID,并且 sourceDatabaseDeletionDate 将被忽略。 还可以将 restorePointInTime 指定为从较早的时间点还原。

RestoreLongTermRetentionBackup:通过从长期保留保管库还原来创建数据库。 recoveryServicesRecoveryPointResourceId 必须指定为恢复点资源 ID。

DataWarehouse 版本不支持 Copy、NonReadableSecondary、OnlineSecondary 和 RestoreLongTermRetentionBackup。

名称 类型 说明
Copy

string

Default

string

NonReadableSecondary

string

OnlineSecondary

string

PointInTimeRestore

string

Recovery

string

Restore

string

RestoreLongTermRetentionBackup

string

Database

服务器中存储的数据库列表。

名称 类型 说明
id

string

资源 ID。

kind

string

数据库类型。 这是用于Azure 门户体验的元数据。

location

string

资源位置。

name

string

资源名称。

properties.collation

string

数据库的排序规则。 如果 createMode 不是 Default,则忽略此值。

properties.containmentState

integer

数据库的包含状态。

properties.createMode

CreateMode

指定数据库创建模式。

默认值:常规数据库创建。

复制:将数据库创建为现有数据库的副本。 sourceDatabaseId 必须指定为源数据库的资源 ID。

OnlineSecondary/NonReadableSecondary:将数据库创建为现有数据库的 (可读或不可读) 辅助副本 (replica) 。 sourceDatabaseId 必须指定为现有主数据库的资源 ID。

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

恢复:通过还原异地复制的备份来创建数据库。 sourceDatabaseId 必须指定为要还原的可恢复数据库资源 ID。

还原:通过还原已删除数据库的备份来创建数据库。 必须指定 sourceDatabaseId。 如果 sourceDatabaseId 是数据库的原始资源 ID,则必须指定 sourceDatabaseDeletionDate。 否则,sourceDatabaseId 必须是可还原的已删除数据库资源 ID,并且 sourceDatabaseDeletionDate 将被忽略。 还可以指定 restorePointInTime 从较早的时间点还原。

RestoreLongTermRetentionBackup:通过从长期保留保管库还原来创建数据库。 recoveryServicesRecoveryPointResourceId 必须指定为恢复点资源 ID。

DataWarehouse 版本不支持 Copy、NonReadableSecondary、OnlineSecondary 和 RestoreLongTermRetentionBackup。

properties.creationDate

string

数据库的创建日期 (ISO8601 格式) 。

properties.currentServiceObjectiveId

string

数据库的当前服务级别目标 ID。 这是当前处于活动状态的服务级别目标的 ID。

properties.databaseId

string

数据库的 ID。

properties.defaultSecondaryLocation

string

此数据库的默认次要区域。

properties.earliestRestoreDate

string

这会记录可用于此数据库的最早还原日期和时间, (ISO8601 格式) 。

properties.edition

DatabaseEdition

数据库的版本。 DatabaseEditions 枚举包含所有有效版本。 如果 createMode 为 NonReadableSecondary 或 OnlineSecondary,则忽略此值。

SKU 列表可能因区域和支持产品/服务而异。 若要确定 SKU (包括 AZURE 区域中订阅可用的 SKU 名称、层/版本、系列和容量) ,请使用 Capabilities_ListByLocation REST API 或以下命令之一:

az sql db list-editions -l <location> -o table
Get-AzSqlServerServiceObjective -Location <location>
properties.elasticPoolName

string

数据库所位于的弹性池的名称。 如果 elasticPoolName 和 requestedServiceObjectiveName 都更新,则忽略 requestedServiceObjectiveName 的值。 DataWarehouse 版本不支持。

properties.failoverGroupId

string

包含此数据库的故障转移组的资源标识符。

properties.maxSizeBytes

string

以字节表示的数据库的最大大小。 如果 createMode 不是 Default,则忽略此值。 若要查看可能的值,请查询 operationId 引用的功能 API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) :“Capabilities_ListByLocation”。

properties.readScale

ReadScale

条件。 如果数据库是异地辅助数据库,readScale 指示是否允许此数据库的只读连接。 DataWarehouse 版本不支持。

properties.recommendedIndex

RecommendedIndex[]

此数据库的建议索引。

properties.recoveryServicesRecoveryPointResourceId

string

条件。 如果 createMode 为 RestoreLongTermRetentionBackup,则此值是必需的。 指定要从其还原的恢复点的资源 ID。

properties.requestedServiceObjectiveId

string

数据库的已配置服务级别目标 ID。 这是正在应用于数据库的服务级别目标。 成功更新后,它将匹配 currentServiceObjectiveId 属性的值。 如果 requestedServiceObjectiveId 和 requestedServiceObjectiveName 都已更新,则 requestedServiceObjectiveId 的值将替代 requestedServiceObjectiveName 的值。

SKU 列表可能因区域和支持产品/服务而异。 若要确定 Azure 区域中订阅可用的服务目标 ID,请使用 Capabilities_ListByLocation REST API。

properties.requestedServiceObjectiveName

ServiceObjectiveName

数据库的已配置服务级别目标的名称。 这是正在应用于数据库的服务级别目标。 成功更新后,它将匹配 serviceLevelObjective 属性的值。

SKU 列表可能因区域和支持产品/服务而异。 若要确定 SKU (包括 AZURE 区域中订阅可用的 SKU 名称、层/版本、系列和容量) ,请使用 Capabilities_ListByLocation REST API 或以下命令之一:

az sql db list-editions -l <location> -o table
Get-AzSqlServerServiceObjective -Location <location>
properties.restorePointInTime

string

条件。 如果 createMode 为 PointInTimeRestore,则此值是必需的。 如果 createMode 为 Restore,则此值是可选的。 指定要还原以创建新数据库的源数据库的时间点 (ISO8601 格式) 。 必须大于或等于源数据库的 earliestRestoreDate 值。

properties.sampleName

SampleName

指示创建此数据库时要应用的示例架构的名称。 如果 createMode 不是 Default,则忽略此值。 DataWarehouse 版本不支持。

properties.serviceLevelObjective

ServiceObjectiveName

数据库的当前服务级别目标。

properties.serviceTierAdvisors

ServiceTierAdvisor[]

此数据库的服务层顾问列表。 展开的属性

properties.sourceDatabaseDeletionDate

string

条件。 如果 createMode 为 Restore,而 sourceDatabaseId 是已删除数据库 (的原始资源 ID,而不是其当前可还原的已删除数据库 ID) ,则此值是必需的。 指定数据库被删除的时间。

properties.sourceDatabaseId

string

条件。 如果 createMode 为 Copy、NonReadableSecondary、OnlineSecondary、PointInTimeRestore、Recovery 或 Restore,则此值是必需的。 指定源数据库的资源 ID。 如果 createMode 是 NonReadableSecondary 或 OnlineSecondary,则源数据库的名称必须与正在创建新数据库的名称相同。

properties.status

string

数据库的状态。

properties.transparentDataEncryption

TransparentDataEncryption[]

此数据库的透明数据加密信息。

properties.zoneRedundant

boolean

此数据库是否为区域冗余,这意味着此数据库的副本将分布在多个可用性区域。

tags

object

资源标记。

type

string

资源类型。

DatabaseEdition

数据库的版本。 DatabaseEditions 枚举包含所有有效版本。 如果 createMode 为 NonReadableSecondary 或 OnlineSecondary,则忽略此值。

SKU 列表可能因地区和支持产品/服务而异。 若要确定 SKU (包括 AZURE 区域中订阅可用的 SKU 名称、层/版本、系列和容量) ,请使用 Capabilities_ListByLocation REST API 或以下命令之一:

az sql db list-editions -l <location> -o table
Get-AzSqlServerServiceObjective -Location <location>
名称 类型 说明
Basic

string

Business

string

BusinessCritical

string

DataWarehouse

string

Free

string

GeneralPurpose

string

Hyperscale

string

Premium

string

PremiumRS

string

Standard

string

Stretch

string

System

string

System2

string

Web

string

DatabaseListResult

表示对列表数据库请求的响应。

名称 类型 说明
value

Database[]

服务器中存储的数据库列表。

OperationImpact

执行建议的索引操作的估计影响。

名称 类型 说明
changeValueAbsolute

number

对维度的绝对影响。

changeValueRelative

number

如果不适用,对维度的相对影响 (null)

name

string

影响维度的名称。

unit

string

度量维度的估计影响单位。

ReadScale

条件。 如果数据库是异地辅助数据库,readScale 指示是否允许到此数据库的只读连接。 DataWarehouse 版本不支持。

名称 类型 说明
Disabled

string

Enabled

string

RecommendedIndex

此数据库的建议索引。

名称 类型 说明
id

string

资源 ID。

name

string

资源名称。

properties.action

RecommendedIndexAction

建议的索引操作。 可以创建缺失的索引、删除未使用的索引或重新生成现有索引以提高其性能。

properties.columns

string[]

要基于其生成索引的列

properties.created

string

显示此资源的创建时间的 UTC 日期时间 (ISO8601 格式) 。

properties.estimatedImpact

OperationImpact[]

执行建议的索引操作的估计影响。

properties.includedColumns

string[]

要包含在索引中的列名列表

properties.indexScript

string

完整的生成索引脚本

properties.indexType

RecommendedIndexType

索引的类型 (CLUSTERED、NONCLUSTERED、COLUMNSTORE、CLUSTERED COLUMNSTORE)

properties.lastModified

string

此资源上次更改的 UTC 日期时间 (ISO8601 格式) 。

properties.reportedImpact

OperationImpact[]

索引操作完成后报告的值。

properties.schema

string

要在其上生成索引的表所在的架构

properties.state

RecommendedIndexState

当前建议状态。

properties.table

string

要基于其生成索引的表。

type

string

资源类型。

RecommendedIndexAction

建议的索引操作。 可以创建缺失的索引、删除未使用的索引或重新生成现有索引以提高其性能。

名称 类型 说明
Create

string

Drop

string

Rebuild

string

RecommendedIndexState

当前建议状态。

名称 类型 说明
Active

string

Blocked

string

Executing

string

Expired

string

Ignored

string

Pending

string

Pending Revert

string

Reverted

string

Reverting

string

Success

string

Verifying

string

RecommendedIndexType

索引的类型 (CLUSTERED、NONCLUSTERED、COLUMNSTORE、CLUSTERED COLUMNSTORE)

名称 类型 说明
CLUSTERED

string

CLUSTERED COLUMNSTORE

string

COLUMNSTORE

string

NONCLUSTERED

string

SampleName

指示创建此数据库时要应用的示例架构的名称。 如果 createMode 不是 Default,则忽略此值。 DataWarehouse 版本不支持。

名称 类型 说明
AdventureWorksLT

string

ServiceObjectiveName

数据库的已配置服务级别目标的名称。 这是正在应用于数据库的服务级别目标。 成功更新后,它将匹配 serviceLevelObjective 属性的值。

SKU 列表可能因地区和支持产品/服务而异。 若要确定 SKU (包括 AZURE 区域中订阅可用的 SKU 名称、层/版本、系列和容量) ,请使用 Capabilities_ListByLocation REST API 或以下命令之一:

az sql db list-editions -l <location> -o table
Get-AzSqlServerServiceObjective -Location <location>
名称 类型 说明
Basic

string

DS100

string

DS1000

string

DS1200

string

DS1500

string

DS200

string

DS2000

string

DS300

string

DS400

string

DS500

string

DS600

string

DW100

string

DW1000

string

DW10000c

string

DW1000c

string

DW1200

string

DW1500

string

DW15000c

string

DW1500c

string

DW200

string

DW2000

string

DW2000c

string

DW2500c

string

DW300

string

DW3000

string

DW30000c

string

DW3000c

string

DW400

string

DW500

string

DW5000c

string

DW600

string

DW6000

string

DW6000c

string

DW7500c

string

ElasticPool

string

Free

string

P1

string

P11

string

P15

string

P2

string

P3

string

P4

string

P6

string

PRS1

string

PRS2

string

PRS4

string

PRS6

string

S0

string

S1

string

S12

string

S2

string

S3

string

S4

string

S6

string

S7

string

S9

string

System

string

System0

string

System1

string

System2

string

System2L

string

System3

string

System3L

string

System4

string

System4L

string

ServiceTierAdvisor

此数据库的服务层顾问列表。 展开的属性

名称 类型 说明
id

string

资源 ID。

name

string

资源名称。

properties.activeTimeRatio

number

服务层顾问的 activeTimeRatio。

properties.avgDtu

number

获取或设置服务层顾问的 avgDtu。

properties.confidence

number

获取或设置服务层顾问的置信度。

properties.currentServiceLevelObjective

string

获取或设置服务层顾问的 currentServiceLevelObjective。

properties.currentServiceLevelObjectiveId

string

获取或设置服务层顾问的 currentServiceLevelObjectiveId。

properties.databaseSizeBasedRecommendationServiceLevelObjective

string

获取或设置服务层顾问的 databaseSizeBasedRecommendationServiceLevelObjective。

properties.databaseSizeBasedRecommendationServiceLevelObjectiveId

string

获取或设置服务层顾问的 databaseSizeBasedRecommendationServiceLevelObjectiveId。

properties.disasterPlanBasedRecommendationServiceLevelObjective

string

获取或设置服务层顾问的 disasterPlanBasedRecommendationServiceLevelObjective。

properties.disasterPlanBasedRecommendationServiceLevelObjectiveId

string

获取或设置服务层顾问的 disasterPlanBasedRecommendationServiceLevelObjectiveId。

properties.maxDtu

number

获取或设置服务层顾问的 maxDtu。

properties.maxSizeInGB

number

获取或设置服务层顾问的 maxSizeInGB。

properties.minDtu

number

获取或设置服务层顾问的 minDtu。

properties.observationPeriodEnd

string

观察期开始 (ISO8601 格式) 。

properties.observationPeriodStart

string

观察期开始 (ISO8601 格式) 。

properties.overallRecommendationServiceLevelObjective

string

获取或设置服务层顾问的 overallRecommendationServiceLevelObjective。

properties.overallRecommendationServiceLevelObjectiveId

string

获取或设置服务层顾问的 overallRecommendationServiceLevelObjectiveId。

properties.serviceLevelObjectiveUsageMetrics

SloUsageMetric[]

获取或设置服务层顾问的 serviceLevelObjectiveUsageMetrics。

properties.usageBasedRecommendationServiceLevelObjective

string

获取或设置服务层顾问的 usageBasedRecommendationServiceLevelObjective。

properties.usageBasedRecommendationServiceLevelObjectiveId

string

获取或设置服务层顾问的 usageBasedRecommendationServiceLevelObjectiveId。

type

string

资源类型。

SloUsageMetric

获取或设置服务层顾问的 serviceLevelObjectiveUsageMetrics。

名称 类型 说明
inRangeTimeRatio

number

获取或设置 SLO 使用情况指标的 InRangeTimeRatio。

serviceLevelObjective

ServiceObjectiveName

serviceLevelObjective for SLO 使用情况指标。

serviceLevelObjectiveId

string

SLO 使用情况指标的 serviceLevelObjectiveId。

TransparentDataEncryption

此数据库的透明数据加密信息。

名称 类型 说明
id

string

资源 ID。

location

string

资源位置。

name

string

资源名称。

properties.status

TransparentDataEncryptionStatus

数据库透明数据加密的状态。

type

string

资源类型。

TransparentDataEncryptionStatus

数据库透明数据加密的状态。

名称 类型 说明
Disabled

string

Enabled

string