Virtual Network Gateways - Create Or Update

在指定的資源群組中建立或更新虛擬網路閘道。

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}?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
extendedLocation

ExtendedLocation

本機虛擬網路閘道類型的擴充位置。

id

string

資源識別碼。

location

string

資源位置。

properties.activeActive

boolean

ActiveActive 旗標。

properties.adminState

adminState

屬性,指出當 vnet 中有多個 Express Route 閘道時,Express Route 閘道是否提供流量

properties.allowRemoteVnetTraffic

boolean

設定此閘道以接受來自其他 Azure 虛擬網路的流量。 此設定不支持連線到 Azure Virtual WAN。

properties.allowVirtualWanTraffic

boolean

設定此閘道以接受來自遠端 Virtual WAN 網路的流量。

properties.autoScaleConfiguration

VirtualNetworkGatewayAutoScaleConfiguration

虛擬網路閘道的自動調整設定

properties.bgpSettings

BgpSettings

虛擬網路閘道的 BGP 喇叭設定。

properties.customRoutes

AddressSpace

位址空間資源的參考,代表客戶針對虛擬網路網關和 VpnClient 所指定的自定義路由地址空間。

properties.disableIPSecReplayProtection

boolean

disableIPSecReplayProtection 旗標。

properties.enableBgp

boolean

是否啟用此虛擬網路閘道的 BGP。

properties.enableBgpRouteTranslationForNat

boolean

EnableBgpRouteTranslationForNat 旗標。

properties.enableDnsForwarding

boolean

是否啟用 DNS 轉送。

properties.enablePrivateIpAddress

boolean

是否需要在此閘道上啟用私人IP以進行連線。

properties.gatewayDefaultSite

SubResource

LocalNetworkGateway 資源的參考,代表具有預設路由的局域網路網站。 拿掉現有的預設網站設定時,請指派 Null 值。

properties.gatewayType

VirtualNetworkGatewayType

此虛擬網路閘道的類型。

properties.ipConfigurations

VirtualNetworkGatewayIPConfiguration[]

虛擬網路閘道的IP組態。

properties.natRules

VirtualNetworkGatewayNatRule[]

虛擬網路閘道的 NatRules。

properties.sku

VirtualNetworkGatewaySku

VirtualNetworkGatewaySku 資源的參考,代表針對虛擬網路網關選取的 SKU。

properties.vNetExtendedLocationResourceId

string

客戶 vnet 資源標識碼。本機閘道類型的 VirtualNetworkGateway 與客戶 vnet 相關聯。

properties.virtualNetworkGatewayPolicyGroups

VirtualNetworkGatewayPolicyGroup[]

VirtualNetworkGatewayPolicyGroup 資源的參考,代表網關可用的 VirtualNetworkGatewayPolicyGroup。

properties.vpnClientConfiguration

VpnClientConfiguration

代表 P2S VpnClient 組態之 VpnClientConfiguration 資源的參考。

properties.vpnGatewayGeneration

VpnGatewayGeneration

此 VirtualNetworkGateway 的產生。 如果 gatewayType 不是 VPN,則必須為 None。

properties.vpnType

VpnType

此虛擬網路閘道的類型。

tags

object

資源標籤。

回應

名稱 類型 Description
200 OK

VirtualNetworkGateway

更新成功。 作業會傳回產生的 VirtualNetworkGateway 資源。

201 Created

VirtualNetworkGateway

建立成功。 作業會傳回產生的 VirtualNetworkGateway 資源。

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 模擬您的用戶帳戶

範例

UpdateVirtualNetworkGateway
UpdateVirtualNetworkScalableGateway

UpdateVirtualNetworkGateway

Sample Request

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

{
  "properties": {
    "ipConfigurations": [
      {
        "properties": {
          "privateIPAllocationMethod": "Dynamic",
          "subnet": {
            "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet"
          },
          "publicIPAddress": {
            "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip"
          }
        },
        "name": "gwipconfig1"
      }
    ],
    "gatewayType": "Vpn",
    "vpnType": "RouteBased",
    "enableBgp": false,
    "activeActive": false,
    "disableIPSecReplayProtection": false,
    "enableDnsForwarding": true,
    "natRules": [
      {
        "name": "natRule1",
        "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/natRules/natRule1",
        "properties": {
          "type": "Static",
          "mode": "EgressSnat",
          "ipConfigurationId": "",
          "internalMappings": [
            {
              "addressSpace": "10.10.0.0/24"
            }
          ],
          "externalMappings": [
            {
              "addressSpace": "50.0.0.0/24"
            }
          ]
        }
      },
      {
        "name": "natRule2",
        "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/natRules/natRule2",
        "properties": {
          "type": "Static",
          "mode": "IngressSnat",
          "ipConfigurationId": "",
          "internalMappings": [
            {
              "addressSpace": "20.10.0.0/24"
            }
          ],
          "externalMappings": [
            {
              "addressSpace": "30.0.0.0/24"
            }
          ]
        }
      }
    ],
    "enableBgpRouteTranslationForNat": false,
    "sku": {
      "name": "VpnGw1",
      "tier": "VpnGw1"
    },
    "vpnClientConfiguration": {
      "vpnClientProtocols": [
        "OpenVPN"
      ],
      "vpnClientRootCertificates": [],
      "vpnClientRevokedCertificates": [],
      "radiusServers": [
        {
          "radiusServerAddress": "10.2.0.0",
          "radiusServerScore": 20,
          "radiusServerSecret": "radiusServerSecret"
        }
      ]
    },
    "bgpSettings": {
      "asn": 65515,
      "bgpPeeringAddress": "10.0.1.30",
      "peerWeight": 0
    },
    "customRoutes": {
      "addressPrefixes": [
        "101.168.0.6/32"
      ]
    },
    "allowVirtualWanTraffic": false,
    "allowRemoteVnetTraffic": false
  },
  "location": "centralus"
}

