다음을 통해 공유


DiskRestorePointOperationsExtensions.GrantAccessAsync Method

Definition

Grants access to a diskRestorePoint.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.AccessUri> GrantAccessAsync (this Microsoft.Azure.Management.Compute.IDiskRestorePointOperations operations, string resourceGroupName, string restorePointCollectionName, string vmRestorePointName, string diskRestorePointName, Microsoft.Azure.Management.Compute.Models.GrantAccessData grantAccessData, System.Threading.CancellationToken cancellationToken = default);
static member GrantAccessAsync : Microsoft.Azure.Management.Compute.IDiskRestorePointOperations * string * string * string * string * Microsoft.Azure.Management.Compute.Models.GrantAccessData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.AccessUri>
<Extension()>
Public Function GrantAccessAsync (operations As IDiskRestorePointOperations, resourceGroupName As String, restorePointCollectionName As String, vmRestorePointName As String, diskRestorePointName As String, grantAccessData As GrantAccessData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AccessUri)

Parameters

operations
IDiskRestorePointOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

restorePointCollectionName
String

The name of the restore point collection that the disk restore point belongs.

vmRestorePointName
String

The name of the vm restore point that the disk disk restore point belongs.

diskRestorePointName
String

The name of the disk restore point created.

grantAccessData
GrantAccessData

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

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to