Partager via


StoragePrivateEndpointConnectionCollection.CreateOrUpdateAsync Méthode

Définition

Mettez à jour l’état de la connexion de point de terminaison privé spécifiée associée au compte de stockage.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}
  • IdPrivateEndpointConnections_Put d’opération
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Storage.StoragePrivateEndpointConnectionResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.Storage.StoragePrivateEndpointConnectionData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Storage.StoragePrivateEndpointConnectionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Storage.StoragePrivateEndpointConnectionResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Storage.StoragePrivateEndpointConnectionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Storage.StoragePrivateEndpointConnectionResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, privateEndpointConnectionName As String, data As StoragePrivateEndpointConnectionData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of StoragePrivateEndpointConnectionResource))

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.

privateEndpointConnectionName
String

Nom de la connexion de point de terminaison privé associée à la ressource Azure.

data
StoragePrivateEndpointConnectionData

Propriétés de connexion de point de terminaison privé.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

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

privateEndpointConnectionName ou data est null.

S’applique à