Partager via


SnapshotsOperationsExtensions.CreateOrUpdateAsync Méthode

Définition

Crée ou met à jour un instantané.

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

Paramètres

operations
ISnapshotsOperations

Groupe d’opérations pour cette méthode d’extension.

resourceGroupName
String

Nom du groupe de ressources.

snapshotName
String

Nom du instantané en cours de création. Le nom ne peut pas être modifié une fois le instantané créé. Les caractères pris en charge pour le nom sont a-z, A-Z, 0-9, _ et -. La longueur maximale du nom est de 80 caractères.

snapshot
Snapshot

Objet d’instantané fourni dans le corps de l’opération Put disk.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

S’applique à