ScopeAccessReviewHistoryDefinitionCollection.CreateOrUpdateAsync Method

Definition

Create a scheduled or one-time Access Review History Definition

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

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.

historyDefinitionId
String

The id of the access review history definition.

properties
AccessReviewHistoryDefinitionProperties

Access review history definition properties.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

historyDefinitionId or properties is null.

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

Applies to