SearchIndexClient.GetAliasAsync Method

Definition

Overloads

Name Description
GetAliasAsync(String, RequestContext)

[Protocol Method] Retrieves an alias definition.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetAliasAsync(String, CancellationToken)

Retrieves an alias definition.

GetAliasAsync(String, RequestContext)

Source:
SearchIndexClient.cs

[Protocol Method] Retrieves an alias definition.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<Azure.Response> GetAliasAsync(string aliasName, Azure.RequestContext context);
abstract member GetAliasAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetAliasAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetAliasAsync (aliasName As String, context As RequestContext) As Task(Of Response)

Parameters

aliasName
String

The name of the alias.

context
RequestContext

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

aliasName is null.

aliasName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

GetAliasAsync(String, CancellationToken)

Source:
SearchIndexClient.cs
Source:
SearchIndexClient.Aliases.cs

Retrieves an alias definition.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchAlias>> GetAliasAsync(string aliasName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAliasAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchAlias>>
override this.GetAliasAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchAlias>>
Public Overridable Function GetAliasAsync (aliasName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SearchAlias))

Parameters

aliasName
String

The name of the alias.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

SearchAlias defined by aliasName.

Exceptions

aliasName is null.

aliasName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to