Query Texts - List By Server
指定した queryId のQuery-Storeクエリ テキストを取得します。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/queryTexts?api-version=2018-06-01&queryIds={queryIds}
URI パラメーター
Name | In | Required | Type | Description |
---|---|---|---|---|
resource
|
path | True |
|
リソース グループの名前。 名前の大文字と小文字は区別されます。 |
server
|
path | True |
|
サーバーの名前。 |
subscription
|
path | True |
|
ターゲット サブスクリプションの ID。 |
api-version
|
query | True |
|
この操作に使用する API バージョン。 |
query
|
query | True |
|
クエリ識別子 |
応答
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
操作に失敗した理由を説明するエラー応答。 |
セキュリティ
azure_auth
OAuth2 FlowをAzure Active Directoryする
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | ユーザー アカウントを偽装する |
例
QueryTextsListByServer
Sample Request
GET https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testResourceGroupName/providers/Microsoft.DBforMySQL/servers/testServerName/queryTexts?api-version=2018-06-01&queryIds=1&queryIds=2
Sample Response
{
"value": [
{
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testResourceGroupName/providers/Microsoft.DBforMySQL/servers/testServerName/queryTexts/1",
"name": "1",
"type": "Microsoft.DBforMySQL/servers/queryTexts",
"properties": {
"queryId": "1",
"queryText": "UPDATE `performance_schema`.`setup_instruments` SET `ENABLED` = ? , `TIMED` = ? WHERE NAME = ?"
}
},
{
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testResourceGroupName/providers/Microsoft.DBforMySQL/servers/testServerName/queryTexts/2",
"name": "2",
"type": "Microsoft.DBforMySQL/servers/queryTexts",
"properties": {
"queryId": "2",
"queryText": "UPDATE `performance_schema`.`setup_instruments` SET `ENABLED` = ? , `TIMED` = ? WHERE NAME LIKE ?"
}
}
]
}
定義
Cloud |
Batch サービスからのエラー応答。 |
Error |
リソース管理エラーの追加情報。 |
Error |
エラー応答 |
Query |
クエリ テキストを表します。 |
Query |
クエリ テキストの一覧。 |
CloudError
Batch サービスからのエラー応答。
Name | Type | Description |
---|---|---|
error |
エラー応答 |
ErrorAdditionalInfo
リソース管理エラーの追加情報。
Name | Type | Description |
---|---|---|
info |
|
追加情報。 |
type |
|
追加情報の種類。 |
ErrorResponse
エラー応答
Name | Type | Description |
---|---|---|
additionalInfo |
エラーの追加情報。 |
|
code |
|
エラー コード。 |
details |
エラーの詳細です。 |
|
message |
|
エラー メッセージ。 |
target |
|
エラーターゲット。 |
QueryText
クエリ テキストを表します。
Name | Type | Description |
---|---|---|
id |
|
リソースの完全修飾リソース ID。 例 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
|
リソースの名前 |
properties.queryId |
|
サーバーに固有のクエリ識別子。 |
properties.queryText |
|
クエリ テキスト。 |
type |
|
リソースの型。 "Microsoft.Compute/virtualMachines" や "Microsoft" など。Storage/storageAccounts" |
QueryTextsResultList
クエリ テキストの一覧。
Name | Type | Description |
---|---|---|
nextLink |
|
リンクをクリックして、結果の次のページを取得します。 |
value |
クエリ テキストの一覧。 |