MockableAdvisorSubscriptionResource.GetGenerateStatusRecommendationAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Advisor/generateRecommendations/{operationId}
- Operation Id: Recommendations_GetGenerateStatus
public virtual System.Threading.Tasks.Task<Azure.Response> GetGenerateStatusRecommendationAsync (Guid operationId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetGenerateStatusRecommendationAsync : Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.GetGenerateStatusRecommendationAsync : Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetGenerateStatusRecommendationAsync (operationId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)
Parameters
- operationId
- Guid
The operation ID, which can be found from the Location field in the generate recommendation response header.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Applies to
Azure SDK for .NET