Skip to content

Commit 1eaa188

Browse files
authored
Merge pull request #1038 from huiii99/feat/network-nat-gateway-nat64-support
feat: added nat64 support to nat gateway
2 parents a1187ec + ac43503 commit 1eaa188

10 files changed

Lines changed: 984 additions & 0 deletions

File tree

Commands/network/nat/gateway/_create.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,14 @@ Create a NAT gateway.
2525
```bash
2626
network nat gateway create --resource-group MyResourceGroup --name MyNatGateway --location MyLocation --public-ip-addresses MyPublicIp --public-ip-prefixes MyPublicIpPrefix --idle-timeout 4 --zone 2
2727
```
28+
29+
### [2025-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25hdGdhdGV3YXlzL3t9/2025-07-01.xml) **Stable**
30+
31+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/natgateways/{} 2025-07-01 -->
32+
33+
#### examples
34+
35+
- Create a NAT gateway.
36+
```bash
37+
network nat gateway create --resource-group MyResourceGroup --name MyNatGateway --location MyLocation --public-ip-addresses MyPublicIp --public-ip-prefixes MyPublicIpPrefix --idle-timeout 4 --zone 2
38+
```

Commands/network/nat/gateway/_delete.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,14 @@ Delete a NAT gateway.
2525
```bash
2626
network nat gateway delete --resource-group MyResourceGroup --name MyNatGateway
2727
```
28+
29+
### [2025-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25hdGdhdGV3YXlzL3t9/2025-07-01.xml) **Stable**
30+
31+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/natgateways/{} 2025-07-01 -->
32+
33+
#### examples
34+
35+
- Delete a NAT gateway.
36+
```bash
37+
network nat gateway delete --resource-group MyResourceGroup --name MyNatGateway
38+
```

Commands/network/nat/gateway/_list.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,15 @@ List NAT gateways.
2727
```bash
2828
network nat gateway list -g MyResourceGroup
2929
```
30+
31+
### [2025-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25hdGdhdGV3YXlz/2025-07-01.xml) **Stable**
32+
33+
<!-- mgmt-plane /subscriptions/{}/providers/microsoft.network/natgateways 2025-07-01 -->
34+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/natgateways 2025-07-01 -->
35+
36+
#### examples
37+
38+
- List NAT gateways.
39+
```bash
40+
network nat gateway list -g MyResourceGroup
41+
```

Commands/network/nat/gateway/_show.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,19 @@ Show details of a NAT gateway.
3535
```bash
3636
network nat gateway show --ids {GatewayId}
3737
```
38+
39+
### [2025-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25hdGdhdGV3YXlzL3t9/2025-07-01.xml) **Stable**
40+
41+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/natgateways/{} 2025-07-01 -->
42+
43+
#### examples
44+
45+
- Show details of a NAT gateway.
46+
```bash
47+
network nat gateway show --resource-group MyResourceGroup --name MyNatGateway
48+
```
49+
50+
- Show NAT gateway using ID.
51+
```bash
52+
network nat gateway show --ids {GatewayId}
53+
```

