Compartir a través de


SnapshotPolicyCollection.GetAsync(String, CancellationToken) Método

Definición

Obtención de una directiva de instantáneas

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}
  • IdSnapshotPolicies_Get de operación
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NetApp.SnapshotPolicyResource>> GetAsync (string snapshotPolicyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NetApp.SnapshotPolicyResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NetApp.SnapshotPolicyResource>>
Public Overridable Function GetAsync (snapshotPolicyName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SnapshotPolicyResource))

Parámetros

snapshotPolicyName
String

Nombre de la directiva de instantáneas.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

snapshotPolicyName es una cadena vacía y se esperaba que no estuviera vacía.

snapshotPolicyName es null.

Se aplica a