Skip to content

Commit

Permalink
waf cli
Browse files Browse the repository at this point in the history
  • Loading branch information
cdxu-147 committed Jan 10, 2025
1 parent 7996b42 commit 949de05
Show file tree
Hide file tree
Showing 40 changed files with 3,269 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Commands/network/alb/_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,14 @@ Create an Application Gateway for Containers resource
```bash
network alb create -g test-rg -n test-alb
```

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers/{} 2025-01-01 -->

#### examples

- Create an Application Gateway for Containers resource
```bash
network alb create -g test-rg -n test-alb --waf-policy-id /subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Networking/securityPolicies/test-wp
```
11 changes: 11 additions & 0 deletions Commands/network/alb/_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,14 @@ Delete an Application Gateway for Containers resource
```bash
network alb delete -g test-rg -n test-alb
```

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers/{} 2025-01-01 -->

#### examples

- Delete an Application Gateway for Containers resource
```bash
network alb delete -g test-rg -n test-alb
```
17 changes: 17 additions & 0 deletions Commands/network/alb/_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,20 @@ List Application Gateway for Containers resource
```bash
network alb list
```

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

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.servicenetworking/trafficcontrollers 2025-01-01 -->
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers 2025-01-01 -->

#### examples

- List Application Gateway for Containers in resource group
```bash
network alb list -g test-rg
```

- List all Application Gateway for Containers in subscription
```bash
network alb list
```
11 changes: 11 additions & 0 deletions Commands/network/alb/_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,14 @@ Get an Application Gateway for Containers resource
```bash
network alb show -g test-rg -n test-alb
```

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers/{} 2025-01-01 -->

#### examples

- Get the details of an Application Gateway for Containers resource
```bash
network alb show -g test-rg -n test-alb
```
11 changes: 11 additions & 0 deletions Commands/network/alb/_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,14 @@ This command can only be used to update the tags for the resource. Name and reso
```bash
network alb update -g test-rg -n test-alb --set tags.CostCenter=testBusinessGroup
```

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers/{} 2025-01-01 -->

#### examples

- Update the tags of the resource
```bash
network alb update -g test-rg -n test-alb --set tags.CostCenter=testBusinessGroup --waf-policy-id /subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Networking/securityPolicies/test-wp
```
11 changes: 11 additions & 0 deletions Commands/network/alb/association/_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,14 @@ Create an Application Gateway for Containers association resource
```bash
network alb association create -g test-rg -n test-association --alb-name test-alb --subnet <subnetId>
```

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers/{}/associations/{} 2025-01-01 -->

#### examples

- Create an Application Gateway for Containers association resource
```bash
network alb association create -g test-rg -n test-association --alb-name test-alb --subnet <subnetId>
```
11 changes: 11 additions & 0 deletions Commands/network/alb/association/_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,14 @@ Delete an Application Gateway for Containers association resource
```bash
network alb association delete -g test-rg -n test-association --alb-name test-alb
```

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers/{}/associations/{} 2025-01-01 -->

#### examples

- Delete an Application Gateway for Containers association resource
```bash
network alb association delete -g test-rg -n test-association --alb-name test-alb
```
11 changes: 11 additions & 0 deletions Commands/network/alb/association/_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,14 @@ List all associations for an Application Gateway for Containers resource
```bash
network alb association list -g test-rg --alb-name test-alb
```

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers/{}/associations 2025-01-01 -->

#### examples

- List all associations for an Application Gateway for Containers resource
```bash
network alb association list -g test-rg --alb-name test-alb
```
11 changes: 11 additions & 0 deletions Commands/network/alb/association/_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,14 @@ Get an Application Gateway for Containers association resource
```bash
network alb association show -g test-rg -n test-association --alb-name test-alb
```

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers/{}/associations/{} 2025-01-01 -->

#### examples

- Get the details of an Application Gateway for containers association resource
```bash
network alb association show -g test-rg -n test-association --alb-name test-alb
```
4 changes: 4 additions & 0 deletions Commands/network/alb/association/_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ Update an Application Gateway for Containers association resource
### [2023-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zZXJ2aWNlbmV0d29ya2luZy90cmFmZmljY29udHJvbGxlcnMve30vYXNzb2NpYXRpb25zL3t9/2023-11-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers/{}/associations/{} 2023-11-01 -->

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers/{}/associations/{} 2025-01-01 -->
11 changes: 11 additions & 0 deletions Commands/network/alb/frontend/_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,14 @@ Create an Application Gateway for Containers frontend resource
```bash
network alb frontend create -g test-rg -n test-frontend --alb-name test-alb
```

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers/{}/frontends/{} 2025-01-01 -->

#### examples

