Get-AzApiManagementBackend

取得後端的詳細數據。

Syntax

Get-AzApiManagementBackend
   -Context <PsApiManagementContext>
   [-BackendId <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzApiManagementBackend
   [-BackendId <String>]
   -ResourceId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

取得後端的詳細數據。

範例

範例 1:取得所有後端

$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementBackend -Context $apimContext

取得 Api 管理服務中設定的所有後端清單。

範例 2:取得標識碼 123 所指定的後端

$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementBackend -Context $apimContext -backendId 123

取得標識碼 『123』 所識別之指定後端的詳細數據

參數

-BackendId

後端的標識碼。 如果指定 ,則會嘗試依標識符尋找後端。 這是選擇性參數。

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Context

PsApiManagementContext 的實例。 此為必要參數。

Type:PsApiManagementContext
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-DefaultProfile

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

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ResourceId

後端的 Arm 資源識別碼。 如果指定 ,則會嘗試依標識符尋找後端。 此為必要參數。

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

輸入

PsApiManagementContext

String

輸出

PsApiManagementBackend