Get-AzNotificationHubAuthorizationRule
Hiermee wordt informatie opgehaald over de autorisatieregels die zijn gekoppeld aan een Notification Hub.
Syntax
Get-AzNotificationHubAuthorizationRule
[-ResourceGroup] <String>
[-Namespace] <String>
[-NotificationHub] <String>
[[-AuthorizationRule] <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
De cmdlet Get-AzNotificationHubAuthorizationRule haalt informatie op over de sas-autorisatieregels (Shared Access Signature) die zijn gekoppeld aan een Notification Hub. De cmdlet retourneert informatie over alle regels die zijn gekoppeld aan een hub of, met inbegrip van de parameter AuthorizationRule , haalt informatie op over een specifieke regel. Autorisatieregels beheren de toegang tot uw Notification Hubs. Een autorisatieregel maakt koppelingen, als een URI, op basis van verschillende machtigingsniveaus. Clients worden omgeleid naar een van deze URI's op basis van het juiste machtigingsniveau. Een client met de listen-machtiging wordt bijvoorbeeld omgeleid naar de URI voor die machtiging. De cmdlet Get-AzNotificationHubAuthorizationRule haalt alleen informatie op over de autorisatieregels die zijn gekoppeld aan een Notification Hub. Gebruik Get-AzNotificationHub om informatie over de hub zelf op te halen.
Voorbeelden
Voorbeeld 1: Informatie ophalen voor alle autorisatieregels die zijn toegewezen aan een Notification Hub
Get-AzNotificationHubAuthorizationRule -Namespace "ContosoNamespace" -ResourceGroup "ContosoNotificationsGroup" -NotificationHub "ContosoInternalHub"
Met deze opdracht wordt informatie opgehaald voor alle autorisatieregels die zijn toegewezen aan de Notification Hub met de naam ContosoInternalHub in de naamruimte ContosoNamespace. U moet de naamruimte opgeven waaraan de hub zich bevindt, evenals de resourcegroep waaraan de hub is toegewezen.
Voorbeeld 2: Informatie ophalen voor autorisatieregels die zijn toegewezen aan een Notification Hub
Get-AzNotificationHubAuthorizationRule -Namespace "ContosoNamespace" -ResourceGroup "ContosoNotificationsGroup" -NotificationHub "ContosoInternalHub" -AuthorizationRule "ListenRule"
Met deze opdracht wordt informatie opgehaald voor alle autorisatieregels die zijn toegewezen aan de Notification Hub met de naam ContosoInternalHub in de naamruimte ContosoNamespace. De opdracht gebruikt de parameter AuthorizationRule om de geretourneerde gegevens te beperken tot één autorisatieregel met de naam ListenRule.
Parameters
-AuthorizationRule
Hiermee geeft u de naam van een SAS-verificatieregel. Deze regels bepalen het type toegang dat gebruikers hebben voor de Notification Hub.
Type: | String |
Position: | 3 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DefaultProfile
De referenties, het account, de tenant en het abonnement dat wordt gebruikt voor communicatie met Azure
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Namespace
Hiermee geeft u de naamruimte aan waaraan de Notification Hub is toegewezen. Naamruimten bieden een manier om Notification Hubs te groeperen en te categoriseren.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-NotificationHub
Hiermee geeft u de Notification Hub op die door deze cmdlet autorisatieregels worden toegewezen. Notification Hubs worden gebruikt voor het verzenden van pushmeldingen naar meerdere clients, ongeacht het platform dat door deze clients wordt gebruikt.
Type: | String |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroup
Hiermee geeft u de resourcegroep aan waaraan de Notification Hub is toegewezen. Resourcegroepen organiseren items zoals naamruimten, notification hubs en autorisatieregels op manieren die het voorraadbeheer en Azure-beheer vereenvoudigen.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Invoerwaarden
Uitvoerwaarden
SharedAccessAuthorizationRuleAttributes