如何通过rest API下载VPN站点配置

问题描述:


试图通过rest API下载VPN站点配置得到  202  接受
响应并且还获得了下载配置需要做的位置标题。

Tried to download VPN Sites Configuration through rest API got 202 accepted response and also got location header next what need to be done to download configuration.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/vpnConfiguration?api-version=2018-11-01

Request Body
{
    "vpnSites": [
        "/subscriptions/e5d38122-9d6e-4aef-ba4b-ba900679f374/resourceGroups/test1ResourceGroup/providers/Microsoft.Network/vpnSites/test1VpnSite"
    ],
    "outputBlobSasUrl": "https://blobcortextesturl.blob.core.windows.net/folderforconfig/vpnFile?sp=rw&se=2018-01-10T03%3A42%3A04Z&sv=2017-04-17&sig=WvXrT5bDmDFfgHs%2Brz%2BjAu123eRCNE9BO0eQYcPDT7pY%3D&sr=b"
}

Hello g_usr,

Hello g_usr,

为了从Azure网络专家那里获得最佳答案,请在
上发布您的VPN问题
此MSDN论坛

To get the best possible answer from our Azure Networking experts, please post your VPN question on this MSDN Forum instead.

干杯。