Sample Response

{
  "name": "vpngw",
  "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw",
  "etag": "W/\"00000000-0000-0000-0000-000000000000\"",
  "type": "Microsoft.Network/virtualNetworkGateways",
  "location": "centralus",
  "properties": {
    "provisioningState": "Succeeded",
    "resourceGuid": "00000000-0000-0000-0000-000000000000",
    "ipConfigurations": [
      {
        "name": "gwipconfig1",
        "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/ipConfigurations/gwipconfig1",
        "etag": "W/\"00000000-0000-0000-0000-000000000000\"",
        "properties": {
          "provisioningState": "Succeeded",
          "privateIPAllocationMethod": "Dynamic",
          "publicIPAddress": {
            "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip"
          },
          "subnet": {
            "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet"
          }
        }
      }
    ],
    "natRules": [
      {
        "name": "natRule1",
        "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/natRules/natRule1",
        "properties": {
          "type": "Static",
          "mode": "EgressSnat",
          "ipConfigurationId": "",
          "internalMappings": [
            {
              "addressSpace": "10.10.0.0/24"
            }
          ],
          "externalMappings": [
            {
              "addressSpace": "50.0.0.0/24"
            }
          ]
        }
      },
      {
        "name": "natRule2",
        "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/natRules/natRule2",
        "properties": {
          "type": "Static",
          "mode": "IngressSnat",
          "ipConfigurationId": "",
          "internalMappings": [
            {
              "addressSpace": "20.10.0.0/24"
            }
          ],
          "externalMappings": [
            {
              "addressSpace": "30.0.0.0/24"
            }
          ]
        }
      }
    ],
    "enableBgpRouteTranslationForNat": false,
    "sku": {
      "name": "VpnGw1",
      "tier": "VpnGw1",
      "capacity": 0
    },
    "gatewayType": "Vpn",
    "vpnType": "RouteBased",
    "vpnGatewayGeneration": "None",
    "enableBgp": false,
    "activeActive": false,
    "disableIPSecReplayProtection": false,
    "enableDnsForwarding": true,
    "inboundDnsForwardingEndpoint": "10.0.1.14",
    "vpnClientConfiguration": {
      "vpnClientProtocols": [
        "OpenVPN"
      ],
      "vpnClientRootCertificates": [],
      "vpnClientRevokedCertificates": [],
      "radiusServers": [
        {
          "radiusServerAddress": "10.2.0.0",
          "radiusServerScore": 20
        }
      ]
    },
    "bgpSettings": {
      "asn": 65515,
      "bgpPeeringAddress": "10.0.1.30",
      "peerWeight": 0,
      "bgpPeeringAddresses": [
        {
          "ipconfigurationId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/ipConfigurations/gwipconfig1",
          "defaultBgpIpAddresses": [
            "10.3.1.254"
          ],
          "customBgpIpAddresses": [
            "169.254.21.10"
          ],
          "tunnelIpAddresses": [
            "52.161.10.135"
          ]
        }
      ]
    },
    "customRoutes": {
      "addressPrefixes": [
        "101.168.0.6/32"
      ]
    },
    "allowVirtualWanTraffic": false,
    "allowRemoteVnetTraffic": false
  }
}
{
  "name": "vpngw",
  "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw",
  "etag": "W/\"00000000-0000-0000-0000-000000000000\"",
  "type": "Microsoft.Network/virtualNetworkGateways",
  "location": "centralus",
  "properties": {
    "provisioningState": "Succeeded",
    "resourceGuid": "00000000-0000-0000-0000-000000000000",
    "ipConfigurations": [
      {
        "name": "gwipconfig1",
        "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/ipConfigurations/gwipconfig1",
        "etag": "W/\"00000000-0000-0000-0000-000000000000\"",
        "properties": {
          "provisioningState": "Succeeded",
          "privateIPAllocationMethod": "Dynamic",
          "publicIPAddress": {
            "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip"
          },
          "subnet": {
            "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet"
          }
        }
      }
    ],
    "natRules": [
      {
        "name": "natRule1",
        "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/natRules/natRule1",
        "properties": {
          "type": "Static",
          "mode": "EgressSnat",
          "ipConfigurationId": "",
          "internalMappings": [
            {
              "addressSpace": "10.10.0.0/24"
            }
          ],
          "externalMappings": [
            {
              "addressSpace": "50.0.0.0/24"
            }
          ]
        }
      },
      {
        "name": "natRule2",
        "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/natRules/natRule2",
        "properties": {
          "type": "Static",
          "mode": "IngressSnat",
          "ipConfigurationId": "",
          "internalMappings": [
            {
              "addressSpace": "20.10.0.0/24"
            }
          ],
          "externalMappings": [
            {
              "addressSpace": "30.0.0.0/24"
            }
          ]
        }
      }
    ],
    "enableBgpRouteTranslationForNat": false,
    "sku": {
      "name": "VpnGw1",
      "tier": "VpnGw1",
      "capacity": 0
    },
    "gatewayType": "Vpn",
    "vpnType": "RouteBased",
    "enableBgp": false,
    "activeActive": false,
    "disableIPSecReplayProtection": false,
    "enableDnsForwarding": true,
    "enablePrivateIpAddress": false,
    "inboundDnsForwardingEndpoint": "10.0.1.14",
    "vpnClientConfiguration": {
      "vpnClientProtocols": [
        "OpenVPN"
      ],
      "vpnClientRootCertificates": [],
      "vpnClientRevokedCertificates": [],
      "radiusServers": [
        {
          "radiusServerAddress": "10.2.0.0",
          "radiusServerScore": 20
        }
      ]
    },
    "bgpSettings": {
      "asn": 65515,
      "bgpPeeringAddress": "10.0.1.30",
      "peerWeight": 0,
      "bgpPeeringAddresses": [
        {
          "ipconfigurationId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/ipConfigurations/gwipconfig1",
          "defaultBgpIpAddresses": [
            "10.3.1.254"
          ],
          "customBgpIpAddresses": [
            "169.254.21.10"
          ],
          "tunnelIpAddresses": [
            "52.161.10.135"
          ]
        }
      ]
    },
    "customRoutes": {
      "addressPrefixes": [
        "101.168.0.6/32"
      ]
    },
    "allowVirtualWanTraffic": false,
    "allowRemoteVnetTraffic": false
  }
}

