IProtectionContainersOperations.RegisterWithHttpMessagesAsync Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Inscrit le conteneur auprès du coffre Recovery Services. S'agissant d'une opération asynchrone, Pour suivre l’opération status, utilisez l’en-tête d’emplacement pour appeler obtenir les dernières status de l’opération.
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionContainerResource>> RegisterWithHttpMessagesAsync (string vaultName, string resourceGroupName, string fabricName, string containerName, Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionContainerResource parameters, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member RegisterWithHttpMessagesAsync : string * string * string * string * Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionContainerResource * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionContainerResource>>
Public Function RegisterWithHttpMessagesAsync (vaultName As String, resourceGroupName As String, fabricName As String, containerName As String, parameters As ProtectionContainerResource, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of ProtectionContainerResource))
Paramètres
- vaultName
- String
Nom du coffre Recovery Services.
- resourceGroupName
- String
Nom du groupe de ressources dans lequel le coffre Recovery Services est présent.
- fabricName
- String
Nom de la structure associé au conteneur.
- containerName
- String
Nom du conteneur à inscrire.
- parameters
- ProtectionContainerResource
Corps de la demande pour l’opération
- customHeaders
- Dictionary<String,List<String>>
En-têtes qui seront ajoutés à la demande.
- cancellationToken
- CancellationToken
Jeton d'annulation.
Retours
Exceptions
Levée lorsque l’opération a retourné un code de status non valide
Levée en cas d’impossibilité de désérialiser la réponse
Levée lorsqu’un paramètre obligatoire a la valeur Null
S’applique à
Azure SDK for .NET
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour