Virtual Network Gateways - Generate Vpn Profile

為指定資源群組中虛擬網路閘道的 P2S 用戶端產生 VPN 配置檔。 用於 IKEV2 和半徑型驗證。

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnprofile?api-version=2023-09-01

URI 參數

名稱 位於 必要 類型 Description
resourceGroupName
path True

string

資源群組的名稱。

subscriptionId
path True

string

可唯一識別 Microsoft Azure 訂用帳戶的訂用帳戶認證。 訂用帳戶識別碼會構成每個服務呼叫 URI 的一部分。

virtualNetworkGatewayName
path True

string

虛擬網路閘道的名稱。

api-version
query True

string

用戶端 API 版本。

要求本文

名稱 類型 Description
authenticationMethod

AuthenticationMethod

VPN 用戶端驗證方法。

clientRootCertificates

string[]

用戶端跟證書公開憑證數據的清單,編碼為Base-64字串。 使用 EAPTLS 進行外部半徑型驗證的選擇性參數。

processorArchitecture

ProcessorArchitecture

VPN 用戶端處理器架構。

radiusServerAuthCertificate

string

以Base-64編碼字串表示之radius伺服器驗證憑證的公用憑證數據。 只有在已使用 EAPTLS 驗證設定外部半徑驗證時才需要。

回應

名稱 類型 Description
200 OK

string

VPN 設定檔套件 URL。

202 Accepted

已接受,且作業會以異步方式完成。

Other Status Codes

CloudError

描述作業失敗原因的錯誤回應。

安全性

azure_auth

Azure Active Directory OAuth2 Flow。

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名稱 Description
user_impersonation 模擬您的用戶帳戶

範例

GenerateVirtualNetworkGatewayVPNProfile

Sample Request

POST https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/generatevpnprofile?api-version=2023-09-01

{}

Sample Response

Azure-AsyncOperation: https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2023-09-01
""

定義

名稱 Description
AuthenticationMethod

VPN 用戶端驗證方法。

CloudError

來自服務的錯誤回應。

CloudErrorBody

來自服務的錯誤回應。

ProcessorArchitecture

VPN 用戶端處理器架構。

VpnClientParameters

用於產生套件的 Vpn 用戶端參數。

AuthenticationMethod

VPN 用戶端驗證方法。

名稱 類型 Description
EAPMSCHAPv2

string

EAPTLS

string

CloudError

來自服務的錯誤回應。

名稱 類型 Description
error

CloudErrorBody

雲端錯誤本文。

CloudErrorBody

來自服務的錯誤回應。

名稱 類型 Description
code

string

錯誤的識別碼。 程式碼不變,且要以程式設計方式使用。

details

CloudErrorBody[]

錯誤的其他詳細數據清單。

message

string

描述錯誤的訊息,適用於在使用者介面中顯示。

target

string

特定錯誤的目標。 例如,錯誤中的屬性名稱。

ProcessorArchitecture

VPN 用戶端處理器架構。

名稱 類型 Description
Amd64

string

X86

string

VpnClientParameters

用於產生套件的 Vpn 用戶端參數。

名稱 類型 Description
authenticationMethod

AuthenticationMethod

VPN 用戶端驗證方法。

clientRootCertificates

string[]

用戶端跟證書公開憑證數據的清單,編碼為Base-64字串。 使用 EAPTLS 進行外部半徑型驗證的選擇性參數。

processorArchitecture

ProcessorArchitecture

VPN 用戶端處理器架構。

radiusServerAuthCertificate

string

以Base-64編碼字串表示之radius伺服器驗證憑證的公用憑證數據。 只有在已使用 EAPTLS 驗證設定外部半徑驗證時才需要。