UpdateVirtualNetworkScalableGateway

Sample Request

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

{
  "properties": {
    "ipConfigurations": [
      {
        "properties": {
          "privateIPAllocationMethod": "Static",
          "subnet": {
            "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet"
          },
          "publicIPAddress": {
            "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip"
          }
        },
        "name": "gwipconfig1"
      }
    ],
    "gatewayType": "ExpressRoute",
    "vpnType": "PolicyBased",
    "enableBgp": false,
    "activeActive": false,
    "disableIPSecReplayProtection": false,
    "natRules": [
      {
        "name": "natRule1",
        "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule1",
        "properties": {
          "type": "Static",
          "mode": "EgressSnat",
          "ipConfigurationId": "",
          "internalMappings": [
            {
              "addressSpace": "10.10.0.0/24"
            }
          ],
          "externalMappings": [
            {
              "addressSpace": "50.0.0.0/24"
            }
          ]
        }
      },
      {
        "name": "natRule2",
        "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule2",
        "properties": {
          "type": "Static",
          "mode": "IngressSnat",
          "ipConfigurationId": "",
          "internalMappings": [
            {
              "addressSpace": "20.10.0.0/24"
            }
          ],
          "externalMappings": [
            {
              "addressSpace": "30.0.0.0/24"
            }
          ]
        }
      }
    ],
    "enableBgpRouteTranslationForNat": false,
    "sku": {
      "name": "ErGwScale",
      "tier": "ErGwScale"
    },
    "vpnClientConfiguration": null,
    "bgpSettings": null,
    "allowVirtualWanTraffic": false,
    "allowRemoteVnetTraffic": false
  },
  "location": "centralus"
}

Sample Response