- Create an Application Gateway for Containers frontend resource
```bash
network alb frontend create -g test-rg -n test-frontend --alb-name test-alb
```
11 changes: 11 additions & 0 deletions Commands/network/alb/frontend/_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,14 @@ Delete an Application Gateway for Containers frontend resource
```bash
network alb frontend delete -g test-rg -n test-frontend --alb-name test-alb
```

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers/{}/frontends/{} 2025-01-01 -->

#### examples

- Delete an Application Gateway for Containers frontend resource
```bash
network alb frontend delete -g test-rg -n test-frontend --alb-name test-alb
```
11 changes: 11 additions & 0 deletions Commands/network/alb/frontend/_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,14 @@ List all frontends for an Application Gateway for Containers resource
```bash
network alb frontend list -g test-rg --alb-name test-alb
```

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers/{}/frontends 2025-01-01 -->

#### examples

- List all frontends for an Application Gateway for Containers resource
```bash
network alb frontend list -g test-rg --alb-name test-alb
```
11 changes: 11 additions & 0 deletions Commands/network/alb/frontend/_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,14 @@ Get an Application Gateway for Containers frontend resource
```bash
network alb frontend show -g test-rg -n test-frontend --alb-name test-alb
```

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers/{}/frontends/{} 2025-01-01 -->

#### examples

- Get the details of an Application Gateway for containers frontend resource
```bash
network alb frontend show -g test-rg -n test-frontend --alb-name test-alb
```
4 changes: 4 additions & 0 deletions Commands/network/alb/frontend/_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ Update an Application Gateway for Containers frontend resource
### [2023-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zZXJ2aWNlbmV0d29ya2luZy90cmFmZmljY29udHJvbGxlcnMve30vZnJvbnRlbmRzL3t9/2023-11-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers/{}/frontends/{} 2023-11-01 -->

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers/{}/frontends/{} 2025-01-01 -->
3 changes: 3 additions & 0 deletions Commands/network/alb/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ Manage and Configure Application Gateway for Containers
- [frontend](/Commands/network/alb/frontend/readme.md)
: Manage and Configure Frontends for Application Gateway for Containers resource

- [security-policy](/Commands/network/alb/security-policy/readme.md)
: Manage and Configure Security Policies for Application Gateway for Containers resource

## Commands

- [create](/Commands/network/alb/_create.md)
Expand Down
16 changes: 16 additions & 0 deletions Commands/network/alb/security-policy/_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network alb security-policy create_

Create a SecurityPolicy

## Versions

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers/{}/securitypolicies/{} 2025-01-01 -->

#### examples

- Create an Application Gateway for Containers security policy resource
```bash
network alb security-policy create -g test-rg --alb-name test-tc -n test-sp -l NorthCentralUS --waf-policy-id "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Networking/wafpolicy/test-wp"
```
16 changes: 16 additions & 0 deletions Commands/network/alb/security-policy/_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network alb security-policy delete_

Delete a SecurityPolicy

## Versions

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers/{}/securitypolicies/{} 2025-01-01 -->

#### examples

- Delete SecurityPolicy
```bash
network alb security-policy delete -g test-rg --alb-name test-alb -n test-sp
```
16 changes: 16 additions & 0 deletions Commands/network/alb/security-policy/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network alb security-policy list_

List SecurityPolicy resources by TrafficController

## Versions

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers/{}/securitypolicies 2025-01-01 -->

#### examples

- Get SecurityPolicies
```bash
network alb security-policy list -g test-rg --alb-name test-alb
```
16 changes: 16 additions & 0 deletions Commands/network/alb/security-policy/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network alb security-policy show_

Get a SecurityPolicy

## Versions

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers/{}/securitypolicies/{} 2025-01-01 -->

#### examples

- Get SecurityPolicy
```bash
network alb security-policy show -g test-rg --alb-name test-tc -n test-sp
```
9 changes: 9 additions & 0 deletions Commands/network/alb/security-policy/_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [Command] _network alb security-policy update_

Update a SecurityPolicy

## Versions

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers/{}/securitypolicies/{} 2025-01-01 -->
20 changes: 20 additions & 0 deletions Commands/network/alb/security-policy/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# [Group] _network alb security-policy_

Manage and Configure Security Policies for Application Gateway for Containers resource

## Commands

- [create](/Commands/network/alb/security-policy/_create.md)
: Create a SecurityPolicy

- [delete](/Commands/network/alb/security-policy/_delete.md)
: Delete a SecurityPolicy

- [list](/Commands/network/alb/security-policy/_list.md)
: List SecurityPolicy resources by TrafficController

- [show](/Commands/network/alb/security-policy/_show.md)
: Get a SecurityPolicy

- [update](/Commands/network/alb/security-policy/_update.md)
: Update a SecurityPolicy
Loading

0 comments on commit 949de05

Please sign in to comment.