CostManagementExtensions.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. <item> Mocking. To mock this method, please mock GetOperationResultsAsync(WaitUntil, ResourceIdentifier, String, CancellationToken) instead. </item>
public static System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.CostDetailsOperationResults>> GetOperationResultsAsync(this Azure.ResourceManager.ArmClient client, Azure.WaitUntil waitUntil, Azure.Core.ResourceIdentifier scope, string operationId, System.Threading.CancellationToken cancellationToken = default);
static member GetOperationResultsAsync : Azure.ResourceManager.ArmClient * Azure.WaitUntil * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.CostDetailsOperationResults>>
<Extension()>
Public Function GetOperationResultsAsync (client As ArmClient, 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
client is null.