From f3a5ad9f80f867d1c546c101310d36a8df863b5b Mon Sep 17 00:00:00 2001 From: Xiaowen Yu <30643715+ms-xiaoy@users.noreply.github.com> Date: Wed, 27 Feb 2019 03:55:01 +0800 Subject: [PATCH] [WaitForARMFeedback] Add api get_services_by_subscription of Azure Search (#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 --- .../SearchListServicesBySubscription.json | 54 +++++++++++++++++++ .../stable/2015-08-19/search.json | 43 +++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 specification/search/resource-manager/Microsoft.Search/stable/2015-08-19/examples/SearchListServicesBySubscription.json diff --git a/specification/search/resource-manager/Microsoft.Search/stable/2015-08-19/examples/SearchListServicesBySubscription.json b/specification/search/resource-manager/Microsoft.Search/stable/2015-08-19/examples/SearchListServicesBySubscription.json new file mode 100644 index 000000000000..8dd1f262bfbe --- /dev/null +++ b/specification/search/resource-manager/Microsoft.Search/stable/2015-08-19/examples/SearchListServicesBySubscription.json @@ -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" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/search/resource-manager/Microsoft.Search/stable/2015-08-19/search.json b/specification/search/resource-manager/Microsoft.Search/stable/2015-08-19/search.json index 33549bd4f2b7..46922b618ba6 100644 --- a/specification/search/resource-manager/Microsoft.Search/stable/2015-08-19/search.json +++ b/specification/search/resource-manager/Microsoft.Search/stable/2015-08-19/search.json @@ -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": [