Compartilhar via


Webhooks interface

Interface que representa um Webhooks.

Métodos

beginCreate(string, string, string, WebhookCreateParameters, WebhooksCreateOptionalParams)

Cria um webhook para um registro de contêiner com os parâmetros especificados.

beginCreateAndWait(string, string, string, WebhookCreateParameters, WebhooksCreateOptionalParams)

Cria um webhook para um registro de contêiner com os parâmetros especificados.

beginDelete(string, string, string, WebhooksDeleteOptionalParams)

Exclui um webhook de um registro de contêiner.

beginDeleteAndWait(string, string, string, WebhooksDeleteOptionalParams)

Exclui um webhook de um registro de contêiner.

beginUpdate(string, string, string, WebhookUpdateParameters, WebhooksUpdateOptionalParams)

Atualiza um webhook com os parâmetros especificados.

beginUpdateAndWait(string, string, string, WebhookUpdateParameters, WebhooksUpdateOptionalParams)

Atualiza um webhook com os parâmetros especificados.

get(string, string, string, WebhooksGetOptionalParams)

Obtém as propriedades do webhook especificado.

getCallbackConfig(string, string, string, WebhooksGetCallbackConfigOptionalParams)

Obtém a configuração de URI de serviço e cabeçalhos personalizados para o webhook.

list(string, string, WebhooksListOptionalParams)

Lista todos os webhooks para o registro de contêiner especificado.

listEvents(string, string, string, WebhooksListEventsOptionalParams)

Lista eventos recentes para o webhook especificado.

ping(string, string, string, WebhooksPingOptionalParams)

Dispara um evento de ping a ser enviado para o webhook.

Detalhes do método

beginCreate(string, string, string, WebhookCreateParameters, WebhooksCreateOptionalParams)

Cria um webhook para um registro de contêiner com os parâmetros especificados.

function beginCreate(resourceGroupName: string, registryName: string, webhookName: string, webhookCreateParameters: WebhookCreateParameters, options?: WebhooksCreateOptionalParams): Promise<SimplePollerLike<OperationState<Webhook>, Webhook>>

Parâmetros

resourceGroupName

string

O nome do grupo de recursos. O nome não diferencia maiúsculas de minúsculas.

registryName

string

O nome do registro de contêiner.

webhookName

string

O nome do webhook.

webhookCreateParameters
WebhookCreateParameters

Os parâmetros para criar um webhook.

options
WebhooksCreateOptionalParams

Os parâmetros de opções.

Retornos

Promise<@azure/core-lro.SimplePollerLike<OperationState<Webhook>, Webhook>>

beginCreateAndWait(string, string, string, WebhookCreateParameters, WebhooksCreateOptionalParams)

Cria um webhook para um registro de contêiner com os parâmetros especificados.

function beginCreateAndWait(resourceGroupName: string, registryName: string, webhookName: string, webhookCreateParameters: WebhookCreateParameters, options?: WebhooksCreateOptionalParams): Promise<Webhook>

Parâmetros

resourceGroupName

string

O nome do grupo de recursos. O nome não diferencia maiúsculas de minúsculas.

registryName

string

O nome do registro de contêiner.

webhookName

string

O nome do webhook.

webhookCreateParameters
WebhookCreateParameters

Os parâmetros para criar um webhook.

options
WebhooksCreateOptionalParams

Os parâmetros de opções.

Retornos

Promise<Webhook>

beginDelete(string, string, string, WebhooksDeleteOptionalParams)

Exclui um webhook de um registro de contêiner.

