Language

ScopeAccessReviewScheduleDefinitionCollection.CreateOrUpdateAsync Method

Definition

Create or Update access review schedule definition.

  • Request Path. : /{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}.
  • Operation Id. : ScopeAccessReviewScheduleDefinitions_CreateOrUpdateById.
  • Default Api Version. : 2021-12-01-preview.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Authorization.ScopeAccessReviewScheduleDefinitionResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string scheduleDefinitionId, Azure.ResourceManager.Authorization.Models.AccessReviewScheduleDefinitionProperties properties, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Authorization.Models.AccessReviewScheduleDefinitionProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Authorization.ScopeAccessReviewScheduleDefinitionResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Authorization.Models.AccessReviewScheduleDefinitionProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Authorization.ScopeAccessReviewScheduleDefinitionResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, scheduleDefinitionId As String, properties As AccessReviewScheduleDefinitionProperties, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ScopeAccessReviewScheduleDefinitionResource))

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.

scheduleDefinitionId
String

The id of the access review schedule definition.

properties
AccessReviewScheduleDefinitionProperties

Access review schedule definition properties.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

scheduleDefinitionId or properties is null.

scheduleDefinitionId is an empty string, and was expected to be non-empty.

Applies to