QueryKeysClient Interface

public interface QueryKeysClient

An instance of this class provides access to all the operations defined in QueryKeysClient.

Method Summary

Modifier and Type Method and Description
abstract QueryKeyInner create(String resourceGroupName, String searchServiceName, String name)

Generates a new query key for the specified search service.

abstract reactor.core.publisher.Mono<QueryKeyInner> createAsync(String resourceGroupName, String searchServiceName, String name)

Generates a new query key for the specified search service.

abstract Response<QueryKeyInner> createWithResponse(String resourceGroupName, String searchServiceName, String name, Context context)

Generates a new query key for the specified search service.

abstract reactor.core.publisher.Mono<Response<QueryKeyInner>> createWithResponseAsync(String resourceGroupName, String searchServiceName, String name)

Generates a new query key for the specified search service.

abstract void delete(String resourceGroupName, String searchServiceName, String key)

Deletes the specified query key.

abstract reactor.core.publisher.Mono<Void> deleteAsync(String resourceGroupName, String searchServiceName, String key)

Deletes the specified query key.

abstract Response<Void> deleteWithResponse(String resourceGroupName, String searchServiceName, String key, Context context)

Deletes the specified query key.

abstract reactor.core.publisher.Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String searchServiceName, String key)

Deletes the specified query key.

abstract PagedIterable<QueryKeyInner> listBySearchService(String resourceGroupName, String searchServiceName)

Returns the list of query API keys for the given Azure AI Search service.

abstract PagedIterable<QueryKeyInner> listBySearchService(String resourceGroupName, String searchServiceName, Context context)

Returns the list of query API keys for the given Azure AI Search service.

abstract PagedFlux<QueryKeyInner> listBySearchServiceAsync(String resourceGroupName, String searchServiceName)

Returns the list of query API keys for the given Azure AI Search service.

Method Details

create

public abstract QueryKeyInner create(String resourceGroupName, String searchServiceName, String name)

Generates a new query key for the specified search service. You can create up to 50 query keys per service.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
searchServiceName - The name of the Azure AI Search service associated with the specified resource group.
name - The name of the new query API key.

Returns:

describes an API key for a given Azure AI Search service that conveys read-only permissions on the docs collection of an index.

createAsync

public abstract Mono<QueryKeyInner> createAsync(String resourceGroupName, String searchServiceName, String name)

Generates a new query key for the specified search service. You can create up to 50 query keys per service.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
searchServiceName - The name of the Azure AI Search service associated with the specified resource group.
name - The name of the new query API key.

Returns:

describes an API key for a given Azure AI Search service that conveys read-only permissions on the docs collection of an index on successful completion of Mono.

createWithResponse

public abstract Response<QueryKeyInner> createWithResponse(String resourceGroupName, String searchServiceName, String name, Context context)

Generates a new query key for the specified search service. You can create up to 50 query keys per service.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
searchServiceName - The name of the Azure AI Search service associated with the specified resource group.
name - The name of the new query API key.
context - The context to associate with this operation.

Returns:

describes an API key for a given Azure AI Search service that conveys read-only permissions on the docs collection of an index along with Response<T>.

createWithResponseAsync

public abstract Mono<Response<QueryKeyInner>> createWithResponseAsync(String resourceGroupName, String searchServiceName, String name)

Generates a new query key for the specified search service. You can create up to 50 query keys per service.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
searchServiceName - The name of the Azure AI Search service associated with the specified resource group.
name - The name of the new query API key.

Returns:

describes an API key for a given Azure AI Search service that conveys read-only permissions on the docs collection of an index along with Response<T> on successful completion of Mono.

delete

public abstract void delete(String resourceGroupName, String searchServiceName, String key)

Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. Returns 200 (OK) on successful deletion, 204 (No Content) if the service exists but the query keys not found, or 404 (Not Found) if the service is not found. NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in future versions and avoid new dependencies on the 404 response.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
searchServiceName - The name of the Azure AI Search service associated with the specified resource group.
key - The query key to be deleted. Query keys are identified by value, not by name.

deleteAsync

public abstract Mono<Void> deleteAsync(String resourceGroupName, String searchServiceName, String key)

Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. Returns 200 (OK) on successful deletion, 204 (No Content) if the service exists but the query keys not found, or 404 (Not Found) if the service is not found. NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in future versions and avoid new dependencies on the 404 response.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
searchServiceName - The name of the Azure AI Search service associated with the specified resource group.
key - The query key to be deleted. Query keys are identified by value, not by name.

Returns:

A Mono that completes when a successful response is received.

deleteWithResponse

public abstract Response<Void> deleteWithResponse(String resourceGroupName, String searchServiceName, String key, Context context)

Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. Returns 200 (OK) on successful deletion, 204 (No Content) if the service exists but the query keys not found, or 404 (Not Found) if the service is not found. NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in future versions and avoid new dependencies on the 404 response.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
searchServiceName - The name of the Azure AI Search service associated with the specified resource group.
key - The query key to be deleted. Query keys are identified by value, not by name.
context - The context to associate with this operation.

Returns:

deleteWithResponseAsync

public abstract Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String searchServiceName, String key)

Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. Returns 200 (OK) on successful deletion, 204 (No Content) if the service exists but the query keys not found, or 404 (Not Found) if the service is not found. NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in future versions and avoid new dependencies on the 404 response.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
searchServiceName - The name of the Azure AI Search service associated with the specified resource group.
key - The query key to be deleted. Query keys are identified by value, not by name.

Returns:

the Response<T> on successful completion of Mono.

listBySearchService

public abstract PagedIterable<QueryKeyInner> listBySearchService(String resourceGroupName, String searchServiceName)

Returns the list of query API keys for the given Azure AI Search service.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
searchServiceName - The name of the Azure AI Search service associated with the specified resource group.

Returns:

response containing the query API keys for a given Azure AI Search service as paginated response with PagedIterable<T>.

listBySearchService

public abstract PagedIterable<QueryKeyInner> listBySearchService(String resourceGroupName, String searchServiceName, Context context)

Returns the list of query API keys for the given Azure AI Search service.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
searchServiceName - The name of the Azure AI Search service associated with the specified resource group.
context - The context to associate with this operation.

Returns:

response containing the query API keys for a given Azure AI Search service as paginated response with PagedIterable<T>.

listBySearchServiceAsync

public abstract PagedFlux<QueryKeyInner> listBySearchServiceAsync(String resourceGroupName, String searchServiceName)

Returns the list of query API keys for the given Azure AI Search service.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
searchServiceName - The name of the Azure AI Search service associated with the specified resource group.

Returns:

response containing the query API keys for a given Azure AI Search service as paginated response with PagedFlux<T>.

Applies to