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#15 from rmodh/feature-add-azure-traffic-coll…
…ector-cmdlets Add command model for `az network-function traffic-collector`
- Loading branch information
Showing
24 changed files
with
8,497 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,8 @@ | ||
# [Group] _network-function_ | ||
|
||
Manage network function | ||
|
||
## Subgroups | ||
|
||
- [traffic-collector](/Commands/network-function/traffic-collector/readme.md) | ||
: Manage Azure Traffic Collector resources |
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-function traffic-collector create_ | ||
|
||
Create an Azure Traffic Collector resource | ||
|
||
## Versions | ||
|
||
### [2022-08-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrZnVuY3Rpb24vYXp1cmV0cmFmZmljY29sbGVjdG9ycy97fQ==/2022-08-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.networkfunction/azuretrafficcollectors/{} 2022-08-01 --> | ||
|
||
#### examples | ||
|
||
- Create a new azure traffic collector resource | ||
```bash | ||
network-function traffic-collector create --resource-group rg1 --traffic-collector-name atc1 --location eastus | ||
``` |
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-function traffic-collector delete_ | ||
|
||
Delete a specified Azure Traffic Collector resource | ||
|
||
## Versions | ||
|
||
### [2022-08-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrZnVuY3Rpb24vYXp1cmV0cmFmZmljY29sbGVjdG9ycy97fQ==/2022-08-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.networkfunction/azuretrafficcollectors/{} 2022-08-01 --> | ||
|
||
#### examples | ||
|
||
- Delete a specified azure traffic collector resource | ||
```bash | ||
network-function traffic-collector delete --resource-group rg1 --traffic-collector-name atc1 | ||
``` |
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-function traffic-collector list_ | ||
|
||
Return a list of Azure Traffic Collectors | ||
|
||
## Versions | ||
|
||
### [2022-08-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrZnVuY3Rpb24vYXp1cmV0cmFmZmljY29sbGVjdG9ycw==/2022-08-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/providers/microsoft.networkfunction/azuretrafficcollectors 2022-08-01 --> | ||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.networkfunction/azuretrafficcollectors 2022-08-01 --> | ||
|
||
#### examples | ||
|
||
- Return a list of azure traffic collectors in a resource group | ||
```bash | ||
network-function traffic-collector list --resource-group rg1 | ||
``` |
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-function traffic-collector show_ | ||
|
||
Get the specified Azure Traffic Collector resource | ||
|
||
## Versions | ||
|
||
### [2022-08-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrZnVuY3Rpb24vYXp1cmV0cmFmZmljY29sbGVjdG9ycy97fQ==/2022-08-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.networkfunction/azuretrafficcollectors/{} 2022-08-01 --> | ||
|
||
#### examples | ||
|
||
- Get the specified azure traffic collector in a resource group | ||
```bash | ||
network-function traffic-collector show --resource-group rg1 --traffic-collector-name atc1 | ||
``` |
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-function traffic-collector update_ | ||
|
||
Update an Azure Traffic Collector resource | ||
|
||
## Versions | ||
|
||
### [2022-08-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrZnVuY3Rpb24vYXp1cmV0cmFmZmljY29sbGVjdG9ycy97fQ==/2022-08-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.networkfunction/azuretrafficcollectors/{} 2022-08-01 --> | ||
|
||
#### examples | ||
|
||
- Update an azure traffic collector resource | ||
```bash | ||
network-function traffic-collector update --resource-group rg1 --traffic-collector-name atc1 --tags key=value | ||
``` |
16 changes: 16 additions & 0 deletions
16
Commands/network-function/traffic-collector/collector-policy/_create.md
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-function traffic-collector collector-policy create_ | ||
|
||
Create a Collector Policy | ||
|
||
## Versions | ||
|
||
### [2022-08-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrZnVuY3Rpb24vYXp1cmV0cmFmZmljY29sbGVjdG9ycy97fS9jb2xsZWN0b3Jwb2xpY2llcy97fQ==/2022-08-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.networkfunction/azuretrafficcollectors/{}/collectorpolicies/{} 2022-08-01 --> | ||
|
||
#### examples | ||
|
||
- Create a new collector policy | ||
```bash | ||
network-function traffic-collector collector-policy create --resource-group rg1 --traffic-collector-name atc1 --name cp1 --location eastus --ingestion-policy {ingestion-sources:[{resource-id:/subscriptions/<subscription_id>/resourceGroups/<resource_group>/providers/Microsoft.Network/expressRouteCircuits/<cp_name>,source-type:Resource}],ingestion-type:IPFIX} | ||
``` |
16 changes: 16 additions & 0 deletions
16
Commands/network-function/traffic-collector/collector-policy/_delete.md
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-function traffic-collector collector-policy delete_ | ||
|
||
Delete a specified Collector Policy | ||
|
||
## Versions | ||
|
||
### [2022-08-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrZnVuY3Rpb24vYXp1cmV0cmFmZmljY29sbGVjdG9ycy97fS9jb2xsZWN0b3Jwb2xpY2llcy97fQ==/2022-08-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.networkfunction/azuretrafficcollectors/{}/collectorpolicies/{} 2022-08-01 --> | ||
|
||
#### examples | ||
|
||
- Delete a specified collector policy | ||
```bash | ||
network-function traffic-collector collector-policy delete --resource-group rg1 --traffic-collector-name atc1 --name cp1 | ||
``` |
16 changes: 16 additions & 0 deletions
16
Commands/network-function/traffic-collector/collector-policy/_list.md
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-function traffic-collector collector-policy list_ | ||
|
||
List Collector policies | ||
|
||
## Versions | ||
|
||
### [2022-08-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrZnVuY3Rpb24vYXp1cmV0cmFmZmljY29sbGVjdG9ycy97fS9jb2xsZWN0b3Jwb2xpY2llcw==/2022-08-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.networkfunction/azuretrafficcollectors/{}/collectorpolicies 2022-08-01 --> | ||
|
||
#### examples | ||
|
||
- Return a list of collector policies by resource group and traffic-collector name | ||
```bash | ||
network-function traffic-collector collector-policy list --resource-group rg1 --traffic-collector-name atc1 | ||
``` |
16 changes: 16 additions & 0 deletions
16
Commands/network-function/traffic-collector/collector-policy/_show.md
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-function traffic-collector collector-policy show_ | ||
|
||
Get the specified Collector Policy | ||
|
||
## Versions | ||
|
||
### [2022-08-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrZnVuY3Rpb24vYXp1cmV0cmFmZmljY29sbGVjdG9ycy97fS9jb2xsZWN0b3Jwb2xpY2llcy97fQ==/2022-08-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.networkfunction/azuretrafficcollectors/{}/collectorpolicies/{} 2022-08-01 --> | ||
|
||
#### examples | ||
|
||
- Get the specified collector policy | ||
```bash | ||
network-function traffic-collector collector-policy show --resource-group rg1 --traffic-collector-name atc1 --name cp1 | ||
``` |
16 changes: 16 additions & 0 deletions
16
Commands/network-function/traffic-collector/collector-policy/_update.md
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-function traffic-collector collector-policy update_ | ||
|
||
Update a specified Collector Policy | ||
|
||
## Versions | ||
|
||
### [2022-08-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrZnVuY3Rpb24vYXp1cmV0cmFmZmljY29sbGVjdG9ycy97fS9jb2xsZWN0b3Jwb2xpY2llcy97fQ==/2022-08-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.networkfunction/azuretrafficcollectors/{}/collectorpolicies/{} 2022-08-01 --> | ||
|
||
#### examples | ||
|
||
- Update a specified collector policy | ||
```bash | ||
network-function traffic-collector collector-policy update --resource-group rg1 --traffic-collector-name atc1 --name cp1 --location eastus --emission-policies [0]={emission-destinations:[{destination-type:AzureMonitor}],emission-type:IPFIX} | ||
``` |
20 changes: 20 additions & 0 deletions
20
Commands/network-function/traffic-collector/collector-policy/readme.md
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-function traffic-collector collector-policy_ | ||
|
||
Manage Collector Policy for Azure Traffic Collector resource | ||
|
||
## Commands | ||
|
||
- [create](/Commands/network-function/traffic-collector/collector-policy/_create.md) | ||
: Create a Collector Policy | ||
|
||
- [delete](/Commands/network-function/traffic-collector/collector-policy/_delete.md) | ||
: Delete a specified Collector Policy | ||
|
||
- [list](/Commands/network-function/traffic-collector/collector-policy/_list.md) | ||
: List Collector policies | ||
|
||
- [show](/Commands/network-function/traffic-collector/collector-policy/_show.md) | ||
: Get the specified Collector Policy | ||
|
||
- [update](/Commands/network-function/traffic-collector/collector-policy/_update.md) | ||
: Update a specified Collector Policy |
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,25 @@ | ||
# [Group] _network-function traffic-collector_ | ||
|
||
Manage Azure Traffic Collector resources | ||
|
||
## Subgroups | ||
|
||
- [collector-policy](/Commands/network-function/traffic-collector/collector-policy/readme.md) | ||
: Manage Collector Policy for Azure Traffic Collector resource | ||
|
||
## Commands | ||
|
||
- [create](/Commands/network-function/traffic-collector/_create.md) | ||
: Create an Azure Traffic Collector resource | ||
|
||
- [delete](/Commands/network-function/traffic-collector/_delete.md) | ||
: Delete a specified Azure Traffic Collector resource | ||
|
||
- [list](/Commands/network-function/traffic-collector/_list.md) | ||
: Return a list of Azure Traffic Collectors | ||
|
||
- [show](/Commands/network-function/traffic-collector/_show.md) | ||
: Get the specified Azure Traffic Collector resource | ||
|
||
- [update](/Commands/network-function/traffic-collector/_update.md) | ||
: Update an Azure Traffic Collector resource |
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.