共用方式為


Get-AzAutomationWebhook

從自動化取得 Webhook。

語法

Get-AzAutomationWebhook
   [-ResourceGroupName] <String>
   [-AutomationAccountName] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzAutomationWebhook
   -Name <String>
   [-ResourceGroupName] <String>
   [-AutomationAccountName] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzAutomationWebhook
   -RunbookName <String>
   [-ResourceGroupName] <String>
   [-AutomationAccountName] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Get-AzAutomationWebhook Cmdlet 會取得 Webhook。 若要取得特定的 Webhook,請指定 Webhook 名稱或指定 Azure 自動化 Runbook 的名稱,以取得與其連線的 Webhook。
注意: WebhookUri 會因為安全性考慮而傳回為空字串。 請務必儲存 New-AzAutomationWebhook Cmdlet 傳回的 Webhook URL,因為無法使用 get-AzAutomationWebhook來擷 取它。

範例

範例 1:取得 Runbook 的所有 Webhook

Get-AzAutomationWebhook -RunbookName "Runbook03" -ResourceGroupName "ResourceGroup01" -AutomationAccountName "AutomationAccount01"

此命令會針對名為 Runbook03 的 Runbook,在名為 ResourceGroup01 的資源群組中,取得名為 AutomationAccount01 的自動化帳戶中的所有 Webhook。

參數

-AutomationAccountName

指定這個 Cmdlet 取得 Webhook 之自動化帳戶的名稱。

類型:String
Position:1
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-DefaultProfile

用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Name

指定這個 Cmdlet 取得的 Webhook 名稱。

類型:String
別名:WebhookName
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-ResourceGroupName

指定此 Cmdlet 取得 Webhook 的資源群組名稱。

類型:String
Position:0
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-RunbookName

指定此 Cmdlet 取得 Webhook 的 Runbook 名稱。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

輸入

String

輸出

Webhook