Webhook - Create Or Update

webhook 名で識別される webhook を作成します。

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}?api-version=2015-10-31

URI パラメーター

名前 / 必須 説明
automationAccountName
path True

string

Automation アカウントの名前。

resourceGroupName
path True

string

Azure リソース グループの名前。

Regex pattern: ^[-\w\._]+$

subscriptionId
path True

string

Microsoft Azure サブスクリプションを一意に識別するサブスクリプション資格情報を取得します。 サブスクリプション ID は、全ての修理依頼についてURI の一部を生じさせます。

webhookName
path True

string

webhook 名。

api-version
query True

string

クライアント API のバージョン。

要求本文

名前 必須 説明
name True

string

Webhook の名前を取得または設定します。

properties.expiryTime

string

有効期限を取得または設定します。

properties.isEnabled

boolean

webhook の有効なフラグの値を取得または設定します。

properties.parameters

object

ジョブのパラメーターを取得または設定します。

properties.runOn

string

Webhook ジョブが実行されるハイブリッド ワーカー グループの名前を取得または設定します。

properties.runbook

RunbookAssociationProperty

Runbook を取得または設定します。

properties.uri

string

URI を取得または設定します。

応答

名前 説明
200 OK

Webhook

OK

201 Created

Webhook

作成済み

Other Status Codes

ErrorResponse

操作が失敗した理由を説明するオートメーション エラー応答。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名前 説明
user_impersonation ユーザー アカウントの借用

Create or update webhook

Sample Request

PUT https://management.azure.com/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/webhooks/TestWebhook?api-version=2015-10-31

{
  "name": "TestWebhook",
  "properties": {
    "isEnabled": true,
    "uri": "<uri>",
    "expiryTime": "2018-03-29T22:18:13.7002872Z",
    "runbook": {
      "name": "TestRunbook"
    }
  }
}

Sample Response

{
  "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/webhooks/TestWebhook",
  "name": "TestWebhook",
  "type": "Microsoft.Automation/AutomationAccounts/Webhooks",
  "properties": {
    "isEnabled": true,
    "expiryTime": "2018-03-29T22:18:13.7002872+00:00",
    "runbook": {
      "name": "TestRunbook"
    },
    "lastInvokedTime": null,
    "runOn": null,
    "parameters": null,
    "uri": "",
    "creationTime": "2017-03-29T22:18:14.6651862+00:00",
    "lastModifiedBy": "",
    "lastModifiedTime": "2017-03-29T22:18:14.6651862+00:00"
  }
}
{
  "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/webhooks/TestWebhook",
  "name": "TestWebhook",
  "type": "Microsoft.Automation/AutomationAccounts/Webhooks",
  "properties": {
    "isEnabled": true,
    "expiryTime": "2018-03-29T22:18:13.7002872+00:00",
    "runbook": {
      "name": "TestRunbook"
    },
    "lastInvokedTime": null,
    "runOn": null,
    "parameters": null,
    "uri": "",
    "creationTime": "2017-03-29T22:18:14.6651862+00:00",
    "lastModifiedBy": "",
    "lastModifiedTime": "2017-03-29T22:18:14.6651862+00:00"
  }
}

定義

名前 説明
ErrorResponse

操作エラーのエラー応答

RunbookAssociationProperty

エンティティに関連付けられている Runbook プロパティ。

Webhook

Webhook 型の定義。

WebhookCreateOrUpdateParameters

webhook の作成または更新操作に指定されたパラメーター。

ErrorResponse

操作エラーのエラー応答

名前 説明
code

string

エラー コード

message

string

操作が失敗した理由を示すエラー メッセージ。

RunbookAssociationProperty

エンティティに関連付けられている Runbook プロパティ。

名前 説明
name

string

Runbook の名前を取得または設定します。

Webhook

Webhook 型の定義。

名前 既定値 説明
id

string

リソースの完全修飾リソース ID

name

string

リソースの名前

properties.creationTime

string

作成時刻を取得または設定します。

properties.description

string

説明を取得または設定します。

properties.expiryTime

string

有効期限を取得または設定します。

properties.isEnabled

boolean

False

Webhook の有効なフラグの値を取得または設定します。

properties.lastInvokedTime

string

最後に呼び出された時刻を取得または設定します。

properties.lastModifiedBy

string

Webhook を最後に変更したユーザーの詳細

properties.lastModifiedTime

string

最終変更時刻を取得または設定します。

properties.parameters

object

Webhook が関連付けられている Runbook を呼び出すときに作成されるジョブのパラメーターを取得または設定します。

properties.runOn

string

Webhook ジョブが実行されるハイブリッド ワーカー グループの名前を取得または設定します。

properties.runbook

RunbookAssociationProperty

Webhook が関連付けられている Runbook を取得または設定します。

properties.uri

string

Webhook URI を取得または設定します。

type

string

リソースの型。

WebhookCreateOrUpdateParameters

webhook の作成または更新操作に指定されたパラメーター。

名前 説明
name

string

Webhook の名前を取得または設定します。

properties.expiryTime

string

有効期限を取得または設定します。

properties.isEnabled

boolean

webhook の有効なフラグの値を取得または設定します。

properties.parameters

object

ジョブのパラメーターを取得または設定します。

properties.runOn

string

Webhook ジョブが実行されるハイブリッド ワーカー グループの名前を取得または設定します。

properties.runbook

RunbookAssociationProperty

Runbook を取得または設定します。

properties.uri

string

URI を取得または設定します。