Skip to content

Commit

Permalink
[WaitForARMFeedback] Add api get_services_by_subscription of Azure Se…
Browse files Browse the repository at this point in the history
…arch (Azure#5123)

* add api get_services_by_subscription

Add path of API "get search services by subscription" (GET/SUBSCRIPTIONS/PROVIDERS/MICROSOFT.SEARCH/SEARCHSERVICES) in the spec of API version 2015-08-19 of Azure Search (Microsoft.Search). Along with a sample.

* Update search.json

Rename example reference name
  • Loading branch information
ms-xiaoy authored and sarangan12 committed Feb 26, 2019
1 parent 45509eb commit f3a5ad9
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"parameters": {
"api-version": "2015-08-19",
"subscriptionId": "subid"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice",
"name": "mysearchservice",
"location": "westus",
"type": "Microsoft.Search/searchServices",
"tags": {
"app-name": "My e-commerce app"
},
"sku": {
"name": "standard"
},
"properties":{
"replicaCount": 3,
"partitionCount": 1,
"status": "running",
"statusDetails": "",
"hostingMode": "default",
"provisioningState": "succeeded"
}
},
{
"id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Search/searchServices/mysearchservice2",
"name": "mysearchservice2",
"location": "eastus",
"type": "Microsoft.Search/searchServices",
"tags": {
"app-name": "My e-commerce app"
},
"sku": {
"name": "basic"
},
"properties":{
"replicaCount": 1,
"partitionCount": 1,
"status": "running",
"statusDetails": "",
"hostingMode": "default",
"provisioningState": "succeeded"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,49 @@
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Search/searchServices": {
"get": {
"tags": [
"Services"
],
"x-ms-pageable": {
"nextLinkName": null
},
"operationId": "Services_ListBySubscription",
"x-ms-examples": {
"SearchListServicesBySubscription": { "$ref": "./examples/SearchListServicesBySubscription.json" }
},
"description": "Gets a list of all Search services in the given subscription.",
"externalDocs": {
"url": "https://aka.ms/search-manage"
},
"parameters": [
{
"$ref": "#/parameters/ClientRequestIdParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "The operation succeeded. The response contains the list of all Search service definitions for the given subscription.",
"schema": {
"$ref": "#/definitions/SearchServiceListResult"
}
},
"default": {
"description": "An unexpected error occurred during the operation.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Search/checkNameAvailability": {
"post": {
"tags": [
Expand Down

0 comments on commit f3a5ad9

Please sign in to comment.