Skip to content

Commit e816403

Browse files
meverett11676a6d
authored andcommitted
updates lab3, flip exercise #3 and exercise #4 to match Postman collection
1 parent ca0a8bf commit e816403

File tree

1 file changed

+30
-29
lines changed

1 file changed

+30
-29
lines changed

docs/class3/module1/lab3.rst

+30-29
Original file line numberDiff line numberDiff line change
@@ -104,35 +104,7 @@ An HTTP POST to the ``/mgmt/tm/security/firewall/policy`` endpoint with a body c
104104
}
105105
}
106106
107-
3. List AFM policy rules
108-
-------------------------
109-
110-
**Request**
111-
112-
::
113-
114-
GET https://{{big_ip_a_mgmt}}/mgmt/tm/security/firewall/policy/{{afm_policy}}/rules
115-
116-
**Headers**
117-
118-
::
119-
120-
X-F5-Auth-Token: {{big_ip_a_auth_token}}
121-
122-
**Example Response**
123-
124-
.. NOTE:: There will be no rules listed in the newly created policy. Rules are populated in the ``"items": []`` sub collection.
125-
126-
.. code-block:: rest
127-
:emphasize-lines: 4
128-
129-
{
130-
"kind": "tm:security:firewall:policy:rules:rulescollectionstate",
131-
"selfLink": "https://localhost/mgmt/tm/security/firewall/policy/~Common~global_default_deny/rules?ver=13.0.0",
132-
"items": []
133-
}
134-
135-
4. Add default deny rule to policy
107+
3. Add default deny rule to policy
136108
-----------------------------------
137109

138110
An HTTP POST to the ``/mgmt/tm/security/firewall/policy/{{afm_policy}}/rules`` endpoint with a body containing a new rule will add the rule to the firewall policy.
@@ -188,6 +160,35 @@ An HTTP POST to the ``/mgmt/tm/security/firewall/policy/{{afm_policy}}/rules`` e
188160
}
189161
}
190162
163+
4. List AFM policy rules
164+
-------------------------
165+
166+
**Request**
167+
168+
::
169+
170+
GET https://{{big_ip_a_mgmt}}/mgmt/tm/security/firewall/policy/{{afm_policy}}/rules
171+
172+
**Headers**
173+
174+
::
175+
176+
X-F5-Auth-Token: {{big_ip_a_auth_token}}
177+
178+
**Example Response**
179+
180+
.. NOTE:: There will be no rules listed in the newly created policy. Rules are populated in the ``"items": []`` sub collection.
181+
182+
.. code-block:: rest
183+
:emphasize-lines: 4
184+
185+
{
186+
"kind": "tm:security:firewall:policy:rules:rulescollectionstate",
187+
"selfLink": "https://localhost/mgmt/tm/security/firewall/policy/~Common~global_default_deny/rules?ver=13.0.0",
188+
"items": []
189+
}
190+
191+
191192
5. Add address list rule to policy
192193
-----------------------------------
193194

0 commit comments

Comments
 (0)