{
  "name": "ergw",
  "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw",
  "etag": "W/\"00000000-0000-0000-0000-000000000000\"",
  "type": "Microsoft.Network/virtualNetworkGateways",
  "location": "centralus",
  "properties": {
    "provisioningState": "Succeeded",
    "resourceGuid": "00000000-0000-0000-0000-000000000000",
    "ipConfigurations": [
      {
        "name": "gwipconfig1",
        "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/ipConfigurations/default",
        "etag": "W/\"00000000-0000-0000-0000-000000000000\"",
        "properties": {
          "provisioningState": "Succeeded",
          "privateIPAllocationMethod": "Dynamic",
          "publicIPAddress": {
            "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip"
          },
          "subnet": {
            "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet"
          }
        }
      }
    ],
    "natRules": [
      {
        "name": "natRule1",
        "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule1",
        "properties": {
          "type": "Static",
          "mode": "EgressSnat",
          "ipConfigurationId": "",
          "internalMappings": [
            {
              "addressSpace": "10.10.0.0/24"
            }
          ],
          "externalMappings": [
            {
              "addressSpace": "50.0.0.0/24"
            }
          ]
        }
      },
      {
        "name": "natRule2",
        "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule2",
        "properties": {
          "type": "Static",
          "mode": "IngressSnat",
          "ipConfigurationId": "",
          "internalMappings": [
            {
              "addressSpace": "20.10.0.0/24"
            }
          ],
          "externalMappings": [
            {
              "addressSpace": "30.0.0.0/24"
            }
          ]
        }
      }
    ],
    "enableBgpRouteTranslationForNat": false,
    "sku": {
      "name": "ErGwScale",
      "tier": "ErGwScale",
      "capacity": 0
    },
    "autoScaleConfiguration": {
      "bounds": {
        "min": 2,
        "max": 3
      }
    },
    "gatewayType": "ExpressRoute",
    "vpnType": "PolicyBased",
    "vpnGatewayGeneration": "None",
    "enableBgp": false,
    "activeActive": false,
    "disableIPSecReplayProtection": false,
    "vpnClientConfiguration": null,
    "bgpSettings": null,
    "customRoutes": null,
    "allowVirtualWanTraffic": false,
    "allowRemoteVnetTraffic": false
  }
}
{
  "name": "ergw",
  "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw",
  "etag": "W/\"00000000-0000-0000-0000-000000000000\"",
  "type": "Microsoft.Network/virtualNetworkGateways",
  "location": "centralus",
  "properties": {
    "provisioningState": "Succeeded",
    "resourceGuid": "00000000-0000-0000-0000-000000000000",
    "ipConfigurations": [
      {
        "name": "gwipconfig1",
        "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/ipConfigurations/default",
        "etag": "W/\"00000000-0000-0000-0000-000000000000\"",
        "properties": {
          "provisioningState": "Succeeded",
          "privateIPAllocationMethod": "Static",
          "publicIPAddress": {
            "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip"
          },
          "subnet": {
            "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet"
          }
        }
      }
    ],
    "natRules": [
      {
        "name": "natRule1",
        "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule1",
        "properties": {
          "type": "Static",
          "mode": "EgressSnat",
          "ipConfigurationId": "",
          "internalMappings": [
            {
              "addressSpace": "10.10.0.0/24"
            }
          ],
          "externalMappings": [
            {
              "addressSpace": "50.0.0.0/24"
            }
          ]
        }
      },
      {
        "name": "natRule2",
        "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule2",
        "properties": {
          "type": "Static",
          "mode": "IngressSnat",
          "ipConfigurationId": "",
          "internalMappings": [
            {
              "addressSpace": "20.10.0.0/24"
            }
          ],
          "externalMappings": [
            {
              "addressSpace": "30.0.0.0/24"
            }
          ]
        }
      }
    ],
    "enableBgpRouteTranslationForNat": false,
    "sku": {
      "name": "ErGwScale",
      "tier": "ErGwScale",
      "capacity": 2
    },
    "autoScaleConfiguration": {
      "bounds": {
        "min": 2,
        "max": 3
      }
    },
    "gatewayType": "ExpressRoute",
    "vpnType": "PolicyBased",
    "enableBgp": false,
    "activeActive": false,
    "disableIPSecReplayProtection": false,
    "enablePrivateIpAddress": false,
    "vpnClientConfiguration": null,
    "bgpSettings": null,
    "customRoutes": null,
    "allowVirtualWanTraffic": false,
    "allowRemoteVnetTraffic": false
  }
}

定義

名稱 Description
AddressSpace

Addressspace 包含可供虛擬網路的子網路使用的 IP 位址範圍陣列。

adminState

屬性,指出當 vnet 中有多個 Express Route 閘道時,Express Route 閘道是否提供流量

BgpSettings

BGP 設定詳細數據。

CloudError

來自服務的錯誤回應。

CloudErrorBody

來自服務的錯誤回應。

DhGroup

IKE 階段 1 中用於初始 SA 的 DH 群組。

ExtendedLocation

ExtendedLocation 複雜類型。

ExtendedLocationTypes

擴充位置的類型。

IkeEncryption

IKE 加密演算法 (IKE 階段 2) 。

IkeIntegrity

IKE 完整性演算法 (IKE 階段 2) 。

IPAllocationMethod

IP 位址配置方法。

IPConfigurationBgpPeeringAddress

IPConfigurationBgpPeeringAddress 的屬性。

IpsecEncryption

IPSec 加密演算法 (IKE 階段 1) 。

IpsecIntegrity

IPSec 完整性演算法 (IKE 階段 1) 。

IpsecPolicy

虛擬網路網關聯機的IPSec原則設定。

PfsGroup

IKE 階段 2 中用於新子 SA 的 Pfs 群組。

ProvisioningState

目前的布建狀態。

RadiusServer

Radius 伺服器設定。

SubResource

另一個子資源的參考。

VirtualNetworkGateway

一般資源資訊的通用類別。

VirtualNetworkGatewayAutoScaleBounds
VirtualNetworkGatewayAutoScaleConfiguration

虛擬網路 閘道自動調整設定詳細數據

