Compartilhar via


IEventHubsOperations.CreateOrUpdateWithHttpMessagesAsync Método

Definição

Cria ou atualiza um novo Hub de Eventos como um recurso aninhado em um Namespace.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.EventHub.Fluent.Models.EventhubInner>> CreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string namespaceName, string eventHubName, Microsoft.Azure.Management.EventHub.Fluent.Models.EventhubInner parameters, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateWithHttpMessagesAsync : string * string * string * Microsoft.Azure.Management.EventHub.Fluent.Models.EventhubInner * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.EventHub.Fluent.Models.EventhubInner>>
Public Function CreateOrUpdateWithHttpMessagesAsync (resourceGroupName As String, namespaceName As String, eventHubName As String, parameters As EventhubInner, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of EventhubInner))

Parâmetros

resourceGroupName
String

Nome do grupo de recursos dentro da assinatura do azure.

namespaceName
String

O nome do namespace

eventHubName
String

O nome do Hub de Eventos

parameters
EventhubInner

Parâmetros fornecidos para criar um recurso do Hub de Eventos.

customHeaders
Dictionary<String,List<String>>

Os cabeçalhos que serão adicionados à solicitação.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Exceções

Gerada quando a operação retornou um código de status inválido

Gerada quando não é possível desserializar a resposta

Gerado quando um parâmetro necessário é nulo

Aplica-se a