Get-AzContainerRegistryWebhook
Gets a container registry webhook.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
Get-AzContainerRegistryWebhook
[-ResourceGroupName] <String>
[-RegistryName] <String>
[-IncludeConfiguration]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzContainerRegistryWebhook
[-Name] <String>
[-ResourceGroupName] <String>
[-RegistryName] <String>
[-IncludeConfiguration]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzContainerRegistryWebhook
[-Name] <String>
-Registry <PSContainerRegistry>
[-IncludeConfiguration]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzContainerRegistryWebhook
-Registry <PSContainerRegistry>
[-IncludeConfiguration]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzContainerRegistryWebhook
[-IncludeConfiguration]
-ResourceId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzContainerRegistryWebhook cmdlet gets a specified webhook of container registry or all the webhooks of a container registry.
Examples
Example 1: Get a specified webhook of a container registry
Get-AzContainerRegistryWebhook -ResourceGroupName "MyResourceGroup" -RegistryName "MyRegistry" -Name "webhook001"
Name Location Status Scope Actions Provisioni ServiceUri
ngState
---- -------- ------ ----- ------- ---------- ----------
webhook001 westus enabled {push, delete} Succeeded
Get a specified webhook of a container registry
Example 2: Get all the webhooks of a container registry
Get-AzContainerRegistryWebhook -ResourceGroupName "MyResourceGroup" -RegistryName "MyRegistry"
Name Location Status Scope Actions Provisioni ServiceUri
ngState
---- -------- ------ ----- ------- ---------- ----------
webhook04 westus enabled {push, delete} Succeeded
webhook05 westus disabled {push, delete} Succeeded
wh003 westus enabled delete Succeeded
Get all the webhooks of a container registry
Example 3: Get a specified webhook of a container registry with configuration details
Get-AzContainerRegistryWebhook -ResourceGroupName "MyResourceGroup" -RegistryName "MyRegistry" -Name "webhook001" -IncludeConfiguration
Name Location Status Scope Actions Provisioni ServiceUri
ngState
---- -------- ------ ----- ------- ---------- ----------
webhook001 westus enabled {push, delete} Succeeded http://www.test.com/
Get a specified webhook of a container registry with configuration details
Parameters
The credentials, account, tenant, and subscription used for communication with azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Get the configuration information for a webhook.
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Webhook Name.
| Type: | String |
| Aliases: | WebhookName, ResourceName |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Container Registry Object.
| Type: | PSContainerRegistry |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Container Registry Name.
| Type: | String |
| Aliases: | ContainerRegistryName |
| Position: | 2 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Resource Group Name.
| Type: | String |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The container registry Webhook resource id
| Type: | String |
| Aliases: | Id |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |