Partager via


KeyVaultExtensions.CheckManagedHsmNameAvailabilityAsync Méthode

Définition

Vérifie que le nom hsm managé est valide et qu’il n’est pas déjà utilisé.

  • Chemin/abonnements de la demande/{subscriptionId}/providers/Microsoft.KeyVault/checkMhsmNameAvailability
  • IdManagedHsms_CheckMhsmNameAvailability d’opération
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.KeyVault.Models.ManagedHsmNameAvailabilityResult>> CheckManagedHsmNameAvailabilityAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.KeyVault.Models.ManagedHsmNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckManagedHsmNameAvailabilityAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.KeyVault.Models.ManagedHsmNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.KeyVault.Models.ManagedHsmNameAvailabilityResult>>
<Extension()>
Public Function CheckManagedHsmNameAvailabilityAsync (subscriptionResource As SubscriptionResource, content As ManagedHsmNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ManagedHsmNameAvailabilityResult))

Paramètres

subscriptionResource
SubscriptionResource

Instance SubscriptionResource sur laquelle la méthode s’exécute.

content
ManagedHsmNameAvailabilityContent

Nom du hsm managé.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

content a la valeur null.

S’applique à