Skip to content

Commit 47194b8

Browse files
Added examples for WAF create and update
1 parent 86558a0 commit 47194b8

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/nginx/azext_nginx/_help.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,19 @@
99
# pylint: disable=too-many-lines
1010

1111
from knack.help_files import helps # pylint: disable=unused-import
12+
13+
helps['nginx deployment waf-policy create'] = """
14+
type: command
15+
short-summary: Create a WAF policy for an nginx deployment.
16+
examples:
17+
- name: Create a default WAF policy
18+
text: az nginx deployment waf-policy create --name mypolicyname --deployment-name mydeploymentname --resource-group myresourcegroupname --filepath /path/to/my/policy.json --content mycontentfileinbase64encoding
19+
"""
20+
21+
helps['nginx deployment waf-policy update'] = """
22+
type: command
23+
short-summary: Update a WAF policy for an nginx deployment.
24+
examples:
25+
- name: Update a default WAF policy
26+
text: az nginx deployment waf-policy update --name mypolicyname --deployment-name mydeploymentname --resource-group myresourcegroupname --filepath /path/to/my/policy.json --content mycontentfileinbase64encoding
27+
"""

0 commit comments

Comments
 (0)