IRecommendationsOperations.GetGenerateStatusWithHttpMessagesAsync Method

Definition

Retrieves the status of the recommendation computation or generation process. Invoke this API after calling the generation recommendation. The URI of this API is returned in the Location field of the response header.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> GetGenerateStatusWithHttpMessagesAsync (Guid operationId, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetGenerateStatusWithHttpMessagesAsync : Guid * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse>
Public Function GetGenerateStatusWithHttpMessagesAsync (operationId As Guid, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse)

Parameters

operationId
Guid

The operation ID, which can be found from the Location field in the generate recommendation response header.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when a required parameter is null

Applies to