Nat Gateways - Create Or Update
Hiermee maakt of werkt u een nat-gateway bij.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways/{natGatewayName}?api-version=2024-05-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
nat
|
path | True |
string |
De naam van de nat-gateway. |
resource
|
path | True |
string |
De naam van de resourcegroep. |
subscription
|
path | True |
string |
De abonnementsreferenties waarmee het Microsoft Azure-abonnement uniek wordt geïdentificeerd. De abonnements-id maakt deel uit van de URI voor elke serviceoproep. |
api-version
|
query | True |
string |
Client-API-versie. |
Aanvraagbody
Name | Type | Description |
---|---|---|
id |
string |
Resource-id. |
location |
string |
Resourcelocatie. |
properties.idleTimeoutInMinutes |
integer |
De time-out voor inactiviteit van de nat-gateway. |
properties.publicIpAddresses |
Een matrix met openbare IP-adressen die zijn gekoppeld aan de nat-gatewayresource. |
|
properties.publicIpPrefixes |
Een matrix met openbare IP-voorvoegsels die zijn gekoppeld aan de nat-gatewayresource. |
|
sku |
De nat-gateway-SKU. |
|
tags |
object |
Resourcetags. |
zones |
string[] |
Een lijst met beschikbaarheidszones die de zone aangeeft waarin Nat Gateway moet worden geïmplementeerd. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
Update is voltooid. De bewerking retourneert de resulterende NatGateway-resource. |
|
201 Created |
Maken is voltooid. De bewerking retourneert de resulterende NatGateway-resource. |
|
202 Accepted |
Geaccepteerd en de bewerking wordt asynchroon voltooid. |
|
Other Status Codes |
Foutreactie waarin wordt beschreven waarom de bewerking is mislukt. |
Beveiliging
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
Name | Description |
---|---|
user_impersonation | Uw gebruikersaccount imiteren |
Voorbeelden
Create nat gateway
Voorbeeldaanvraag
PUT https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/natGateways/test-natgateway?api-version=2024-05-01
{
"location": "westus",
"sku": {
"name": "Standard"
},
"properties": {
"publicIpAddresses": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1"
}
],
"publicIpPrefixes": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1"
}
]
}
}
Voorbeeldrespons
{
"name": "test-natGateway",
"sku": {
"name": "Standard"
},
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/natGateways/test-natGateway",
"location": "westus",
"properties": {
"idleTimeoutInMinutes": 5,
"provisioningState": "Succeeded",
"publicIpAddresses": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1"
}
],
"publicIpPrefixes": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1"
}
],
"subnets": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1"
}
]
},
"type": "Microsoft.Network/natGateways"
}
{
"name": "test-natGateway",
"sku": {
"name": "Standard"
},
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/natGateways/test-natGateway",
"location": "westus",
"properties": {
"idleTimeoutInMinutes": 5,
"provisioningState": "Succeeded",
"publicIpAddresses": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1"
}
],
"publicIpPrefixes": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1"
}
],
"subnets": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1"
}
]
},
"type": "Microsoft.Network/natGateways"
}
Definities
Name | Description |
---|---|
Cloud |
Een foutreactie van de service. |
Cloud |
Een foutreactie van de service. |
Nat |
Nat Gateway-resource. |
Nat |
SKU van nat-gateway. |
Nat |
Naam van nat-gateway-SKU. |
Provisioning |
De huidige inrichtingsstatus. |
Sub |
Verwijzing naar een andere subresource. |
CloudError
Een foutreactie van de service.
Name | Type | Description |
---|---|---|
error |
Hoofdtekst van cloudfout. |
CloudErrorBody
Een foutreactie van de service.
Name | Type | Description |
---|---|---|
code |
string |
Een id voor de fout. Codes zijn invariant en zijn bedoeld om programmatisch te worden gebruikt. |
details |
Een lijst met aanvullende informatie over de fout. |
|
message |
string |
Een bericht met een beschrijving van de fout, bedoeld om te worden weergegeven in een gebruikersinterface. |
target |
string |
Het doel van de specifieke fout. Bijvoorbeeld de naam van de eigenschap in fout. |
NatGateway
Nat Gateway-resource.
Name | Type | Description |
---|---|---|
etag |
string |
Een unieke alleen-lezen tekenreeks die wordt gewijzigd wanneer de resource wordt bijgewerkt. |
id |
string |
Resource-id. |
location |
string |
Resourcelocatie. |
name |
string |
Resourcenaam. |
properties.idleTimeoutInMinutes |
integer |
De time-out voor inactiviteit van de nat-gateway. |
properties.provisioningState |
De inrichtingsstatus van de NAT-gatewayresource. |
|
properties.publicIpAddresses |
Een matrix met openbare IP-adressen die zijn gekoppeld aan de nat-gatewayresource. |
|
properties.publicIpPrefixes |
Een matrix met openbare IP-voorvoegsels die zijn gekoppeld aan de nat-gatewayresource. |
|
properties.resourceGuid |
string |
De resource-GUID-eigenschap van de NAT-gatewayresource. |
properties.subnets |
Een matrix met verwijzingen naar de subnetten met behulp van deze nat-gatewayresource. |
|
sku |
De nat-gateway-SKU. |
|
tags |
object |
Resourcetags. |
type |
string |
Resourcetype. |
zones |
string[] |
Een lijst met beschikbaarheidszones die de zone aangeeft waarin Nat Gateway moet worden geïmplementeerd. |
NatGatewaySku
SKU van nat-gateway.
Name | Type | Description |
---|---|---|
name |
Naam van nat-gateway-SKU. |
NatGatewaySkuName
Naam van nat-gateway-SKU.
Name | Type | Description |
---|---|---|
Standard |
string |
ProvisioningState
De huidige inrichtingsstatus.
Name | Type | Description |
---|---|---|
Deleting |
string |
|
Failed |
string |
|
Succeeded |
string |
|
Updating |
string |
SubResource
Verwijzing naar een andere subresource.
Name | Type | Description |
---|---|---|
id |
string |
Resource-id. |