-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #251 from necusjz/migrate-vhub-conn
Upload model for `az network vhub connection`
- Loading branch information
Showing
12 changed files
with
1,042 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# [Command] _network vhub connection create_ | ||
|
||
Create a virtual hub VNet connection. | ||
|
||
## Versions | ||
|
||
### [2022-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxodWJzL3t9L2h1YnZpcnR1YWxuZXR3b3JrY29ubmVjdGlvbnMve30=/2022-07-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualhubs/{}/hubvirtualnetworkconnections/{} 2022-07-01 --> | ||
|
||
#### examples | ||
|
||
- Create a virtual hub VNet connection without routing configuration. | ||
```bash | ||
network vhub connection create -n MyConnection --vhub-name MyHub -g MyRG --remote-vnet MyVNet | ||
``` | ||
|
||
- Create a virtual hub VNet connection with routing configuration. | ||
```bash | ||
network vhub connection create -n MyConnection --vhub-name MyHub -g MyRG --remote-vnet MyVNet --associated-route-table /subscriptions/MySub/resourceGroups/MyRG/providers/Microsoft.Network/virtualHubs/MyHub/hubRouteTables/RouteTable1 --propagated-route-tables /subscriptions/MySub/resourceGroups/MyRG/providers/Microsoft.Network/virtualHubs/MyHub/hubRouteTables/RouteTable1 /subscriptions/MySub/resourceGroups/MyRG/providers/Microsoft.Network/virtualHubs/MyHub/hubRouteTables/RouteTable2 --labels label1 label2 --route-name route1 --next-hop 70.0.0.2 --address-prefixes 10.80.0.0/16 10.90.0.0/16 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# [Command] _network vhub connection delete_ | ||
|
||
Delete a virtual hub VNet connection. | ||
|
||
## Versions | ||
|
||
### [2022-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxodWJzL3t9L2h1YnZpcnR1YWxuZXR3b3JrY29ubmVjdGlvbnMve30=/2022-07-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualhubs/{}/hubvirtualnetworkconnections/{} 2022-07-01 --> | ||
|
||
#### examples | ||
|
||
- Delete a virtual hub VNet connection. | ||
```bash | ||
network vhub connection delete -n MyConnection --vhub-name MyHub -g MyRG | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# [Command] _network vhub connection list_ | ||
|
||
List virtual hub VNet connections. | ||
|
||
## Versions | ||
|
||
### [2022-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxodWJzL3t9L2h1YnZpcnR1YWxuZXR3b3JrY29ubmVjdGlvbnM=/2022-07-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualhubs/{}/hubvirtualnetworkconnections 2022-07-01 --> | ||
|
||
#### examples | ||
|
||
- List VNet connections in a given virtual hub. | ||
```bash | ||
network vhub connection list --vhub-name MyHub -g MyRG | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# [Command] _network vhub connection show_ | ||
|
||
Get the details of a virtual hub VNet connection. | ||
|
||
## Versions | ||
|
||
### [2022-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxodWJzL3t9L2h1YnZpcnR1YWxuZXR3b3JrY29ubmVjdGlvbnMve30=/2022-07-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualhubs/{}/hubvirtualnetworkconnections/{} 2022-07-01 --> | ||
|
||
#### examples | ||
|
||
- Get the details of a virtual hub VNet connection. | ||
```bash | ||
network vhub connection show -n MyConnection --vhub-name MyHub -g MyRG | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# [Command] _network vhub connection update_ | ||
|
||
Update settings of a virtual hub connection. | ||
|
||
## Versions | ||
|
||
### [2022-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxodWJzL3t9L2h1YnZpcnR1YWxuZXR3b3JrY29ubmVjdGlvbnMve30=/2022-07-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualhubs/{}/hubvirtualnetworkconnections/{} 2022-07-01 --> | ||
|
||
#### examples | ||
|
||
- Add labels for propagated route tables under routing configuration. | ||
```bash | ||
network vhub connection update -n MyConnection --vhub-name MyHub -g MyRG --labels Newlabel1 Newlabel2 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# [Group] _network vhub connection_ | ||
|
||
Manage virtual hub VNet connections. | ||
|
||
## Commands | ||
|
||
- [create](/Commands/network/vhub/connection/_create.md) | ||
: Create a virtual hub VNet connection. | ||
|
||
- [delete](/Commands/network/vhub/connection/_delete.md) | ||
: Delete a virtual hub VNet connection. | ||
|
||
- [list](/Commands/network/vhub/connection/_list.md) | ||
: List virtual hub VNet connections. | ||
|
||
- [show](/Commands/network/vhub/connection/_show.md) | ||
: Get the details of a virtual hub VNet connection. | ||
|
||
- [update](/Commands/network/vhub/connection/_update.md) | ||
: Update settings of a virtual hub connection. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...mdC5uZXR3b3JrL3ZpcnR1YWxodWJzL3t9L2h1YnZpcnR1YWxuZXR3b3JrY29ubmVjdGlvbnM=/2022-07-01.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualhubs/{}/hubvirtualnetworkconnections", "version": "2022-07-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay92aXJ0dWFsSHVicy97dmlydHVhbEh1Yk5hbWV9L2h1YlZpcnR1YWxOZXR3b3JrQ29ubmVjdGlvbnM=/V/MjAyMi0wNy0wMQ=="}], "commandGroups": [{"name": "network vhub connection", "commands": [{"name": "list", "version": "2022-07-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualhubs/{}/hubvirtualnetworkconnections", "version": "2022-07-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay92aXJ0dWFsSHVicy97dmlydHVhbEh1Yk5hbWV9L2h1YlZpcnR1YWxOZXR3b3JrQ29ubmVjdGlvbnM=/V/MjAyMi0wNy0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Path.virtualHubName", "options": ["vhub-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "Name of the virtual hub."}}]}], "operations": [{"operationId": "HubVirtualNetworkConnections_List", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}, {"type": "string", "name": "virtualHubName", "arg": "$Path.virtualHubName", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-07-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array<object>", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/virtualHubs/{}/hubVirtualNetworkConnections/{}"}}, {"type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "allowHubToRemoteVnetTransit"}, {"type": "boolean", "name": "allowRemoteVnetToUseHubVnetGateways"}, {"type": "boolean", "name": "enableInternetSecurity"}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "remoteVirtualNetwork", "props": [{"type": "string", "name": "id"}], "cls": "SubResource_read"}, {"type": "object", "name": "routingConfiguration", "props": [{"type": "@SubResource_read", "name": "associatedRouteTable"}, {"type": "@SubResource_read", "name": "inboundRouteMap"}, {"type": "@SubResource_read", "name": "outboundRouteMap"}, {"type": "object", "name": "propagatedRouteTables", "props": [{"type": "array<@SubResource_read>", "name": "ids", "item": {"type": "@SubResource_read"}}, {"type": "array<string>", "name": "labels", "item": {"type": "string"}}]}, {"type": "object", "name": "vnetRoutes", "props": [{"readOnly": true, "type": "array<@SubResource_read>", "name": "bgpConnections", "item": {"type": "@SubResource_read"}}, {"type": "array<object>", "name": "staticRoutes", "item": {"type": "object", "props": [{"type": "array<string>", "name": "addressPrefixes", "item": {"type": "string"}}, {"type": "string", "name": "name"}, {"type": "string", "name": "nextHopIpAddress"}]}}, {"type": "object", "name": "staticRoutesConfig", "props": [{"readOnly": true, "type": "boolean", "name": "propagateStaticRoutes"}, {"type": "string", "name": "vnetLocalRouteOverrideCriteria", "enum": {"items": [{"value": "Contains"}, {"value": "Equal"}]}}]}]}]}], "clientFlatten": true}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]} |
Oops, something went wrong.