Partager via


IAFDCustomDomainsOperations.CreateWithHttpMessagesAsync Méthode

Définition

Crée un domaine dans le profil spécifié.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Cdn.Models.AFDDomain>> CreateWithHttpMessagesAsync (string resourceGroupName, string profileName, string customDomainName, Microsoft.Azure.Management.Cdn.Models.AFDDomain customDomain, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateWithHttpMessagesAsync : string * string * string * Microsoft.Azure.Management.Cdn.Models.AFDDomain * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Cdn.Models.AFDDomain>>
Public Function CreateWithHttpMessagesAsync (resourceGroupName As String, profileName As String, customDomainName As String, customDomain As AFDDomain, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of AFDDomain))

Paramètres

resourceGroupName
String

Nom du groupe de ressources dans l’abonnement Azure.

profileName
String

Nom du profil CDN unique au sein du groupe de ressources.

customDomainName
String

Nom du domaine sous le profil qui est unique globalement

customDomain
AFDDomain

Propriétés de domaine

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 status non valide

Levée lorsque la réponse ne peut pas être désérialisée

Levée lorsqu’un paramètre requis a la valeur Null

S’applique à