forked from Azure/azure-cli-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
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 Azure#32 from ZengTaoxu/list-and-profile
Add command model for Network
- Loading branch information
Showing
31 changed files
with
53,921 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,17 @@ | ||
# [Command] _network list-service-aliases_ | ||
|
||
List available service aliases in the region which can be used for Service Endpoint Policies. | ||
|
||
## Versions | ||
|
||
### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2xvY2F0aW9ucy97fS9hdmFpbGFibGVzZXJ2aWNlYWxpYXNlcw==/2022-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/providers/microsoft.network/locations/{}/availableservicealiases 2022-01-01 --> | ||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/locations/{}/availableservicealiases 2022-01-01 --> | ||
|
||
#### examples | ||
|
||
- List available service aliases in the region which can be used for Service Endpoint Policies. (autogenerated) | ||
```bash | ||
network list-service-aliases --location westus2 | ||
``` |
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,18 @@ | ||
# [Command] _network list-service-tags_ | ||
|
||
List all service tags which are below to different resources | ||
|
||
A service tag represents a group of IP address prefixes to help minimize complexity for security rule creation. To learn more about list-service-tags, visit https://docs.microsoft.com/azure/virtual-network/security-overview#service-tags. Note that the location parameter is used as a reference for version (not as a filter based on location). For example, even if you specify --location eastus2 you will get the list of service tags with prefix details across all regions but limited to the cloud that your subscription belongs to (i.e. Public, US government, China or Germany). | ||
|
||
## Versions | ||
|
||
### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2xvY2F0aW9ucy97fS9zZXJ2aWNldGFncw==/2022-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/providers/microsoft.network/locations/{}/servicetags 2022-01-01 --> | ||
|
||
#### examples | ||
|
||
- Gets a list of service tag information resources. (autogenerated) | ||
```bash | ||
network list-service-tags --location westus2 | ||
``` |
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,9 @@ | ||
# [Command] _network profile create_ | ||
|
||
Create a network profile. | ||
|
||
## Versions | ||
|
||
### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmtwcm9maWxlcy97fQ==/2022-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkprofiles/{} 2022-01-01 --> |
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 profile delete_ | ||
|
||
Delete a network profile. | ||
|
||
## Versions | ||
|
||
### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmtwcm9maWxlcy97fQ==/2022-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkprofiles/{} 2022-01-01 --> | ||
|
||
#### examples | ||
|
||
- Delete a network profile. (autogenerated) | ||
```bash | ||
network profile delete --name MyNetworkProfile --resource-group MyResourceGroup | ||
``` |
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,17 @@ | ||
# [Command] _network profile list_ | ||
|
||
List network profiles. | ||
|
||
## Versions | ||
|
||
### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmtwcm9maWxlcw==/2022-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/providers/microsoft.network/networkprofiles 2022-01-01 --> | ||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkprofiles 2022-01-01 --> | ||
|
||
#### examples | ||
|
||
- List network profiles (autogenerated) | ||
```bash | ||
network profile list --resource-group MyResourceGroup | ||
``` |
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 profile show_ | ||
|
||
Get the details of a network profile. | ||
|
||
## Versions | ||
|
||
### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmtwcm9maWxlcy97fQ==/2022-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkprofiles/{} 2022-01-01 --> | ||
|
||
#### examples | ||
|
||
- Get the details of a network profile. (autogenerated) | ||
```bash | ||
network profile show --name MyNetworkProfile --resource-group MyResourceGroup | ||
``` |
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,9 @@ | ||
# [Command] _network profile update_ | ||
|
||
Update a network profile. | ||
|
||
## Versions | ||
|
||
### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmtwcm9maWxlcy97fQ==/2022-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkprofiles/{} 2022-01-01 --> |
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,22 @@ | ||
# [Group] _network profile_ | ||
|
||
Manage network profiles. | ||
|
||
To create a network profile, see the create command for the relevant resource. Currently, only Azure Container Instances are supported. | ||
|
||
## Commands | ||
|
||
- [create](/Commands/network/profile/_create.md) | ||
: Create a network profile. | ||
|
||
- [delete](/Commands/network/profile/_delete.md) | ||
: Delete a network profile. | ||
|
||
- [list](/Commands/network/profile/_list.md) | ||
: List network profiles. | ||
|
||
- [show](/Commands/network/profile/_show.md) | ||
: Get the details of a network profile. | ||
|
||
- [update](/Commands/network/profile/_update.md) | ||
: Update a network profile. |
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,26 @@ | ||
# [Command] _network public-ip create_ | ||
|
||
Create a public IP address. | ||
|
||
## Versions | ||
|
||
### [2022-05-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3B1YmxpY2lwYWRkcmVzc2VzL3t9/2022-05-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/publicipaddresses/{} 2022-05-01 --> | ||
|
||
#### examples | ||
|
||
- Create a basic public IP resource. | ||
```bash | ||
network public-ip create -g MyResourceGroup -n MyIp | ||
``` | ||
|
||
- Create a static public IP resource for a DNS name label. | ||
```bash | ||
network public-ip create -g MyResourceGroup -n MyIp --dns-name MyLabel --allocation-method Static | ||
``` | ||
|
||
- Create a public IP resource in an availability zone in the current resource group region. | ||
```bash | ||
network public-ip create -g MyResourceGroup -n MyIp --zone 2 | ||
``` |
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 public-ip delete_ | ||
|
||
Delete a public IP address. | ||
|
||
## Versions | ||
|
||
### [2022-05-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3B1YmxpY2lwYWRkcmVzc2VzL3t9/2022-05-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/publicipaddresses/{} 2022-05-01 --> | ||
|
||
#### examples | ||
|
||
- Delete a public IP address. | ||
```bash | ||
network public-ip delete -g MyResourceGroup -n MyIp | ||
``` |
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,27 @@ | ||
# [Command] _network public-ip list_ | ||
|
||
List public IP addresses. | ||
|
||
## Versions | ||
|
||
### [2022-05-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3B1YmxpY2lwYWRkcmVzc2Vz/2022-05-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/providers/microsoft.network/publicipaddresses 2022-05-01 --> | ||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/publicipaddresses 2022-05-01 --> | ||
|
||
#### examples | ||
|
||
- List all public IPs in a subscription. | ||
```bash | ||
network public-ip list | ||
``` | ||
|
||
- List all public IPs in a resource group. | ||
```bash | ||
network public-ip list -g MyResourceGroup | ||
``` | ||
|
||
- List all public IPs of a domain name label. | ||
```bash | ||
network public-ip list -g MyResourceGroup --query "[?dnsSettings.domainNameLabel=='MyLabel']" | ||
``` |
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 public-ip show_ | ||
|
||
Get the details of a public IP address. | ||
|
||
## Versions | ||
|
||
### [2022-05-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3B1YmxpY2lwYWRkcmVzc2VzL3t9/2022-05-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/publicipaddresses/{} 2022-05-01 --> | ||
|
||
#### examples | ||
|
||
- Get information about a public IP resource. | ||
```bash | ||
network public-ip show -g MyResourceGroup -n MyIp | ||
``` | ||
|
||
- Get the FQDN and IP address of a public IP resource. | ||
```bash | ||
network public-ip show -g MyResourceGroup -n MyIp --query "{fqdn: dnsSettings.fqdn,address: ipAddress}" | ||
``` |
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 public-ip update_ | ||
|
||
Update a public IP address. | ||
|
||
## Versions | ||
|
||
### [2022-05-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3B1YmxpY2lwYWRkcmVzc2VzL3t9/2022-05-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/publicipaddresses/{} 2022-05-01 --> | ||
|
||
#### examples | ||
|
||
- Update a public IP resource with a DNS name label and static allocation. | ||
```bash | ||
network public-ip update -g MyResourceGroup -n MyIp --dns-name MyLabel --allocation-method Static | ||
``` |
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,22 @@ | ||
# [Group] _network public-ip_ | ||
|
||
Manage public IP addresses. | ||
|
||
To learn more about public IP addresses visit https://docs.microsoft.com/azure/virtual-network/virtual-network-public-ip-address. | ||
|
||
## Commands | ||
|
||
- [create](/Commands/network/public-ip/_create.md) | ||
: Create a public IP address. | ||
|
||
- [delete](/Commands/network/public-ip/_delete.md) | ||
: Delete a public IP address. | ||
|
||
- [list](/Commands/network/public-ip/_list.md) | ||
: List public IP addresses. | ||
|
||
- [show](/Commands/network/public-ip/_show.md) | ||
: Get the details of a public IP address. | ||
|
||
- [update](/Commands/network/public-ip/_update.md) | ||
: Update a public IP address. |
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
Oops, something went wrong.