DisksOperationsExtensions.BeginGrantAccessAsync(IDisksOperations, String, String, GrantAccessDataInner, CancellationToken) Method

Definition

Grants access to a disk.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.Models.AccessUriInner> BeginGrantAccessAsync (this Microsoft.Azure.Management.Compute.Fluent.IDisksOperations operations, string resourceGroupName, string diskName, Microsoft.Azure.Management.Compute.Fluent.Models.GrantAccessDataInner grantAccessData, System.Threading.CancellationToken cancellationToken = null);
static member BeginGrantAccessAsync : Microsoft.Azure.Management.Compute.Fluent.IDisksOperations * string * string * Microsoft.Azure.Management.Compute.Fluent.Models.GrantAccessDataInner * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.Models.AccessUriInner>

Parameters

operations
IDisksOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

diskName
String

The name of the disk within the given subscription and resource group.

grantAccessData
GrantAccessDataInner

Access data object supplied in the body of the get disk access operation.

cancellationToken
CancellationToken

The cancellation token.

Returns

Task<AccessUriInner>

Applies to