WebhookOperations interface
表示 WebhookOperations 的接口。
方法
| create |
创建由 Webhook 名称标识的 Webhook。 |
| delete(string, string, string, Webhook |
按名称删除 Webhook。 |
| generate |
生成用于创建 Webhook 的 URI。 |
| get(string, string, string, Webhook |
检索由 Webhook 名称标识的 Webhook。 |
| list |
检索 Webhook 列表。 |
| update(string, string, string, Webhook |
更新由 Webhook 名称标识的 Webhook。 |
方法详细信息
createOrUpdate(string, string, string, WebhookCreateOrUpdateParameters, WebhookCreateOrUpdateOptionalParams)
创建由 Webhook 名称标识的 Webhook。
function createOrUpdate(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: WebhookCreateOrUpdateParameters, options?: WebhookCreateOrUpdateOptionalParams): Promise<Webhook>
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- webhookName
-
string
Webhook 名称。
- parameters
- WebhookCreateOrUpdateParameters
Webhook 的创建或更新参数。
选项参数。
返回
Promise<Webhook>
delete(string, string, string, WebhookDeleteOptionalParams)
按名称删除 Webhook。
function delete(resourceGroupName: string, automationAccountName: string, webhookName: string, options?: WebhookDeleteOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- webhookName
-
string
Webhook 名称。
- options
- WebhookDeleteOptionalParams
选项参数。
返回
Promise<void>
generateUri(string, string, WebhookGenerateUriOptionalParams)
生成用于创建 Webhook 的 URI。
function generateUri(resourceGroupName: string, automationAccountName: string, options?: WebhookGenerateUriOptionalParams): Promise<WebhookGenerateUriResponse>
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- options
- WebhookGenerateUriOptionalParams
选项参数。
返回
Promise<WebhookGenerateUriResponse>
get(string, string, string, WebhookGetOptionalParams)
检索由 Webhook 名称标识的 Webhook。
function get(resourceGroupName: string, automationAccountName: string, webhookName: string, options?: WebhookGetOptionalParams): Promise<Webhook>
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- webhookName
-
string
Webhook 名称。
- options
- WebhookGetOptionalParams
选项参数。
返回
Promise<Webhook>
listByAutomationAccount(string, string, WebhookListByAutomationAccountOptionalParams)
检索 Webhook 列表。
function listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: WebhookListByAutomationAccountOptionalParams): PagedAsyncIterableIterator<Webhook, Webhook[], PageSettings>
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
选项参数。
返回
update(string, string, string, WebhookUpdateParameters, WebhookUpdateOptionalParams)
更新由 Webhook 名称标识的 Webhook。
function update(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: WebhookUpdateParameters, options?: WebhookUpdateOptionalParams): Promise<Webhook>
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- webhookName
-
string
Webhook 名称。
- parameters
- WebhookUpdateParameters
Webhook 的更新参数。
- options
- WebhookUpdateOptionalParams
选项参数。
返回
Promise<Webhook>