Local Network Gateways - Create Or Update
Belirtilen kaynak grubunda yerel ağ geçidi oluşturur veya güncelleştirir.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}?api-version=2023-09-01
URI Parametreleri
Name | İçinde | Gerekli | Tür | Description |
---|---|---|---|---|
local
|
path | True |
string |
Yerel ağ geçidinin adı. |
resource
|
path | True |
string |
Kaynak grubunun adı. |
subscription
|
path | True |
string |
Microsoft Azure aboneliğini benzersiz olarak tanımlayan abonelik kimlik bilgileri. Abonelik kimliği, her hizmet çağrısı için URI'nin bir parçasını oluşturur. |
api-version
|
query | True |
string |
İstemci API sürümü. |
İstek Gövdesi
Name | Tür | Description |
---|---|---|
id |
string |
Kaynak Kimliği. |
location |
string |
Kaynak konumu. |
properties.bgpSettings |
Yerel ağ geçidinin BGP hoparlör ayarları. |
|
properties.fqdn |
string |
Yerel ağ geçidinin FQDN'sini seçin. |
properties.gatewayIpAddress |
string |
Yerel ağ geçidinin IP adresi. |
properties.localNetworkAddressSpace |
Yerel ağ sitesi adres alanı. |
|
tags |
object |
Kaynak etiketleri. |
Yanıtlar
Name | Tür | Description |
---|---|---|
200 OK |
Güncelleştirme başarılı. İşlem, sonuçta elde edilen LocalNetworkGateway kaynağını döndürür. |
|
201 Created |
Oluşturma başarılı. İşlem, sonuçta elde edilen LocalNetworkGateway kaynağını döndürür. |
|
Other Status Codes |
İşlemin neden başarısız olduğunu açıklayan hata yanıtı. |
Güvenlik
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | kullanıcı hesabınızın kimliğine bürünme |
Örnekler
CreateLocalNetworkGateway
Sample Request
PUT https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw?api-version=2023-09-01
{
"properties": {
"localNetworkAddressSpace": {
"addressPrefixes": [
"10.1.0.0/16"
]
},
"gatewayIpAddress": "11.12.13.14",
"fqdn": "site1.contoso.com"
},
"location": "Central US"
}
Sample Response
{
"name": "localgw",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw",
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
"type": "Microsoft.Network/localNetworkGateways",
"location": "centralus",
"properties": {
"provisioningState": "Updating",
"resourceGuid": "00000000-0000-0000-0000-000000000000",
"localNetworkAddressSpace": {
"addressPrefixes": [
"10.1.0.0/16"
]
},
"gatewayIpAddress": "11.12.13.14"
}
}
{
"name": "localgw",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw",
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
"type": "Microsoft.Network/localNetworkGateways",
"location": "centralus",
"properties": {
"provisioningState": "Updating",
"resourceGuid": "00000000-0000-0000-0000-000000000000",
"localNetworkAddressSpace": {
"addressPrefixes": [
"10.1.0.0/16"
]
},
"gatewayIpAddress": "11.12.13.14"
}
}
Tanımlar
Name | Description |
---|---|
Address |
AddressSpace, sanal ağın alt ağları tarafından kullanılabilecek bir IP adresi aralıkları dizisi içerir. |
Bgp |
BGP ayarları ayrıntıları. |
Cloud |
Hizmetten bir hata yanıtı. |
Cloud |
Hizmetten bir hata yanıtı. |
IPConfiguration |
IPConfigurationBgpPeeringAddress özellikleri. |
Local |
Genel kaynak bilgileri için ortak bir sınıf. |
Provisioning |
Geçerli sağlama durumu. |
AddressSpace
AddressSpace, sanal ağın alt ağları tarafından kullanılabilecek bir IP adresi aralıkları dizisi içerir.
Name | Tür | Description |
---|---|---|
addressPrefixes |
string[] |
CIDR gösteriminde bu sanal ağ için ayrılmış adres bloklarının listesi. |
BgpSettings
BGP ayarları ayrıntıları.
Name | Tür | Description |
---|---|---|
asn |
integer |
BGP hoparlörün ASN'sini. |
bgpPeeringAddress |
string |
Bu BGP konuşmacısının BGP eşleme adresi ve BGP tanımlayıcısı. |
bgpPeeringAddresses |
Sanal ağ geçidi için IP yapılandırma kimliğine sahip BGP eşleme adresi. |
|
peerWeight |
integer |
Bu BGP hoparlöründen öğrenilen rotalara eklenen ağırlık. |
CloudError
Hizmetten bir hata yanıtı.
Name | Tür | Description |
---|---|---|
error |
Bulut hata gövdesi. |
CloudErrorBody
Hizmetten bir hata yanıtı.
Name | Tür | Description |
---|---|---|
code |
string |
Hatanın tanımlayıcısı. Kodlar sabittir ve program aracılığıyla kullanılması amaçlanmıştır. |
details |
Hatayla ilgili ek ayrıntıların listesi. |
|
message |
string |
Hatayı açıklayan ve kullanıcı arabiriminde görüntülenmeye uygun olması amaçlanan bir ileti. |
target |
string |
Belirli bir hatanın hedefi. Örneğin, özelliğin adı hatalı. |
IPConfigurationBgpPeeringAddress
IPConfigurationBgpPeeringAddress özellikleri.
Name | Tür | Description |
---|---|---|
customBgpIpAddresses |
string[] |
IP yapılandırmasına ait özel BGP eşleme adreslerinin listesi. |
defaultBgpIpAddresses |
string[] |
IP yapılandırmasına ait varsayılan BGP eşleme adreslerinin listesi. |
ipconfigurationId |
string |
Ağ geçidine ait IP yapılandırmasının kimliği. |
tunnelIpAddresses |
string[] |
IP yapılandırmasına ait tünel genel IP adreslerinin listesi. |
LocalNetworkGateway
Genel kaynak bilgileri için ortak bir sınıf.
Name | Tür | Description |
---|---|---|
etag |
string |
Kaynak her güncelleştirildiğinde değişen benzersiz bir salt okunur dize. |
id |
string |
Kaynak Kimliği. |
location |
string |
Kaynak konumu. |
name |
string |
Kaynak adı. |
properties.bgpSettings |
Yerel ağ geçidinin BGP hoparlör ayarları. |
|
properties.fqdn |
string |
Yerel ağ geçidinin FQDN'sini seçin. |
properties.gatewayIpAddress |
string |
Yerel ağ geçidinin IP adresi. |
properties.localNetworkAddressSpace |
Yerel ağ sitesi adres alanı. |
|
properties.provisioningState |
Yerel ağ geçidi kaynağının sağlama durumu. |
|
properties.resourceGuid |
string |
Yerel ağ geçidi kaynağının kaynak GUID özelliği. |
tags |
object |
Kaynak etiketleri. |
type |
string |
Kaynak türü. |
ProvisioningState
Geçerli sağlama durumu.
Name | Tür | Description |
---|---|---|
Deleting |
string |
|
Failed |
string |
|
Succeeded |
string |
|
Updating |
string |