你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

WebhookPropertiesCreateParameters interface

创建webhook属性的参数。

属性

actions

触发 Webhook 发布通知的作列表。

customHeaders

将添加到 Webhook 通知的自定义标头。

scope

可以触发事件的存储库范围。 例如,“foo:*”表示存储库“foo”下所有标记的事件。 “foo:bar”仅表示“foo:bar”的事件。 “foo”等效于“foo:latest”。 空表示所有事件。

serviceUri

用于发布通知的 Webhook 的服务 URI。

status

调用作时 Webhook 的状态。

属性详细信息

actions

触发 Webhook 发布通知的作列表。

actions: string[]

属性值

string[]

customHeaders

将添加到 Webhook 通知的自定义标头。

customHeaders?: Record<string, string>

属性值

Record<string, string>

scope

可以触发事件的存储库范围。 例如,“foo:*”表示存储库“foo”下所有标记的事件。 “foo:bar”仅表示“foo:bar”的事件。 “foo”等效于“foo:latest”。 空表示所有事件。

scope?: string

属性值

string

serviceUri

用于发布通知的 Webhook 的服务 URI。

serviceUri: string

属性值

string

status

调用作时 Webhook 的状态。

status?: string

属性值

string