Get Index (Azure AI Search REST API)
The Get Index operation gets the index definition from Azure AI Search.
GET https://[service name].search.windows.net/indexes/[index name]?api-version=[api-version]
api-key: [admin key]
|Required. Set this to the unique, user-defined name of your search service.
|Required. The request URI specifies the name of the index to return.
|Required. The current stable version is
api-version=2020-06-30. See API versions for more versions.
The following table describes the required and optional request headers.
|Required. Set this to
|Optional if you're using Azure roles and a bearer token is provided on the request, otherwise a key is required. An api-key is a unique, system-generated string that authenticates the request to your search service. Get requests for an object definition must include an api-key field set to your admin key (as opposed to a query key). See Connect to Azure AI Search using key authentication for details.
Status Code: "200 OK" is returned for a successful response. See the example request JSON in Create Index (Azure AI Search REST API) for an example of the response payload. The Get Index response body and the Create Index response and response bodies are all of the same format.