Skip to content

Commit 6edd632

Browse files
Added examples for WAF create and update
1 parent fabd030 commit 6edd632

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

src/nginx/azext_nginx/_help.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,17 @@
1111
from knack.help_files import helps # pylint: disable=unused-import
1212

1313
helps['nginx deployment waf-policy create'] = """
14-
type: group
15-
short-summary: Commands to manage Nginx Deployment WAF Policies.
14+
type: command
15+
short-summary: Command to create an Nginx Deployment WAF Policy.
1616
examples:
1717
- name: Create a WAF policy for a Nginx deployment
1818
text: az nginx deployment waf-policy create --name mypolicyname --deployment-name mydeploymentname --resource-group myresourcegroupname --filepath /path/to/my/policy.json --content mycontentfileinbase64encoding
1919
"""
20+
21+
helps['nginx deployment waf-policy update'] = """
22+
type: command
23+
short-summary: Command to update an Nginx Deployment WAF Policy.
24+
examples:
25+
- name: Update a WAF policy for a Nginx deployment
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)