共用方式為


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: 2020-10-01
  • Resource: RoleAssignmentScheduleRequestResource
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

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