diff --git a/documentation/Get-PnPWebhookSubscriptions.md b/documentation/Get-PnPWebhookSubscription.md similarity index 83% rename from documentation/Get-PnPWebhookSubscriptions.md rename to documentation/Get-PnPWebhookSubscription.md index bb823a3f8..560d3f1b2 100644 --- a/documentation/Get-PnPWebhookSubscriptions.md +++ b/documentation/Get-PnPWebhookSubscription.md @@ -1,13 +1,13 @@ --- Module Name: PnP.PowerShell -title: Get-PnPWebhookSubscriptions +title: Get-PnPWebhookSubscription schema: 2.0.0 applicable: SharePoint Online external help file: PnP.PowerShell.dll-Help.xml -online version: https://pnp.github.io/powershell/cmdlets/Get-PnPWebhookSubscriptions.html +online version: https://pnp.github.io/powershell/cmdlets/Get-PnPWebhookSubscription.html --- -# Get-PnPWebhookSubscriptions +# Get-PnPWebhookSubscription ## SYNOPSIS Gets all the Webhook subscriptions of the resource @@ -15,7 +15,7 @@ Gets all the Webhook subscriptions of the resource ## SYNTAX ```powershell -Get-PnPWebhookSubscriptions [-List ] [-Connection ] +Get-PnPWebhookSubscription [-List ] [-Connection ] ``` @@ -27,14 +27,14 @@ Allows to retrieve Webhook subscriptions of specified list. ### EXAMPLE 1 ```powershell -Get-PnPWebhookSubscriptions -List MyList +Get-PnPWebhookSubscription -List MyList ``` Gets all Webhook subscriptions of the list MyList ### EXAMPLE 2 ```powershell -Get-PnPList | Get-PnPWebhookSubscriptions +Get-PnPList | Get-PnPWebhookSubscription ``` Gets all Webhook subscriptions of the all the lists diff --git a/src/Commands/Webhooks/GetWebhookSubscriptions.cs b/src/Commands/Webhooks/GetWebhookSubscription.cs similarity index 91% rename from src/Commands/Webhooks/GetWebhookSubscriptions.cs rename to src/Commands/Webhooks/GetWebhookSubscription.cs index 22aa579c5..65c86249e 100644 --- a/src/Commands/Webhooks/GetWebhookSubscriptions.cs +++ b/src/Commands/Webhooks/GetWebhookSubscription.cs @@ -7,9 +7,10 @@ namespace PnP.PowerShell.Commands.Webhooks { - [Cmdlet(VerbsCommon.Get, "PnPWebhookSubscriptions")] + [Alias("Get-PnPWebhookSubscriptions")] + [Cmdlet(VerbsCommon.Get, "PnPWebhookSubscription")] [OutputType(typeof(WebhookSubscription))] - public class GetWebhookSubscriptions : PnPWebCmdlet + public class GetWebhookSubscription : PnPWebCmdlet { [Parameter(Mandatory = false, ValueFromPipeline = true)] public ListPipeBind List;