Partager via


GalleryApplicationCollection.CreateOrUpdateAsync Méthode

Définition

Créez ou mettez à jour une définition d’application de galerie.

  • Chemin de la requête/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}
  • IdGalleryApplications_CreateOrUpdate d’opération
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.GalleryApplicationResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string galleryApplicationName, Azure.ResourceManager.Compute.GalleryApplicationData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Compute.GalleryApplicationData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.GalleryApplicationResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Compute.GalleryApplicationData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.GalleryApplicationResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, galleryApplicationName As String, data As GalleryApplicationData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of GalleryApplicationResource))

Paramètres

waitUntil
WaitUntil

Completed si la méthode doit attendre pour retourner jusqu’à ce que l’opération de longue durée soit terminée sur le service ; Started si elle doit être retournée après le démarrage de l’opération. Pour plus d’informations sur les opérations de longue durée, consultez Exemples d’opérations de Long-Running Azure.Core.

galleryApplicationName
String

Nom de la définition d’application de la galerie à créer ou à mettre à jour. Les caractères autorisés sont des alphabets et des nombres avec des points, des tirets et des points autorisés au milieu. La longueur maximale est de 80 caractères.

data
GalleryApplicationData

Paramètres fournis à l’opération d’application de création ou de mise à jour de la galerie.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

galleryApplicationName est une chaîne vide et devait être non vide.

galleryApplicationName ou data est null.

S’applique à