Commands/network/nat/gateway/_update.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,14 @@ Update a NAT gateway.
2525
```bash
2626
network nat gateway update -g MyResourceGroup --name MyNatGateway --idle-timeout 5
2727
```
28+
29+
### [2025-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25hdGdhdGV3YXlzL3t9/2025-07-01.xml) **Stable**
30+
31+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/natgateways/{} 2025-07-01 -->
32+
33+
#### examples
34+
35+
- Update a NAT gateway.
36+
```bash
37+
network nat gateway update -g MyResourceGroup --name MyNatGateway --idle-timeout 5
38+
```
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/providers/microsoft.network/natgateways", "version": "2025-07-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmF0R2F0ZXdheXM=/V/MjAyNS0wNy0wMQ=="}, {"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/natgateways", "version": "2025-07-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uYXRHYXRld2F5cw==/V/MjAyNS0wNy0wMQ=="}], "commandGroups": [{"name": "network nat gateway", "commands": [{"name": "list", "version": "2025-07-01", "resources": [{"id": "/subscriptions/{}/providers/microsoft.network/natgateways", "version": "2025-07-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvbmF0R2F0ZXdheXM=/V/MjAyNS0wNy0wMQ=="}, {"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/natgateways", "version": "2025-07-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uYXRHYXRld2F5cw==/V/MjAyNS0wNy0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "conditions": [{"var": "$Condition_NatGateways_ListAll", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.subscriptionId"}, {"type": "not", "operator": {"type": "hasValue", "arg": "$Path.resourceGroupName"}}]}}, {"var": "$Condition_NatGateways_List", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.resourceGroupName"}, {"type": "hasValue", "arg": "$Path.subscriptionId"}]}}], "operations": [{"when": ["$Condition_NatGateways_ListAll"], "operationId": "NatGateways_ListAll", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Network/natGateways", "request": {"method": "get", "path": {"params": [{"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-07-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array<object>", "name": "value", "required": true, "item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/natGateways/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "integer32", "name": "idleTimeoutInMinutes"}, {"type": "string", "name": "nat64", "enum": {"items": [{"value": "Disabled"}, {"value": "Enabled"}, {"value": "None"}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Canceled"}, {"value": "Creating"}, {"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "array<object>", "name": "publicIpAddresses", "item": {"type": "object", "props": [{"type": "string", "name": "id"}], "cls": "CommonSubResource_read"}}, {"type": "array<@CommonSubResource_read>", "name": "publicIpAddressesV6", "item": {"type": "@CommonSubResource_read"}}, {"type": "array<@CommonSubResource_read>", "name": "publicIpPrefixes", "item": {"type": "@CommonSubResource_read"}}, {"type": "array<@CommonSubResource_read>", "name": "publicIpPrefixesV6", "item": {"type": "@CommonSubResource_read"}}, {"readOnly": true, "type": "string", "name": "resourceGuid"}, {"type": "@CommonSubResource_read", "name": "serviceGateway"}, {"type": "@CommonSubResource_read", "name": "sourceVirtualNetwork"}, {"readOnly": true, "type": "array<@CommonSubResource_read>", "name": "subnets", "item": {"type": "@CommonSubResource_read"}}], "clientFlatten": true}, {"type": "object", "name": "sku", "props": [{"type": "string", "name": "name", "enum": {"items": [{"value": "Standard"}, {"value": "StandardV2"}]}}]}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}, {"type": "array<string>", "name": "zones", "item": {"type": "string"}}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"when": ["$Condition_NatGateways_List"], "operationId": "NatGateways_List", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-07-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array<object>", "name": "value", "required": true, "item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/natGateways/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "integer32", "name": "idleTimeoutInMinutes"}, {"type": "string", "name": "nat64", "enum": {"items": [{"value": "Disabled"}, {"value": "Enabled"}, {"value": "None"}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Canceled"}, {"value": "Creating"}, {"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "array<@CommonSubResource_read>", "name": "publicIpAddresses", "item": {"type": "@CommonSubResource_read"}}, {"type": "array<@CommonSubResource_read>", "name": "publicIpAddressesV6", "item": {"type": "@CommonSubResource_read"}}, {"type": "array<@CommonSubResource_read>", "name": "publicIpPrefixes", "item": {"type": "@CommonSubResource_read"}}, {"type": "array<@CommonSubResource_read>", "name": "publicIpPrefixesV6", "item": {"type": "@CommonSubResource_read"}}, {"readOnly": true, "type": "string", "name": "resourceGuid"}, {"type": "@CommonSubResource_read", "name": "serviceGateway"}, {"type": "@CommonSubResource_read", "name": "sourceVirtualNetwork"}, {"readOnly": true, "type": "array<@CommonSubResource_read>", "name": "subnets", "item": {"type": "@CommonSubResource_read"}}], "clientFlatten": true}, {"type": "object", "name": "sku", "props": [{"type": "string", "name": "name", "enum": {"items": [{"value": "Standard"}, {"value": "StandardV2"}]}}]}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}, {"type": "array<string>", "name": "zones", "item": {"type": "string"}}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]}

0 commit comments

Comments
 (0)