You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this lab, the iControl REST API will be used to provision a module on the BIG-IP. More specifically, the Advanced Firewall Manager (AFM) module will be provisioned for use in **Module 1, Lab 2: Configuring AFM (Advanced Firewall Module)**. Before we begin, lets review how to generate an Authentication Token.
14
+
In this lab, the iControl REST API will be used to provision a module on the BIG-IP. More specifically, the Advanced Firewall Manager (AFM) module will be provisioned for use in **Module 1, Lab 2: Configuring AFM (Advanced Firewall Module)**.
15
15
16
16
.. NOTE::
17
17
- Use Postman collection to complete this lab.
18
18
- Some response content has been removed for brevity.
19
19
20
-
|labmodule|\.\ |labnum|\.0.1. Get an Authentication Token
The **Authentication Token** is generated by using an HTTP POST with a body containing the username, password, and login provider to the REST endpoint for ``/mgmt/shared/authn/login``.
24
-
25
-
.. Hint::
26
-
1) Select the "F5 SecDevOps" Environment in Postman.
27
-
2) Send a **Request** with the following details.
28
-
29
-
|**Method**
30
-
31
-
::
32
-
33
-
POST
34
-
35
-
|**URL**
36
-
37
-
::
38
-
39
-
https://{{big_ip_a_mgmt}}/mgmt/shared/authn/login
40
-
41
-
|**Headers**
42
-
43
-
::
44
-
45
-
Content-Type: application/json
46
-
47
-
|**Body**
48
-
49
-
::
50
-
51
-
{
52
-
"username":"admin"
53
-
"password":"admin"
54
-
"loginProviderName":"tmos"
55
-
}
56
-
57
-
3) Copy the **token** you received into the **big_ip_a_auth_token** Postman environment variable.
The **Authentication Token** timeout is set using an HTTP PATCH with a body containing the desired value to the REST endpoint for ``mgmt/shared/authz/tokens/{{big_ip_a_auth_token}}``.
0 commit comments