MockableCostManagementArmClient.GetOperationResultsAsync 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.
Get the result of the specified operation. This link is provided in the CostDetails creation request response Location header.
- Request Path. : /{scope}/providers/Microsoft.CostManagement/costDetailsOperationResults/{operationId}.
- Operation Id. : GenerateCostDetailsReport_GetOperationResults.
- Default Api Version. : 2025-03-01.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.CostDetailsOperationResults>> GetOperationResultsAsync(Azure.WaitUntil waitUntil, Azure.Core.ResourceIdentifier scope, string operationId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetOperationResultsAsync : Azure.WaitUntil * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.CostDetailsOperationResults>>
override this.GetOperationResultsAsync : Azure.WaitUntil * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.CostDetailsOperationResults>>
Public Overridable Function GetOperationResultsAsync (waitUntil As WaitUntil, scope As ResourceIdentifier, operationId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of CostDetailsOperationResults))
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- scope
- ResourceIdentifier
The scope that the resource will apply against.
- operationId
- String
The target operation Id.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
scope or operationId is null.
operationId is an empty string, and was expected to be non-empty.