MaintenanceExtensions.AcknowledgeScheduledEventAsync Method

Definition

Post Scheduled Event Acknowledgement

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Compute/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/scheduledevents/{scheduledEventId}/acknowledge
  • Operation Id: ScheduledEvent_Acknowledge
  • Default Api Version: 2023-10-01-preview
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maintenance.Models.ScheduledEventApproveResult>> AcknowledgeScheduledEventAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string resourceType, string resourceName, string scheduledEventId, System.Threading.CancellationToken cancellationToken = default);
static member AcknowledgeScheduledEventAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maintenance.Models.ScheduledEventApproveResult>>
<Extension()>
Public Function AcknowledgeScheduledEventAsync (resourceGroupResource As ResourceGroupResource, resourceType As String, resourceName As String, scheduledEventId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ScheduledEventApproveResult))

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

resourceType
String

Resource type.

resourceName
String

Resource Name.

scheduledEventId
String

Scheduled Event Id. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceType, resourceName or scheduledEventId is an empty string, and was expected to be non-empty.

resourceGroupResource, resourceType, resourceName or scheduledEventId is null.

Applies to