Freigeben über


SnapshotsOperationsExtensions.BeginGrantAccessAsync Methode

Definition

Gewährt Zugriff auf eine Momentaufnahme.

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

Parameter

operations
ISnapshotsOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

resourceGroupName
String

Der Name der Ressourcengruppe.

snapshotName
String

Der Name des Momentaufnahme, der erstellt wird. Der Name kann nicht geändert werden, nachdem die Momentaufnahme erstellt wurde. Unterstützte Zeichen für den Namen sind a-z, A-Z, 0-9, _ und -. Die maximale Namenslänge beträgt 80 Zeichen.

grantAccessData
GrantAccessData

Zugriffsdatenobjekt, das im Textkörper des Zugriffsvorgangs get Momentaufnahme angegeben wird.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: