AuthorizationExtensions.GetRoleAssignmentScheduleRequestAsync Method

Definition

Overloads

Name Description
GetRoleAssignmentScheduleRequestAsync(ArmResource, String, CancellationToken)

Get the specified role assignment schedule request.

GetRoleAssignmentScheduleRequestAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

Get the specified role assignment schedule request. <item> Mocking. To mock this method, please mock GetRoleAssignmentScheduleRequestAsync(ResourceIdentifier, String, CancellationToken) instead. </item>

GetRoleAssignmentScheduleRequestAsync(ArmResource, String, CancellationToken)

Source:
AuthorizationExtensions.cs
Source:
AuthorizationExtensions.cs

Get the specified role assignment schedule request.

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.RoleAssignmentScheduleRequestResource>> GetRoleAssignmentScheduleRequestAsync(this Azure.ResourceManager.ArmResource armResource, string roleAssignmentScheduleRequestName, System.Threading.CancellationToken cancellationToken = default);
static member GetRoleAssignmentScheduleRequestAsync : Azure.ResourceManager.ArmResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.RoleAssignmentScheduleRequestResource>>
<Extension()>
Public Function GetRoleAssignmentScheduleRequestAsync (armResource As ArmResource, roleAssignmentScheduleRequestName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RoleAssignmentScheduleRequestResource))

Parameters

armResource
ArmResource

The ArmResource instance the method will execute against.

roleAssignmentScheduleRequestName
String

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

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

roleAssignmentScheduleRequestName is null.

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

Applies to

GetRoleAssignmentScheduleRequestAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

Source:
AuthorizationExtensions.cs
Source:
AuthorizationExtensions.cs

Get the specified role assignment schedule request. <item> Mocking. To mock this method, please mock GetRoleAssignmentScheduleRequestAsync(ResourceIdentifier, String, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.RoleAssignmentScheduleRequestResource>> GetRoleAssignmentScheduleRequestAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string roleAssignmentScheduleRequestName, System.Threading.CancellationToken cancellationToken = default);
static member GetRoleAssignmentScheduleRequestAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.RoleAssignmentScheduleRequestResource>>
<Extension()>
Public Function GetRoleAssignmentScheduleRequestAsync (client As ArmClient, scope As ResourceIdentifier, roleAssignmentScheduleRequestName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RoleAssignmentScheduleRequestResource))

Parameters

client
ArmClient

The ArmClient the method will execute against.

scope
ResourceIdentifier

The scope of the resource collection to get.

roleAssignmentScheduleRequestName
String

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

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

client is null.

Applies to