Partilhar via


ApiManagementPrivateEndpointConnectionCollection.CreateOrUpdateAsync Método

Definição

Cria uma nova Conexão de Ponto de Extremidade Privado ou atualiza uma existente.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}
  • Operação IdPrivateEndpointConnection_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApiManagement.ApiManagementPrivateEndpointConnectionResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.ApiManagement.Models.ApiManagementPrivateEndpointConnectionCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ApiManagement.Models.ApiManagementPrivateEndpointConnectionCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApiManagement.ApiManagementPrivateEndpointConnectionResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ApiManagement.Models.ApiManagementPrivateEndpointConnectionCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApiManagement.ApiManagementPrivateEndpointConnectionResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, privateEndpointConnectionName As String, content As ApiManagementPrivateEndpointConnectionCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ApiManagementPrivateEndpointConnectionResource))

Parâmetros

waitUntil
WaitUntil

Completed se o método deve aguardar para retornar até que a operação de execução prolongada seja concluída no serviço; Started se ele deve retornar depois de iniciar a operação. Para obter mais informações sobre operações de execução prolongada, consulte Exemplos de operação de Long-Running do Azure.Core.

privateEndpointConnectionName
String

Nome da conexão de ponto de extremidade privado.

content
ApiManagementPrivateEndpointConnectionCreateOrUpdateContent

O ApiManagementPrivateEndpointConnectionCreateOrUpdateContent a ser usado.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

privateEndpointConnectionName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

privateEndpointConnectionName ou content é nulo.

Aplica-se a