-
Notifications
You must be signed in to change notification settings - Fork 0
/
policy stuff.txt
50 lines (41 loc) · 1.06 KB
/
policy stuff.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Create New Policy
Post
{
"name": "ASM_Test_PolicySky7",
"enforcementMode": "blocking",
"allowedResponseCodes": [
400,
401,
403,
404,
407,
417,
500,
503
],
"learningMode": "automatic"
}
Apply Policy }/mgmt/tm/asm/tasks/apply-policy
Patch {
"policyReference":
{
"link": "https://localhost/mgmt/tm/asm/policies/qQvO8nFt4a5cB7ToSFVk6A"
}
}
Activate Policy /mgmt/tm/asm/policies/{{F5_asm_policy_id}}/
Patch {
"active": "true"
}
Under /mgmt/tm/ltm/virtual/~Common virutal name
seccurityLogProfiles
"/Common/Log all requests"
/Common/log_to_logiq_profile
Under ~Common~esnews.bah.com_https/policies/ (mapping for policy)
{
"kind": "tm:ltm:virtual:policies:policiesstate",
"name": "asm_auto_l7_policy__esnews.bah.com_https",
"partition": "Common",
"fullPath": "/Common/asm_auto_l7_policy__esnews.bah.com_https",
"generation": 14835583,
"selfLink": "https://localhost/mgmt/tm/ltm/virtual/~Common~esnews.bah.com_https/policies/~Common~asm_auto_l7_policy__esnews.bah.com_https?ver=12.1.1"
}