KnowledgeBases.GetOperationStatus Method

Definition

Overloads

Name Description
GetOperationStatus(String, String, RequestContext)

[Protocol Method] Get the status of a long-running operation.

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

Get the status of a long-running operation.

GetOperationStatus(String, String, RequestContext)

Source:
KnowledgeBases.cs

[Protocol Method] Get the status of a long-running operation.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Response GetOperationStatus(string knowledgeBaseName, string operationId, Azure.RequestContext context);
abstract member GetOperationStatus : string * string * Azure.RequestContext -> Azure.Response
override this.GetOperationStatus : string * string * Azure.RequestContext -> Azure.Response
Public Overridable Function GetOperationStatus (knowledgeBaseName As String, operationId As String, context As RequestContext) As Response

Parameters

knowledgeBaseName
String

The knowledgeBase name.

operationId
String

The unique ID of the operation.

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

knowledgeBaseName or operationId is null.

knowledgeBaseName or operationId is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

GetOperationStatus(String, String, CancellationToken)

Source:
KnowledgeBases.cs

Get the status of a long-running operation.

public virtual Azure.Response<Azure.AI.Discovery.KnowledgeBaseOperationResponse> GetOperationStatus(string knowledgeBaseName, string operationId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetOperationStatus : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Discovery.KnowledgeBaseOperationResponse>
override this.GetOperationStatus : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Discovery.KnowledgeBaseOperationResponse>
Public Overridable Function GetOperationStatus (knowledgeBaseName As String, operationId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of KnowledgeBaseOperationResponse)

Parameters

knowledgeBaseName
String

The knowledgeBase name.

operationId
String

The unique ID of the operation.

cancellationToken
CancellationToken

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

Returns

Exceptions

knowledgeBaseName or operationId is null.

knowledgeBaseName or operationId is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to