VirtualNetworkGatewayIPConfiguration

虛擬網路閘道的IP組態。

VirtualNetworkGatewayNatRule

VirtualNetworkGatewayNatRule 資源。

VirtualNetworkGatewayPolicyGroup

VirtualNetworkGatewayPolicyGroup 的參數。

VirtualNetworkGatewayPolicyGroupMember

Vpn 用戶端連線設定 PolicyGroup 成員

VirtualNetworkGatewaySku

VirtualNetworkGatewaySku 詳細數據。

VirtualNetworkGatewaySkuName

閘道 SKU 名稱。

VirtualNetworkGatewaySkuTier

閘道 SKU 層。

VirtualNetworkGatewayType

此虛擬網路閘道的類型。

VngClientConnectionConfiguration

用戶端聯機組態的 vpn 用戶端聯機組態。

VpnAuthenticationType

虛擬網路閘道的 VPN 驗證類型。

VpnClientConfiguration

P2S 用戶端的 VpnClientConfiguration。

VpnClientProtocol

虛擬網路閘道的 VpnClientProtocols。

VpnClientRevokedCertificate

VPN 用戶端撤銷虛擬網路閘道的憑證。

VpnClientRootCertificate

虛擬網路閘道的 VPN 用戶端跟證書。

VpnGatewayGeneration

此 VirtualNetworkGateway 的產生。 如果 gatewayType 不是 VPN,則必須為 None。

VpnNatRuleMapping

Vpn NatRule 對應。

VpnNatRuleMode

VPN NAT 的來源 NAT 方向。

VpnNatRuleType

VPN NAT 的 NAT 規則類型。

VpnPolicyMemberAttributeType

Vpn 原則成員屬性類型。

VpnType

此虛擬網路閘道的類型。

AddressSpace

Addressspace 包含可供虛擬網路的子網路使用的 IP 位址範圍陣列。

名稱 類型 Description
addressPrefixes

string[]

在 CIDR 表示法中保留給此虛擬網路的位址區塊清單。

adminState

屬性,指出當 vnet 中有多個 Express Route 閘道時,Express Route 閘道是否提供流量

名稱 類型 Description
Disabled

string

Enabled

string

BgpSettings

BGP 設定詳細數據。

名稱 類型 Description
asn

integer

BGP 說話者的 ASN。

bgpPeeringAddress

string

這個 BGP 說話者的 BGP 對等互連位址和 BGP 識別碼。

bgpPeeringAddresses

IPConfigurationBgpPeeringAddress[]

具有虛擬網路閘道IP組態標識碼的 BGP 對等互連位址。

peerWeight

integer

新增至從這個 BGP 說話者學到之路由的權數。

CloudError

來自服務的錯誤回應。

名稱 類型 Description
error

CloudErrorBody

雲端錯誤本文。

CloudErrorBody

來自服務的錯誤回應。

名稱 類型 Description
code

string

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

details

CloudErrorBody[]

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

message

string

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

target

string

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

DhGroup

IKE 階段 1 中用於初始 SA 的 DH 群組。

名稱 類型 Description
DHGroup1

string

DHGroup14

string

DHGroup2

string

DHGroup2048

string

DHGroup24

string

ECP256

string

ECP384

string

None

string

ExtendedLocation

ExtendedLocation 複雜類型。

名稱 類型 Description
name

string

擴充位置的名稱。

type

ExtendedLocationTypes

擴充位置的類型。

ExtendedLocationTypes

擴充位置的類型。

名稱 類型 Description
EdgeZone

string

IkeEncryption

IKE 加密演算法 (IKE 階段 2) 。

名稱 類型 Description
AES128

string

AES192

string

AES256

string

DES

string

DES3

string

GCMAES128

string

GCMAES256

string

IkeIntegrity

IKE 完整性演算法 (IKE 階段 2) 。

名稱 類型 Description
GCMAES128

string

GCMAES256

string

MD5

string

SHA1

string

SHA256

string

SHA384

string

IPAllocationMethod

IP 位址配置方法。

名稱 類型 Description
Dynamic

string

Static

string

IPConfigurationBgpPeeringAddress

IPConfigurationBgpPeeringAddress 的屬性。

名稱 類型 Description
customBgpIpAddresses

string[]

屬於IP組態的自訂BGP對等互連位址清單。

defaultBgpIpAddresses

string[]

屬於IP組態的預設 BGP 對等互連位址清單。

ipconfigurationId

string

屬於閘道的IP組態標識碼。

tunnelIpAddresses

string[]

屬於IP組態的通道公用IP位址清單。

IpsecEncryption

IPSec 加密演算法 (IKE 階段 1) 。

名稱 類型 Description
AES128

string

AES192

string

AES256

string

DES

string

DES3

string

GCMAES128

string

GCMAES192

string

GCMAES256

string

None

string

IpsecIntegrity

IPSec 完整性演算法 (IKE 階段 1) 。

名稱 類型 Description
GCMAES128

string

GCMAES192

string

GCMAES256

string

MD5

string

SHA1

string

SHA256

