次の方法で共有


SnapshotsOperationsExtensions.GrantAccessAsync メソッド

定義

スナップショットへのアクセスを許可します。

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

パラメーター

operations
ISnapshotsOperations

この拡張メソッドの操作グループ。

resourceGroupName
String

リソース グループの名前。

snapshotName
String

作成されるスナップショットの名前。 スナップショットの作成後に名前を変更することはできません。 名前でサポートされている文字は、a から z、A から Z、0 から 9、_です。 名前の最大長は 80 文字です。

grantAccessData
GrantAccessData

アクセスの取得操作の本文で指定されたアクセス データ オブジェクトスナップショット。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

適用対象