ScheduledActionOccurrenceResource.CancelAsync 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.
Cancels the specified occurrence for the specified resource IDs.
- Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/scheduledActions/{scheduledActionName}/occurrences/{occurrenceId}/cancel.
- Operation Id. : Occurrences_Cancel.
- Default Api Version. : 2026-09-06-preview.
- Resource. : ScheduledActionOccurrenceResource.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.BulkActions.Models.ResourceOperationResponseResult>> CancelAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Compute.BulkActions.Models.CancelOccurrenceRequestContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CancelAsync : Azure.WaitUntil * Azure.ResourceManager.Compute.BulkActions.Models.CancelOccurrenceRequestContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.BulkActions.Models.ResourceOperationResponseResult>>
override this.CancelAsync : Azure.WaitUntil * Azure.ResourceManager.Compute.BulkActions.Models.CancelOccurrenceRequestContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.BulkActions.Models.ResourceOperationResponseResult>>
Public Overridable Function CancelAsync (waitUntil As WaitUntil, content As CancelOccurrenceRequestContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ResourceOperationResponseResult))
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.
- content
- CancelOccurrenceRequestContent
The resources to cancel in the occurrence. If no resource IDs are provided, the occurrence is canceled for all resources.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
content is null.