Get-AzVirtualNetworkGatewayConnectionIkeSa
取得虛擬網路網關聯機的 IKE 安全性關聯
語法
Get-AzVirtualNetworkGatewayConnectionIkeSa
-Name <String>
-ResourceGroupName <String>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzVirtualNetworkGatewayConnectionIkeSa
-InputObject <PSVirtualNetworkGatewayConnection>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzVirtualNetworkGatewayConnectionIkeSa
-ResourceId <String>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzVirtualNetworkGatewayConnectionIkeSa Cmdlet 會根據連線名稱和資源組名傳回連線的 IKE 安全性關聯。 如果 Get-AzVirtualNetworkGatewayConnection Cmdlet 未指定 -Name 參數,則輸出將不會顯示 IKE 安全性關聯。
範例
範例 1
Get-AzVirtualNetworkGatewayConnectionIkeSa -ResourceGroupName myRG -Name myTunnel
localEndpoint : 52.180.160.154
remoteEndpoint : 104.208.54.1
initiatorCookie : 5490733703579933026
responderCookie : 15460013388959380535
localUdpEncapsulationPort : 0
remoteUdpEncapsulationPort : 0
encryption : AES256
integrity : SHA1
dhGroup : DHGroup2
lifeTimeSeconds : 28800
isSaInitiator : True
elapsedTimeInseconds : 23092
quickModeSa : {}
傳回虛擬網路網關聯機的 IKE 安全性關聯,其名稱為 “myTunnel” 資源群組 “myRG”
參數
-AsJob
在背景中執行 Cmdlet。
類型: | SwitchParameter |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-InputObject
需要擷取 IKE SA 的虛擬網路網關聯機物件。
類型: | PSVirtualNetworkGatewayConnection |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Name
需要擷取 IKE SA 的虛擬網路網關聯機名稱。
類型: | String |
別名: | ResourceName, ConnectionName |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceGroupName
資源組名。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceId
需要擷取 IKE SA 之虛擬網路網關聯機的 Azure 資源識別碼。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
輸入
輸出
Microsoft.Azure.Commands.Network.Models.PSVirtualNetworkGatewayConnectionIkeSa