Skip to content

Commit 939ab02

Browse files
committed
fixed some wording
1 parent 78c01d5 commit 939ab02

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/search/search-security-api-keys.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ In Cognitive Search, most tasks can be performed in Azure portal, including obje
5353

5454
### [**PowerShell**](#tab/azure-ps-use)
5555

56-
Set an admin key in the request header using the following syntax:
56+
Set API keys in the request header using the following syntax:
5757

5858
```azurepowershell
5959
$headers = @{
60-
'api-key' = '<YOUR-ADMIN-API-KEY>'
60+
'api-key' = '<YOUR-ADMIN-OR-QUERY-API-KEY>'
6161
'Content-Type' = 'application/json'
6262
'Accept' = 'application/json' }
6363
```
@@ -66,11 +66,11 @@ A script example showing API key usage for various operations can be found at [Q
6666

6767
### [**REST API**](#tab/rest-use)
6868

69-
Set an admin key in the request header using the syntax `api-key=<your-admin-api-key>`. Admin keys are used for most operations, including create, delete, and update. Admin keys are also used on requests issued to the search service itself, such as listing objects or requesting service statistics. see [Connect to Azure Cognitive Search using REST APIs](search-get-started-rest.md#connect-to-azure-cognitive-search) for a more detailed example.
69+
Set an admin key in the request header using the syntax `api-key` set to your key. Admin keys are used for most operations, including create, delete, and update. Admin keys are also used on requests issued to the search service itself, such as listing objects or requesting service statistics. see [Connect to Azure Cognitive Search using REST APIs](search-get-started-rest.md#connect-to-azure-cognitive-search) for a more detailed example.
7070

7171
:::image type="content" source="media/search-security-api-keys/rest-headers.png" alt-text="Screenshot of the Headers section of a request in Postman." border="true":::
7272

73-
Query keys are used for search, suggestion, or lookup operation that target the `index/docs` collection. For a query key, use the same syntax `api-key=<your-query-api-key>` on a POST request. Or, put the key on the URI if the request is a GET: `GET /indexes/hotels/docs?search=*&$orderby=lastRenovationDate desc&api-version=2020-06-30&api-key=[query key]`
73+
Query keys are used for search, suggestion, or lookup operations that target the `index/docs` collection. For a query key, use the same syntax `api-key=<your-query-api-key>` on a POST request. Or, put the key on the URI if the request is a GET: `GET /indexes/hotels/docs?search=*&$orderby=lastRenovationDate desc&api-version=2020-06-30&api-key=[query key]`
7474

7575
### [**C#**](#tab/dotnet-use)
7676

0 commit comments

Comments
 (0)