Get-AzApiManagementSubscription
Ruft Abonnements ab.
Get-AzApiManagementSubscription
-Context <PsApiManagementContext>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzApiManagementSubscription
-Context <PsApiManagementContext>
[-SubscriptionId <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzApiManagementSubscription
-Context <PsApiManagementContext>
-UserId <String>
-ProductId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzApiManagementSubscription
-Context <PsApiManagementContext>
[-UserId <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzApiManagementSubscription
-Context <PsApiManagementContext>
[-ProductId <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzApiManagementSubscription
-Context <PsApiManagementContext>
-Scope <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Die Get-AzApiManagementSubscription Cmdlet ruft ein angegebenes Abonnement oder alle Abonnements ab, wenn kein Abonnement angegeben ist. Schlüssel werden nicht in Ergebnisdetails eingeschlossen. Verwenden Sie zum Abrufen von Schlüsseln Get-AzApiManagementSubscriptionKey.
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-East-US" -ServiceName "contoso"
Get-AzApiManagementSubscription -Context $apimContext
Dieser Befehl ruft alle Abonnements ab.
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-East-US" -ServiceName "contoso"
Get-AzApiManagementSubscription -Context $apimContext -SubscriptionId "0123456789"
Dieser Befehl ruft ein Abonnement nach ID ab.
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-East-US" -ServiceName "contoso"
Get-AzApiManagementSubscription -Context $apimContext -UserId "777"
Dieser Befehl ruft die Abonnements eines Benutzers ab.
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-East-US" -ServiceName "contoso"
Get-AzApiManagementSubscription -Context $apimContext -ProductId "999"
Dieser Befehl ruft alle Abonnements für das Produkt ab.
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-East-US" -ServiceName "contoso"
Get-AzApiManagementSubscription -Context $apimContext -Scope "/apis"
SubscriptionId : allApScope
UserId :
OwnerId :
ProductId :
Scope : /subscriptions/subid/resourceGroups/Api-Default-East-US/providers/Microsoft.ApiManagement/service/contoso/apis
Name : All Api Scope
State : Active
CreatedDate : 6/18/2019 5:53:49 PM
StartDate :
ExpirationDate :
EndDate :
NotificationDate :
PrimaryKey :
SecondaryKey :
StateComment :
AllowTracing : False
Id : /subscriptions/subid/resourceGroups/Api-Default-East-US/providers/Microsoft.ApiManagement/service/contoso/subscriptions/allApScope
ResourceGroupName : Api-Default-East-US
ServiceName : contoso
Dieser Befehl ruft alle Abonnements ab, die für den globalen API-Bereich konfiguriert sind.
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-East-US" -ServiceName "contoso"
Get-AzApiManagementSubscription -Context $apimContext -ProductId 59b872f28a82740f547e6270 -UserId 1
SubscriptionId : 59b872f38a82741750c8da56
UserId : 1
OwnerId : /subscriptions/subid/resourceGroups/Api-Default-East-US/providers/Microsoft.ApiManagement/service/contoso/users/1
ProductId : 59b872f28a82740f547e6270
Scope : /subscriptions/subid/resourceGroups/Api-Default-East-US/providers/Microsoft.ApiManagement/service/contoso/products/59b872f28a82740f547e6270
Name :
State : Active
CreatedDate : 9/12/2017 11:51:15 PM
StartDate : 9/12/2017 12:00:00 AM
ExpirationDate :
EndDate :
NotificationDate :
PrimaryKey :
SecondaryKey :
StateComment :
AllowTracing : True
Id : /subscriptions/subid/resourceGroups/Api-Default-East-US/providers/Microsoft.ApiManagement/service/contoso/subscriptions/59b872f38a82741750c8da56
ResourceGroupName : Api-Default-East-US
ServiceName : contoso
Dieser Befehl ruft alle Abonnements ab, die für den globalen API-Bereich konfiguriert sind.
Gibt ein PsApiManagementContext- -Objekt an.
Typ: | PsApiManagementContext |
Position: | Named |
Standardwert: | None |
Erforderlich: | True |
Pipelineeingabe akzeptieren: | True |
Platzhalterzeichen akzeptieren: | False |
Die Anmeldeinformationen, Konten, Mandanten und Abonnements, die für die Kommunikation mit Azure verwendet werden.
Typ: | IAzureContextContainer |
Aliase: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Pipelineeingabe akzeptieren: | False |
Platzhalterzeichen akzeptieren: | False |
Gibt einen Produktbezeichner an. Wenn angegeben, findet dieses Cmdlet alle Abonnements anhand der Produkt-ID.
Typ: | String |
Position: | Named |
Standardwert: | None |
Erforderlich: | True |
Pipelineeingabe akzeptieren: | True |
Platzhalterzeichen akzeptieren: | False |
Bereichsbezeichner. Der Bereich des Abonnements, unabhängig davon, ob es sich um den API-Bereich /apis/{apiId} oder den Produktbereich /products/{productId} oder den globalen API-Bereich /apis oder den globalen Bereich /apis handelt.
Typ: | String |
Position: | Named |
Standardwert: | None |
Erforderlich: | True |
Pipelineeingabe akzeptieren: | True |
Platzhalterzeichen akzeptieren: | False |
Gibt einen Abonnementbezeichner an. Wenn angegeben, findet dieses Cmdlet das Abonnement anhand des Bezeichners.
Typ: | String |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Pipelineeingabe akzeptieren: | True |
Platzhalterzeichen akzeptieren: | False |
Gibt einen Benutzerbezeichner an. Wenn angegeben, findet dieses Cmdlet alle Abonnements anhand der Benutzer-ID.
Typ: | String |
Position: | Named |
Standardwert: | None |
Erforderlich: | True |
Pipelineeingabe akzeptieren: | True |
Platzhalterzeichen akzeptieren: | False |
Feedback zu Azure PowerShell
Azure PowerShell ist ein Open Source-Projekt. Wählen Sie einen Link aus, um Feedback zu geben: