Get-AzApiManagementBackend
取得後端的詳細數據。
語法
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
後端的標識碼。 如果指定 ,則會嘗試依標識符尋找後端。 這個參數是選擇性的。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | False |
-Context
PsApiManagementContext 的實例。 這是必要參數。
類型: | PsApiManagementContext |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-DefaultProfile
用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceId
後端的 Arm 資源識別碼。 如果指定 ,則會嘗試依標識符尋找後端。 這是必要參數。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |