Webhooks interface
表示 Webhook 的接口。
方法
方法详细信息
beginCreate(string, string, string, WebhookCreateParameters, WebhooksCreateOptionalParams)
为具有指定参数的容器注册表创建 Webhook。
function beginCreate(resourceGroupName: string, registryName: string, webhookName: string, webhookCreateParameters: WebhookCreateParameters, options?: WebhooksCreateOptionalParams): Promise<SimplePollerLike<OperationState<Webhook>, Webhook>>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- registryName
-
string
容器注册表的名称。
- webhookName
-
string
Webhook 的名称。
- webhookCreateParameters
- WebhookCreateParameters
用于创建 Webhook 的参数。
- options
- WebhooksCreateOptionalParams
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<Webhook>, Webhook>>
beginCreateAndWait(string, string, string, WebhookCreateParameters, WebhooksCreateOptionalParams)
为具有指定参数的容器注册表创建 Webhook。
function beginCreateAndWait(resourceGroupName: string, registryName: string, webhookName: string, webhookCreateParameters: WebhookCreateParameters, options?: WebhooksCreateOptionalParams): Promise<Webhook>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- registryName
-
string
容器注册表的名称。
- webhookName
-
string
Webhook 的名称。
- webhookCreateParameters
- WebhookCreateParameters
用于创建 Webhook 的参数。
- options
- WebhooksCreateOptionalParams
选项参数。
返回
Promise<Webhook>
beginDelete(string, string, string, WebhooksDeleteOptionalParams)
从容器注册表中删除 Webhook。
function beginDelete(resourceGroupName: string, registryName: string, webhookName: string, options?: WebhooksDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- registryName
-
string
容器注册表的名称。
- webhookName
-
string
Webhook 的名称。
- options
- WebhooksDeleteOptionalParams
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginDeleteAndWait(string, string, string, WebhooksDeleteOptionalParams)
从容器注册表中删除 Webhook。
function beginDeleteAndWait(resourceGroupName: string, registryName: string, webhookName: string, options?: WebhooksDeleteOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- registryName
-
string
容器注册表的名称。
- webhookName
-
string
Webhook 的名称。
- options
- WebhooksDeleteOptionalParams
选项参数。
返回
Promise<void>
beginUpdate(string, string, string, WebhookUpdateParameters, WebhooksUpdateOptionalParams)
使用指定的参数更新 Webhook。
function beginUpdate(resourceGroupName: string, registryName: string, webhookName: string, webhookUpdateParameters: WebhookUpdateParameters, options?: WebhooksUpdateOptionalParams): Promise<SimplePollerLike<OperationState<Webhook>, Webhook>>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- registryName
-
string
容器注册表的名称。
- webhookName
-
string
Webhook 的名称。
- webhookUpdateParameters
- WebhookUpdateParameters
用于更新 Webhook 的参数。
- options
- WebhooksUpdateOptionalParams
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<Webhook>, Webhook>>
beginUpdateAndWait(string, string, string, WebhookUpdateParameters, WebhooksUpdateOptionalParams)
使用指定的参数更新 Webhook。
function beginUpdateAndWait(resourceGroupName: string, registryName: string, webhookName: string, webhookUpdateParameters: WebhookUpdateParameters, options?: WebhooksUpdateOptionalParams): Promise<Webhook>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- registryName
-
string
容器注册表的名称。
- webhookName
-
string
Webhook 的名称。
- webhookUpdateParameters
- WebhookUpdateParameters
用于更新 Webhook 的参数。
- options
- WebhooksUpdateOptionalParams
选项参数。
返回
Promise<Webhook>
get(string, string, string, WebhooksGetOptionalParams)
获取指定 Webhook 的属性。
function get(resourceGroupName: string, registryName: string, webhookName: string, options?: WebhooksGetOptionalParams): Promise<Webhook>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- registryName
-
string
容器注册表的名称。
- webhookName
-
string
Webhook 的名称。
- options
- WebhooksGetOptionalParams
选项参数。
返回
Promise<Webhook>
getCallbackConfig(string, string, string, WebhooksGetCallbackConfigOptionalParams)
获取 Webhook 的服务 URI 和自定义标头的配置。
function getCallbackConfig(resourceGroupName: string, registryName: string, webhookName: string, options?: WebhooksGetCallbackConfigOptionalParams): Promise<CallbackConfig>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- registryName
-
string
容器注册表的名称。
- webhookName
-
string
Webhook 的名称。
选项参数。
返回
Promise<CallbackConfig>
list(string, string, WebhooksListOptionalParams)
列出指定容器注册表的所有 Webhook。
function list(resourceGroupName: string, registryName: string, options?: WebhooksListOptionalParams): PagedAsyncIterableIterator<Webhook, Webhook[], PageSettings>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- registryName
-
string
容器注册表的名称。
- options
- WebhooksListOptionalParams
选项参数。
返回
listEvents(string, string, string, WebhooksListEventsOptionalParams)
列出指定 Webhook 的最新事件。
function listEvents(resourceGroupName: string, registryName: string, webhookName: string, options?: WebhooksListEventsOptionalParams): PagedAsyncIterableIterator<Event_2, Event_2[], PageSettings>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- registryName
-
string
容器注册表的名称。
- webhookName
-
string
Webhook 的名称。
- options
- WebhooksListEventsOptionalParams
选项参数。
返回
ping(string, string, string, WebhooksPingOptionalParams)
触发要发送到 Webhook 的 ping 事件。
function ping(resourceGroupName: string, registryName: string, webhookName: string, options?: WebhooksPingOptionalParams): Promise<EventInfo>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- registryName
-
string
容器注册表的名称。
- webhookName
-
string
Webhook 的名称。
- options
- WebhooksPingOptionalParams
选项参数。
返回
Promise<EventInfo>