string

IpsecPolicy

虛擬網路網關聯機的IPSec原則設定。

名稱 類型 Description
dhGroup

DhGroup

IKE 階段 1 中用於初始 SA 的 DH 群組。

ikeEncryption

IkeEncryption

IKE 加密演算法 (IKE 階段 2) 。

ikeIntegrity

IkeIntegrity

IKE 完整性演算法 (IKE 階段 2) 。

ipsecEncryption

IpsecEncryption

IPSec 加密演算法 (IKE 階段 1) 。

ipsecIntegrity

IpsecIntegrity

IPSec 完整性演算法 (IKE 階段 1) 。

pfsGroup

PfsGroup

IKE 階段 2 中用於新子 SA 的 Pfs 群組。

saDataSizeKilobytes

integer

IPSec 安全性關聯 (也稱為快速模式或階段 2 SA) KB 的承載大小,適用於站對站 VPN 通道。

saLifeTimeSeconds

integer

IPSec 安全性關聯 (也稱為快速模式或階段 2 SA) 存留期,以秒為單位,讓站對站 VPN 通道。

PfsGroup

IKE 階段 2 中用於新子 SA 的 Pfs 群組。

名稱 類型 Description
ECP256

string

ECP384

string

None

string

PFS1

string

PFS14

string

PFS2

string

PFS2048

string

PFS24

string

PFSMM

string

ProvisioningState

目前的布建狀態。

名稱 類型 Description
Deleting

string

Failed

string

Succeeded

string

Updating

string

RadiusServer

Radius 伺服器設定。

名稱 類型 Description
radiusServerAddress

string

這個半徑伺服器的位址。

radiusServerScore

integer

指派給這個半徑伺服器的初始分數。

radiusServerSecret

string

用於這個半徑伺服器的秘密。

SubResource

另一個子資源的參考。

名稱 類型 Description
id

string

資源識別碼。

VirtualNetworkGateway

一般資源資訊的通用類別。

名稱 類型 Description
etag

string

每當更新資源時變更的唯一隻讀字串。

extendedLocation

ExtendedLocation

本機虛擬網路閘道類型的擴充位置。

id

string

資源識別碼。

location

string

資源位置。

name

string

資源名稱。

properties.activeActive

boolean

ActiveActive 旗標。

properties.adminState

adminState

屬性,指出 Express Route 閘道在 vnet 中有多個 Express Route 閘道時,是否提供流量

properties.allowRemoteVnetTraffic

boolean

將此閘道設定為接受來自其他 Azure 虛擬網路的流量。 此設定不支持連線至 Azure Virtual WAN。

properties.allowVirtualWanTraffic

boolean

設定此閘道以接受來自遠端 Virtual WAN 網路的流量。

properties.autoScaleConfiguration

VirtualNetworkGatewayAutoScaleConfiguration

虛擬網路閘道的自動調整設定

properties.bgpSettings

BgpSettings

虛擬網路閘道的 BGP 說話者設定。

properties.customRoutes

AddressSpace

位址空間資源的參考,代表客戶針對虛擬網路網關和 VpnClient 所指定的自定義路由地址空間。

properties.disableIPSecReplayProtection

boolean

disableIPSecReplayProtection 旗標。

properties.enableBgp

boolean

是否啟用此虛擬網路閘道的 BGP。

properties.enableBgpRouteTranslationForNat

boolean

EnableBgpRouteTranslationForNat 旗標。

properties.enableDnsForwarding

boolean

是否啟用 DNS 轉送。

properties.enablePrivateIpAddress

boolean

是否需要在此閘道上啟用私人IP以進行連線。

properties.gatewayDefaultSite

SubResource

LocalNetworkGateway 資源的參考,代表具有預設路由的局域網路網站。 拿掉現有的預設網站設定時,請指派 Null 值。

properties.gatewayType

VirtualNetworkGatewayType

此虛擬網路閘道的類型。

properties.inboundDnsForwardingEndpoint

string

閘道所配置的IP位址,可以傳送 DNS 要求。

properties.ipConfigurations

VirtualNetworkGatewayIPConfiguration[]

虛擬網路閘道的IP組態。

properties.natRules

VirtualNetworkGatewayNatRule[]

虛擬網路閘道的 NatRules。

properties.provisioningState

ProvisioningState

虛擬網路閘道資源的布建狀態。

properties.resourceGuid

string

虛擬網路閘道資源的資源 GUID 屬性。

properties.sku

VirtualNetworkGatewaySku

VirtualNetworkGatewaySku 資源的參考,代表為虛擬網路網關選取的 SKU。

properties.vNetExtendedLocationResourceId

string

客戶 vnet 資源標識碼。本機閘道類型的 VirtualNetworkGateway 與客戶 vnet 相關聯。

properties.virtualNetworkGatewayPolicyGroups

VirtualNetworkGatewayPolicyGroup[]

VirtualNetworkGatewayPolicyGroup 資源的參考,代表網關可用的 VirtualNetworkGatewayPolicyGroup。

properties.vpnClientConfiguration