function beginDelete(resourceGroupName: string, registryName: string, webhookName: string, options?: WebhooksDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

Parâmetros

resourceGroupName

string

O nome do grupo de recursos. O nome não diferencia maiúsculas de minúsculas.

registryName

string

O nome do registro de contêiner.

webhookName

string

O nome do webhook.

options
WebhooksDeleteOptionalParams

Os parâmetros de opções.

Retornos

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginDeleteAndWait(string, string, string, WebhooksDeleteOptionalParams)

Exclui um webhook de um registro de contêiner.

function beginDeleteAndWait(resourceGroupName: string, registryName: string, webhookName: string, options?: WebhooksDeleteOptionalParams): Promise<void>

Parâmetros

resourceGroupName

string

O nome do grupo de recursos. O nome não diferencia maiúsculas de minúsculas.

registryName

string

O nome do registro de contêiner.

webhookName

string

O nome do webhook.

options
WebhooksDeleteOptionalParams

Os parâmetros de opções.

Retornos

Promise<void>

beginUpdate(string, string, string, WebhookUpdateParameters, WebhooksUpdateOptionalParams)

Atualiza um webhook com os parâmetros especificados.

function beginUpdate(resourceGroupName: string, registryName: string, webhookName: string, webhookUpdateParameters: WebhookUpdateParameters, options?: WebhooksUpdateOptionalParams): Promise<SimplePollerLike<OperationState<Webhook>, Webhook>>

Parâmetros

resourceGroupName

string

O nome do grupo de recursos. O nome não diferencia maiúsculas de minúsculas.

registryName

string

O nome do registro de contêiner.

webhookName

string

O nome do webhook.

webhookUpdateParameters
WebhookUpdateParameters

Os parâmetros para atualizar um webhook.

options
WebhooksUpdateOptionalParams

Os parâmetros de opções.

Retornos

Promise<@azure/core-lro.SimplePollerLike<OperationState<Webhook>, Webhook>>

beginUpdateAndWait(string, string, string, WebhookUpdateParameters, WebhooksUpdateOptionalParams)

Atualiza um webhook com os parâmetros especificados.

function beginUpdateAndWait(resourceGroupName: string, registryName: string, webhookName: string, webhookUpdateParameters: WebhookUpdateParameters, options?: WebhooksUpdateOptionalParams): Promise<Webhook>

Parâmetros

resourceGroupName

string

O nome do grupo de recursos. O nome não diferencia maiúsculas de minúsculas.

registryName

string

O nome do registro de contêiner.

webhookName

string

O nome do webhook.

webhookUpdateParameters
WebhookUpdateParameters

Os parâmetros para atualizar um webhook.

options
WebhooksUpdateOptionalParams

Os parâmetros de opções.

Retornos

Promise<Webhook>

get(string, string, string, WebhooksGetOptionalParams)

Obtém as propriedades do webhook especificado.

function get(resourceGroupName: string, registryName: string, webhookName: string, options?: WebhooksGetOptionalParams): Promise<Webhook>

Parâmetros

resourceGroupName

string

O nome do grupo de recursos. O nome não diferencia maiúsculas de minúsculas.

registryName

string

O nome do registro de contêiner.

webhookName

string

O nome do webhook.

options
WebhooksGetOptionalParams

Os parâmetros de opções.

Retornos

Promise<Webhook>

getCallbackConfig(string, string, string, WebhooksGetCallbackConfigOptionalParams)

Obtém a configuração de URI de serviço e cabeçalhos personalizados para o webhook.

function getCallbackConfig(resourceGroupName: string, registryName: string, webhookName: string, options?: WebhooksGetCallbackConfigOptionalParams): Promise<CallbackConfig>

Parâmetros

resourceGroupName

string

O nome do grupo de recursos. O nome não diferencia maiúsculas de minúsculas.

registryName

string

O nome do registro de contêiner.

webhookName

string

O nome do webhook.

options
WebhooksGetCallbackConfigOptionalParams

Os parâmetros de opções.

Retornos

Promise<CallbackConfig>

list(string, string, WebhooksListOptionalParams)

Lista todos os webhooks para o registro de contêiner especificado.

function list(resourceGroupName: string, registryName: string, options?: WebhooksListOptionalParams): PagedAsyncIterableIterator<Webhook, Webhook[], PageSettings>

Parâmetros

resourceGroupName

string

O nome do grupo de recursos. O nome não diferencia maiúsculas de minúsculas.

registryName

string

O nome do registro de contêiner.

options
WebhooksListOptionalParams

Os parâmetros de opções.

Retornos

listEvents(string, string, string, WebhooksListEventsOptionalParams)

Lista eventos recentes para o webhook especificado.

function listEvents(resourceGroupName: string, registryName: string, webhookName: string, options?: WebhooksListEventsOptionalParams): PagedAsyncIterableIterator<Event, Event[], PageSettings>

Parâmetros

resourceGroupName

string

O nome do grupo de recursos. O nome não diferencia maiúsculas de minúsculas.

registryName

string

O nome do registro de contêiner.

webhookName

string

O nome do webhook.

options
WebhooksListEventsOptionalParams

Os parâmetros de opções.

Retornos

ping(string, string, string, WebhooksPingOptionalParams)

Dispara um evento de ping a ser enviado para o webhook.

function ping(resourceGroupName: string, registryName: string, webhookName: string, options?: WebhooksPingOptionalParams): Promise<EventInfo>

Parâmetros

resourceGroupName

string

O nome do grupo de recursos. O nome não diferencia maiúsculas de minúsculas.

registryName

string

O nome do registro de contêiner.

webhookName

string

O nome do webhook.

options
WebhooksPingOptionalParams

Os parâmetros de opções.

Retornos

Promise<EventInfo>