RoleAssignmentScheduleRequestCollection.CreateOrUpdate Method

Definition

Creates a role assignment schedule request.

  • Request Path. : /{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}.
  • Operation Id. : RoleAssignmentScheduleRequests_Create.
  • Default Api Version. : 2024-09-01-preview.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Authorization.RoleAssignmentScheduleRequestResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string roleAssignmentScheduleRequestName, Azure.ResourceManager.Authorization.RoleAssignmentScheduleRequestData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Authorization.RoleAssignmentScheduleRequestData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Authorization.RoleAssignmentScheduleRequestResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Authorization.RoleAssignmentScheduleRequestData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Authorization.RoleAssignmentScheduleRequestResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, roleAssignmentScheduleRequestName As String, data As RoleAssignmentScheduleRequestData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of RoleAssignmentScheduleRequestResource)

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.

roleAssignmentScheduleRequestName
String

The name (guid) of the role assignment schedule request to get.

data
RoleAssignmentScheduleRequestData

Parameters for the role assignment schedule request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

roleAssignmentScheduleRequestName or data is null.

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

Applies to