SecurityCenterLocationResource.GetOperationResultAsync 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.
Returns operation results for long running operations.
- Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{location}/operationResults/{operationId}.
- Operation Id. : OperationResultsOperationGroup_Get.
- Default Api Version. : 2025-10-01-preview.
- Resource. : SecurityCenterLocationResource.
public virtual System.Threading.Tasks.Task<Azure.Response> GetOperationResultAsync(string operationId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetOperationResultAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.GetOperationResultAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetOperationResultAsync (operationId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)
Parameters
- operationId
- String
The ID of an ongoing async operation.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
operationId is null.
operationId is an empty string, and was expected to be non-empty.