Sdílet prostřednictvím


RoleAssignmentScheduleRequestCollection.CreateOrUpdateAsync Method

Definition

Creates a role assignment schedule request.

  • Request Path: /{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}
  • Operation Id: RoleAssignmentScheduleRequests_Create
  • Default Api Version: 2020-10-01
  • Resource: RoleAssignmentScheduleRequestResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Authorization.RoleAssignmentScheduleRequestResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string roleAssignmentScheduleRequestName, Azure.ResourceManager.Authorization.RoleAssignmentScheduleRequestData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Authorization.RoleAssignmentScheduleRequestData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Authorization.RoleAssignmentScheduleRequestResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Authorization.RoleAssignmentScheduleRequestData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Authorization.RoleAssignmentScheduleRequestResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, roleAssignmentScheduleRequestName As String, data As RoleAssignmentScheduleRequestData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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

A GUID for the role assignment to create. The name must be unique and different for each role assignment.

data
RoleAssignmentScheduleRequestData

Parameters for the role assignment schedule request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

roleAssignmentScheduleRequestName or data is null.

Applies to