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

Service Objectives - Get

获取数据库服务目标。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/serviceObjectives/{serviceObjectiveName}?api-version=2014-04-01

URI 参数

名称 在 必需 类型 说明
resourceGroupName
path True

string

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

serverName
path True

string

服务器的名称。

serviceObjectiveName
path True

string

要检索的服务目标的名称。

subscriptionId
path True

string

标识 Azure 订阅的订阅 ID。

api-version
query True

string

要用于请求的 API 版本。

响应

名称 类型 说明
200 OK

ServiceObjective

还行

示例

Get a service objective

示例请求

GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/29dd7459-4a7c-4e56-be22-f0adda49440d?api-version=2014-04-01

示例响应

{
  "id": "/subscriptions/b6a6e0c5-e79c-4c6d-a878-72eafbca4cf2/resourceGroups/QA/providers/Microsoft.Sql/servers/nafantest/serviceObjectives/29dd7459-4a7c-4e56-be22-f0adda49440d",
  "name": "29dd7459-4a7c-4e56-be22-f0adda49440d",
  "type": "Microsoft.Sql/servers/serviceObjectives",
  "location": "Central US",
  "properties": {
    "serviceObjectiveName": "System0",
    "isDefault": false,
    "isSystem": true,
    "description": null,
    "enabled": false
  }
}

定义

ServiceObjective

表示数据库服务目标。

名称 类型 说明
id

string

资源 ID。

name

string

资源名称。

properties.description

string

服务级别目标的说明。

properties.enabled

boolean

获取是否启用服务级别目标。

properties.isDefault

boolean

获取服务级别目标是否为默认服务目标。

properties.isSystem

boolean

获取服务级别目标是否为系统服务目标。

properties.serviceObjectiveName

string

服务目标的名称。

type

string

资源类型。