Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Commands/network/route-table/route/_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,14 @@ Create a route in a route table.
```bash
network route-table route create -g MyResourceGroup --route-table-name MyRouteTable -n MyRoute --next-hop-type VirtualAppliance --address-prefix 10.0.0.0/16 --next-hop-ip-address 10.0.100.4
```

### [2025-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3JvdXRldGFibGVzL3t9L3JvdXRlcy97fQ==/2025-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/routetables/{}/routes/{} 2025-07-01 -->

#### examples

- Create a route that forces all inbound traffic to a Network Virtual Appliance.
```bash
network route-table route create -g MyResourceGroup --route-table-name MyRouteTable -n MyRoute --next-hop-type VirtualAppliance --address-prefix 10.0.0.0/16 --next-hop-ip-address 10.0.100.4
```
11 changes: 11 additions & 0 deletions Commands/network/route-table/route/_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,14 @@ Delete a route from a route table.
```bash
network route-table route delete -g MyResourceGroup --route-table-name MyRouteTable -n MyRoute
```

### [2025-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3JvdXRldGFibGVzL3t9L3JvdXRlcy97fQ==/2025-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/routetables/{}/routes/{} 2025-07-01 -->

#### examples

- Delete a route from a route table.
```bash
network route-table route delete -g MyResourceGroup --route-table-name MyRouteTable -n MyRoute
```
11 changes: 11 additions & 0 deletions Commands/network/route-table/route/_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,14 @@ List routes in a route table.
```bash
network route-table route list -g MyResourceGroup --route-table-name MyRouteTable
```

### [2025-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3JvdXRldGFibGVzL3t9L3JvdXRlcw==/2025-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/routetables/{}/routes 2025-07-01 -->

#### examples

- List routes in a route table.
```bash
network route-table route list -g MyResourceGroup --route-table-name MyRouteTable
```
11 changes: 11 additions & 0 deletions Commands/network/route-table/route/_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,14 @@ Get the details of a route in a route table.
```bash
network route-table route show -g MyResourceGroup --route-table-name MyRouteTable -n MyRoute -o table
```

### [2025-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3JvdXRldGFibGVzL3t9L3JvdXRlcy97fQ==/2025-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/routetables/{}/routes/{} 2025-07-01 -->

#### examples

- Get the details of a route in a route table.
```bash
network route-table route show -g MyResourceGroup --route-table-name MyRouteTable -n MyRoute -o table
```
16 changes: 16 additions & 0 deletions Commands/network/route-table/route/_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,19 @@ Update a route in a route table.
```bash
network route-table route update --address-prefix 10.0.0.0/16 --name MyRoute --next-hop-ip-address 10.0.100.5 --next-hop-type VirtualNetworkGateway --resource-group MyResourceGroup --route-table-name MyRouteTable
```

### [2025-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3JvdXRldGFibGVzL3t9L3JvdXRlcy97fQ==/2025-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/routetables/{}/routes/{} 2025-07-01 -->

#### examples

- Update a route in a route table to change the next hop ip address.
```bash
network route-table route update -g MyResourceGroup --route-table-name MyRouteTable -n MyRoute --next-hop-ip-address 10.0.100.5
```

- Update a route in a route table.
```bash
network route-table route update --address-prefix 10.0.0.0/16 --name MyRoute --next-hop-ip-address 10.0.100.5 --next-hop-type VirtualNetworkGateway --resource-group MyResourceGroup --route-table-name MyRouteTable
```
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/routetables/{}/routes", "version": "2025-07-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9yb3V0ZVRhYmxlcy97cm91dGVUYWJsZU5hbWV9L3JvdXRlcw==/V/MjAyNS0wNy0wMQ=="}], "commandGroups": [{"name": "network route-table route", "commands": [{"name": "list", "version": "2025-07-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/routetables/{}/routes", "version": "2025-07-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9yb3V0ZVRhYmxlcy97cm91dGVUYWJsZU5hbWV9L3JvdXRlcw==/V/MjAyNS0wNy0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "string", "var": "$Path.routeTableName", "options": ["route-table-name"], "required": true, "idPart": "name", "help": {"short": "Route table name."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "Routes_List", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "routeTableName", "arg": "$Path.routeTableName", "required": true}, {"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/routeTables/{}/routes/{}"}}, {"type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "addressPrefix"}, {"readOnly": true, "type": "boolean", "name": "hasBgpOverride"}, {"type": "object", "name": "nextHop", "props": [{"type": "array<string>", "name": "nextHopIpAddresses", "required": true, "format": {"maxLength": 64, "minLength": 2}, "item": {"type": "string"}}]}, {"type": "string", "name": "nextHopIpAddress"}, {"type": "string", "name": "nextHopType", "required": true, "enum": {"items": [{"value": "Internet"}, {"value": "None"}, {"value": "VirtualAppliance"}, {"value": "VirtualApplianceEcmp"}, {"value": "VirtualNetworkGateway"}, {"value": "VnetLocal"}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Canceled"}, {"value": "Creating"}, {"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}], "clientFlatten": true}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}]}]}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/routetables/{}/routes" version="2025-07-01" swagger="mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9yb3V0ZVRhYmxlcy97cm91dGVUYWJsZU5hbWV9L3JvdXRlcw==/V/MjAyNS0wNy0wMQ=="/>
<commandGroup name="network route-table route">
<command name="list" version="2025-07-01">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/routetables/{}/routes" version="2025-07-01" swagger="mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9yb3V0ZVRhYmxlcy97cm91dGVUYWJsZU5hbWV9L3JvdXRlcw==/V/MjAyNS0wNy0wMQ=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="string" var="$Path.routeTableName" options="route-table-name" required="True" idPart="name">
<help short="Route table name."/>
</arg>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
</argGroup>
<operation operationId="Routes_List">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes">
<request method="get">
<path>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="string" name="routeTableName" arg="$Path.routeTableName" required="True"/>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2025-07-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop type="string" name="nextLink"/>
<prop type="array<object>" name="value" required="True">
<item type="object">
<prop readOnly="True" type="string" name="etag"/>
<prop type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/routeTables/{}/routes/{}"/>
</prop>
<prop type="string" name="name"/>
<prop type="object" name="properties" clientFlatten="True">
<prop type="string" name="addressPrefix"/>
<prop readOnly="True" type="boolean" name="hasBgpOverride"/>
<prop type="object" name="nextHop">
<prop type="array<string>" name="nextHopIpAddresses" required="True">
<format maxLength="64" minLength="2"/>
<item type="string"/>
</prop>
</prop>
<prop type="string" name="nextHopIpAddress"/>
<prop type="string" name="nextHopType" required="True">
<enum>
<item value="&quot;Internet&quot;"/>
<item value="&quot;None&quot;"/>
<item value="&quot;VirtualAppliance&quot;"/>
<item value="&quot;VirtualApplianceEcmp&quot;"/>
<item value="&quot;VirtualNetworkGateway&quot;"/>
<item value="&quot;VnetLocal&quot;"/>
</enum>
</prop>
<prop readOnly="True" type="string" name="provisioningState">
<enum>
<item value="&quot;Canceled&quot;"/>
<item value="&quot;Creating&quot;"/>
<item value="&quot;Deleting&quot;"/>
<item value="&quot;Failed&quot;"/>
<item value="&quot;Succeeded&quot;"/>
<item value="&quot;Updating&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</item>
</prop>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@ODataV4Format"/>
</json>
</body>
</response>
</http>
</operation>
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
</command>
</commandGroup>
</CodeGen>

Large diffs are not rendered by default.

Loading
Loading