VpnClientConfiguration

代表 P2S VpnClient 組態之 VpnClientConfiguration 資源的參考。

properties.vpnGatewayGeneration

VpnGatewayGeneration

此 VirtualNetworkGateway 的世代。 如果 gatewayType 不是 VPN,就必須是 None。

properties.vpnType

VpnType

此虛擬網路閘道的類型。

tags

object

資源標籤。

type

string

資源類型。

VirtualNetworkGatewayAutoScaleBounds

名稱 類型 Description
max

integer

自動調整設定的最大縮放單位

min

integer

自動調整設定的最小縮放單位

VirtualNetworkGatewayAutoScaleConfiguration

虛擬網路 閘道自動調整設定詳細數據

名稱 類型 Description
bounds

VirtualNetworkGatewayAutoScaleBounds

自動調整設定的界限

VirtualNetworkGatewayIPConfiguration

虛擬網路閘道的IP組態。

名稱 類型 Description
etag

string

每當更新資源時變更的唯一隻讀字串。

id

string

資源識別碼。

name

string

資源群組內唯一的資源名稱。 此名稱可用來存取資源。

properties.privateIPAddress

string

此閘道的私人IP位址。

properties.privateIPAllocationMethod

IPAllocationMethod

私人IP位址配置方法。

properties.provisioningState

ProvisioningState

虛擬網路閘道IP組態資源的布建狀態。

properties.publicIPAddress

SubResource

公用IP資源的參考。

properties.subnet

SubResource

子網資源的參考。

VirtualNetworkGatewayNatRule

VirtualNetworkGatewayNatRule 資源。

名稱 類型 Description
etag

string

每當更新資源時變更的唯一隻讀字串。

id

string

資源識別碼。

name

string

資源群組內唯一的資源名稱。 此名稱可用來存取資源。

properties.externalMappings

VpnNatRuleMapping[]

NAT 的私人IP位址外部對應。

properties.internalMappings

VpnNatRuleMapping[]

NAT 的私人IP位址內部對應。

properties.ipConfigurationId

string

此 NAT 規則適用的IP組態標識碼。

properties.mode

VpnNatRuleMode

VPN NAT 的來源 NAT 方向。

properties.provisioningState

ProvisioningState

NAT 規則資源的布建狀態。

properties.type

VpnNatRuleType

VPN NAT 的 NAT 規則類型。

type

string

資源類型。

VirtualNetworkGatewayPolicyGroup

VirtualNetworkGatewayPolicyGroup 的參數。

名稱 類型 Description
etag

string

每當更新資源時變更的唯一隻讀字串。

id

string

資源識別碼。

name

string

資源群組內唯一的資源名稱。 此名稱可用來存取資源。

properties.isDefault

boolean

顯示這是否為預設 VirtualNetworkGatewayPolicyGroup。

properties.policyMembers

VirtualNetworkGatewayPolicyGroupMember[]

VirtualNetworkGatewayPolicyGroup 的多個 PolicyMembers。

properties.priority

integer

VirtualNetworkGatewayPolicyGroup 的優先順序。

properties.provisioningState

ProvisioningState

VirtualNetworkGatewayPolicyGroup 資源的布建狀態。

properties.vngClientConnectionConfigurations

SubResource[]

vngClientConnectionConfigurations 的參考清單。

VirtualNetworkGatewayPolicyGroupMember

Vpn 用戶端連線設定 PolicyGroup 成員

名稱 類型 Description
attributeType

VpnPolicyMemberAttributeType

Vpn 原則成員屬性類型。

attributeValue

string

用於此 VirtualNetworkGatewayPolicyGroupMember 的 Attribute 值。

name

string

VirtualNetworkGatewayPolicyGroupMember 的名稱。

VirtualNetworkGatewaySku

VirtualNetworkGatewaySku 詳細數據。

名稱 類型 Description
capacity

integer

容量。

name

VirtualNetworkGatewaySkuName

閘道 SKU 名稱。

tier

VirtualNetworkGatewaySkuTier

閘道 SKU 層。

VirtualNetworkGatewaySkuName

閘道 SKU 名稱。

名稱 類型 Description
Basic

string

ErGw1AZ

string

ErGw2AZ

string

ErGw3AZ

string

ErGwScale

string

HighPerformance

string

Standard

string

UltraPerformance

string

VpnGw1

string

VpnGw1AZ

string

VpnGw2

string

VpnGw2AZ

string

VpnGw3

string

VpnGw3AZ

string

VpnGw4

string

VpnGw4AZ

string

VpnGw5

string

VpnGw5AZ

string

VirtualNetworkGatewaySkuTier

閘道 SKU 層。

名稱 類型 Description
Basic

string

ErGw1AZ

string

ErGw2AZ

string

ErGw3AZ

string

ErGwScale

string

HighPerformance

string

Standard

string

UltraPerformance

string

VpnGw1

string

VpnGw1AZ

string

VpnGw2

string

VpnGw2AZ

string

VpnGw3

string

VpnGw3AZ

string

VpnGw4

