ScopeAccessReviewHistoryDefinitionCollection.CreateOrUpdate 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.
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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Authorization.ScopeAccessReviewHistoryDefinitionResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string historyDefinitionId, Azure.ResourceManager.Authorization.Models.AccessReviewHistoryDefinitionProperties properties, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Authorization.Models.AccessReviewHistoryDefinitionProperties * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Authorization.ScopeAccessReviewHistoryDefinitionResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Authorization.Models.AccessReviewHistoryDefinitionProperties * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Authorization.ScopeAccessReviewHistoryDefinitionResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, historyDefinitionId As String, properties As AccessReviewHistoryDefinitionProperties, Optional cancellationToken As CancellationToken = Nothing) As 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.