Skip to content

Commit

Permalink
Merge pull request Azure#15 from rmodh/feature-add-azure-traffic-coll…
Browse files Browse the repository at this point in the history
…ector-cmdlets

Add command model for `az network-function traffic-collector`
  • Loading branch information
necusjz authored Sep 7, 2022
2 parents c28e8ae + 52dcea8 commit a242939
Show file tree
Hide file tree
Showing 24 changed files with 8,497 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Commands/network-function/readme.md
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
16 changes: 16 additions & 0 deletions Commands/network-function/traffic-collector/_create.md
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
```
16 changes: 16 additions & 0 deletions Commands/network-function/traffic-collector/_delete.md
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
```
17 changes: 17 additions & 0 deletions Commands/network-function/traffic-collector/_list.md
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
```
16 changes: 16 additions & 0 deletions Commands/network-function/traffic-collector/_show.md
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
```
16 changes: 16 additions & 0 deletions Commands/network-function/traffic-collector/_update.md
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
```
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}
```
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
```
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
```
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
```
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}
```
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
25 changes: 25 additions & 0 deletions Commands/network-function/traffic-collector/readme.md
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
3 changes: 3 additions & 0 deletions Commands/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
- [network](/Commands/network/readme.md)
: Manage Azure Network resources.

- [network-function](/Commands/network-function/readme.md)
: Manage network function

- [orbital](/Commands/orbital/readme.md)
: Azure Orbital Ground Station as-a-Service (GSaaS).

Expand Down
Loading

0 comments on commit a242939

Please sign in to comment.