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

Webhook interface

表示 Webhook 的接口。

方法

createOrUpdate(string, string, WebhookResource, WebhookCreateOrUpdateOptionalParams)

创建新的 AppComplianceAutomation Webhook 或更新退出的 AppComplianceAutomation Webhook。

delete(string, string, WebhookDeleteOptionalParams)

删除 AppComplianceAutomation Webhook。

get(string, string, WebhookGetOptionalParams)

获取 AppComplianceAutomation Webhook 及其属性。

list(string, WebhookListOptionalParams)

获取 AppComplianceAutomation Webhook 列表。

update(string, string, WebhookResourcePatch, WebhookUpdateOptionalParams)

更新退出的 AppComplianceAutomation Webhook。

方法详细信息

createOrUpdate(string, string, WebhookResource, WebhookCreateOrUpdateOptionalParams)

创建新的 AppComplianceAutomation Webhook 或更新退出的 AppComplianceAutomation Webhook。

function createOrUpdate(reportName: string, webhookName: string, properties: WebhookResource, options?: WebhookCreateOrUpdateOptionalParams): Promise<WebhookResource>

参数

reportName

string

报表名称。

webhookName

string

Webhook 名称。

properties
WebhookResource

创建或更新作的参数

options
WebhookCreateOrUpdateOptionalParams

选项参数。

返回

Promise<WebhookResource>

delete(string, string, WebhookDeleteOptionalParams)

删除 AppComplianceAutomation Webhook。

function delete(reportName: string, webhookName: string, options?: WebhookDeleteOptionalParams): Promise<void>

参数

reportName

string

报表名称。

webhookName

string

Webhook 名称。

options
WebhookDeleteOptionalParams

选项参数。

返回

Promise<void>

get(string, string, WebhookGetOptionalParams)

获取 AppComplianceAutomation Webhook 及其属性。

function get(reportName: string, webhookName: string, options?: WebhookGetOptionalParams): Promise<WebhookResource>

参数

reportName

string

报表名称。

webhookName

string

Webhook 名称。

options
WebhookGetOptionalParams

选项参数。

返回

Promise<WebhookResource>

list(string, WebhookListOptionalParams)

获取 AppComplianceAutomation Webhook 列表。

function list(reportName: string, options?: WebhookListOptionalParams): PagedAsyncIterableIterator<WebhookResource, WebhookResource[], PageSettings>

参数

reportName

string

报表名称。

options
WebhookListOptionalParams

选项参数。

返回

update(string, string, WebhookResourcePatch, WebhookUpdateOptionalParams)

更新退出的 AppComplianceAutomation Webhook。

function update(reportName: string, webhookName: string, properties: WebhookResourcePatch, options?: WebhookUpdateOptionalParams): Promise<WebhookResource>

参数

reportName

string

报表名称。

webhookName

string

Webhook 名称。

properties
WebhookResourcePatch

创建或更新作的参数

options
WebhookUpdateOptionalParams

选项参数。

返回

Promise<WebhookResource>