ISearchServices.GetAdminKeysAsync(String, String, CancellationToken) Method

Definition

Gets the primary and secondary admin API keys for the specified Azure Search service.

public System.Threading.Tasks.Task<Microsoft.Azure.Management.Search.Fluent.IAdminKeys> GetAdminKeysAsync (string resourceGroupName, string searchServiceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAdminKeysAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Search.Fluent.IAdminKeys>
Public Function GetAdminKeysAsync (resourceGroupName As String, searchServiceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IAdminKeys)

Parameters

resourceGroupName
String

The name of the resource group within the current subscription; you can obtain this value from the Azure Resource Manager API or the portal.

searchServiceName
String

The name of the Azure Search service associated with the specified resource group.

cancellationToken
CancellationToken

Returns

Applies to