MockableCostManagementArmClient.GetOperationResults Method

Definition

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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.CostDetailsOperationResults> GetOperationResults(Azure.WaitUntil waitUntil, Azure.Core.ResourceIdentifier scope, string operationId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetOperationResults : Azure.WaitUntil * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.CostDetailsOperationResults>
override this.GetOperationResults : Azure.WaitUntil * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.CostDetailsOperationResults>
Public Overridable Function GetOperationResults (waitUntil As WaitUntil, scope As ResourceIdentifier, operationId As String, Optional cancellationToken As CancellationToken = Nothing) As 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.

Applies to