string

VpnGw4AZ

string

VpnGw5

string

VpnGw5AZ

string

VirtualNetworkGatewayType

此虛擬網路閘道的類型。

名稱 類型 Description
ExpressRoute

string

LocalGateway

string

Vpn

string

VngClientConnectionConfiguration

用戶端聯機組態的 vpn 用戶端聯機組態。

名稱 類型 Description
etag

string

每當更新資源時變更的唯一隻讀字串。

id

string

資源識別碼。

name

string

資源群組內唯一的資源名稱。 此名稱可用來存取資源。

properties.provisioningState

ProvisioningState

VngClientConnectionConfiguration 資源的布建狀態。

properties.virtualNetworkGatewayPolicyGroups

SubResource[]

virtualNetworkGatewayPolicyGroups 的參考列表

properties.vpnClientAddressPool

AddressSpace

地址空間資源的參考,代表 P2S VpnClient 的地址空間。

VpnAuthenticationType

虛擬網路閘道的 VPN 驗證類型。

名稱 類型 Description
AAD

string

Certificate

string

Radius

string

VpnClientConfiguration

P2S 用戶端的 VpnClientConfiguration。

名稱 類型 Description
aadAudience

string

用於 AAD 驗證之 Vpn 用戶端連線的 VirtualNetworkGateway 資源的 AADAudience 屬性。

aadIssuer

string

用於 AAD 驗證之 Vpn 用戶端連線的 VirtualNetworkGateway 資源的 AADIssuer 屬性。

aadTenant

string

用於 AAD 驗證之 Vpn 用戶端連線的 VirtualNetworkGateway 資源的 AADTenant 屬性。

radiusServerAddress

string

Vpn 用戶端連線之 VirtualNetworkGateway 資源的 radius 伺服器地址屬性。

radiusServerSecret

string

Vpn 用戶端連線之 VirtualNetworkGateway 資源的 radius 秘密屬性。

radiusServers

RadiusServer[]

多個半徑伺服器組態的radiusServers屬性。

vngClientConnectionConfigurations

VngClientConnectionConfiguration[]

虛擬網路閘道 P2S 用戶端的每個IP位址池連線原則。

vpnAuthenticationTypes

VpnAuthenticationType[]

虛擬網路閘道的 VPN 驗證類型。

vpnClientAddressPool

AddressSpace

地址空間資源的參考,代表 P2S VpnClient 的地址空間。

vpnClientIpsecPolicies

IpsecPolicy[]

虛擬網路閘道 P2S 用戶端的 VpnClientIpsecPolicies。

vpnClientProtocols

VpnClientProtocol[]

虛擬網路閘道的 VpnClientProtocols。

vpnClientRevokedCertificates

VpnClientRevokedCertificate[]

虛擬網路閘道的 VpnClientRevokedCertificate。

vpnClientRootCertificates

VpnClientRootCertificate[]

虛擬網路閘道的 VpnClientRootCertificate。

VpnClientProtocol

虛擬網路閘道的 VpnClientProtocols。

名稱 類型 Description
IkeV2

string

OpenVPN

string

SSTP

string

VpnClientRevokedCertificate

VPN 用戶端撤銷虛擬網路閘道的憑證。

名稱 類型 Description
etag

string

每當更新資源時變更的唯一隻讀字串。

id

string

資源識別碼。

name

string

資源群組內唯一的資源名稱。 此名稱可用來存取資源。

properties.provisioningState

ProvisioningState

VPN 用戶端撤銷憑證資源的布建狀態。

properties.thumbprint

string

撤銷的 VPN 用戶端憑證指紋。

VpnClientRootCertificate

虛擬網路閘道的 VPN 用戶端跟證書。

名稱 類型 Description
etag

string

每當更新資源時變更的唯一隻讀字串。

id

string

資源識別碼。

name

string

資源群組內唯一的資源名稱。 此名稱可用來存取資源。

properties.provisioningState

ProvisioningState

VPN 用戶端跟證書資源的布建狀態。

properties.publicCertData

string

憑證公用數據。

VpnGatewayGeneration

此 VirtualNetworkGateway 的產生。 如果 gatewayType 不是 VPN,則必須為 None。

名稱 類型 Description
Generation1

string

Generation2

string

None

string

VpnNatRuleMapping

Vpn NatRule 對應。

名稱 類型 Description
addressSpace

string

Vpn NatRule 對應的地址空間。

portRange

string

Vpn NatRule 對應的埠範圍。

VpnNatRuleMode

VPN NAT 的來源 NAT 方向。

名稱 類型 Description
EgressSnat

string

IngressSnat

string

VpnNatRuleType

VPN NAT 的 NAT 規則類型。

名稱 類型 Description
Dynamic

string

Static

string

VpnPolicyMemberAttributeType

Vpn 原則成員屬性類型。

名稱 類型 Description
AADGroupId

string

CertificateGroupId

string

RadiusAzureGroupId

string

VpnType

此虛擬網路閘道的類型。

名稱 類型 Description
PolicyBased

string

RouteBased

string