次の方法で共有


Workload Groups - List By Database

ワークロード グループの一覧を取得します

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups?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 のバージョン。

応答

名前 説明
200 OK

WorkloadGroupListResult

ワークロード グループの一覧が正常に取得されました。

Other Status Codes

エラー応答: ***

  • 400 OperationNotAllowedOnPausedDatabase - 一時停止しているデータベースでは操作を許可しません。

  • 400 FeatureDisabledOnSelectedEdition - ユーザーは、現在のデータベース エディションで無効になっている機能を使用しようとしました。

  • 404 SubscriptionDoesNotHaveServer - 要求されたサーバーが見つかりませんでした

  • 404 ServerNotInSubscriptionResourceGroup - 指定されたサーバーが、指定されたリソース グループとサブスクリプションに存在しません。

  • 404 DatabaseDoesNotExist - ユーザーがこのサーバー インスタンスに存在しないデータベース名を指定しました。

  • 404 ResourceNotFound - 要求されたリソースが見つかりませんでした。

  • 409 ConflictingDatabaseOperation - データベースには既にいくつかの操作があり、現在の操作は完了するまで待機する必要があります。

  • 409 ConflictingSystemOperationInProgress - データベースでシステム メンテナンス操作が進行中であり、それ以上の操作が完了するまで待機する必要があります。

  • 503 TooManyRequests - 使用可能なリソースで処理できる最大要求を超える要求。

  • 503 DatabaseUnavailable - データベースが使用できないため、操作に失敗しました。

  • 504 RequestTimeout - サービス要求が許可されたタイムアウトを超えました。

Get the list of workload groups for a data warehouse

要求のサンプル

GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb/workloadGroups?api-version=2021-11-01

応答のサンプル

{
  "value": [
    {
      "properties": {
        "minResourcePercent": 0,
        "maxResourcePercent": 100,
        "minResourcePercentPerRequest": 5,
        "maxResourcePercentPerRequest": 5,
        "importance": "normal",
        "queryExecutionTimeout": 0
      },
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb/workloadGroups/smallrc",
      "name": "smallrc",
      "type": "Microsoft.Sql/servers/databases/workloadGroups"
    },
    {
      "properties": {
        "minResourcePercent": 0,
        "maxResourcePercent": 100,
        "minResourcePercentPerRequest": 10,
        "maxResourcePercentPerRequest": 10,
        "importance": "normal",
        "queryExecutionTimeout": 0
      },
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb/workloadGroups/mediumrc",
      "name": "mediumrc",
      "type": "Microsoft.Sql/servers/databases/workloadGroups"
    },
    {
      "properties": {
        "minResourcePercent": 0,
        "maxResourcePercent": 100,
        "minResourcePercentPerRequest": 20,
        "maxResourcePercentPerRequest": 20,
        "importance": "high",
        "queryExecutionTimeout": 0
      },
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb/workloadGroups/largerc",
      "name": "largerc",
      "type": "Microsoft.Sql/servers/databases/workloadGroups"
    }
  ]
}

定義

名前 説明
WorkloadGroup

データ ウェアハウスのワークロード グループ操作

WorkloadGroupListResult

ワークロード グループの一覧。

WorkloadGroup

データ ウェアハウスのワークロード グループ操作

名前 説明
id

string

リソースの ID

name

string

リソース名。

properties.importance

string

ワークロード グループの重要度レベル。

properties.maxResourcePercent

integer

ワークロード グループの上限の割合リソース。

properties.maxResourcePercentPerRequest

number

ワークロード グループ要求の最大付与割合。

properties.minResourcePercent

integer

ワークロード グループの最小割合リソース。

properties.minResourcePercentPerRequest

number

ワークロード グループ要求の最小付与割合。

properties.queryExecutionTimeout

integer

ワークロード グループクエリの実行タイムアウト。

type

string

リソースの種類。

WorkloadGroupListResult

ワークロード グループの一覧。

名前 説明
nextLink

string

結果の次のページを取得するためのリンク。

value

WorkloadGroup[]

結果の配列。