File tree Expand file tree Collapse file tree 2 files changed +100
-0
lines changed
specification/sql/resource-manager/Microsoft.Sql/2014-04-01 Expand file tree Collapse file tree 2 files changed +100
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "parameters" :{
3
+ "subscriptionId" :" 00000000-1111-2222-3333-444444444444" ,
4
+ "resourceGroupName" :" group1" ,
5
+ "serverName" :" sqlcrudtest" ,
6
+ "databaseName" :" db1" ,
7
+ "queryId" :" 19" ,
8
+ "api-version" :" 2014-04-01"
9
+ },
10
+ "responses" :{
11
+ "200" :{
12
+ "value" :[
13
+ {
14
+ "name" :" current" ,
15
+ "queryText" :" select 1" ,
16
+ "type" :" Microsoft.Sql/servers/databases/topQueries/queryText"
17
+ }
18
+ ]
19
+ }
20
+ }
21
+ }
Original file line number Diff line number Diff line change 102
102
"nextLinkName" : null
103
103
}
104
104
}
105
+ },
106
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/topQueries/{queryId}/queryText" : {
107
+ "get" : {
108
+ "tags" : [
109
+ " Queries"
110
+ ],
111
+ "operationId" : " QueryTexts_ListByQuery" ,
112
+ "description" : " Gets a query's text." ,
113
+ "x-ms-examples" :{
114
+ "Get a query" : { "$ref" : " ./examples/QueryTextsList.json" }
115
+ },
116
+ "parameters" : [
117
+ {
118
+ "$ref" : " #/parameters/ApiVersionParameter"
119
+ },
120
+ {
121
+ "$ref" : " #/parameters/SubscriptionIdParameter"
122
+ },
123
+ {
124
+ "$ref" : " #/parameters/ResourceGroupParameter"
125
+ },
126
+ {
127
+ "$ref" : " #/parameters/ServerNameParameter"
128
+ },
129
+ {
130
+ "$ref" : " #/parameters/DatabaseNameParameter"
131
+ },
132
+ {
133
+ "name" : " queryId" ,
134
+ "type" : " string" ,
135
+ "description" : " The id of the query" ,
136
+ "required" : true ,
137
+ "in" : " path"
138
+ }
139
+ ],
140
+ "responses" : {
141
+ "200" : {
142
+ "description" : " OK" ,
143
+ "schema" : {
144
+ "$ref" : " #/definitions/QueryTextListResult"
145
+ }
146
+ }
147
+ },
148
+ "x-ms-pageable" : {
149
+ "nextLinkName" : null
150
+ }
151
+ }
105
152
}
106
153
},
107
154
"definitions" : {
291
338
},
292
339
"required" : [" value" ],
293
340
"description" : " Represents the response to a get query request."
341
+ },
342
+ "QueryText" : {
343
+ "properties" : {
344
+ "name" : {
345
+ "readOnly" :true ,
346
+ "type" :" string" ,
347
+ "description" :" Resource name."
348
+ },
349
+ "type" : {
350
+ "readOnly" :true ,
351
+ "type" :" string" ,
352
+ "description" :" Resource type."
353
+ },
354
+ "queryText" : {
355
+ "readOnly" :true ,
356
+ "type" :" string" ,
357
+ "description" :" Query text."
358
+ }
359
+ }
360
+ },
361
+ "QueryTextListResult" : {
362
+ "properties" : {
363
+ "value" : {
364
+ "type" : " array" ,
365
+ "items" : {
366
+ "$ref" : " #/definitions/QueryText"
367
+ },
368
+ "description" : " The query text."
369
+ }
370
+ },
371
+ "required" : [" value" ],
372
+ "description" : " Represents the response to a get query text request."
294
373
}
295
374
},
296
375
"parameters" : {
You can’t perform that action at this time.
0 commit comments