|
34 | 34 | } |
35 | 35 | }, |
36 | 36 | "paths": { |
| 37 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/services": { |
| 38 | + "get": { |
| 39 | + "x-ms-examples": { |
| 40 | + "CosmosDBServicesList": { |
| 41 | + "$ref": "./examples/CosmosDBServicesList.json" |
| 42 | + } |
| 43 | + }, |
| 44 | + "operationId": "Service_List", |
| 45 | + "description": "Gets the status of service.", |
| 46 | + "parameters": [ |
| 47 | + { |
| 48 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" |
| 49 | + }, |
| 50 | + { |
| 51 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" |
| 52 | + }, |
| 53 | + { |
| 54 | + "$ref": "#/parameters/accountNameParameter" |
| 55 | + }, |
| 56 | + { |
| 57 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" |
| 58 | + } |
| 59 | + ], |
| 60 | + "responses": { |
| 61 | + "200": { |
| 62 | + "description": "The ServiceResource.", |
| 63 | + "schema": { |
| 64 | + "$ref": "#/definitions/ServiceResourceListResult" |
| 65 | + } |
| 66 | + }, |
| 67 | + "default": { |
| 68 | + "description": "Error response describing why the operation failed.", |
| 69 | + "schema": { |
| 70 | + "$ref": ".../../cosmos-db.json#/definitions/CloudError" |
| 71 | + } |
| 72 | + } |
| 73 | + }, |
| 74 | + "x-ms-pageable": { |
| 75 | + "nextLinkName": null |
| 76 | + } |
| 77 | + } |
| 78 | + }, |
37 | 79 | "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/services/{serviceName}": { |
38 | 80 | "put": { |
39 | 81 | "tags": [ |
|
86 | 128 | }, |
87 | 129 | "202": { |
88 | 130 | "description": "The job will complete asynchronously." |
| 131 | + }, |
| 132 | + "default": { |
| 133 | + "description": "Error response describing why the operation failed.", |
| 134 | + "schema": { |
| 135 | + "$ref": ".../../cosmos-db.json#/definitions/CloudError" |
| 136 | + } |
89 | 137 | } |
90 | 138 | } |
91 | 139 | }, |
|
127 | 175 | "schema": { |
128 | 176 | "$ref": "#/definitions/ServiceResource" |
129 | 177 | } |
| 178 | + }, |
| 179 | + "default": { |
| 180 | + "description": "Error response describing why the operation failed.", |
| 181 | + "schema": { |
| 182 | + "$ref": ".../../cosmos-db.json#/definitions/CloudError" |
| 183 | + } |
130 | 184 | } |
131 | 185 | } |
132 | 186 | }, |
|
172 | 226 | }, |
173 | 227 | "200": { |
174 | 228 | "description": "The response for service deletion." |
| 229 | + }, |
| 230 | + "default": { |
| 231 | + "description": "Error response describing why the operation failed.", |
| 232 | + "schema": { |
| 233 | + "$ref": ".../../cosmos-db.json#/definitions/CloudError" |
| 234 | + } |
175 | 235 | } |
176 | 236 | } |
177 | 237 | } |
|
203 | 263 | }, |
204 | 264 | "instanceCount": { |
205 | 265 | "description": "Instance count for the service.", |
206 | | - "type": "integer" |
| 266 | + "type": "integer", |
| 267 | + "minimum": 1, |
| 268 | + "format": "int32" |
207 | 269 | }, |
208 | 270 | "serviceType": { |
209 | 271 | "$ref": "#/definitions/ServiceType" |
|
230 | 292 | }, |
231 | 293 | "instanceCount": { |
232 | 294 | "description": "Instance count for the service.", |
233 | | - "type": "integer" |
| 295 | + "type": "integer", |
| 296 | + "minimum": 0, |
| 297 | + "format": "int32" |
234 | 298 | }, |
235 | 299 | "serviceType": { |
236 | 300 | "$ref": "#/definitions/ServiceType" |
|
262 | 326 | } |
263 | 327 | } |
264 | 328 | }, |
| 329 | + "ServiceResourceListResult": { |
| 330 | + "properties": { |
| 331 | + "value": { |
| 332 | + "readOnly": true, |
| 333 | + "type": "array", |
| 334 | + "items": { |
| 335 | + "$ref": "#/definitions/ServiceResource" |
| 336 | + }, |
| 337 | + "description": "List of SQL databases and their properties." |
| 338 | + } |
| 339 | + }, |
| 340 | + "description": "The List operation response, that contains the SQL databases and their properties." |
| 341 | + }, |
265 | 342 | "DataTransferServiceResource": { |
266 | 343 | "description": "Describes the service response property.", |
267 | 344 | "type": "object", |
|
0 commit comments