Mcafee Network Security Platform 10.1.x Manager API Reference Guide 5-6-2022
Mcafee Network Security Platform 10.1.x Manager API Reference Guide 5-6-2022
Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
SDK API Access. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
SDK Authentication/Validation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Version Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Resources. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Session. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Heartbeat. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Domain. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Dashboard Monitors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Sensor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Port. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Attacks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
IPS Policies. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Attack Filters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Rule Objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Firewall Policies. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Scanning Exception. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
IPS Quarantine. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Connection Limiting Policies. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Non Standard Ports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
SSL Key. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Rate Limiting Profiles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
QoS Policy. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Advanced Malware Policy. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
File Reputation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Alert Relevance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Manage Import. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Malware Archive. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Passive Device Profiling. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Alert Exception. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Global Auto Acknowledgment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Name Resolution Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Device Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
NTBA Monitors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Endpoint Executables Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
NMS IP Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
NMS Users Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Policy Export Import Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
TCP Settings Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
IP Settings Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Firewall Logging Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
IPS Alerting Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Failover Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Syslog Firewall Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Syslog Faults Notification Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Tacacs Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Active Botnets Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Automatic Update Configuration Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Malware Downloads Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Nessus Scan Report Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
ATD Configuration Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Sensor Configuration Export Import Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Denial Of Services Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Domain Name Exceptions Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
EPO Integration Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Packet Capture Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Policy Group Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Policy Assignments Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Ignore Rules/NTBA Ignore Rules. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Inspection Options Policy Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
DXL Integration Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Threat Explorer Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Network Forensics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Gateway Anti-Malware Engine Update Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Users. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Alert Pruning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Custom Role. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Direct Syslog Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Radius Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Advanced Device Configuration Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Attack Log Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Traffic Statistics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
CLI Auditing Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Diagnostics Trace Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Health Check Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
McAfee Cloud Integration Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Performance Monitoring Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Attack Set Profile. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Proxy Server. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Cloud Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Quarantine Zone Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
GTI and Telemetry Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
License Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
IPS Inspection Allowlist Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
SSL Exception Rules. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Error Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Error Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Session Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Login. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Logout. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Heartbeat Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Get Manager Availability Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Domain Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Create a new Domain. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Update a Domain. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Get a Domain. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Delete a Domain. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Get Default Recon Policies. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Get All Admin Domains. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Get All Child Domains in a Admin Domain. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
IP Settings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 796
Update IP Settings Configuration at Sensor Level. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 796
Get IP Settings Configuration at Sensor Level. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 799
Firewall Logging Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 802
Update the Firewall Logging. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 802
Get the Firewall Logging. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 804
Overview
McAfee® Network Security Manager (NSM) provides an Application Programming Interface (API) framework for external
applications to access core Network Security Platform (NSP) functionalities through the REST protocol.
REST stands for Representational State Transfer. It relies on a stateless, client-server and cacheable communication protocol –
HTTP. It is an architecture style for designing networked applications. RESTful applications use HTTP requests to post data (create
and/or update), get data (query information) and delete data. Thus, REST uses HTTP for all CRUD (Create/Read/Update/Delete)
operations. It is a lightweight alternative to mechanisms like RPC (Remote Procedure Calls) and Web Services (SOAP, WSDL, et al.).
The steps below walk you through downloading a REST client, creating an API session in the Manager and using the session
information to make an API call.
1. To download the Advanced REST client (ARC), which is a free, browser-based REST client, go to https://
install.advancedrestclient.com/#/install.
2. Click Download.
3. Once the setup file is downloaded, install it like any setup file installation.
4. Once installed, go to the folder location where the file is downloaded and open ARC (Advanced REST client).
Note
Note: To make API calls, the user should have the role of a super user in the Manager.
Accept application/vnd.nsm.v1.0+json
Content-Type application/json
8. Click Send.
Response
{
"session": <ABC3AC9AB39EE322C261B733272FC49F>
"userId": "1"
}
Note
Header
Name Header Value
NSM-SDK- Use the response details obtained in step 8 in https://www.base64encode.org/ to change the header
API value of the NSM-SDK-API to access other Manager API resources. For example, the base 64 encoded
value of ABC3AC9AB39EE322C261B733272FC49F:1> is
QUJDM0FDOUFCMzlFRTMyMkMyNjFCNzMzMjcyRkM0OUY6MQ==
Note: To make API calls, the user should have the role of a super user in the Manager.
Accept application/vnd.nsm.v1.0+json
Note: For a few resource URLs, the parameter value changes. Refer to the table below for
different Accept values.
Content- application/json
Type
Note: For a few resource URLs, the parameter value changes. Refer to the table below for
different Content-Type values.
For a few resource URLs, the Accept and Content-Type values also change with the NSM-SDK-API value. Hence, use the table
given below for the URLs with different Accept and Content-Type values:
Content-type Accept
Resource Resource URL Method value value
Content-type Accept
Resource Resource URL Method value value
Content-type Accept
Resource Resource URL Method value value
For example consider heartbeat resource, in Request URL give https://<nsm_ip>/sdkapi/heartbeat and NSM-SDK-API
with QUJDM0FDOUFCMzlFRTMyMkMyNjFCNzMzMjcyRkM0OUY6MQ==
Starting release 9.1, only SSL protocol TLS 1.2 is supported for connection with the Manager. All requests to API use TLS 1.2. On
successful authentication, 'Session' resource URL returns the user ID and session ID in the response body. Every resource URL in
the SDK is required to pass these credentials for validation and authorization in NSM-SDK-API custom header.
SDK Authentication/Validation
Every request needs to pass a custom header, called NSM-SDK-API. The header will carry a base64 encoded value. If the header
is not passed in a request, the request will result into an exception.
Note
Only a user with "SuperUser" Role is allowed access to SDK APIs. Users with other roles will be allowed to login but will be
denied access to SDK APIs.
Version Support
The requested input and output needs to be specified as JSON.
In future releases, multiple versions or different representations of the same Resource will be supported. To accommodate
version support, the version of the requested resource should be specified while accessing the resource.
The version requested comes as a part of the "Accept" request header, E.g.,
1 application/vnd.nsm.v1.0+json
2 application/vnd.nsm.v2.0+json
"Accept" Request Header is a mandatory parameter. All resources are required to pass the Accept request Header; else the
request will be rejected.
Resources
The operation to be performed in a Resource is mentioned as a HTTP verb (GET/POST/PUT/DELETE).
The following sections provide details regarding the URIs and actions performed on requesting them.
Session
Heartbeat
Domain
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
6 /domain GET Get details of all admin domains in the Manager - starting
from root AD and all child ADs including hierarchy
information
7 /domain/<domain_id> GET Get details of all child admin domains including hierarchy
information in the specified domain
Dashboard Monitors
Sensor
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
Interface
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
Port
Attacks
IPS Policies
Actions
S.No Request URI Allowed Actions Performed
1 /domain/<domain_id>/ipspolicies GET Get all the IPS policies defined in the specific
domain
2 /ipspolicy/<policy_id> GET Get the policy details (including attack set and
response actions) for the specific IPS policy
Attack Filters
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
7 /domain/<domain_id>/attackfilter/ GET Get all the attack filters assigned to the domain for
<attack_id> a specific attack
8 /domain/<domain_id>/attackfilter/ DELETE Delete all the attack filters assigned to the domain
<attack_id> for a specific attack
10 /sensor/<sensor_id>/attackfilter/ GET Get all the attack filters assigned to the sensor for
<attack_id> a specific attack
11 /sensor/<sensor_id>/attackfilter/ DELETE Delete all the attack filters assigned to the sensor
<attack_id> for a specific attack
Actions
S.No Request URI Allowed Actions Performed
Rule Objects
Actions
S.No Request URI Allowed Actions Performed
• application
• applicationgroup
• applicationoncustomport
• country
• finitetimeperiod
• hostdnsname
• hostipv4
• hostipv6
• ipv4addressrange
• ipv6addressrange
• networkipv4
• networkipv6
• networkgroup
Actions
S.No Request URI Allowed Actions Performed
• recurringtimeperiod
• recurringtimeperiodgroup
• service
• servicerange
• servicegroup
Firewall Policies
Actions
S.No Request URI Allowed Actions Performed
Scanning Exception
Actions
S.No Request URI Allowed Actions Performed
IPS Quarantine
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
Actions Actions
S.No Request URI Allowed Performed
Actions Actions
S.No Request URI Allowed Performed
SSL Key
Actions
S.No Request URI Allowed Actions Performed
2 /sensor/<sensor_id>/action/sslkey /<ssl_id> DELETE Delete SSL key on the Sensor. Not applicable
for 9.2 NS-series Sensors.
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
QoS Policy
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
File Reputation
Actions
S.No Request URI Allowed Actions Performed
Alert Relevance
Manage Import
Actions
S.No Request URI Allowed Actions Performed
Malware Archive
Actions
S.No Request URI Allowed Actions Performed
1 /malwarearchive/action PUT This URL adds the filehash to the allow list
Actions
S.No Request URI Allowed Actions Performed
3 /malwarearchive/list GET Get the list of malware files currently archived on the
Manager
1. · fileHashValue
If the filehash value is not provided, all the archived files will
be deleted
Actions
S.No Request URI Allowed Actions Performed
Alert Exception
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
Device Resource
NTBA Monitors
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
<startTime>&endTime=<endTime>
<startTime>&endTime=<endTime>
<startTime>&endTime=<endTime>
Actions
S.No Request URI Allowed Actions Performed
<startTime>&endTime=<endTime>
<startTime>&endTime=<endTime>
<startTime>&endTime=<endTime>
<endTime>&direction=<direction>
Actions
S.No Request URI Allowed Actions Performed
<endTime>&direction=<direction>&frequency=<frequency>
<frequency>
<startTime>&endTime=<endTime>
<startTime>&endTime=<endTime>
Actions
S.No Request URI Allowed Actions Performed
<startTime>&endTime=<endTime>
<startTime>&endTime=<endTime>
Actions
S.No Request URI Allowed Actions Performed
classificationtype=<classificationtype>&&duration=<duration>
Actions
S.No Request URI Allowed Actions Performed
applications? duration=<duration>
NMS IP Resource
Actions
S.No Request URI Allowed Actions Performed
5 /sensor/<sensor_id> /nmsips/ GET Retrieves the NMS IPs available to allocate to the
available Sensor
Actions
S.No Request URI Allowed Actions Performed
4 /domain/<domain_id> /nmsuser/ GET Retrieves the NMS user details at the domain
<nmsuser_id>
7 /sensor/<sensor_id> /nmsusers/ GET Retrieves the available NMS users for allocation to
available the Sensor
11 /sensor/<sensor_id> /nmsuser/ GET Retrieves the NMS user details at the Sensor
<nmsuser_id>
Actions
S.No Request URI Allowed Actions Performed
2 /domain/<domain_id>/ POST Imports the IPS reconnaissance policies from the XML
ipsreconpolicy/import file to the domain
3 /domain/<domain_id>/ POST Imports the malware policies from the XML file to the
malwarepolicy/import domain
4 /domain/<domain_id>/ POST Imports the firewall policies from the XML file to the
firewallpolicy/import domain
5 /domain/<domain_id>/ POST Imports the exceptions from the XML file to the domain
exceptions/import
IP Settings Resource
1 /sensor/<sensor_id>/firewalllogging PUT Updates the firewall logging details for the Sensor
2 /sensor/<sensor_id>/firewalllogging GET Retrieves the firewall logging details for the Sensor
Actions
S.No Request URI Allowed Actions Performed
Failover Resource
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
Tacacs Resource
Actions
S.No Request URI Allowed Actions Performed
includeChildDomain=<includeChildDomain>
&&duration=<duration>
&&duration=<duration>
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
&confidenceType=<confidenceType>&
includeChildDomain=<includeChildDomain>
&confidenceType=<confidenceType>
&includeChildDomain=<includeChildDomain>
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
2 /sensor/<sensor_id>/ PUT Imports the Sensor configuration from the XML file
importconfiguration and pushes to the Sensor
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
2 / domainnameexceptions/ import POST Imports the domain name exceptions to the Manager
3 / domainnameexceptions/ export GET Exports the domain name exceptions from the
Manager
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
threatexplorer/alerts/
TopN/<count>/direction/
<direction>/duration/
<duration>? includeChildDomain=
<includeChildDomain>&&action=
<action>&&value=<value>
/threatexplorer/alerts/TopN/
<count>/direction/<direction>/
duration/<duration>/attacks?
includeChildDomain=<include ChildDomain>
&&action=<action>&&value=<value>
threatexplorer/alerts/TopN/
<count>/direction/<direction>/
duration/<duration>/attackers?
includeChildDomain=<includeChildDomain>
&&action=<action>&&value=<value>
threatexplorer/alerts/TopN/
<count>/direction/<direction>/
duration/<duration>/targets?
includeChildDomain=<includeChildDomain>
Actions
S.No Request URI Allowed Actions Performed
&&action=<action>&&value=<value>
threatexplorer/alerts/TopN/
<count>/direction/<direction>/
duration/<duration>/attack_applications?
includeChildDomain=<includeChildDomain>
&&action=<action>&&value=<value>
threatexplorer/alerts/TopN/
<count>/direction/<direction>/
duration/<duration>/malware?
includeChildDomain=<includeChildDomain>
&&action=<action>&&value=<value>
threatexplorer/alerts/TopN/
<count>/direction/<direction>/
duration/<duration>/executables?
includeChildDomain=<includeChildDomain>
&&action=<action>&&value=<value>
Network Forensics
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
• NEXT_60_SECONDS
• NEXT_5_MINUTES
• NEXT_60_MINUTES
• NEXT_30_MINUTES
2 /networkforensics/<ipaddress>/ GET Retrieves the top suspicious flows for the given IP address.
ntba=<ntba_id> • NEXT_60_SECONDS
• NEXT_5_MINUTES
• NEXT_60_MINUTES
• NEXT_30_MINUTES
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
Users
1 /user/{userId} GET Retrieves the details of a user with the given user id
4 /user/{userId} PUT Updates the details of user with the given user id
Alert Pruning
Custom Role
Actions
S.No Request URI Allowed Actions Performed
1 /domain/<domain_id>/ directsyslog GET Retrieves the direct syslog configuration for the
domain
2 /domain/<domain_id>/ directsyslog PUT Updates the direct syslog configuration for the
domain
4 /sensor/<sensor_id>/ directsyslog PUT Updates the direct syslog configuration at the Sensor
6 /sensor/<sensor_id>/ directsyslog/ PUT Tests the connection for direct syslog configuration
testconnection at the Sensor
Radius Resource
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
Actions
Priority Request URI Allowed Actions Performed
&startime=<start_time>&endtime=<endBtime>
&search=<search_string>
&page=<page>&filter=<filterBvalue>
&filter=<filter_value>
Actions
Priority Request URI Allowed Actions Performed
Traffic Statistics
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
1 /domain/<domainId>/cliauditing GET Get the CLI auditing configuration at the domain level.
3 /sensor/<sensorId>/cliauditing GET Get the CLI auditing configuration at the Sensor level.
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
1 /domain/<domainId>/attacksetprofile/ GET Get list of all the attack set profile details at
getallrules domain level.
2 /domain/<domainId>/attacksetprofile/ GET Get the rule set of given policy at domain level.
rulesetdetails/<policyId>
Actions
S.No Request URI Allowed Actions Performed
Proxy Server
Actions
S.No Request URI Allowed Actions Performed
5 /domain/proxyserver GET Get the proxy server configuration at the Manager level
Cloud Resource
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
License Resource
Actions
S.No Request URI Allowed Actions Performed
Actions
S.No Request URI Allowed Actions Performed
8 /license/getSensorsforassociation GET Get Sensors list for association with the given license
Actions
S.No Request URI Allowed Actions Performed
1 domainnameexceptions/ GET Gets the IPS inspection allow list from the Manager
ipsinspectionallowlist
2 domainnameexceptions/ GET Gets the details of a domain name from the IPS
ipsinspectionallowlist/IPSDNEDetail inspection allow list
3 domainnameexceptions/ POST Adds the domain name to the IPS inspection allow list
ipsinspectionallowlist
7 domainnameexceptions/ DELETE Deletes some domain names from the IPS inspection
ipsinspectionallowlist allow list
8 domainnameexceptions/ DELETE Deletes all the domain names from the IPS inspection
ipsinspectionallowlist/all allow list
Actions
S.No Request URI Allowed Actions Performed
Error Information
Error Information
All APIs return web error Information in case of failure. The SDK API error code and message will be returned as part of payload
of web error.
Session Resource
Login
This URL allows a third party application to log in to NSM API framework.
Resource URL
GET /session
Request Parameters
NSM REST SDK user needs to authenticate with the Manager by calling the 'Session' resource URL first. The 'Session' resource
takes the user name and password in a base64 encoded string through the custom header, NSM-SDK-API.
Response Parameters
On successful authentication, the 'Session' resource URL returns the user id and session in the response body.
Every other resource URLs in the SDK is required to pass credentials for validation and authorization in the custom header NSM-
SDK-API. The credentials are user id and session id return from the 'Session' resource URL. They are also passed in base64
encoded format.
Note
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/session
Response
{
"session": "4B63900C0C913E8944EAC68CABF12ACF",
"userId": "1"
}
Error Information
Following error codes are returned by this URL:
Logout
This URL allows logging out from the Manager. It generates either a response or a error message.
Resource URL
DELETE /session
Request Parameters
None
Response Parameters
The return value is 1 if logout is successful, otherwise an error message is returned
Example
Request
DELETE https://%3CNSM_IP%3E/sdkapi/session
Response
{
"return": 1
}
Error Information
Following error codes are returned by this URL:
Heartbeat Resource
Get Manager Availability Information
This URL provides Manager availability information to the user with basic details like MDR configuration.
Resource URL
GET /heartbeat
Request Parameters
None
Response Parameters
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/heartbeat
Response
{
"mdrAdministrativeStatus": "Primary",
"mdrOperationalStatus": "Active",
"mdrPeerIpAddress": "172.16.232.97",
"downTimeForSwitchOver": "5 minutes",
"lastUpdatedTime": "2013-06-13 11:11:59"
}
Error Information
Following error codes are returned by this URL:
Domain Resource
Create a new Domain
This URL creates a new domain.
Resource URL
POST /domain
Request Parameters
Payload Parameters:
SubscriberDescriptor Object that contains the details of the field to be sent Object
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://%3CNSM_IP%3E/sdkapi/domain
Payload
{
"parentDomainId": 0,
"domainName": "Test Child Domain 1",
"contactPerson": "McAfee",
"emailAddress": "[email protected]",
"title": "Intel",
"contactPhoneNumber": "9999999999",
"companyPhoneNumber": "080-12345678",
"organization": "McAfee",
"address":
{
"address1": "Bangalore",
"address2": "India"
},
"city": "Bangalore",
"state": "Karnataka",
"country": "India",
"allowChildAdminDomain": true,
"allowDevices": true,
"defaultIPSPolicy": "Default Inline IPS",
"defaultReconPolicy": "Default Reconnaissance Policy"
}
Response
{
"createdResourceId": 101
}
Error Information
Following error codes are returned by this URL:
Update a Domain
This URL updates a domain.
Resource URL
PUT /domain/<domain_id>
Request Parameters
URL Parameters:
Payload Parameters:
SubscriberDescriptor Object that contains the details of the field to be sent Object
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/domain/101
Payload
{
"parentDomainId": 0,
"domainName": "Test Child Domain 2",
"contactPerson": "McAfee",
"emailAddress": "[email protected]",
"title": "Intel",
"contactPhoneNumber": "9999999999",
"companyPhoneNumber": "080-12345678",
"organization": "McAfee",
"address":
{
"address1": "Bangalore",
"address2": "India"
},
"city": "Bangalore",
"state": "Karnataka",
"country": "India",
"allowChildAdminDomain": true,
"allowDevices": true,
"defaultIPSPolicy": "Default Inline IPS",
"defaultReconPolicy": "Default Reconnaissance Policy"
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
Get a Domain
This URL gets the specified domain.
Resource URL
GET /domain/<domain_id>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
100 McAfee Network Security Platform 10.1.x Manager API Reference Guide
6| Domain Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/domain/101
Response
{
"parentDomainId": 0,
"domainName": "Test Child Domain 2",
"contactPerson": "McAfee",
"emailAddress": "[email protected]",
"title": "Intel",
"contactPhoneNumber": "9999999999",
"companyPhoneNumber": "080-12345678",
"organization": "McAfee",
"address":
{
"address1": "Bangalore",
"address2": "India"
},
"city": "Bangalore",
"state": "Karnataka",
"country": "India",
"allowChildAdminDomain": true,
"allowDevices": true,
"defaultIPSPolicy": "Default Inline IPS",
"defaultReconPolicy": "Default Reconnaissance Policy"
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 101
6| Domain Resource
Delete a Domain
This URL deletes a domain.
Resource URL
DELETE /domain/<domain_id>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://%3CNSM_IP%3E/sdkapi/domain/105
Response
{
"status": 1
}
102 McAfee Network Security Platform 10.1.x Manager API Reference Guide
6| Domain Resource
Error Information
Following error codes are returned by this URL:
Resource URL
GET /domain/<domain_id>/defaultreconpolicies
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
ReconPolicyDescList Array of object that contains the details of the fields Array
McAfee Network Security Platform 10.1.x Manager API Reference Guide 103
6| Domain Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/domain/101/defaultreconpolicies
Response
{
" reconPolicyList ":
[
{
"policyName": " Default Reconnaissance Policy ",
"policyId": "0"
},
{
"policyName": " NSAT 7.1 Reconnaissance Policy ",
"policyId": "301"
}
]
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /domain
Request Parameters
None
104 McAfee Network Security Platform 10.1.x Manager API Reference Guide
6| Domain Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of DomainDescriptor:
id Domain Id Number
Example
Request
GET https://%3Cnsm_ip%3E/sdkapi/domain
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 105
6| Domain Resource
{
"DomainDescriptor": {
"childdomains": [
{
"childdomains": null,
"id": 102,
"name": "Test Child Domain 2"
},
{
"childdomains": [
{
"childdomains": [
{
"childdomains": null,
"id": 104,
"name": "Test Child Domain 1.1.1"
}
],
"id": 103,
"name": "Test Child Domain 1.1"
}
],
"id": 101,
"name": "Test Child Domain 1"
}
],
"id": 0,
"name": "My Company"
}
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /domain/<domain_id>
Request Parameters
106 McAfee Network Security Platform 10.1.x Manager API Reference Guide
6| Domain Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of DomainDescriptor:
id Domain Id Number
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/domain/101
Response
{
"DomainDescriptor":
{
"id": 101,
"name": "Test Child Domain 1",
"childdomains":
[
{
"id": 103,
"name": "Test Child Domain 1.1",
"childdomains":
[
{
"id": 104,
"name": "Test Child Domain 1.1.1",
"childdomains": null
}
]
}
]
}
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 107
6| Domain Resource
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
108 McAfee Network Security Platform 10.1.x Manager API Reference Guide
7| Sensor Resource
Sensor Resource
Get all Sensors in a Domain
This API gets the list of Sensors available in the specified domain. If the domain is not specified, details of all the Sensors in all
ADs will be provided.
Resource URL
GET /sensors?domain=<domain_id>
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 109
7| Sensor Resource
MemberSensors Member Sensors in case of fail over and load balancer Array
110 McAfee Network Security Platform 10.1.x Manager API Reference Guide
7| Sensor Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/sensors
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 111
7| Sensor Resource
{
"SensorDescriptor": [
{
"DomainID": 0,
"name": "M-1450",
"model": "M-1450",
"ReconPolicyID": 0,
"IPSPolicyID": 19,
"SigsetVersion": "7.5.14.25",
"SoftwareVersion": "7.1.2.29",
"LastSignatureUpdateTs": "2012-07-21 00:19:00",
"sensorId": 1001,
"LastModTs": "2012-07-24 00:19:00",
"Description": "MCAFEE-NETWORK-SECURITY-PLATFORM"
"sensorIPAddress": "172.16.232.56",
"nsmVersion": "8.0.5.1.20" ,
"isFailOver": false
},
{
"DomainID": 101,
"name": "M-2950",
"model": "M-2950",
"ReconPolicyID": 0,
"IPSPolicyID": 301,
"SigsetVersion": "7.5.14.25",
"SoftwareVersion": "7.1.2.29",
"LastSignatureUpdateTs": "2012-07-23 00:10:00",
"sensorId": 1002,
"LastModTs": "2012-07-24 00:19:00",
"Description": "MCAFEE-NETWORK-SECURITY-PLATFORM"
"sensorIPAddress": "172.16.232.72",
"nsmVersion": "8.0.5.1.20" ,
"isFailOver": false
},
{
"sensorId": 1006,
"name": "FO_3050",
"model": "M-3050",
"Description": "MCAFEE-NETWORK-SECURITY-PLATFORM",
"DomainID": 101,
"isFailOver": true,
"SigsetVersion": "8.6.39.6",
"SoftwareVersion": "8.1.3.16",
"LastSignatureUpdateTs": "2014-09-05 20:43:54",
"IPSPolicyID": 19,
"ReconPolicyID": 0,
"sensorIPAddress": "10.213.174.50",
"nsmVersion": "8.1.7.5.10",
"MemberSensors":
[
{
"sensorId": 1006,
"name": "API_M3050_1",
"sensorIPAddress": "10.213.174.50",
"SigsetVersion": "8.6.39.6"
},
{
"sensorId": 1007,
"name": "API_M3050_2",
"sensorIPAddress": "10.213.174.51",
"SigsetVersion": "8.6.39.6"
}
]
}
]
}
Error Information
Following error codes are returned by this URL:
112 McAfee Network Security Platform 10.1.x Manager API Reference Guide
7| Sensor Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /sensor/<sensor_id>
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 113
7| Sensor Resource
Details of SensorDescriptor:
114 McAfee Network Security Platform 10.1.x Manager API Reference Guide
7| Sensor Resource
Details of interfaces:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 115
7| Sensor Resource
Details of InterfaceType:
Cidr Enables segment of interface into multiple networks by CIDR addressing Object
BridgeVlan Segment of interface into multiple networks by bridge VLAN tags Object
Details of BridgeVlan:
Details of CIDR:
Details of Vlan:
116 McAfee Network Security Platform 10.1.x Manager API Reference Guide
7| Sensor Resource
Details of ports:
Details of PortInfo:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 117
7| Sensor Resource
Details of portSettings:
Details of configuration:
Details of operatingMode:
118 McAfee Network Security Platform 10.1.x Manager API Reference Guide
7| Sensor Resource
connectedTo Peer port connected to, can be "Inside Network" / "Outside Network" / "n/a" (incase of String
span port)
Details of ResponseMode:
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/sensor/1001
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 119
7| Sensor Resource
{
"SensorInfo": {
"SensorDescriptor": {
"sensorId": 1001,
"name": "NS7100",
"model": "IPS-NS7100",
"Description": "MCAFEE-NETWORK-SECURITY-PLATFORM",
"DomainID": 0,
"isFailOver": false,
"isLoadBalancer": false,
"SigsetVersion": "9.8.11.1",
"DATVersion": "1854.0",
"SoftwareVersion": "9.1.5.20",
"LastSignatureUpdateTs": "2017-12-11 23:03:41",
"IPSPolicyID": 19,
"ReconPolicyID": 0,
"LastModTs": null,
"sensorIPAddress": null,
"nsmVersion": null,
"MemberSensors": []
},
"Interfaces": {
"InterfaceInfo": [{
"vidsId": 119,
"name": "G0/1-G0/2",
"Description": "",
"Interfacetype": {
"Dedicated": {
},
"Vlan": null,
"Cidr": null,
"BridgeVlan": null
},
"IPSPolicyId": 19,
"DomainId": 0,
"SubInterfaces": null,
"LastModTs": "2017-12-08 09:43:57"
},
{
"vidsId": 189,
"name": "G3/1-G3/2",
"Description": "",
"Interfacetype": {
"Dedicated": null,
"Vlan": {
"id": []
},
"Cidr": null,
"BridgeVlan": null
},
"IPSPolicyId": 308,
"DomainId": 101,
"SubInterfaces": {
"SubInterfaceInfo": [{
"vidsId": 200,
"name": "Sub-49",
"Description": null,
"Interfacetype": {
"Dedicated": null,
"Vlan": {
"id": ["49"]
},
"Cidr": null,
"BridgeVlan": null
},
"IPSPolicyId": 306,
"DomainId": 101,
"SubInterfaces": null,
"LastModTs": "2017-12-09 16:13:25"
}]
},
"LastModTs": "2017-12-09 03:43:18"
},
{
"vidsId": 118,
"name": "G3/1-G3/2",
"Description": "Interface",
"Interfacetype": {
"Dedicated": null,
"Vlan": {
"id": []
},
"Cidr": null,
"BridgeVlan": null
120 }, McAfee Network Security Platform 10.1.x Manager API Reference Guide
"IPSPolicyId": 308,
"DomainId": 0,
7| Sensor Resource
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
PUT /sensor/<sensor_id>/action/update_sensor_config
Request Parameters
URL Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 121
7| Sensor Resource
Details of pendingChanges:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/sensor/1001/action/update_sensor_config
122 McAfee Network Security Platform 10.1.x Manager API Reference Guide
7| Sensor Resource
{
"deviceName" : "M-2950",
"lastUpdateTime" : "2013-09-03 20:16:54.000 IST",
"pendingChanges" : {
"isPolicyConfigurationChanged" : true,
"isConfigurationChanged" : false,
"isMalwareConfigurationChanged" : false,
"isSignatureSetConfigurationChanged" : false,
"isSSLConfigurationChanged" : false,
"isBotnetConfigurationChanged" : true,
"isGloablPolicyConfigurationChanged" : false
},
"isSigsetConfigPushRequired" : true,
"isSSLPushRequired" : false,
"isBotnetPushRequired" : true
"isGAMUpdateRequired": true
}
Response
{
"RequestId": "1337547887180"
}
Error Information
Following error codes are returned by this URL:
6 400 1142 Please wait a minute and then try again, check the system log for details
8 400 1144 Sensor is not a standalone device.Signature set download cannot be done
on a failover device
McAfee Network Security Platform 10.1.x Manager API Reference Guide 123
7| Sensor Resource
9 400 1145 Botnet import is supported only for NTBA or IPS/NAC Sensor
10 400 1146 Invalid SSL keys, check the system log for details
12 400 1148 Sensor software version is not compatible with the Manager
17 400 1153 SSL key decryption is not supported for this Sensor
20 400 1203 Incompatible license assignments detected. (The proxy decryption and
system licenses must have the same capacity).
21 400 1204 The devices in this HA pair are running at different capacities and/or have
invalid or mismatched system licenses.
22 400 1205 The devices in this HA pair are having mismatched proxy decryption
licenses.
124 McAfee Network Security Platform 10.1.x Manager API Reference Guide
7| Sensor Resource
This URL gets the configuration update status for the specified request_id.
Resource URL
GET /sensor/<sensor_id>/action/update_sensor_config/<request_id>
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
McAfee Network Security Platform 10.1.x Manager API Reference Guide 125
7| Sensor Resource
GET https://%3CNSM_IP%3E/sdkapi/sensor/1001/action/update_sensor_config/1337547887180
Response
{
"sigsetConfigPercentageComplete": 1,
"sigsetConfigStatusMessage": "IN PROGRESS:Generating Signature Segments for Sensor: M-2950. Sig Version:
8.6.0.19",
"botnetPercentageComplete": 0,
"botnetStatusMessage": "IN PROGRESS:Queued: Generation of BOT DAT Signature file Segment for Sensor:
M-2950",
"SSLPercentageComplete": 100,
"SSLStatusMessage": "DOWNLOAD COMPLETE"
"GamUpdatePercentageComplete”:100,
"GamUpdateStatusMessage ": "DOWNLOAD COMPLETE"
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /sensor/<sensor_id>/config/status
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
126 McAfee Network Security Platform 10.1.x Manager API Reference Guide
7| Sensor Resource
Details of pendingChanges:
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/sensor/1001/%20action/update_sensor_config
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 127
7| Sensor Resource
{
"deviceName" : "M-2950",
"lastUpdateTime" : "2013-09-03 20:16:54.000 IST",
"pendingChanges" : {
"isPolicyConfigurationChanged" : true,
"isConfigurationChanged" : false,
"isMalwareConfigurationChanged" : false,
"isSignatureSetConfigurationChanged" : false,
"isSSLConfigurationChanged" : false,
"isBotnetConfigurationChanged" : true,
"isGloablPolicyConfigurationChanged" : false
},
"isSigsetConfigPushRequired" : true,
"isSSLPushRequired" : false,
"isBotnetPushRequired" : true
"isGAMUpdateRequired": true
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /sensor/<sensor_id>/performancestats?metric=<metric>&portId=<port_id>&sampling=<sampling>
Request Parameters
"PORT_THROUGHPUT"
port_id Port ID needs to be specified only if the metric being queried is Number No
PORT_THROUGHPUT
128 McAfee Network Security Platform 10.1.x Manager API Reference Guide
7| Sensor Resource
sampling Sampling for the stats. Can be “MINUTES” (default), “HOURS”,”DAYS”, String No
“WEEKS”, “MONTHS”
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
flows Flow usage. Will be populated if the metric is "MEMORY_UTILIZATION " Object
McAfee Network Security Platform 10.1.x Manager API Reference Guide 129
7| Sensor Resource
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/performancestats?metric=memory_utilization
Response
{
"statistic": [
{
"time": "Tue Oct 25 22:24:00 PDT 2016",
"value": 0,
"flows": {
"flowUsage": 0,
"decryptedFlow": 0,
"packetBuffer": 0,
"systemMemory": 33
}
},
{
"time": "Tue Oct 25 22:27:00 PDT 2016",
"value": 0,
"flows": {
"flowUsage": 0,
"decryptedFlow": 0,
"packetBuffer": 0,
"systemMemory": 33
}
},
……………
{
"time": "Tue Oct 25 23:21:00 PDT 2016",
"value": 0,
"flows": {
"flowUsage": 0,
"decryptedFlow": 0,
"packetBuffer": 0,
"systemMemory": 33
}
}
]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
130 McAfee Network Security Platform 10.1.x Manager API Reference Guide
7| Sensor Resource
Reboot Sensor
This URL reboots the specified Sensor.
Resource URL
PUT /sensor/<sensor_id>/action/reboot
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1001/action/reboot
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 131
7| Sensor Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Set IPv6
This URL does IPv6 Setting (Drop/Pass/Scan IPv6) on the specified Sensor.
Resource URL
POST /sensor/<sensor_id>/ipv6
Request Parameters
URL Request Parameter
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
132 McAfee Network Security Platform 10.1.x Manager API Reference Guide
7| Sensor Resource
POST https://%3CNSM_IP%3E/sdkapi/sensor/1001/ipv6
Payload
{
"ipv6Mode": "SCAN_IPV_6_TRAFFIC"
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /sensor/<sensor_id>/ipv6
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 133
7| Sensor Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/sensor/1001/ipv6
Response
{
"ipv6Mode": "SCAN_IPV_6_TRAFFIC"
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /sensor/<sensor_id>/status
Request Parameters
134 McAfee Network Security Platform 10.1.x Manager API Reference Guide
7| Sensor Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/sensor/1001/status
Response
{
"status": "ACTIVE"
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET sensor/<sensor_id>/policy/applicationidentification
Request Parameters
URL Parameter
McAfee Network Security Platform 10.1.x Manager API Reference Guide 135
7| Sensor Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1003/policy/applicationidentification
Response
{
"enableApplicationIdentification": true,
"selectedPorts":
[
"1A",
"1B",
"2A"
]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
136 McAfee Network Security Platform 10.1.x Manager API Reference Guide
7| Sensor Resource
Resource URL
PUT sensor/<sensor_id>/policy/applicationidentification
Request Parameters
URL Parameter
Payload Parameter
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1003/policy/applicationidentification
McAfee Network Security Platform 10.1.x Manager API Reference Guide 137
7| Sensor Resource
{
"enableApplicationIdentification": true,
"selectedPorts":
[
"1A",
"1B",
"2A"
]
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET sensor/<sensor_id>/ntbaintegration
Request Parameters
URL Parameter
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
138 McAfee Network Security Platform 10.1.x Manager API Reference Guide
7| Sensor Resource
Details of portUsedToExportTraffic:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 139
7| Sensor Resource
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/0/ntbaintegration
Response
{
"exportingData":
{
"ntbaIntegration":"ENABLED_EXPORTING_ONLY",
"destinationNTBA":"ntba-nsmapi",
"destinationIPAddr":"1.1.1.8",
"destinationUDPPort":9996
"portUsedToExportTraffic":
{
"designatedPort":"8A",
"portIPAddr":"1.1.1.11",
"networkMask":"255.255.255.0",
"defaultGateway":"1.1.1.8",
"VLANId":0
},
"monitoringPorts":
[
{
"port":"8A",
"portNTBADirection":"INTERNAL"
}
]
}
}
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
140 McAfee Network Security Platform 10.1.x Manager API Reference Guide
7| Sensor Resource
Resource URL
PUT sensor/<sensor_id>/ntbaintegration
Request Parameters
URL Parameter
Payload Parameter
McAfee Network Security Platform 10.1.x Manager API Reference Guide 141
7| Sensor Resource
Details of portUsedToExportTraffic:
1. INTERNAL
2. EXTERNAL
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
142 McAfee Network Security Platform 10.1.x Manager API Reference Guide
7| Sensor Resource
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/0/ntbaintegration
Response
{
"exportingData":
{
"ntbaIntegration":"ENABLED_EXPORTING_ONLY",
"destinationNTBA":"ntba-nsmapi",
"destinationIPAddr":"1.1.1.8",
"destinationUDPPort":9996
"portUsedToExportTraffic":
{
"designatedPort":"8A",
"portIPAddr":"1.1.1.11",
"networkMask":"255.255.255.0",
"defaultGateway":"1.1.1.8",
"VLANId":0
},
"monitoringPorts":
[
{
"port":"8A",
"portNTBADirection":"INTERNAL"
}
]
}
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET sensor/<sensor_id>/deploydevicesoftware
Request Parameters
URL Parameter
McAfee Network Security Platform 10.1.x Manager API Reference Guide 143
7| Sensor Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/deploydevicesoftware
Response
{
" runningSoftwareVersion ": ‘9.1.5.9’,
" softwaresReadyForInstallation ": [ "9.1.5.9","8.1.3.12" ]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
144 McAfee Network Security Platform 10.1.x Manager API Reference Guide
7| Sensor Resource
Resource URL
PUT sensor/<sensor_id>/deploydevicesoftware/<swVersion>
Request Parameters
URL Parameter
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1001/deploydevicesoftware/9.1.5.9
Response
{
"RequestId": "1337547887180"
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 145
7| Sensor Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
2 400 3010 Software version provided does not exist for the Sensor :
(<sensor>:<version>)
Resource URL
GET sensor/<sensor_id>/ deploydevicesoftware/<requestId>
Request Parameters
URL Parameter
requestId Request ID returned while issuing the Sensor upgrade String Yes
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1001/deploydevicesoftware/1337547887180
Response
146 McAfee Network Security Platform 10.1.x Manager API Reference Guide
7| Sensor Resource
{
" updatePercentageComplete ": 100,
“updateStatusMessage” : “DOWNLOAD COMPLETE”
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 147
8| Interface Resource
Interface Resource
Get Interface/Sub Interface Details
This URL gets interface or sub interface details.
Resource URL
GET /sensor/<sensor_id>/interface/<interface_id or subinterface_id>
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of Interfaces:
148 McAfee Network Security Platform 10.1.x Manager API Reference Guide
8| Interface Resource
Details of InterfaceType:
Cidr Enables segment of interface into multiple networks by CIDR addressing Object
BridgeVlan Segment of interface into multiple networks by bridge VLAN tags Object
Details of CIDR:
Details of Vlan:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 149
8| Interface Resource
Details of SubInterfaces:
Example
Request
150 McAfee Network Security Platform 10.1.x Manager API Reference Guide
8| Interface Resource
GET https://%3CNSM_IP%3E/sdkapi/sensor/1001/interface/105
Response
{
"InterfaceInfo": {
"vidsId": 115,
"name": "G3/7-G3/8",
"Description": "",
"Interfacetype": {
"Dedicated": null,
"Vlan": null,
"Cidr": null,
"BridgeVlan": {
"bridgeVlanRangeList": ["4094-4095",
"5-6",
"3-4",
"1-2"]
}
},
"IPSPolicyId": 19,
"DomainId": 0,
"SubInterfaces": {
"SubInterfaceInfo": []
},
"LastModTs": "2017-12-12 16:56:11"
}
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
PUT /sensor/<sensor_id>/interface/<interface_id or subinterface_id>
Request Parameters
URL Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 151
8| Interface Resource
Payload Parameters:
Details of Interfaces :
152 McAfee Network Security Platform 10.1.x Manager API Reference Guide
8| Interface Resource
Details of InterfaceType:
Cidr Enables segment of interface into multiple networks by CIDR addressing Object
BridgeVlan Segment of interface into multiple networks by bridge VLAN tags Object
Details of CIDR:
Details of Vlan:
Details of SubInterfaces:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 153
8| Interface Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/sensor/1001/interface/105
Payload
154 McAfee Network Security Platform 10.1.x Manager API Reference Guide
8| Interface Resource
{
"InterfaceInfo": {
"Description": "try1",
"SubInterfaces": null,
"IPSPolicyId": 17,
"DomainId": 0,
"Interfacetype": {
"Dedicated": null,
"Vlan":
{
"id":
[
"17",
"18",
"19",
]
},
"Cidr": null
},
"vidsId": 0,
"LastModTs": "2012-07-24 00:19:00",
"name": "abc"
}
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
HTTP Error
S.No Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 155
8| Interface Resource
HTTP Error
S.No Code SDK API errorId SDK API errorMessage
9 400 1161 Out of range vlan id(s) provided:[vlan id list], Vlan id should be
between 1 and 4094
Resource URL
POST /sensor/<sensor_id>/interface/<interface_id>
Request Parameters
URL Parameters:
156 McAfee Network Security Platform 10.1.x Manager API Reference Guide
8| Interface Resource
Payload Parameters:
Details of Interfaces:
Vlan Segment of interface into multiple networks by VLAN tags Object Yes
McAfee Network Security Platform 10.1.x Manager API Reference Guide 157
8| Interface Resource
Cidr Enables segment of interface into multiple networks by CIDR addressing Object Yes
BridgeVlan List of bridge vlan range Applicable for VM-IPS only Object Yes
Details of Vlan:
Details of CIDR:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
158 McAfee Network Security Platform 10.1.x Manager API Reference Guide
8| Interface Resource
Example
Request
POST https://%3CNSM_IP%3E/sdkapi/sensor/1001/interface/105
Payload
{
"InterfaceInfo": {
"Description": "try1",
"IPSPolicyId": 17,
"DomainId": 0,
"Interfacetype": {
"Vlan": {
"id": [
"17",
"18",
"19"
]
}
},
"name": "xyz"
}
}
Response
{
"createdResourceId":127
}
Error Information
Following error codes are returned by this URL:
HTTP Error
S.No Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 159
8| Interface Resource
HTTP Error
S.No Code SDK API errorId SDK API errorMessage
11 400 1161 Out of range vlan id(s) provided:[vlan id list], Vlan id should be
between 1 and 4094
12 400 1163 Following vlan id(s) is/are already added/assigned: [vlan id list]
14 400 1166 Following vlan id(s) not present in parent interface for assignment on
sub interface
160 McAfee Network Security Platform 10.1.x Manager API Reference Guide
8| Interface Resource
This URL deletes a sub interface. Only Sub Interface can be deleted, if an interface_id is mentioned, the operation throws an
error.
Resource URL
DELETE /sensor/<sensor_id>/interface/<subinterface_id>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://%3CNSM_IP%3E/sdkapi/sensor/1001/interface/124
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 161
8| Interface Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Add/Assign VLAN
This URL adds a vlan to the VLAN type specified interface. If a sub interface is given, the VLAN is assigned to the sub interface.
Resource URL
POST /sensor/<sensor_id>/interface/<interface_id or subinterface_id>/vlan
Request Parameters
URL Parameters:
Payload Parameters:
162 McAfee Network Security Platform 10.1.x Manager API Reference Guide
8| Interface Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://%3CNSM_IP%3E/sdkapi/sensor/1001/interface/105/vlan
Payload
{
"VlanIds": {
"id": [
"17",
"18",
"19"
]
}
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
HTTP Error
S.No Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 163
8| Interface Resource
HTTP Error
S.No Code SDK API errorId SDK API errorMessage
5 400 1161 Out of range vlan id(s) provided:[vlan id list], Vlan id should be between
1 and 4094
9 400 1166 Following vlan id(s) not present in parent interface for assignment on
sub interface:
Delete/Revoke VLAN
This URL:
Resource URL
DELETE /sensor/<sensor_id>/interface/<interface_id or subinterface_id>/vlan/<vlan_ids>
Request Parameters
URL Parameters:
164 McAfee Network Security Platform 10.1.x Manager API Reference Guide
8| Interface Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://%3CNSM_IP%3E/sdkapi/sensor/1001/interface/127/vlan/17,18,19
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
HTTP Error
S.No Code SDK API errorId SDK API errorMessage
5 400 1161 Out of range vlan id(s) provided:[vlan id list], Vlan id should be
between 1 and 4094
McAfee Network Security Platform 10.1.x Manager API Reference Guide 165
8| Interface Resource
HTTP Error
S.No Code SDK API errorId SDK API errorMessage
Resource URL
GET /domain/<domain_id>/sensor/<sensor_id>/availableinterfaces
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
166 McAfee Network Security Platform 10.1.x Manager API Reference Guide
8| Interface Resource
Details of interfaceType:
Cidr Enables segment of interface into multiple networks by CIDR addressing Object
Details of CIDR:
Details of BridgeVlan:
Details of Vlan:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 167
8| Interface Resource
Example
Request
https://%3CNSM_IP%3E/sdkapi/domain/103/sensor/1002/availableinterfaces
Response
168 McAfee Network Security Platform 10.1.x Manager API Reference Guide
8| Interface Resource
{
"interfaceInfoList":
[
{
"interafaceId": 123,
"name": "3B",
"interfacetype":
{
"Dedicated":
{
}
}
},
{
"interafaceId": 116,
"name": "1A-1B",
"interfacetype":
{
"Dedicated":
{
}
}
},
{
"interafaceId": 115,
"name": "2A-2B",
"interfacetype":
{
"Vlan":
{
"id":
[
"8",
"9"
]
}
}
},
{
"interafaceId": 114,
"name": "3A",
"interfacetype":
{
"Dedicated":
{
}
}
},
{
"interafaceId": 113,
"name": "4A-4B",
"interfacetype":
{
"Dedicated":
{
}
}
},
{
"interafaceId": 112,
"name": "5A-5B",
"interfacetype":
{
"Dedicated":
{
}
}
},
{
"interafaceId": 111,
"name": "6A-6B",
"interfacetype":
{
"Dedicated":
{
}
}
},
{
"interafaceId": 110,
"name": "7A-7B",
"interfacetype":
{
"Cidr":
{
McAfee Network Security "cidrList":
Platform 10.1.x Manager API Reference Guide 169
[
"192.168.0.0/23"
8| Interface Resource
Error Information
Following error codes are returned by this URL:
Resource URL
GET /domain/<domain_id>/sensor/<sensor_id>/allocatedinterfaces
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
170 McAfee Network Security Platform 10.1.x Manager API Reference Guide
8| Interface Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/domain/103/sensor/1001/allocatedinterfaces
Response
{
"allocatedInterfaceList":
[
{
"interfaceName": "2A-2B",
"interfaceId": 173,
"interfaceType": "Vlan"
},
{
"interfaceName": "4A-4B",
"interfaceId": 113,
"interfaceType": "Dedicated"
}
]
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 171
8| Interface Resource
Resource URL
GET /sensor/<sensor_id>/interface/<interface_id>/allocatedcidrlist
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/sensor/1002/interface/110/allocatedcidrlist
Response
{
"cidrList":
[
"192.168.0.0/28"
]
}
Error Information
Following error codes are returned by this URL:
172 McAfee Network Security Platform 10.1.x Manager API Reference Guide
8| Interface Resource
Resource URL
PUT /domain/<domain_id>/sensor/<sensor_id>/allocateinterface
Request Parameters
URL Parameters:
Payload Parameters:
AllocatingInterfaceElem Object that contains the details of the field to be sent Object
McAfee Network Security Platform 10.1.x Manager API Reference Guide 173
8| Interface Resource
vlanIdList Vlan ID list, should be provided when allocating an interface of Array of number No
vlan type
cidrList CIDR list, should be provided when allocating an interface of Array of string No
CIDR type
bridgeVlanList List of bridge vlan id(applicable for VM-IPS device only) Array of string No
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/domain/103/sensor/1002/allocateinterfaces
Payload
{
"interfaceId": 115,
"vlanIdList": [8]
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
174 McAfee Network Security Platform 10.1.x Manager API Reference Guide
8| Interface Resource
7 400 1161 Out of range vlan id(s) provided:[vlan id list], Vlan id should be
between 1 and 4094
Resource URL
DELETE /domain/<domain_id>/sensor/<sensor_id>/interface/<interface_id>/revokeinterface?value=<id>
Request Parameters
URL Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 175
8| Interface Resource
id Vlan ID, Bridge Vlan ID, or CIDR value, should be provided when String No
revoking an interface of Vlan/CIDR type
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://%3CNSM_IP%3E/sdkapi/domain/103/sensor/1002/interface/124/revokeinterface?value=8
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
176 McAfee Network Security Platform 10.1.x Manager API Reference Guide
8| Interface Resource
Adds/Assign CIDR
This URL adds CIDRs to a specified Interface.
Resource URL
POST /sensor/<sensor_id>/interface/<interface_id>/cidr
Request Parameters
URL Parameters:
Payload Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 177
8| Interface Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://<NSM_IP>/sdkapi/sensor/1001/interface/105/cidr
Payload
{
"cidrList": [
"8.8.8.1/32",
"8.8.8.12/32",
"8.8.8.13/32"
]
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
178 McAfee Network Security Platform 10.1.x Manager API Reference Guide
8| Interface Resource
Delete CIDR
This URL deletes CIDRs.
Resource URL
DELETE /sensor/<sensor_id>/interface/<interface_id>/cidr
Request Parameters
URL Parameters:
Payload Parameters:
Details of CIDR’s:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 179
8| Interface Resource
Example
Request
DELETE https://<NSM_IP>/sdkapi/sensor/1001/interface/124/cidr
Payload
{
"cidrList": [
"8.8.8.1/32",
"8.8.8.12/32",
"8.8.8.13/32"
]
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
180 McAfee Network Security Platform 10.1.x Manager API Reference Guide
8| Interface Resource
McAfee Network Security Platform 10.1.x Manager API Reference Guide 181
9| Port Resource
Port Resource
Get Port Configuration Details
This URL gets port configuration details for a specific port of a Sensor.
Resource URL
GET /sensor/<sensor_id>/port/<port_id>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of PortInfo:
182 McAfee Network Security Platform 10.1.x Manager API Reference Guide
9| Port Resource
Details of portSettings:
Details of configuration:
Details of operatingMode:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 183
9| Port Resource
connectedTo Peer port connected to, can be "Inside Network" / "Outside Network" / "n/a" (in case of String
span port)
Details of ResponseMode:
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/sensor/1001/port/101
Response
{
"portInfo": {
"ResponseMode": {
"sendResponseFrom": "This Port"
},
"portId": 112,
"operatingMode": {
"connectedTo": "Inside Network",
"mode": "In-line Fail-close (Port Pair)",
"peerPort": "2B"
},
"portSettings": {
"portName": "2A",
"portType": "SFP Gigabit Ethernet (Gbps) Fiber",
"configuration": {
"duplex": "Full",
"speed": "1 Gbps Auto-Negotiate"
},
"administrativeStatus": "Disabled",
"operationalStatus": "Down"
}
}
}
Error Information
Following error codes are returned by this URL:
184 McAfee Network Security Platform 10.1.x Manager API Reference Guide
9| Port Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 185
10| Attack Resource
Attack Resource
Get all Attacks
This URL gets all available attack definitions in the Manager.
Resource URL
GET /attacks/
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
"INBOUND" /
"OUTBOUND" /
186 McAfee Network Security Platform 10.1.x Manager API Reference Guide
10| Attack Resource
"BOTH"
Details of description:
versionAdded Signature set version in which the attack was added String
versionUpdated Recent signature set version in which the attack was updated String
McAfee Network Security Platform 10.1.x Manager API Reference Guide 187
10| Attack Resource
Details of reference:
188 McAfee Network Security Platform 10.1.x Manager API Reference Guide
10| Attack Resource
Details of comments:
Example
Request
GET https://<NSM_IP>/sdkapi/attacks
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 189
10| Attack Resource
{
"AttackDescriptorDetailsList": [
...
{
"DosDirection": null,
"Severity": 5,
"attackId": "0x00000100",
"name": "IP: IP Fragment too Large",
"description": {
"definition": "The Fragment offset plus the length exceeds 65,535. This generic
condition indicates either errors in some network hardware/software, or maliciously constructed fragmented
packets.\n\nnull\n\nnull\n\nnull\n\nSoftware Packages <br>any Internet connected machine<ul></ul>",
"btp": "Low",
"rfSB": "No",
"protectionCategory": "[Network Protection/IP]",
"target": "Server",
"httpResponseAttack": "No",
"priority": "High",
"protocols": "ipv4",
"attackCategory": "Exploit",
"attackSubCategory": "Protocol Violation",
"snortEngine": "---",
"versionAdded": "10.8.10.6",
"versionUpdated": "10.8.10.6",
"reference": {
"nspId": "0x00000100",
"cveId": "",
"microsoftId": "",
"bugtraqId": "",
"certId": "",
"arachNidsId": "",
"additionInfo": null
},
"signatures": [
{
"name": "Signature#1",
"conditions": [
"condition 1",
" System Event Name=\"ip-fragment-too-large\" "
]
}
],
"componentAttacks": [],
"comments": {
"comments": "",
"availabeToChildDomains": true,
"parentDomainComments": null
}
}
}
...
]
}
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
190 McAfee Network Security Platform 10.1.x Manager API Reference Guide
10| Attack Resource
Resource URL
GET /attack/<attack_id>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of AttackDescriptor:
"INBOUND" /
"OUTBOUND" /
"BOTH"
McAfee Network Security Platform 10.1.x Manager API Reference Guide 191
10| Attack Resource
Details of description:
versionAdded Signature set version in which the attack was added String
versionUpdated Recent signature set version in which the attack was updated String
192 McAfee Network Security Platform 10.1.x Manager API Reference Guide
10| Attack Resource
Details of reference:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 193
10| Attack Resource
Details of comments:
Example
Request
GET https://<NSM_IP>/attack/0x00000100
Response
194 McAfee Network Security Platform 10.1.x Manager API Reference Guide
10| Attack Resource
{
"AttackDescriptor":
{
"DosDirection": null,
"Severity": 5,
"attackId": "0x00000100",
"name": "IP: IP Fragment too Large",
"description": {
"definition": "The Fragment offset plus the length exceeds 65,535. This generic
condition indicates either errors in some network hardware/software, or maliciously constructed fragmented
packets.\n\nnull\n\nnull\n\nnull\n\nSoftware Packages <br>any Internet connected machine<ul></ul>",
"btp": "Low",
"rfSB": "No",
"protectionCategory": "[Network Protection/IP]",
"target": "Server",
"httpResponseAttack": "No",
"priority": "High",
"protocols": "ipv4",
"attackCategory": "Exploit",
"attackSubCategory": "Protocol Violation",
"snortEngine": "---",
"versionAdded": "10.8.10.6",
"versionUpdated": "10.8.10.6",
"reference": {
"nspId": "0x00000100",
"cveId": "",
"microsoftId": "",
"bugtraqId": "",
"certId": "",
"arachNidsId": "",
"additionInfo": null
},
"signatures": [
{
"name": "Signature#1",
"conditions": [
"condition 1",
" System Event Name=\"ip-fragment-too-large\" "
]
}
],
"componentAttacks": [],
"comments": {
"comments": "",
"availabeToChildDomains": true,
"parentDomainComments": null
}
}
}
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 195
11| IPS Policies
IPS Policies
Get IPS Policies in a Domain
This URL gets all the IPS policies defined in the specific domain.
Resource URL
GET /domain/<domain_id>/ipspolicies
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
196 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/domain/0/ipspolicies
Response
{
"PolicyDescriptorDetailsList": [
{
"name": "Default IPS Attack Settings",
"DomainId": "0",
"policyId": "-1",
"IsEditable": "true",
"VisibleToChild": "true"
},
{
"name": "Default IDS",
"DomainId": "0",
"policyId": "0",
"IsEditable": "true",
"VisibleToChild": "true"
},
{
"name": "All-Inclusive Without Audit",
"DomainId": "0",
"policyId": "16",
"IsEditable": "true",
"VisibleToChild": "true"
},
{
"name": "All-Inclusive With Audit",
"DomainId": "0",
"policyId": "17",
"IsEditable": "true",
"VisibleToChild": "true"
},
{
"name": "Null",
"DomainId": "0",
"policyId": "18",
"IsEditable": "true",
"VisibleToChild": "true"
},
{
"name": "Default Inline IPS",
"DomainId": "0",
"policyId": "19",
"IsEditable": "true",
"VisibleToChild": "true"
}
]
}
Error Information
Following error code is returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 197
11| IPS Policies
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ipspolicy/<policy_id>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of PolicyDescriptor:
198 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
McAfee Network Security Platform 10.1.x Manager API Reference Guide 199
11| IPS Policies
200 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
McAfee Network Security Platform 10.1.x Manager API Reference Guide 201
11| IPS Policies
202 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
McAfee Network Security Platform 10.1.x Manager API Reference Guide 203
11| IPS Policies
204 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
isDropPacket Drop DoS attack packets of this attack type when detected Boolean
McAfee Network Security Platform 10.1.x Manager API Reference Guide 205
11| IPS Policies
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ipspolicy/0
Response
206 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
{
"PolicyDescriptor":
{
"PolicyName": "IpsPolicy",
"Description": "To test the IPS policy",
"IsVisibleToChildren": true,
"InboundRuleSet": "TestIPS",
"OutboundRuleSet": "Null",
"AttackCategory":
{
"ExpolitAttackList":
[
{
"attackName": "FTP: VMware Flaw in NAT Function",
"nspId": "0x4050b400",
"severity": 7,
"isSeverityCustomized": false,
"isEnabled": true,
"isAlertCustomized": false,
"isRecommendedForSmartBlocking": false,
"AttackResponse":
{
"TCPReset": "DISABLED",
"isTcpResetCustomized": false,
"isICMPSend": false,
"isICMPSendCustomized": false,
"mcAfeeNACNotification": "DISABLED",
"isMcAfeeNACNotificationEnabled": false,
"isQuarantineCustomized": false,
"isRemediateEnabled": false,
"blockingOption": "DISABLE",
"isBlockingOptionCustomized": false,
"isCapturedPrior": true,
"isCapturedPriorCustomized": false,
"action": "SEND_ALERT_ONLY",
"isLogCustomized": false,
"isFlowCustomized": false,
"isNbytesCustomized": false,
"numberOfBytesInEachPacket":
{
"LogEntirePacket":
{
}
}
},
"notification":
{
"isEmail": false,
"isPager": false,
"isScript": false,
"isAutoAck": false,
"isSnmp": false,
"isSyslog": false,
"isEmailCustomized": false,
"isPagerCustomized": false,
"isScriptCustomized": false,
"isAutoAckCustomized": false,
"isSnmpCustomized": false,
"isSyslogCustomized": false
},
"protocolList":
[
"ftp"
],
"benignTriggerProbability": "1 (Low)",
"blockingType": "attack-packet",
"subCategory": "code-execution",
"direction": "INBOUND",
"isAttackCustomized": false
}
]
},
"OutboundAttackCategory":
{
},
"DosPolicy":
{
"LearningAttack":
[
{
"attackName": "TCP Control Segment Anomaly",
"nspId": "0x40008700",
"isSeverityCustomized": false,
"severity": 7,
"isBlockingSettingCustomized": false,
McAfee Network Security Platform 10.1.x
"isDropPacket": Manager API Reference Guide
false, 207
"IsAlertCustomized": false,
"isSendAlertToManager": true,
11| IPS Policies
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
POST /sensor/<sensor_id>/interface/<interface_id or subinterface_id>/localipspolicy
Request Parameters
URL Parameters:
Payload Parameters:
Details of PolicyDescriptor:
208 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
Timestamp Time stamp at which the policy was added String Yes
McAfee Network Security Platform 10.1.x Manager API Reference Guide 209
11| IPS Policies
210 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
Data
Field Name Description Type Mandatory
McAfee Network Security Platform 10.1.x Manager API Reference Guide 211
11| IPS Policies
Data
Field Name Description Type Mandatory
212 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
timeUnit Time unit, can be "SECONDS" / "MINUTES" / "HOURS" / "DAYS" String Yes
McAfee Network Security Platform 10.1.x Manager API Reference Guide 213
11| IPS Policies
214 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
isDropPacket Drop DoS attack packets of this attack type when Boolean Yes
detected
McAfee Network Security Platform 10.1.x Manager API Reference Guide 215
11| IPS Policies
216 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
"DISABLED" / "ALL_HOSTS" /
"MCAFEE_NAC_UNMANAGED_HOSTS"
McAfee Network Security Platform 10.1.x Manager API Reference Guide 217
11| IPS Policies
"OUTBOUND" / "BOTH"
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://%3CNSM_IP%3E/sdkapi/sensor/1001/interface/105/localipspolicy
Payload:
218 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
{
"PolicyDescriptor":
{
"IsVisibleToChildren": true,
"InboundRuleSet": "testRuleSet",
"OutboundRuleSet": "Null",
"AttackCategory":
{
"ExpolitAttackList":
[
{
"attackName": "IDENT: TinyIdentD Identification Protocol Request Handling Remote Stack
Overflow",
"nspId": "0x42700e00",
"severity": 6,
"isSeverityCustomized": true,
"isEnabled": true,
"isAlertCustomized": false,
"isRecommendedForSmartBlocking": false,
"AttackResponse":
{
"TCPReset": "DISABLED",
"isTcpResetCustomized": false,
"isICMPSend": false,
"isICMPSendCustomized": false,
"mcAfeeNACNotification": "DISABLED",
"isMcAfeeNACNotificationEnabled": false,
"isQuarantineCustomized": false,
"isRemediateEnabled": false,
"blockingOption": "DISABLE",
"isBlockingOptionCustomized": false,
"isCapturedPrior": true,
"isCapturedPriorCustomized": false,
"action": "SEND_ALERT_ONLY",
"isLogCustomized": false,
"isFlowCustomized": false,
"isNbytesCustomized": false,
"numberOfBytesInEachPacket":
{
"LogEntirePacket":
{
}
}
},
"notification":
{
"isEmail": false,
"isPager": false,
"isScript": false,
"isAutoAck": false,
"isSnmp": false,
"isSyslog": false,
"isEmailCustomized": false,
"isPagerCustomized": false,
"isScriptCustomized": false,
"isAutoAckCustomized": false,
"isSnmpCustomized": false,
"isSyslogCustomized": false
},
"protocolList":
[
"ident"
],
"benignTriggerProbability": "3 (Medium)",
"blockingType": "attack-packet",
"subCategory": "buffer-overflow",
"direction": "INBOUND",
"isAttackCustomized": true
}
]
},
"OutboundAttackCategory":
{
},
"DosPolicy":
{
"LearningAttack":
[
{
"attackName": "Outbound ICMP Echo Request or Reply Volume Too High",
"nspId": "0x40018000",
"isSeverityCustomized": false,
"severity": 7,
"isBlockingSettingCustomized": false,
"isDropPacket": false,
McAfee Network Security Platform 10.1.x Manager
"IsAlertCustomized": false, API Reference Guide 219
"isSendAlertToManager": true,
"direction": "OUTBOUND",
11| IPS Policies
Response
{
"createdResourceId":105
}
Error Information
Following error codes are returned by this URL:
3 400 1301 The number of attacks does not match the number in the baseline policy
13 400 1311 Invalid threshold value - please enter a value between 1 and 2147483647
220 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
14 400 1312 Invalid threshold duration - please enter a value between 1 and
2147483647
Resource URL
GET /sensor/<sensor_id>/interface/<interface_id or subinterface_id>/localipspolicy
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of PolicyDescriptor:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 221
11| IPS Policies
222 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
McAfee Network Security Platform 10.1.x Manager API Reference Guide 223
11| IPS Policies
224 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
McAfee Network Security Platform 10.1.x Manager API Reference Guide 225
11| IPS Policies
226 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
McAfee Network Security Platform 10.1.x Manager API Reference Guide 227
11| IPS Policies
isDropPacket Drop DoS attack packets of this attack type when detected Boolean
228 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
McAfee Network Security Platform 10.1.x Manager API Reference Guide 229
11| IPS Policies
"DISABLED" / "ALL_HOSTS" /
"MCAFEE_NAC_UNMANAGED_HOSTS"
"OUTBOUND" / "BOTH"
230 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/sensor/1001/interface/105/localipspolicy
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 231
11| IPS Policies
{
"PolicyDescriptor":
{
"PolicyName": "Local Policy - /My Company/M-2950/1A-1B clone",
"Description": "To test the policies",
"IsVisibleToChildren": true,
"InboundRuleSet": "testRuleSet",
"OutboundRuleSet": "Null",
"AttackCategory":
{
"ExpolitAttackList":
[
{
"attackName": "IDENT: TinyIdentD Identification Protocol Request Handling Remote Stack
Overflow",
"nspId": "0x42700e00",
"severity": 6,
"isSeverityCustomized": true,
"isEnabled": true,
"isAlertCustomized": false,
"isRecommendedForSmartBlocking": false,
"AttackResponse":
{
"TCPReset": "DISABLED",
"isTcpResetCustomized": false,
"isICMPSend": false,
"isICMPSendCustomized": false,
"mcAfeeNACNotification": "DISABLED",
"isMcAfeeNACNotificationEnabled": false,
"isQuarantineCustomized": false,
"isRemediateEnabled": false,
"blockingOption": "DISABLE",
"isBlockingOptionCustomized": false,
"isCapturedPrior": true,
"isCapturedPriorCustomized": false,
"action": "SEND_ALERT_ONLY",
"isLogCustomized": false,
"isFlowCustomized": false,
"isNbytesCustomized": false,
"numberOfBytesInEachPacket":
{
"LogEntirePacket":
{
}
}
},
"notification":
{
"isEmail": false,
"isPager": false,
"isScript": false,
"isAutoAck": false,
"isSnmp": false,
"isSyslog": false,
"isEmailCustomized": false,
"isPagerCustomized": false,
"isScriptCustomized": false,
"isAutoAckCustomized": false,
"isSnmpCustomized": false,
"isSyslogCustomized": false
},
"protocolList":
[
"ident"
],
"benignTriggerProbability": "3 (Medium)",
"blockingType": "attack-packet",
"subCategory": "buffer-overflow",
"direction": "INBOUND",
"isAttackCustomized": true
}
]
},
"OutboundAttackCategory":
{
},
"DosPolicy":
{
"LearningAttack":
[
{
"attackName": "Outbound ICMP Echo Request or Reply Volume Too High",
"nspId": "0x40018000",
"isSeverityCustomized": false,
"severity": 7,
232 "isBlockingSettingCustomized": false,
McAfee Network Security Platform 10.1.x Manager API Reference Guide
"isDropPacket": false,
"IsAlertCustomized": false,
11| IPS Policies
Error Information
Following error codes are returned by this URL:
3 400 1301 The number of attacks does not match the number in the baseline policy
13 400 1311 Invalid threshold value - please enter a value between 1 and 2147483647
14 400 1312 Invalid threshold duration - please enter a value between 1 and
2147483647
McAfee Network Security Platform 10.1.x Manager API Reference Guide 233
11| IPS Policies
Resource URL
DELETE /sensor/<sensor_id>/interface/<interface_id or subinterface_id>/localipspolicy
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://%3CNSM_IP%3E/sdkapi/sensor/1001/interface/105/localipspolicy
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
234 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
3 400 1301 The number of attacks does not match the number in the baseline policy
13 400 1311 Invalid threshold value - please enter a value between 1 and 2147483647
14 400 1312 Invalid threshold duration - please enter a value between 1 and
2147483647
McAfee Network Security Platform 10.1.x Manager API Reference Guide 235
11| IPS Policies
Resource URL
POST /sdkapi/domain/<domainId>/ipspolicies/createips
Request Parameters
URL Parameters:
Payload Parameters:
DosResponseSensitivityLevel DOS response sensitivity level value can be: Number Yes
• 0
• 1
• 0
• 1
236 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
Response Parameters
Following fields are returned if the operation was successful, otherwise error details are returned.
Example
Request
POST https://<NSM_IP>/sdkapi/domain/<domainId>/ipspolicies/createips
Payload:
{
"PolicyName":"IPS policytest1",
"Description":"test",
"IsVisibleToChildren":true,
"InboundRuleSet":"Default Prevention",
"OutboundRuleSet":"DMZ",
"DosResponseSensitivityLevel":1,
"direction":1
}
Response
{
createdResourceId :1
}
Error Information
Following error codes are returned by this URL:
1 1001 Unable to add a policy. A policy with same name could be existing in current or in a
different admin domain.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 237
11| IPS Policies
PUT /ipspolicy/<policyid>
URL Parameters:
Payload Parameters:
No (Default policy)
InboundRuleSet Rule set with inbound direction String Yes (Custom policy)
No (Default policy)
OutboundRuleSet Rule set with outbound direction String Yes (Custom policy)
No (Default policy)
238 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
• 0
• 1
• 0
• 1
McAfee Network Security Platform 10.1.x Manager API Reference Guide 239
11| IPS Policies
Note: isAlertCustomized
should be set to true for
changing the isEnabled field.
240 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
• Disabled source
• Disabled destination
• Both
• Disabled
• All hosts
• McAfee NAC unmanaged hosts
McAfee Network Security Platform 10.1.x Manager API Reference Guide 241
11| IPS Policies
• Disable
• Enable
• Enable smart blocking
• Do nothing
• Send alert and log packets
• Send alert only
• Single flow
• Forensic analysis
242 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
McAfee Network Security Platform 10.1.x Manager API Reference Guide 243
11| IPS Policies
• Seconds
• Minutes
• Hours
• Days
244 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
McAfee Network Security Platform 10.1.x Manager API Reference Guide 245
11| IPS Policies
• Inbound
• Outbound
• Inbound and outbound
246 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
• Inbound
• Outbound
• Inbound and outbound
McAfee Network Security Platform 10.1.x Manager API Reference Guide 247
11| IPS Policies
• Disabled
• All hosts
• McAfee NAC unmanaged hosts
248 McAfee Network Security Platform 10.1.x Manager API Reference Guide
11| IPS Policies
Response Parameters
Following fields are returned if the operation was successful, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/ipspolicy/<policyid>
Payload:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 249
11| IPS Policies
{
"DosResponseSensitivityLevel": 1,
"direction": 1,
"Description": "Updated policy",
"IsEditable": true,
"PolicyName": "ipstest",
"ReconPolicy": {
"ReconAttackList": [
{
"IsAlertCustomized": true,
"isQuarantineCustomized": true,
"severity": 6,
"isThresholdDurationCustomized": true,
"isSendAlertToManager": true,
"nspId": "0x43f00900",
"ThresholdDuration": 5,
"alertSuppressionTimer": 5,
"isAlertSuppressionTimerCustomized": true,
"isMcAfeeNACNotificationEnabled": true,
"ThresholdValue": 200,
"notification": {
"isAutoAckCustomized": true,
"isPager": true,
"isSyslogCustomized": true,
"isPagerCustomized": true,
"isEmail": true,
"isScriptCustomized": true,
"isSnmpCustomized": true,
"isScript": true,
"isSnmp": true,
"isEmailCustomized": true,
"isAutoAck": true,
"isSyslog": true
},
"mcAfeeNACNotification": "ALL_HOSTS",
"isRemediateEnabled": true,
"isSeverityCustomized": true,
"isThresholdValueCustomized": true
}
]
},
"DosPolicy": {
"LearningAttack": [
{
"IsAlertCustomized": true,
"direction": "INBOUND",
"severity": 7,
"isDropPacket": false,
"isSendAlertToManager": true,
"nspId": "0x4000b600",
"isBlockingSettingCustomized": true,
"attackName": "Inbound IP Fragment Volume Too High",
"isSeverityCustomized": true,
"notification": {
"isAutoAckCustomized": true,
"isPager": true,
"isSyslogCustomized": true,
"isPagerCustomized": true,
"isEmail": true,
"isScriptCustomized": true,
"isSnmpCustomized": true,
"isScript": true,
"isSnmp": true,
"isEmailCustomized": true,
"isAutoAck": true,
"isSyslog": true
}
}
],
"ThresholdAttack": [
{
"isAlertCustomized": true,
"direction": "INBOUND",
"severity": 6,
"isThresholdDurationCustomized": true,
"isSendAlertToManager": true,
"nspId": "0x40018300",
"ThresholdDuration": 5,
"isSeverityCustomized": true,
"Notification": {
"isAutoAckCustomized": true,
"isPager": true,
"isSyslogCustomized": true,
"isPagerCustomized": true,
"isEmail": true,
250 "isScriptCustomized": true,
McAfee Network Security Platform 10.1.x Manager API Reference Guide
"isSnmpCustomized": true,
"isScript": true,
11| IPS Policies
Response
{
status :1
}
Resource URL
DELETE /ipspolicy/<policyid>
Request Parameters
URL Parameters:
Response
{
createdResourceId :1
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 251
12| Attack Filters Resource
Resource URL
POST /attackfilter
Request Parameters
Type Attack filter type, can be "IPV_4" / "IPV_6" / "TCP_UDP_PORT" / String Yes
"IPV_4_TCP_UDP_PORT" / "IPV_6_TCP_UDP_PORT"
Details of MatchCriteria:
252 McAfee Network Security Platform 10.1.x Manager API Reference Guide
12| Attack Filters Resource
Details of Ip:
Details of Port:
srcPortMode Source port mode, can be "ANY_PORT" / "TCP_OR_UDP" / "TCP" / "UDP" String Yes
McAfee Network Security Platform 10.1.x Manager API Reference Guide 253
12| Attack Filters Resource
destPortMode Destination port mode, can be "ANY_PORT" / "TCP_OR_UDP" / "TCP" / String Yes
"UDP"
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://%3CNSM_IP%3E/sdkapi/attackfilter
Payload:
{
"DomainId": 0,
"Description": "try ",
"MatchCriteria": {
"Exclusion": [
{
"Ip": {
"destEnd": "1.1.1.18",
"destMode": "RANGE_IP",
"srcMode": "SINGLE_IP",
"srcStart": "1.1.1.1",
"destStart": "1.1.1.13",
"srcEnd": "1.1.1.11"
},
"Port": {
"srcPortMode": "TCP",
"srcPort": "85",
"destPort": "89",
"destPortMode": "TCP"
}
}
]
},
"Type": "IPV_4_AND_TCP_UDP_PORT",
"name": "test1"
}
Response
{
"createdResourceId":419
}
254 McAfee Network Security Platform 10.1.x Manager API Reference Guide
12| Attack Filters Resource
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
3 400 1409 Attack filter name should not be greater than 40 chars
10 400 1415 Port not valid, please enter a number between 1 and 65535
Resource URL
PUT /attackfilter/<attackfilter_id>
Request Parameters
URL Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 255
12| Attack Filters Resource
Payload Parameters:
LastModTs Last modified timestamp. For update, the LastModTs in PUT String Yes
operation should be the same as returned by the GET operation for
the same attack filter
Type Attack filter type, can be "IPV_4" / "IPV_6" / "TCP_UDP_PORT" / String Yes
"IPV_4_TCP_UDP_PORT" / "IPV_6_TCP_UDP_PORT"
Details of MatchCriteria:
256 McAfee Network Security Platform 10.1.x Manager API Reference Guide
12| Attack Filters Resource
Details of Ip:
Details of port:
srcPortMode Source port mode, can be "ANY_PORT" / "TCP_OR_UDP" / "TCP" / "UDP" String Yes
McAfee Network Security Platform 10.1.x Manager API Reference Guide 257
12| Attack Filters Resource
destPortMode Destination port mode, can be "ANY_PORT" / "TCP_OR_UDP" / "TCP" / String Yes
"UDP"
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/attackfilter/419
Payload:
{
"DomainId": 0,
"Description": "try",
"MatchCriteria": {
"Exclusion": [
{
"Ip": {
"destEnd": "1.1.1.17",
"destMode": "RANGE_IP",
"srcMode": "SINGLE_IP",
"srcStart": "1.1.1.1",
"destStart": "1.1.1.13",
"srcEnd": "1.1.1.11"
},
"Port": {
"srcPortMode": "TCP",
"srcPort": "85",
"destPort": "89",
"destPortMode": "TCP"
}
}
]
},
"LastModTs": "2012-07-24 00:19:00",
"attackFilterId": 419,
"Type": "IPV_4_AND_TCP_UDP_PORT",
"name": "test1"
}
Response
{
"status":1
}
258 McAfee Network Security Platform 10.1.x Manager API Reference Guide
12| Attack Filters Resource
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
3 400 1409 Attack filter name should not be greater than 40 chars
11 400 1415 Port not valid, please enter a number between 1 and 65535
Resource URL
DELETE /attackfilter/<attackfilter_id>
McAfee Network Security Platform 10.1.x Manager API Reference Guide 259
12| Attack Filters Resource
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Request
Example
DELETE https://%3CNSM_IP%3E/sdkapi/attackfilter/419
Response
{
"status":1
}
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
260 McAfee Network Security Platform 10.1.x Manager API Reference Guide
12| Attack Filters Resource
Resource URL
GET /attackfilter/<attackfilter_id>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of MatchCriteria:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 261
12| Attack Filters Resource
Details of Ip:
Details of port:
srcPortMode Source port mode, can be "ANY_PORT" / "TCP_OR_UDP" / "TCP" / "UDP" String
262 McAfee Network Security Platform 10.1.x Manager API Reference Guide
12| Attack Filters Resource
destPortMode Destination port mode, can be "ANY_PORT" / "TCP_OR_UDP" / "TCP" / "UDP" String
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/%20attackfilter/420
Response
{
"DomainId": 0,
"MatchCriteria": {
"Exclusion": [
{
"Ip": {},
"Port": {
"srcPortMode": "TCP",
"srcPort": "85",
"destPort": "89",
"destPortMode": "TCP"
}
}
]
},
"LastModTs": "2012-07-24 00:19:00",
"attackFilterId": 420,
"Type": "TCP_UDP_PORT",
"name": "test2"
}
Error Information
Following error code isreturned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /attackfilters?domain=<domain_id>
Request Parameters
URL Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 263
12| Attack Filters Resource
domain_id ID of domain in which the attack filter has been created Number No
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/%20attackfilters?domain=0
Response
264 McAfee Network Security Platform 10.1.x Manager API Reference Guide
12| Attack Filters Resource
{
"AttackFilterDescriptor": [
{
"VisibleToChild": false,
"name": "test1",
"IsEditable": false,
"filterId": 419,
"DomainId": 0,
"LastModTs": "2012-07-24 00:14:00"
},
{
"VisibleToChild": false,
"name": "test2",
"IsEditable": false,
"filterId": 420,
"DomainId": 0,
"LastModTs": "2012-07-24 00:19:00"
}
]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
POST /domain/<domain_id>/attackfilter
Request Parameters
URL Parameters:
Payload Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 265
12| Attack Filters Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://%3CNSM_IP%3E/sdkapi/domain/0/attackfilter
266 McAfee Network Security Platform 10.1.x Manager API Reference Guide
12| Attack Filters Resource
Payload:
{
"AssignAttackFilterRequest": [
{
"Direction": "INBOUND",
"AttackId": "0x40503900",
"FilterId": [
419,
420
],
"Overwrite": true
},
{
"Direction": " INBOUND ",
"AttackId": "0x48304e00",
"FilterId": [
419
],
"Overwrite": true
}
]
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /domain/<domain_id>/attackfilter/<attack_id>
McAfee Network Security Platform 10.1.x Manager API Reference Guide 267
12| Attack Filters Resource
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
268 McAfee Network Security Platform 10.1.x Manager API Reference Guide
12| Attack Filters Resource
GET https://%3CNSM_IP%3E/sdkapi/domain/0/attackfilter/0x40503900
Response
{
"AttackFilterDescriptor": [
{
"VisibleToChild": true,
"name": "test1",
"IsEditable": false,
"filterId": 419,
"DomainId": 0,
"LastModTs": "2012-07-24 00:14:00"
},
{
"VisibleToChild": true,
"name": "test2",
"IsEditable": false,
"filterId": 420,
"DomainId": 0,
"LastModTs": "2012-07-24 00:19:00"
}
]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
DELETE /domain/<domain_id>/attackfilter/<attack_id>
• INBOUND
• OUTBOUND
Request Parameters
URL Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 269
12| Attack Filters Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://%3CNSM_IP%3E/sdkapi/domain/0/attackfilter/0x40503900%20?direction=INBOUND
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
270 McAfee Network Security Platform 10.1.x Manager API Reference Guide
12| Attack Filters Resource
Resource URL
POST /sensor/<sensor_id>/attackfilter
Request Parameters
URL Parameters:
Payload Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 271
12| Attack Filters Resource
Example
Request
POST https://%3CNSM_IP%3E/sdkapi/sensor/1001/attackfilter
Payload:
{
"AssignAttackFilterRequest": [
{
"Direction": " INBOUND ",
"AttackId": "0x40503900",
"FilterId": [
419,
420
],
"Overwrite": true
},
{
"Direction": " INBOUND ",
"AttackId": "0x48304e00",
"FilterId": [
419
],
"Overwrite": true
}
]
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
272 McAfee Network Security Platform 10.1.x Manager API Reference Guide
12| Attack Filters Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /sensor/<sensor_id>/attackfilter/<attack_id>
Request Parameters
URL Parameters:
attack_id Attack id to which the attack filters are assigned String Yes
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 273
12| Attack Filters Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/sensor/1001/attackfilter/0x40503900
Response
{
"AttackFilterDescriptor": [
{
"VisibleToChild": true,
"name": "test1",
"IsEditable": false,
"filterId": 419,
"DomainId": 0,
"LastModTs": "2012-07-24 00:19:00"
},
{
"VisibleToChild": true,
"name": "test2",
"IsEditable": false,
"filterId": 420,
"DomainId": 0,
"LastModTs": "2012-07-24 00:14:00"
}
]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
274 McAfee Network Security Platform 10.1.x Manager API Reference Guide
12| Attack Filters Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
DELETE /sensor/<sensor_id>/attackfilter/<attack_id>
• INBOUND
• OUTBOUND
Request Parameters
URL Parameters:
attack_id Attack id to which the attack filters are assigned String Yes
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 275
12| Attack Filters Resource
Example
Request
DELETE https://%3CNSM_IP%3E/sdkapi/sensor/1001/attackfilter%20/0x40503900%20?direction=INBOUND
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
POST /sensor/<sensor_id>/interface/<interface_ id or subinterface-id>/attackfilter
Request Parameters
URL Parameters:
276 McAfee Network Security Platform 10.1.x Manager API Reference Guide
12| Attack Filters Resource
Payload Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
McAfee Network Security Platform 10.1.x Manager API Reference Guide 277
12| Attack Filters Resource
POST https://%3CNSM_IP%3E/sdkapi/sensor/1001/interface/105/attackfilter
Payload:
{
"AssignAttackFilterRequest": [
{
"Direction": " INBOUND ",
"AttackId": "0x40503900",
"FilterId": [
419,
420
],
"Overwrite": true
},
{
"Direction": " INBOUND ",
"AttackId": "0x48304e00",
"FilterId": [
419
],
"Overwrite": true
}
]
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
278 McAfee Network Security Platform 10.1.x Manager API Reference Guide
12| Attack Filters Resource
Resource URL
GET /sensor/<sensor_id>/interface/<interface_ id or subinterface_id>/attackfilter/<attack_id>
Request Parameters
URL Parameters:
attack_id Attack id to which the attack filters are assigned String Yes
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 279
12| Attack Filters Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/sensor/1001/interface/105/attackfilter/0x40503900
Response
{
"AttackFilterDescriptor": [
{
"VisibleToChild": true,
"name": "test1",
"IsEditable": false,
"filterId": 419,
"DomainId": 0,
"LastModTs": "2012-07-24 00:19:00"
},
{
"VisibleToChild": true,
"name": "test2",
"IsEditable": false,
"filterId": 420,
"DomainId": 0,
"LastModTs": "2012-07-24 00:19:00"
}
]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
280 McAfee Network Security Platform 10.1.x Manager API Reference Guide
12| Attack Filters Resource
Resource URL
GET /sensor/<sensor_id>/interface/<interface_id or subinterface_id>/attackfilter/<attack_id>
• INBOUND
• OUTBOUND
Request Parameters
URL Parameters:
attack_id Attack id to which the attack filters are assigned String Yes
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/sensor/1001/interface/105/attackfilter/0x40503900?direction=INBOUND
McAfee Network Security Platform 10.1.x Manager API Reference Guide 281
12| Attack Filters Resource
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /attackfilter/<attackfilter_id>/assignments
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
282 McAfee Network Security Platform 10.1.x Manager API Reference Guide
12| Attack Filters Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/attackfilter/%3Cattackfilter_id/assignments
Response
{
"AssignmentDetails": [
{
"resourceName": "My Company",
"attackId": "0x40503900"
},
{
"resourceName": "My Company",
"attackId": "0x48304e00"
}
]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 283
13| Rule Objects Resource
Resource URL
POST /ruleobject
Request Parameters
Data
Field Name Description Type Mandatory
284 McAfee Network Security Platform 10.1.x Manager API Reference Guide
13| Rule Objects Resource
Data
Field Name Description Type Mandatory
McAfee Network Security Platform 10.1.x Manager API Reference Guide 285
13| Rule Objects Resource
Data
Field Name Description Type Mandatory
Details of ApplicationGroup:
Details of ApplicationonCustomPort:
286 McAfee Network Security Platform 10.1.x Manager API Reference Guide
13| Rule Objects Resource
Details of FiniteTimePeriod:
Details of HostIPv4:
Details of HostIPv6:
Details of HostDNSName
McAfee Network Security Platform 10.1.x Manager API Reference Guide 287
13| Rule Objects Resource
Details of IPv4AddressRange:
Details of IPv6AddressRange:
Details of NetworkIPv4:
288 McAfee Network Security Platform 10.1.x Manager API Reference Guide
13| Rule Objects Resource
Details of NetworkIPv6:
Details of NetworkGroup:
Details of RecurringTimePeriod:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 289
13| Rule Objects Resource
day List of days, can be "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", String Yes
"FRIDAY", "SATURDAY", "SUNDAY"
Details of RecurringTimePeriodGroup:
recurringTimePeriodsId List of recurring time period rule object Id's Array Yes
Details of Service:
Details of ServiceRange:
290 McAfee Network Security Platform 10.1.x Manager API Reference Guide
13| Rule Objects Resource
Details of ServiceGroup:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://%3CNSM_IP%3E/sdkapi/ruleobject
McAfee Network Security Platform 10.1.x Manager API Reference Guide 291
13| Rule Objects Resource
Payload:
{
"RuleObjDef": {
"domain": 0,
"visibleToChild": true,
"description": "try",
"ruleobjId": 0,
"name": "test_NTW",
"Network": {
"networkList": [
"172.0.0.0/8",
"172.16.0.0/16",
"192.168.12.0/24"
]
},
"ruleobjType": "NETWORK",
}
}
Response
{
"createdResourceId":121
}
Error Information
Following error codes are returned by this URL:
6 400 1706 Rule objects which are not visible to child admin domains cannot be
added to a rule object visible to child admin domain
292 McAfee Network Security Platform 10.1.x Manager API Reference Guide
13| Rule Objects Resource
15 400 1717 Start port should be less than the end port
18 400 1720 Invalid rule object id/ rule object not visible to this domain
19 400 1721 Network group rule object can contain either IPV4/IPV6 rule objects, but
not both simultaneously
Resource URL
PUT /ruleobject/<ruleobject_id>
Request Parameters
URL Parameters
McAfee Network Security Platform 10.1.x Manager API Reference Guide 293
13| Rule Objects Resource
Payload Parameters:
Data
Field Name Description Type Mandatory
294 McAfee Network Security Platform 10.1.x Manager API Reference Guide
13| Rule Objects Resource
Data
Field Name Description Type Mandatory
McAfee Network Security Platform 10.1.x Manager API Reference Guide 295
13| Rule Objects Resource
Details of ApplicationGroup:
Details of ApplicationonCustomPort:
Details of FiniteTimePeriod:
296 McAfee Network Security Platform 10.1.x Manager API Reference Guide
13| Rule Objects Resource
Details of HostIPv4:
Details of HostIPv6:
Details of HostDNSName:
Details of IPv4AddressRange:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 297
13| Rule Objects Resource
Details of IPv6AddressRange:
Details of NetworkIPv4:
Details of NetworkIPv6:
298 McAfee Network Security Platform 10.1.x Manager API Reference Guide
13| Rule Objects Resource
Details of NetworkGroup:
Details of RecurringTimePeriod:
day List of days, can be "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", String Yes
"FRIDAY", "SATURDAY", "SUNDAY"
McAfee Network Security Platform 10.1.x Manager API Reference Guide 299
13| Rule Objects Resource
Details of RecurringTimePeriodGroup:
recurringTimePeriodsId List of recurring time period rule object Id's Array Yes
Details of Service:
Details of ServiceRange:
Details of ServiceGroup:
300 McAfee Network Security Platform 10.1.x Manager API Reference Guide
13| Rule Objects Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/ruleobject/121
Payload:
{
"RuleObjDef": {
"visibleToChild": true,
"description": "try",
"ruleobjId": 0,
"name": "test_NTW_new",
"Network": {
"networkList": [
"172.0.0.0/8",
"192.168.12.0/24"
]
},
"ruleobjType": "NETWORK",
}
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 301
13| Rule Objects Resource
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
7 400 1706 Rule objects which are not visible to child admin domains cannot be
added to a rule object visible to child admin domain
302 McAfee Network Security Platform 10.1.x Manager API Reference Guide
13| Rule Objects Resource
17 400 1717 Start port should be less than the end port
20 400 1720 Invalid rule object id/ rule object not visible to this domain
21 400 1721 Network group rule object can contain either IPV4/IPV6 rule objects, but
not both simultaneously
Resource URL
DELETE /ruleobject/<ruleobject_id>
Request Parameters
URL Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 303
13| Rule Objects Resource
Example
Request
DELETE https://%3CNSM_IP%3E/sdkapi/ruleobject/121
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
3 400 1720 Invalid rule object Id/ rule object not visible to this domain
Resource URL
GET /ruleobject/<ruleobject_id>
304 McAfee Network Security Platform 10.1.x Manager API Reference Guide
13| Rule Objects Resource
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
HostIPv4 Host IPv4 address object, should be defined if ruleobjType is "HOST_IPV_4" Object
HostIPv6 Host IPv6 address object, should be defined if ruleobjType is "HOST_IPV_6" Object
McAfee Network Security Platform 10.1.x Manager API Reference Guide 305
13| Rule Objects Resource
RecurringTimePeriodGroup Recurring time period group object, should be defined if ruleobjType is Object
"RECURRING_TIME_PERIOD_GROUP"
NetworkGroupAF Network group for exception objects should be defined if ruleobjType is Object
"NETWORK_GROUP_AF". This type of rule object is applicable only for alert
filter/Ignore rules.
Details of ApplicationGroup:
306 McAfee Network Security Platform 10.1.x Manager API Reference Guide
13| Rule Objects Resource
Details of ApplicationonCustomPort
Details of FiniteTimePeriod:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 307
13| Rule Objects Resource
Details of HostIPv4:
Details of HostIPv6:
Details of HostDNSName:
Details of IPv4AddressRange:
308 McAfee Network Security Platform 10.1.x Manager API Reference Guide
13| Rule Objects Resource
Details of IPv6AddressRange:
Details of NetworkIPv4:
Details of NetworkIPv6
McAfee Network Security Platform 10.1.x Manager API Reference Guide 309
13| Rule Objects Resource
Details of NetworkGroup:
Details of RecurringTimePeriod:
day List of days, can be "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", String
"SATURDAY", "SUNDAY"
310 McAfee Network Security Platform 10.1.x Manager API Reference Guide
13| Rule Objects Resource
Details of RecurringTimePeriodGroup
Details of Service
Details of ServiceRange
Details of ServiceGroup
McAfee Network Security Platform 10.1.x Manager API Reference Guide 311
13| Rule Objects Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ruleobject/%3Cruleobject_id%20%3E
Response
{
"RuleObjDef": {
"domain": 0,
"visibleToChild": true,
"Network": {
"networkList": [
"172.0.0.0/8",
"172.16.0.0/16",
"192.168.12.0/24"
]
},
"description": "try",
"ruleobjId": "121",
"ruleobjType": "NETWORK",
"name": "test_NTW"
}
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
1 404 1720 Invalid rule object Id/ rule object not visible to this domain
312 McAfee Network Security Platform 10.1.x Manager API Reference Guide
13| Rule Objects Resource
Resource URL
GET/ruleobject/<ruleobject_id>/assignments
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ruleobject/121/assignments
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 313
13| Rule Objects Resource
{
"RuleObjectAssociationResponseList": [
{
"usagePath": "My Company/NAC Settings/Network Setup/Network Access Zones/Allow Public Networks and
Private DNS/Rule 11/Destination"
},
{
"usagePath": "My Company/NAC Settings/Network Setup/Network Access Zones/Allow Public Networks/Rule
01/Destination"
}
]
}
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
1 404 1720 Invalid rule object Id/ rule object not visible to this domain
Resource URL
GET /domain/<domain_id>/ruleobject?type=<ruleobject_type>
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
314 McAfee Network Security Platform 10.1.x Manager API Reference Guide
13| Rule Objects Resource
HostIPv4 Host IPv4 address object, should be defined if ruleobjType is "HOST_IPV_4" Object
HostIPv6 Host IPv6 address object, should be defined if ruleobjType is "HOST_IPV_6" Object
McAfee Network Security Platform 10.1.x Manager API Reference Guide 315
13| Rule Objects Resource
RecurringTimePeriodGroup Recurring time period group object, should be defined if ruleobjType is Object
"RECURRING_TIME_PERIOD_GROUP"
Details of ApplicationGroup
Details of ApplicationonCustomPort
316 McAfee Network Security Platform 10.1.x Manager API Reference Guide
13| Rule Objects Resource
Details of FiniteTimePeriod:
Details of HostIPv4:
Details of HostIPv6:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 317
13| Rule Objects Resource
Details of HostDNSName:
Details of IPv4AddressRange:
Details of IPv6AddressRange:
318 McAfee Network Security Platform 10.1.x Manager API Reference Guide
13| Rule Objects Resource
Details of NetworkIPv4:
Details of NetworkIPv6:
Details of NetworkGroup
McAfee Network Security Platform 10.1.x Manager API Reference Guide 319
13| Rule Objects Resource
Details of RecurringTimePeriod:
day List of days, can be "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", String
"SATURDAY", "SUNDAY"
Details of RecurringTimePeriodGroup:
Details of Service:
320 McAfee Network Security Platform 10.1.x Manager API Reference Guide
13| Rule Objects Resource
Details of ServiceRange:
Details of ServiceGroup:
Example
Request
McAfee Network Security Platform 10.1.x Manager API Reference Guide 321
13| Rule Objects Resource
GET https://%3CNSM_IP%3E/sdkapi/domain/0/ruleobject%20?type=
%20Application,ApplicationGroup,ApplicationOnCustomPort,Country,FiniteTimePeriod,HostDNSName,HostIpv4,IPV4AddressRange,Networ
Response
322 McAfee Network Security Platform 10.1.x Manager API Reference Guide
13| Rule Objects Resource
{
"RuleObjDef": [
{
"domain": 0,
"visibleToChild": true,
"name": "test2",
"ruleobjId": "131",
"ApplicationOnCustomPort": {
"portsList": [
{
"IPProtocol": "TCP",
"port": 310
},
{
"IPProtocol": "UDP",
"port": 320
},
],
"applicationId": "1375772672"
},
"ruleobjType": "APPLICATION_ON_CUSTOM_PORT",
"description": "try"
},
{
"domain": 0,
"visibleToChild": true,
"name": "test2_SRV",
"Service": {
"protocol": "TCP",
"portNumber": 100
},
"ruleobjId": "129",
"ruleobjType": "SERVICE",
"description": "try"
},
{
"domain": 0,
"visibleToChild": true,
"name": "test2_SRVG",
"ruleobjId": "130",
"ServiceGroup": {
"ServiceIdentifier": [
{
"ServiceType": "CUSTOM_SERVICE",
"ServiceRuleObjId": "129"
}
]
},
"ruleobjType": "SERVICE_GROUP",
"description": "try"
},
{
"domain": 0,
"visibleToChild": true,
"name": "test_NG",
"description": "try",
"ruleobjId": "128",
"ruleobjType": "NETWORK_GROUP",
"NetworkGroup": {
"NetworkGroupIdentifier": [
{
"RuleObjId": "121",
"Type": "NETWORK"
},
{
"RuleObjId": "KZ",
"Type": "COUNTRY"
},
{
"RuleObjId": "125",
"Type": "HOST_IPV_4"
},
]
}
},
{
"domain": 0,
"visibleToChild": true,
"name": "icmp-address mask reply",
"Service": {
"portNumber": 18
},
"ruleobjId": "27",
"ruleobjType": "SERVICE",
"description": "Default Network Object for ICMP Protocols"
McAfee
}, Network Security Platform 10.1.x Manager API Reference Guide 323
{
"domain": 0,
13| Rule Objects Resource
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ruleobject/user?filter=<user_name_filter>&maxcount=<max_entries_expected>
Request Parameters
max_entries_expected Maximum users to be displayed if more than 1 user match the Number No
user filter string
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
324 McAfee Network Security Platform 10.1.x Manager API Reference Guide
13| Rule Objects Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ruleobject/user?filter=user&max_count=10
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 325
13| Rule Objects Resource
{
"userRuleObjectResponseList":
[
{
"ruleObjectId": "S-1-5-21-1459593717-2655996711-1404495803-3491",
"ruleObjectName": "[email protected]",
"ruleObjectType": "User"
},
{
"ruleObjectId": "S-1-5-21-1459593717-2655996711-1404495803-1177",
"ruleObjectName": "[email protected]",
"ruleObjectType": "User"
},
{
"ruleObjectId": "S-1-5-21-1459593717-2655996711-1404495803-1123",
"ruleObjectName": "[email protected]",
"ruleObjectType": "User"
},
{
"ruleObjectId": "S-1-5-21-1459593717-2655996711-1404495803-1200",
"ruleObjectName": "[email protected]",
"ruleObjectType": "User"
},
{
"ruleObjectId": "S-1-5-21-1459593717-2655996711-1404495803-3601",
"ruleObjectName": "[email protected]",
"ruleObjectType": "User"
},
{
"ruleObjectId": "S-1-5-21-1459593717-2655996711-1404495803-3430",
"ruleObjectName": "[email protected]",
"ruleObjectType": "User"
},
{
"ruleObjectId": "S-1-5-21-1459593717-2655996711-1404495803-3560",
"ruleObjectName": "[email protected]",
"ruleObjectType": "User"
},
{
"ruleObjectId": "S-1-5-21-1459593717-2655996711-1404495803-3562",
"ruleObjectName": "[email protected]",
"ruleObjectType": "User"
},
{
"ruleObjectId": "S-1-5-21-1459593717-2655996711-1404495803-3479",
"ruleObjectName": "[email protected]",
"ruleObjectType": "User"
},
{
"ruleObjectId": "S-1-5-21-1459593717-2655996711-1404495803-1188",
"ruleObjectName": "[email protected]",
"ruleObjectType": "User"
}
]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
326 McAfee Network Security Platform 10.1.x Manager API Reference Guide
13| Rule Objects Resource
Resource URL
GET /ruleobject/usergroup
Request Parameters
None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ruleobject/usergroup
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 327
13| Rule Objects Resource
{
"userGroupRuleObjectResponseList": [
{
"ruleObjectId": "S-1-5-21-1459593717-2655996711-1404495803-520",
"ruleObjectName": "Group Policy Creator [email protected]",
"ruleObjectType": "User Group"
},
{
"ruleObjectId": "S-1-5-21-1459593717-2655996711-1404495803-3570",
"ruleObjectName": "[email protected]",
"ruleObjectType": "User Group"
},
{
"ruleObjectId": "S-1-5-21-1459593717-2655996711-1404495803-3606",
"ruleObjectName": "[email protected]",
"ruleObjectType": "User Group"
},
{
"ruleObjectId": "S-1-5-21-1459593717-2655996711-1404495803-498",
"ruleObjectName": "Enterprise Read-only Domain [email protected]",
"ruleObjectType": "User Group"
},
{
"ruleObjectId": "S-1-5-21-1459593717-2655996711-1404495803-572",
"ruleObjectName": "Denied RODC Password Replication [email protected]",
"ruleObjectType": "User Group"
},
{
"ruleObjectId": "S-1-2-32-551-0-0-0",
"ruleObjectName": "Backup [email protected]",
"ruleObjectType": "User Group"
},
{
"ruleObjectId": "S-1-2-32-562-0-0-0",
"ruleObjectName": "Distributed COM [email protected]",
"ruleObjectType": "User Group"
}
]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
328 McAfee Network Security Platform 10.1.x Manager API Reference Guide
14| Firewall Policies Resource
Resource URL
POST /firewallpolicy
Request Parameters
Payload Request Parameters:
FirewallPolicyId Unique firewall policy id, not required for POST Number No
LastModifiedTime Last modified time of the firewall policy, not required for POST String No
LastModifiedUser Latest user that modified the policy, not required for POST String No
Details of MemberDetails:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 329
14| Firewall Policies Resource
330 McAfee Network Security Platform 10.1.x Manager API Reference Guide
14| Firewall Policies Resource
Details of SourceUserObjectList:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 331
14| Firewall Policies Resource
Details of TimeObjectList:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://%3CNSM_IP%3E/sdkapi/firewallpolicy
332 McAfee Network Security Platform 10.1.x Manager API Reference Guide
14| Firewall Policies Resource
{
"Name" : "TestFirewallPolicy",
"DomainId" : 0,
"VisibleToChild" : true,
"Description" : "test the firewallpolicy",
"LastModifiedTime" : "2012-12-12 12:30:47",
"IsEditable" : true,
"PolicyType" : "ADVANCED",
"PolicyVersion" : 1,
"LastModifiedUser" : "admin",
"MemberDetails" : {
"MemberRuleList" : [{
"Description" : "Test Member Rule",
"Enabled" : true,
"Response" : "SCAN",
"IsLogging" : false,
"Direction" : "INBOUND",
"SourceAddressObjectList" : [{
"RuleObjectId" : "AF",
"Name" : "Afghanistan",
"RuleObjectType" : "COUNTRY"
}
],
"DestinationAddressObjectList" : [{
"RuleObjectId" : "101",
"Name" : "hostDNSRule",
"RuleObjectType" : "HOST_DNS_NAME"
}, {
"RuleObjectId" : "102",
"Name" : "hostIpv4",
"RuleObjectType" : "HOST_IPV_4"
}, {
"RuleObjectId" : "103",
"Name" : "ipv4Addressrange",
"RuleObjectType" : "IPV_4_ADDRESS_RANGE"
}, {
"RuleObjectId" : "104",
"Name" : "networkgroup",
"RuleObjectType" : "NETWORK_GROUP"
}
],
"SourceUserObjectList" : [{
"RuleObjectId" : "-1",
"Name" : "Any",
"RuleObjectType" : "USER"
}
],
"ServiceObjectList" : [],
"ApplicationObjectList" : [{
"RuleObjectId" : "1308991488",
"Name" : "100bao",
"RuleObjectType" : "APPLICATION",
"ApplicationType" : "DEFAULT"
}, {
"RuleObjectId" : "106",
"Name" : "applicaionOncutomPort",
"RuleObjectType" : "APPLICATION_ON_CUSTOM_PORT",
"ApplicationType" : "CUSTOM"
}, {
"RuleObjectId" : "105",
"Name" : "applicationgroup",
"RuleObjectType" : "APPLICATION_GROUP",
"ApplicationType" : "CUSTOM"
}
],
"TimeObjectList" : [{
"RuleObjectId" : "107",
"Name" : "finiteTimePeriod",
"RuleObjectType" : "FINITE_TIMING_PERIOD"
}, {
"RuleObjectId" : "108",
"Name" : "recuringTimePeriod",
"RuleObjectType" : "RECURRING_TIME_PERIOD"
}, {
"RuleObjectId" : "109",
"Name" : "recurringTimeperiodGroup",
"RuleObjectType" : "RECURRING_TIME_PERIOD_GROUP"
}
]
}
]
}
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 333
14| Firewall Policies Resource
Response
{
"createdResourceId":120
}
Error Information
Following error codes are returned by this URL:
4 400 1804 Maximum of 10 rule objects are allowed in each object list of an advanced
firewall/QoS policy
5 400 1805 Multiple rule objects in a single source/destination object list is not
supported for a classic firewall policy
6 400 1806 Only host IPV4/network IPV4 type rule objects are supported for classic
firewall policy
7 400 1807 Only service type rule object is supported for classic firewall policy
8 400 1808 Time object list is not applicable for classic firewall policy
9 400 1809 Application object list is not applicable for classic firewall policy
10 400 1810 Multiple rule objects in a single service object list is not supported for a
classic firewall policy
334 McAfee Network Security Platform 10.1.x Manager API Reference Guide
14| Firewall Policies Resource
17 400 1817 For stateless action, application object list is not applicable
19 406 1819 Stateless response with any/TCP/IP protocol no.6/default services are not
allowed
21 400 1821 Either application or service object list can be defined in a member rule for
an advanced firewall policy
22 400 1822 Composite rule object(Multiple items in a rule object) is allowed for advanced
firewall policy only
23 400 1824 Source user object list is not applicable for classic firewall policy
24 400 1825 Source address object list is not applicable for classic firewall policy
25 400 1826 Destination address object list is not applicable for classic firewall policy
26 400 1827 Firewall policy with the same name was defined
27 400 1829 Name must contain only letters, numerical, spaces, commas, periods,
hyphens or underscore
28 400 1830 Firewall policy name should not be greater than 40 chars
McAfee Network Security Platform 10.1.x Manager API Reference Guide 335
14| Firewall Policies Resource
30 400 1832 Source address and destination address object list cannot combine IPV6 rule
objects with host IPV4, network IPV4, IPV4 address range, country and host
DNS name rule objects
31 400 1833 Require authentication is valid only when source user object list is set to any
32 400 1834 Require authentication is valid only when HTTP (default service) is selected
33 400 1835 Firewall policy description should not be greater than 255 chars
34 400 1836 Member rule description should not be greater than 64 chars
36 400 1838 Time object list can contain one finite time period
37 400 1839 Stateless response with source user or source user group rule objects are
not allowed
Resource URL
PUT /firewallpolicy/<policy_id>
Request Parameters
URL Parameters:
336 McAfee Network Security Platform 10.1.x Manager API Reference Guide
14| Firewall Policies Resource
Details of MemberDetails:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 337
14| Firewall Policies Resource
338 McAfee Network Security Platform 10.1.x Manager API Reference Guide
14| Firewall Policies Resource
Details of SourceUserObjectList:
Details of TimeObjectList:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 339
14| Firewall Policies Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/firewallpolicy/120
Payload:
340 McAfee Network Security Platform 10.1.x Manager API Reference Guide
14| Firewall Policies Resource
{
"FirewallPolicyId" : 120,
"Name" : "TestFirewallPolicy",
"DomainId" : 0,
"VisibleToChild" : true,
"Description" : "test the firewallpolicy",
"LastModifiedTime" : "2012-12-12 12:32:44",
"IsEditable" : true,
"PolicyType" : "ADVANCED",
"PolicyVersion" : 1,
"LastModifiedUser" : "admin",
"MemberDetails" : {
"MemberRuleList" : [{
"Description" : "Test Member Rule",
"Enabled" : true,
"Response" : "IGNORE",
"IsLogging" : false,
"Direction" : "OUTBOUND",
"SourceAddressObjectList" : [{
"RuleObjectId" : "AF",
"Name" : "Afghanistan",
"RuleObjectType" : "COUNTRY"
}
],
"DestinationAddressObjectList" : [{
"RuleObjectId" : "101",
"Name" : "hostDNSRule",
"RuleObjectType" : "HOST_DNS_NAME"
}, {
"RuleObjectId" : "102",
"Name" : "hostIpv4",
"RuleObjectType" : "HOST_IPV_4"
}, {
"RuleObjectId" : "103",
"Name" : "ipv4Addressrange",
"RuleObjectType" : "IPV_4_ADDRESS_RANGE"
}, {
"RuleObjectId" : "104",
"Name" : "networkgroup",
"RuleObjectType" : "NETWORK_GROUP"
}
],
"SourceUserObjectList" : [{
"RuleObjectId" : "-1",
"Name" : "ANY",
"RuleObjectType" : "USER"
}
],
"ServiceObjectList" : [],
"ApplicationObjectList" : [{
"RuleObjectId" : "1308991488",
"Name" : "100bao",
"RuleObjectType" : "APPLICATION",
"ApplicationType" : "DEFAULT"
}, {
"RuleObjectId" : "106",
"Name" : "applicaionOncutomPort",
"RuleObjectType" : "APPLICATION_ON_CUSTOM_PORT",
"ApplicationType" : "CUSTOM"
}, {
"RuleObjectId" : "105",
"Name" : "applicationgroup",
"RuleObjectType" : "APPLICATION_GROUP",
"ApplicationType" : "CUSTOM"
}
],
"TimeObjectList" : [{
"RuleObjectId" : "107",
"Name" : "finiteTimePeriod",
"RuleObjectType" : "FINITE_TIMING_PERIOD"
}, {
"RuleObjectId" : "108",
"Name" : "recuringTimePeriod",
"RuleObjectType" : "RECURRING_TIME_PERIOD"
}, {
"RuleObjectId" : "109",
"Name" : "recurringTimeperiodGroup",
"RuleObjectType" : "RECURRING_TIME_PERIOD_GROUP"
}
]
}
]
}
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 341
14| Firewall Policies Resource
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
4 400 1801 Invalid firewall policy Id/ firewall policy not visible to this domain
5 400 1804 Maximum of 10 rule objects are allowed in each object list of an advanced
firewall/QoS policy
6 400 1805 Multiple rule objects in a single source/destination object list is not
supported for a classic firewall policy
7 400 1806 Only host IPV4/network IPV4 type rule objects are supported for classic
firewall policy
8 400 1807 Only service type rule object is supported for classic firewall policy
9 400 1808 Time object list is not applicable for classic firewall policy
10 400 1809 Application object list is not applicable for classic firewall policy
11 400 1810 Multiple rule objects in a single Service object list is not supported for a
classic firewall policy
342 McAfee Network Security Platform 10.1.x Manager API Reference Guide
14| Firewall Policies Resource
18 400 1817 For stateless action, application object list is not applicable
20 406 1819 Stateless response with any/TCP/IP protocol no.6/default services are not
allowed
22 400 1821 Either application or service object list can be defined in a member rule for
an advanced firewall policy
23 400 1822 Composite rule object(Multiple items in a rule object) is allowed for
advanced firewall policy only
24 400 1824 Source user object list is not applicable for classic firewall policy
25 400 1825 Source address object list is not applicable for classic firewall policy
26 400 1826 Destination address object list is not applicable for classic firewall policy
27 400 1827 Firewall policy with the same name was defined
McAfee Network Security Platform 10.1.x Manager API Reference Guide 343
14| Firewall Policies Resource
29 400 1829 Name must contain only letters, numerical, spaces, commas, periods,
hyphens or underscore
30 400 1830 Firewall policy name should not be greater than 40 chars
32 400 1832 Source address and destination address object list cannot combine IPV6 rule
objects with host IPV4, network IPV4, IPV4 address range, country and host
DNS name rule objects
33 400 1833 Require authentication is valid only when source user object list is set to any
34 400 1834 Require authentication is valid only when HTTP (default service) is selected
35 400 1835 Firewall policy description should not be greater than 255 chars
36 400 1836 Member rule description should not be greater than 64 chars
38 400 1838 Time object list can contain one finite time period
39 400 1839 Stateless response with source user or source user group rule objects are
not allowed
Resource URL
DELETE /firewallpolicy/<policy_id>
Request Parameters
URL Parameters:
344 McAfee Network Security Platform 10.1.x Manager API Reference Guide
14| Firewall Policies Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://%3CNSM_IP%3E/sdkapi/firewallpolicy/120
Response
{
"status":1
}
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
1 404 1801 Invalid firewall policy id/ firewall policy not visible to this domain
Resource URL
GET /firewallpolicy/<policy_id>
McAfee Network Security Platform 10.1.x Manager API Reference Guide 345
14| Firewall Policies Resource
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of MemberDetails:
346 McAfee Network Security Platform 10.1.x Manager API Reference Guide
14| Firewall Policies Resource
Response Action to be performed if the traffic matches this rule. Can be "SCAN" / String
"DROP" / "DENY" / "IGNORE" / "STATELESS_IGNORE" /
"STATELESS_DROP" / "REQUIRE_AUTHENTICATION"
McAfee Network Security Platform 10.1.x Manager API Reference Guide 347
14| Firewall Policies Resource
Details of SourceUserObjectList:
Details of TimeObjectList:
348 McAfee Network Security Platform 10.1.x Manager API Reference Guide
14| Firewall Policies Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/firewallpolicy/120
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 349
14| Firewall Policies Resource
{
"FirewallPolicyId" : 120,
"Name" : "TestFirewallPolicy",
"DomainId" : 0,
"VisibleToChild" : true,
"Description" : "test the firewallpolicy",
"LastModifiedTime" : "2012-12-12 12:43:54",
"IsEditable" : true,
"PolicyType" : "ADVANCED",
"PolicyVersion" : 1,
"LastModifiedUser" : "admin",
"MemberDetails" : {
"MemberRuleList" : [{
"Description" : "Test Member Rule",
"Enabled" : true,
"Response" : "IGNORE",
"IsLogging" : false,
"Direction" : "OUTBOUND",
"SourceAddressObjectList" : [{
"RuleObjectId" : "AF",
"Name" : "Afghanistan",
"RuleObjectType" : "COUNTRY"
}
],
"DestinationAddressObjectList" : [{
"RuleObjectId" : "101",
"Name" : "hostDNSRule",
"RuleObjectType" : "HOST_DNS_NAME"
}, {
"RuleObjectId" : "102",
"Name" : "hostIpv4",
"RuleObjectType" : "HOST_IPV_4"
}, {
"RuleObjectId" : "103",
"Name" : "ipv4Addressrange",
"RuleObjectType" : "IPV_4_ADDRESS_RANGE"
}, {
"RuleObjectId" : "104",
"Name" : "networkgroup",
"RuleObjectType" : "NETWORK_GROUP"
}
],
"SourceUserObjectList" : [{
"RuleObjectId" : "-1",
"Name" : "ANY",
"RuleObjectType" : "USER"
}
],
"ServiceObjectList" : [],
"ApplicationObjectList" : [{
"RuleObjectId" : "1308991488",
"Name" : "100bao",
"RuleObjectType" : "APPLICATION",
"ApplicationType" : "DEFAULT"
}, {
"RuleObjectId" : "106",
"Name" : "applicaionOncutomPort",
"RuleObjectType" : "APPLICATION_ON_CUSTOM_PORT",
"ApplicationType" : "CUSTOM"
}, {
"RuleObjectId" : "105",
"Name" : "applicationgroup",
"RuleObjectType" : "APPLICATION_GROUP",
"ApplicationType" : "CUSTOM"
}
],
"TimeObjectList" : [{
"RuleObjectId" : "107",
"Name" : "finiteTimePeriod",
"RuleObjectType" : "FINITE_TIMING_PERIOD"
}, {
"RuleObjectId" : "108",
"Name" : "recuringTimePeriod",
"RuleObjectType" : "RECURRING_TIME_PERIOD"
}, {
"RuleObjectId" : "109",
"Name" : "recurringTimeperiodGroup",
"RuleObjectType" : "RECURRING_TIME_PERIOD_GROUP"
}
]
}
]
}
}
350 McAfee Network Security Platform 10.1.x Manager API Reference Guide
14| Firewall Policies Resource
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
2 404 1801 Invalid firewall policy id/ firewall policy not visible to this domain
Resource URL
GET /domain/<domain_id>/ firewallpolicy
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of FirewallPoliciesForDomainResponseList:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 351
14| Firewall Policies Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/domain/0/firewallpolicy
Response
352 McAfee Network Security Platform 10.1.x Manager API Reference Guide
14| Firewall Policies Resource
{
"FirewallPoliciesForDomainResponseList": [{
"policyId": 107,
"policyName": "Port_FirewallPolicy",
"domainId": 0,
"visibleToChild": false,
"description": "Firewall Policy for Port",
"isEditable": true,
"policyType": "CLASSIC",
"policyVersion": 1,
"lastModUser": "admin"
},
{
"policyId": 105,
"policyName": "Interface_FirewallPolicy",
"domainId": 0,
"visibleToChild": true,
"description": "Firewall Policy for Interface",
"isEditable": true,
"policyType": "ADVANCED",
"policyVersion": 1,
"lastModUser": "admin"
},
{
"policyId": 103,
"policyName": "Sensor_Post_FirewallPolicy",
"domainId": 0,
"visibleToChild": false,
"description": "Firewall Policy for Sensor Post",
"isEditable": true,
"policyType": "CLASSIC",
"policyVersion": 1,
"lastModUser": "admin"
},
{
"policyId": 101,
"policyName": "Sensor_Pre_FirewallPolicy",
"domainId": 0,
"visibleToChild": true,
"description": "Firewall Policy for Sensor Pre",
"isEditable": true,
"policyType": "ADVANCED",
"policyVersion": 1,
"lastModUser": "admin"
}]
}
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 353
15| Scanning Exception Resource
Resource URL
POST /sensor/<sensor_id>/scanningexception
Request Parameters
URL Parameters:
Payload Parameters:
ScanningExceptionDetailsElement Object that contains the details of the field to be Object Yes
sent
scanningExceptionDetails Object that contains the details of the field to be sent Object Yes
354 McAfee Network Security Platform 10.1.x Manager API Reference Guide
15| Scanning Exception Resource
McAfee Network Security Platform 10.1.x Manager API Reference Guide 355
15| Scanning Exception Resource
portPairName Name of the port pair on which scanning exception of vlan type should Object Yes
be created
356 McAfee Network Security Platform 10.1.x Manager API Reference Guide
15| Scanning Exception Resource
Response Parameters
Following fields are returned if the request parameters and payload are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 357
15| Scanning Exception Resource
Example
Request
POST https://%3CNSM_IP%3E/sdkapi/sensor/%3Csensor_id%3E/scanningexception
Payload
{
"scanningExceptionDetails":
{
"forwardType":"TCP",
"portInfo":
{
"portRange":
{
"from":
{
"value":"103"
},
"to":
{
"value":"110"
}
}
}
}
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
1 400 1501 Scanning exception is not supported for the specified Sensor
358 McAfee Network Security Platform 10.1.x Manager API Reference Guide
15| Scanning Exception Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /sensor/<sensor_id>/scanningexception
Request Parameters
URL Parameters:
Payload Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 359
15| Scanning Exception Resource
ScanningExceptionResponseElement Object that contains the details of the field to be sent Object
360 McAfee Network Security Platform 10.1.x Manager API Reference Guide
15| Scanning Exception Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/sensor/%3Csensor_id%3E/scanningexception
Payload
McAfee Network Security Platform 10.1.x Manager API Reference Guide 361
15| Scanning Exception Resource
{
"tcpRules":
{
"tcpPortRangeList":
[
{
"tcpPortRange": "100-100"
},
{
"tcpPortRange": "103-110"
}
]
},
"udpRules":
{
"udpPortRangeList":
[
{
"udpPortRange": "10-10"
}
]
},
"vlanRules":
{
"vlanIdRangeList":
[
{
"vlanIdRange": "15-20",
"portPairName": "1A-1B"
}
]
}
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
1 400 1501 Scanning exception is not supported for the specified Sensor
Resource URL
DELETE /sensor/<sensor_id>/scanningexception
362 McAfee Network Security Platform 10.1.x Manager API Reference Guide
15| Scanning Exception Resource
Request Parameters
URL Parameters:
Payload Parameters:
ScanningExceptionDeleteElement Object that contains the details of the field to be Object Yes
sent
McAfee Network Security Platform 10.1.x Manager API Reference Guide 363
15| Scanning Exception Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://<NSM_IP>/sdkapi/sensor/<sensor_id>/scanningexception
Payload
{
"tcpPortRangeElement":
{
"tcpPortRange":"10-20"
}
}
Response
{
"status": 1
}
364 McAfee Network Security Platform 10.1.x Manager API Reference Guide
15| Scanning Exception Resource
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
1 400 1501 Scanning exception is not supported for the specified Sensor
Resource URL
PUT /sensor/<sensor_id>/scanningexception/status
Request Parameters
URL Parameters:
Payload Parameters:
ScanningExceptionStatusElement Object that contains the details of the field to be Object Yes
sent
McAfee Network Security Platform 10.1.x Manager API Reference Guide 365
15| Scanning Exception Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/<sensor_id>/scanningexception/status
Payload
{
"enabled":true
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
1 400 1501 Scanning exception is not supported for the specified Sensor
366 McAfee Network Security Platform 10.1.x Manager API Reference Guide
15| Scanning Exception Resource
Resource URL
GET /sensor/<sensor_id>/scanningexception/status
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
ScanningExceptionStatusElement Object that contains the details of the field to be sent Object
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/<sensor_id>/scanningexception/status
Response
{
"enabled":true
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 367
15| Scanning Exception Resource
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
1 400 1501 Scanning exception is not supported for the specified Sensor
368 McAfee Network Security Platform 10.1.x Manager API Reference Guide
16| IPS Quarantine Resource
Resource URL
POST /sensor/<sensor_id>/action/quarantinehost
Request Parameters
URL Parameters:
Duration Duration for which the -IP is to be quarantined. Can be String Yes
"FIFTEEN_MINUTES" / "THIRTY_MINUTES" / "FORTYFIVE_MINUTES" /
"SIXTY_MINUTES" / "FOUR_HOURS" / "EIGHT_HOURS" /
"UNTIL_EXPLICITLY_RELEASED"
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 369
16| IPS Quarantine Resource
Example
Request
POST https://<NSM_IP>/sdkapi/sensor/1001/action/quarantinehost
Payload:
{
"IPAddress": "102.102.102.102",
"Duration": “EIGHT_HOURS”
"remediate": true
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
370 McAfee Network Security Platform 10.1.x Manager API Reference Guide
16| IPS Quarantine Resource
Resource URL
PUT /sensor/<sensor_id>/action/quarantinehost
Request Parameters
URL Parameters:
Duration Duration for which the quarantine needs to be extended for the String Yes
specified IP, Can be "FIVE_MINUTES" / "FIFTEEN_MINUTES" /
"THIRTY_MINUTES" / "FORTYFIVE_MINUTES" / "SIXTY_MINUTES" /
"UNTIL_EXPLICITLY_RELEASED"
IsOverride Override the previous data if present for the IP provided Boolean No
remediate Remediate the IP along with quarantine. Considered only when override Boolean No
is selected.
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 371
16| IPS Quarantine Resource
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/sensor/1001/action/quarantinehost
Payload
{
"IPAddress": "102.102.102.102",
"Duration": “THIRTY_MINUTES”,
“IsOverride”: true,
“remediate”: true
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
372 McAfee Network Security Platform 10.1.x Manager API Reference Guide
16| IPS Quarantine Resource
Resource URL
DELETE /sensor/<sensor_id>/action/quarantinehost/<IPAddress>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://%3CNSM_IP%3E/sensor/1001/action/quarantinehost/102.102.102.102
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 373
16| IPS Quarantine Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /sensor/<sensor_id>/action/quarantinehost
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Duration End time (in NSM Server Timezone) when the IP will be released from quarantine String
374 McAfee Network Security Platform 10.1.x Manager API Reference Guide
16| IPS Quarantine Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/sensor/1001/action/quarantinehost
Response
{
"QuarantineHostDescriptor":
[
{
"IPAddress": "102.102.102.122",
"Duration": 1350630974000
},
{
"IPAddress": "2607:f0d0:1002:0051:0000:0000:0000:0604",
"Duration": 1350631900000
}
]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /sensor/<sensor_id>/action/quarantinehost/details
Request Parameters
URL Parameters:
sensor_id Sensor Id. Give -1 if all the quarantine hosts are needed Number Yes
McAfee Network Security Platform 10.1.x Manager API Reference Guide 375
16| IPS Quarantine Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
376 McAfee Network Security Platform 10.1.x Manager API Reference Guide
16| IPS Quarantine Resource
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/-1/action/quarantinehost/details
Response
{
'quarantineHostDetail': [{
'ipAddress': '1.1.1.13',
'quarantineDetails': {
'device': 'admalware-1450',
'quarantineZone': 'Allow DNS'
},
'addedToQuarantine': {
'by': 'TFTP: Wvtftp Remote Heap Overflow',
'time': 'Dec 31 16:00 PST'
},
'remediate': true,
'pendingRelease': 'Explicit Release Required'
}]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 377
17| Connection Limiting Policies Resource
Resource URL
POST /connectionlimitingpolicy
Request Parameters
Payload Parameters:
properties Object that contains the basic properties of the policy Object
378 McAfee Network Security Platform 10.1.x Manager API Reference Guide
17| Connection Limiting Policies Resource
Data
Field Name Description Type Mandatory
externalReputation Should be provided when ruleType is GTI Can be one of these: String Yes
HIGH_RISK/MEDIUM_OR_HIGH_RISK/
UNVERIFIED_MEDIUM_OR_HIGH_RISK/ANY
externalLocation Should be provided when ruleType is GTI Can be either "Any" or String Yes
one of the country from the list of country obtained using the
URL: https://<NSM_IP>/sdkapi/connectionlimitingpolicy/
countrylist
serviceType Should be provided when ruleType is PROTOCOL. Can be one of String Yes
these: TCP/UDP/PING_ICMP_ECHO_REQ/ALL_TCP_AND_UDP
portNumber Should be provided when serviceType is TCP/UDP. A valid port Number Yes
number between 1 and 65535
McAfee Network Security Platform 10.1.x Manager API Reference Guide 379
17| Connection Limiting Policies Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://%3CNSM_IP%3E/sdkapi/connectionlimitingpolicy
Payload
{
"properties":
{
"name": "Test_CLP1",
"description": "CLP of Child Domain",
"domainId": 101,
"visibleToChild": true
},
"connectionLimitingRules":
[
{
"enabled": true,
"description": "",
"direction": "EITHER",
"ruleType": "PROTOCOL",
"thresholdType": "CONNECTION_RATE",
"thresholdValue": 1000,
"externalReputation": null,
"externalLocation": "Any",
"serviceType": "ALL_TCP_AND_UDP",
"portNumber": null,
"response": "ALERT_ONLY"
}
]
}
Response
{
"createdResourceId":104
}
Error Information
Following error codes are returned by this URL:
380 McAfee Network Security Platform 10.1.x Manager API Reference Guide
17| Connection Limiting Policies Resource
HTTP Error
No Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 381
17| Connection Limiting Policies Resource
Resource URL
PUT /connectionlimitingpolicy/<policy_id>
Request Parameters
Payload Parameters:
properties Object that contains the basic properties of the policy Object
382 McAfee Network Security Platform 10.1.x Manager API Reference Guide
17| Connection Limiting Policies Resource
Data
Field Name Description Type Mandatory
externalReputation Should be provided when ruleType is GTI. Can be one of these: String Yes
HIGH_RISK/MEDIUM_OR_HIGH_RISK/
UNVERIFIED_MEDIUM_OR_HIGH_RISK/ANY
externalLocation Should be provided when ruleType is GTI. Can be either "Any" or String Yes
one of the country from the list of country obtained using the
URL: https://<NSM_IP>/sdkapi/connectionlimitingpolicy/
countrylist
serviceType Should be provided when ruleType is PROTOCOL. Can be one of String Yes
these: TCP/UDP/PING_ICMP_ECHO_REQ/ALL_TCP_AND_UDP
portNumber Should be provided when serviceType is TCP/UDP A valid port Number Yes
number between 1 and 65535
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 383
17| Connection Limiting Policies Resource
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/connectionlimitingpolicy/104
Payload
{
"properties":
{
"name": "Updated_Test_CLP1",
"description": "CLP of Child Domain1",
"domainId": 101,
"visibleToChild": false
},
"connectionLimitingRules":
[
{
"enabled": true,
"description": "",
"direction": "EITHER",
"ruleType": "PROTOCOL",
"thresholdType": "CONNECTION_RATE",
"thresholdValue": 100,
"externalReputation": null,
"externalLocation": "Any",
"serviceType": "UDP",
"portNumber": 123,
"response": "ALERT_AND_QUARANTINE"
}
]
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
HTTP Error
No Code SDK API errorId SDK API errorMessage
384 McAfee Network Security Platform 10.1.x Manager API Reference Guide
17| Connection Limiting Policies Resource
HTTP Error
No Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 385
17| Connection Limiting Policies Resource
Resource URL
GET /connectionlimitingpolicy/<policy_id>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
properties Object that contains the basic properties of the policy Object
386 McAfee Network Security Platform 10.1.x Manager API Reference Guide
17| Connection Limiting Policies Resource
externalReputation Will be returned when ruleType is GTI. Can be one of these: HIGH_RISK/ String
MEDIUM_OR_HIGH_RISK/UNVERIFIED_MEDIUM_OR_HIGH_RISK/ANY
externalLocation Will be returned when ruleType is GTI. Can be either "Any" or one of the country String
from the list of country obtained using the URL: https://<NSM_IP>/sdkapi/
connectionlimitingpolicy/countrylist
serviceType Will be returned when ruleType is PROTOCOL Can be one of these: TCP/UDP/ String
PING_ICMP_ECHO_REQ/ALL_TCP_AND_UDP
portNumber Will be returned when serviceType is TCP/UDP A valid port number between 1 and Number
65535
McAfee Network Security Platform 10.1.x Manager API Reference Guide 387
17| Connection Limiting Policies Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/connectionlimitingpolicy/104
Response
{
"properties":
{
"policyId": 104,
"name": "Updated_Test_CLP1",
"description": "CLP of Child Domain1",
"domainId": 101,
"visibleToChild": false,
"lastModTimestamp": "2013-05-08 09:32:41",
"lastModUser": "admin"
},
"connectionLimitingRules":
[
{
"enabled": true,
"description": "",
"direction": "EITHER",
"ruleType": "PROTOCOL",
"thresholdType": "CONNECTION_RATE",
"thresholdValue": 100,
"externalReputation": null,
"externalLocation": "Any",
"serviceType": "UDP",
"portNumber": 123,
"response": "ALERT_AND_QUARANTINE"
}
]
}
Error Information
Following error code is returned by this URL:
1 400 1901 Invalid connection limiting policy id/connection limiting policy not
visible in this domain
Resource URL
DELETE /connectionlimitingpolicy/<policy_id>
Request Parameters
URL Parameters:
388 McAfee Network Security Platform 10.1.x Manager API Reference Guide
17| Connection Limiting Policies Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://%3CNSM_IP%3E/sdkapi/connectionlimitingpolicy/104
Response
{
"status": 1
}
Error Information
Following error code is returned by this URL:
1 400 1901 Invalid connection limiting policy id/connection limiting policy not
visible in this domain
Resource URL
GET /connectionlimitingpolicy/countrylist
McAfee Network Security Platform 10.1.x Manager API Reference Guide 389
17| Connection Limiting Policies Resource
Request Parameters
URL Parameters:
N/A
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/connectionlimitingpolicy/countrylist
Response
390 McAfee Network Security Platform 10.1.x Manager API Reference Guide
17| Connection Limiting Policies Resource
{
"countryList":
[
"Afghanistan",
"Aland Islands",
"Albania",
"Algeria",
"American Samoa",
"Andorra",
"Angola",
"Anguilla",
"Antarctica",
"Antigua and Barbuda",
"Argentina",
"Armenia",
"Aruba",
"Asia/Pacific Region",
"Australia",
"Austria",
"Azerbaijan",
"Bahamas",
"Bahrain",
"Bangladesh",
"Barbados",
"Belarus",
"Belgium",
"Belize",
"Benin",
"Bermuda",
"Bhutan",
"Bolivia",
"Bosnia and Herzegovina",
"Botswana",
"Bouvet Island",
"Brazil",
"British Indian Ocean Territory",
"Brunei Darussalam",
"Bulgaria",
"Burkina Faso",
"Burundi",
"Cambodia",
"Cameroon",
"Canada",
"Cape Verde",
"Cayman Islands",
"Central African Republic",
"Chad",
"Chile",
"China",
"Christmas Island",
"Cocos (Keeling) Islands",
"Colombia",
"Comoros",
"Congo",
"Congo, The Democratic Republic of the",
"Cook Islands",
"Costa Rica",
"Cote D'Ivoire",
"Croatia",
"Cuba",
"Cyprus",
"Czech Republic",
"Denmark",
"Djibouti",
"Dominica",
"Dominican Republic",
"Ecuador",
"Egypt",
"El Salvador",
"Equatorial Guinea",
"Eritrea",
"Estonia",
"Ethiopia",
"Europe",
"Falkland Islands (Malvinas)",
"Faroe Islands",
"Fiji",
"Finland",
"France",
"France, Metropolitan",
"French Guiana",
"French Polynesia",
"French Southern Territories",
"Gabon",
"Gambia",
McAfee Network Security Platform 10.1.x Manager API Reference Guide
"Georgia", 391
"Germany",
"Ghana",
17| Connection Limiting Policies Resource
Error Information
N/A
Resource URL
GET /domain/<domain_id>/connectionlimitingpolicies
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
392 McAfee Network Security Platform 10.1.x Manager API Reference Guide
17| Connection Limiting Policies Resource
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/sensor/1001/interface/105/connectionlimitingpolicy/101
Response
{
"ConnectionLimitingPolicyList":
[
{
"policyId": 101,
"name": "Test_CLP1",
"description": "CLP of Parent Domain1",
"domainId": 0,
"visibleToChild": true,
"lastModTimestamp": "2012-07-24 00:19:00",
"lastModUser": "admin"
},
{
"policyId": 102,
"name": "Test_CLP2",
"description": "CLP of Parent Domain2",
"domainId": 0,
"visibleToChild": false,
"lastModTimestamp": "2012-07-24 00:19:19",
"lastModUser": "admin"
}
]
}
Error Information
Following error code is returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 393
18| Non Standard Ports Resource
Resource URL
GET /domain/<domain_id>/nonstandardports
Request Parameters
URL Parameters:
Payload Parameters:
Details of NonStandardPortRequestElement:
Protocol Application Protocol, can be TELNET / FTP / SMTP / DNS / String Yes
HTTP / POP3 / RPC / IMAP / SNMP / LDAP / REXEC / RLOGIN /
RSH / NFS
sslEnabled SSL to be enabled for HTTP protocol, for other protocols this Boolean Yes
field must be false
394 McAfee Network Security Platform 10.1.x Manager API Reference Guide
18| Non Standard Ports Resource
nonStandardPortNumber Non-standard port number, should not be set to the Number Yes
standard port numbers defined for the protocols
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://%3CNSM_IP%3E/sdkapi/domain/0/nonstandardports
Payload
{
"protocol": "TELNET",
"sslEnabled": "false",
"transport": "TCP",
"nonStandardPortNumber": "15"
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
HTTP Error
No Cod SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 395
18| Non Standard Ports Resource
HTTP Error
No Cod SDK API errorId SDK API errorMessage
2 400 2001 Only UDP transport type is allowed for SNMP/NFS protocol type
3 400 2002 SSL can be enabled only for HTTP protocol type
5 400 2004 Non-standard port number cannot be same as the standard port
number
6 400 2005 Non-standard port setting with the given details already exists
Resource URL
POST /sensor/<sensor_id>/nonstandardports
Request Parameters
URL Parameters:
Payload Parameters:
Details of NonStandardPortRequestElement:
396 McAfee Network Security Platform 10.1.x Manager API Reference Guide
18| Non Standard Ports Resource
Protocol Application protocol, can be TELNET / FTP / SMTP / DNS / String Yes
HTTP / POP3 / RPC / IMAP / SNMP / LDAP / REXEC / RLOGIN /
RSH / NFS
sslEnabled SSL to be enabled for HTTP protocol, for other protocols this Boolean Yes
field must be false
nonStandardPortNumber Non-standard port number, should not be set to the Number Yes
standard port numbers defined for the protocols
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://%3CNSM_IP%3E/sdkapi/sensor/1002/nonstandardports
Payload
{
"protocol": "HTTP",
"sslEnabled": "true",
"transport": "UDP",
"nonStandardPortNumber": "63"
}
Response
{
"status": 1
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 397
18| Non Standard Ports Resource
Error Information
Following error codes are returned by this URL:
HTTP Error
No Code SDK API errorId SDK API errorMessage
2 400 2001 Only UDP transport type is allowed for SNMP/NFS protocol type
3 400 2002 SSL can be enabled only for HTTP protocol type
5 400 2004 Non-standard port number cannot be same as the standard port
number
6 400 2005 Non-standard port setting with the given details already exists
Resource URL
GET /domain/<domain_id>/nonstandardports
Request Parameters
URL Parameters:
398 McAfee Network Security Platform 10.1.x Manager API Reference Guide
18| Non Standard Ports Resource
Response Parameter
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/domain/0/nonstandardports
Response
{
"NonStandardPortResponseList":
[
{
"protocol": "FTP/TCP",
"portAssignmentList":
[
21,
12,
32
]
},
{
"protocol": "TELNET/UDP",
"portAssignmentList":
[
23,
555
]
}
]
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 399
18| Non Standard Ports Resource
Resource URL
GET /sensor/< sensor _id>/nonstandardports
Request Parameters
URL Parameters:
Response Parameter
Example
Request
400 McAfee Network Security Platform 10.1.x Manager API Reference Guide
18| Non Standard Ports Resource
GET https://%3CNSM_IP%3E/sdkapi/sensor/1002/nonstandardports
Response
{
"NonStandardPortResponseList":
[
{
"protocol": "FTP/TCP",
"portAssignmentList":
[
21,
12,
32
]
},
{
"protocol": "TELNET/UDP",
"portAssignmentList":
[
23,
555,
15
]
},
]
}
Error Information
Following error codes are returned by this URL:
Resource URL
DELETE /domain/<domain_id>/nonstandardports?transport=<transport_type>&nonStandardPortNumber=<port_number>
Request Parameters
URL Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 401
18| Non Standard Ports Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://%3CNSM_IP%3E/sdkapi/domain/101/nonstandardports?transport=TCP&nonStandardPortNumber=32
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
402 McAfee Network Security Platform 10.1.x Manager API Reference Guide
18| Non Standard Ports Resource
Resource URL
DELETE /sensor/<sensor_id>/nonstandardports?transport=<transport_type>&nonStandardPortNumber=<port_number>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://%3CNSM_IP%3E/sdkapi/sensor/1002/nonstandardports?transport=UDP&nonStandardPortNumber=15
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 403
18| Non Standard Ports Resource
404 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
Resource URL
POST /sensor/<sensor_id>/action/sslkey
Request Parameters
URL Parameters:
Details of BodyPart[0]:
Alias Name Alias name for the key file String Yes
McAfee Network Security Platform 10.1.x Manager API Reference Guide 405
19| SSL Key Resource
Details of BodyPart[1]:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://%3CNSM_IP%3E/sdkapi/sensor/1001/action/sslkey
Payload:
406 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
--Boundary_5_29812760_1360143901032
Content-Type: application/json
{"AliasName":"test5","PassPhrase":"admin123"}
--Boundary_5_29812760_1360143901032
Content-Type: application/octet-stream
ÒrÝ?ü0¥ÿ<ˆ}c,¢eXœ^:4 JhÍ2µ�rDYñÇÚd¶/¿í�F~ ÆIc§¼éá©ÿ_8Öø« C6Ô654îÞg‘J6?x ‚*T2¡qhã4ÎÅVµGƒo9ŸCÒª„í¹Ì —
Áë&1¹ì,Ú‹y ì^î‘Vö5U.kÝ$±Ñ g§zï0� wÌ [:…œ`Žíì’ DŒ¾¸xŒ7è�L“t"á}ñÕùA‡B6W¦P!;Ð?j*;G¾=X¦Š1s(�ì_œ8•¯Ð"®ƒMîQ,®UÉÔ
`7»©2xN£o†¾$h;Õe ÆÄŸ0ÀÑĦûNü,1”1Sõ±œ'n¨$èŒ`I¤@ã¥?$ˆhé_gÙÎ�4L[gàÏ©:•ŒÔ òH‰KÃïÃÒ"ÑÆ*¼²žØ|r-Þ„”¶K¥*¾�k}ddZ¡�ßÔ
¥dK9¥Ð¾ýÎk“{Oj�¬ ¾€ýb3ÔÏ&«PƒTF âê¡‚4Â{0ä!ÈÝ]ðä[”¿1•!;d³_
--Boundary_5_29812760_1360143901032--
Response
{
"createdResourceId":1002
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
DELETE /sensor/<sensor_id>/action/sslkey/<ssl_id>
McAfee Network Security Platform 10.1.x Manager API Reference Guide 407
19| SSL Key Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://%3CNSM_IP%3E/sdkapi/sensor/1001/action/sslkey/1002
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /sensor/<sensor_id>/action/sslkey
Request Parameters
URL parameters:
408 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
Response Parameters
Details of GetSSLResponseList:
Details of SSLDescriptor:
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/sensor/1001/action/sslkey
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 409
19| SSL Key Resource
{
"SSLDescriptor":
[
{
"AliasName": "admin1",
"SslId": 1015,
"Status": "Valid",
"LastImport": "Thu Aug 02 17:37:33 IST 2012",
"LastUpdate": "Thu Aug 02 17:37:33 IST 2012"
}
]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET / sensor/<sensor_id>/sslconfiguration
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
410 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/sensor/1002/sslconfiguration
Response
{
"enableSSl": true,
"currentStatus": "Enabled[25000]",
"enablePktLogging": false,
"sslFlows": "25000",
"sslCacheTimer": "5",
"maxConcurrentTCPUDPFlows": null
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 411
19| SSL Key Resource
Resource URL
PUT / sensor/<sensor_id>/sslconfiguration
Request Parameters
URL Parameters:
Payload Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
412 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
PUT https://<NSM_IP>/sdkapi/sensor/1002/sslconfiguration
Payload
{
"enableSSl": true,
"enablePktLogging": false,
"sslFlows": "25000",
"sslCacheTimer": "5",
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
4 400 5402 0 is invalid to enter in SSL flows. Please disable SSL directly
6 400 5404 SSL flow and SSL cache timer are numeric fields
8 400 1153 SSL key decryption is not supported for this Sensor
McAfee Network Security Platform 10.1.x Manager API Reference Guide 413
19| SSL Key Resource
Resource URL
GET /domain/<domainId>/sslconfiguration
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned:
• DISABLED
• INBOUND
• OUTBOUND
• PROXY_INBOUND (For Inbound Proxy)
• PROXY_INBOUND_OUTBOUND (For Inbound and Outbound
Proxy)
• VERY_LIGHT
• LIGHT
• MEDIUM
• HEAVY
• VERY_HEAVY
414 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
sslInactivityTimeoutInMinutes The maximum amount of time a Sensor will keep an outbound SSL Number
flow open when no data is seen on the Sensor.
Details of failureHandling:
Data
Field Name Description Type
untrustedOrExpiredServerCertificate String
Action to take if the target Web server's certificate is not on the
sensor's trusted CA list. Used only in case of outbound SSL. The
values can be:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 415
19| SSL Key Resource
Data
Field Name Description Type
• Block flow
• Decrypt
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/sslconfiguration
Response
{
"inheritSettings": false,
"decryptionState": "INBOUND",
"anticipatedSSLTrafficUsage": "VERY_HEAVY",
"sslInactivityTimeoutInMinutes": 6,
"enableDhSupport": true,
"maxConcurrent": 210,
"permittedIPv4CIDRBlocks": [
{
"id": 428,
"cidr": "4.4.4.4/32",
"action": null
},
{
"id": 366,
"cidr": "1.1.1.1/32",
"action": null
}
],
"permittedIPv6CIDRBlocks": [
{
"id": 429,
"cidr": "2001:0DB9:0000:0000:0000:0000:0000:0000/123",
"action": null
},
{
"id": 367,
"cidr": "2001:0DB9:0000:0000:0000:0000:0000:0000/128",
"action": null
}
],
"includeDecryptedPCAPS": true
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
416 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
PUT /domain/<domainId>/sslconfiguration
Request Parameters
URL Parameters:
Payload Parameters:
Data
Field Name Description Type Mandatory
• DISABLED
• INBOUND
• OUTBOUND
• PROXY_INBOUND (For Inbound Proxy)
• PROXY_INBOUND_OUTBOUND (For Inbound
and Outbound Proxy)
• VERY_LIGHT
McAfee Network Security Platform 10.1.x Manager API Reference Guide 417
19| SSL Key Resource
Data
Field Name Description Type Mandatory
• LIGHT
• MEDIUM
• HEAVY
• VERY_HEAVY
sslInactivityTimeoutInMinutes The maximum amount of time a Sensor will keep an Number Yes
outbound SSL flow open when no data is seen on
the Sensor.
action Action for the CIDR. The values can be "delete" for deletion. Number No
Details of failureHandling.
418 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
Data
Field Name Description Type Mandatory
• Block flow
• Decrypt
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/sslconfiguration
Payload
{
"inheritSettings": false,
"decryptionState": "INBOUND",
"anticipatedSSLTrafficUsage": "HEAVY",
"sslInactivityTimeoutInMinutes": 1,
"enableDhSupport": true,
"maxConcurrent": 210,
"permittedIPv4CIDRBlocks": [{"cidr":"10.1.1.0/23"}],
"permittedIPv6CIDRBlocks": [{"cidr":"2001:DB9::1/122"}],
"decryptedFlow": 20,
"includeDecryptedPCAPS": false
}
Response
{
"status": 1
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 419
19| SSL Key Resource
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /domain/sslconfiguration/resigncert
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned.
Details of certificate.
420 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domain/sslconfiguration/resigncert
Response
{
"certificate": [
{
"commonName": "Default 1024-bit Trusted Re-Signing Certificate",
"issuedBy": "Network Security Platform",
"validity": "2016-09-26 - 2020-09-25",
"validityStatus": "VALID",
"keyLength": "1024",
"digest": "SHA256withRSA",
"generated": "2016-10-19 11:56:07.0 ( System )",
"certType": "Defaut"
}
]
}
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 421
19| SSL Key Resource
Resource URL
GET /domain/sslconfiguration/generateresigncert
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/domain/sslconfiguration/generateresigncert
Response
{
"status": 1
}
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /domain/sslconfiguration/exportresigncert
422 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
Request Parameters
URL Parameters: None
Response Parameters
Returns the public key.
Example
Request
GET https://<NSM_IP>/sdkapi/domain/sslconfiguration/exportresigncert
Response
<public key>
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
PUT /domain/sslconfiguration/importresigncert
Request Parameters
URL Parameters: None
Payload Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 423
19| SSL Key Resource
Details of BodyPart[0]:
BodyPart[0] Holds the Import re-sign certificate object Application/json object Yes
Details of ImportResignCert:
Details of BodyPart[1]:
424 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
Response Parameters
Following fields are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/sslconfiguration/importresigncert
Payload
----Boundary_1_12424925_1353496814940
Content-Type: application/json
----Boundary_1_12424925_1353496814940
Content-Type: application/octet-stream
<file_data>
----Boundary_1_12424925_1353496814940—
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
HTTP Error
S.No Code SDK API errorId SDK API errorMessage
2 400 5301 Invalid file type given for import: The file name does not have any
extension
McAfee Network Security Platform 10.1.x Manager API Reference Guide 425
19| SSL Key Resource
HTTP Error
S.No Code SDK API errorId SDK API errorMessage
3 400 5301 Invalid file type given for import expected is .p12 while <fileType> was
provided
Resource URL
GET /domain/sslconfiguration/trustedcerts
Response Parameters
Following fields are returned.
426 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
status String
Status of the validity. The values can be:
• VALID
• EXPIRING
• EXPIRED
Example
Request
GET https://<NSM_IP>/sdkapi/domain/sslconfiguration/trustedcerts
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 427
19| SSL Key Resource
{
"trustedCerts": [
{
"state": true,
"alias": "IGC/A",
"issuedBy": "IGC/A",
"fileName": null,
"certType": "Defaut",
"validity": {
"from": "2002-12-13 19:59:23.0",
"to": "2020-10-17 19:59:22.0",
"status": "VALID"
},
"lastUpdated": {
"time": "2016-10-20 11:48:15.0",
"by": "System"
}
},
{
"state": true,
"alias": "EC-ACC",
"issuedBy": "EC-ACC",
"fileName": null,
"certType": "Defaut",
"validity": {
"from": "2003-01-08 04:30:00.0",
"to": "2031-01-08 04:29:59.0",
"status": "VALID"
},
"lastUpdated": {
"time": "2016-10-20 11:48:15.0",
"by": "System"
}
},
…….
]
}
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /domain/sslconfiguration/trustedcert?alias=<alias>
Request Parameters
URL Parameters: None
Query Parameters:
428 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
Response Parameters
Following fields are returned.
status String
Status of the validity. The values can be:
• VALID
• EXPIRING
McAfee Network Security Platform 10.1.x Manager API Reference Guide 429
19| SSL Key Resource
• EXPIRED
Example
Request
GET https://<NSM_IP>/sdkapi/domain/sslconfiguration/trustedcert?alias=EC-ACC
Response
{
"state": true,
"alias": "EC-ACC",
"issuedBy": "EC-ACC",
"fileName": null,
"certType": "Defaut",
"validity": {
"from": "2003-01-08 04:30:00.0",
"to": "2031-01-08 04:29:59.0",
"status": "VALID"
},
"lastUpdated": {
"time": "2016-10-20 11:48:15.0",
"by": "System"
}
}
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
430 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
Resource URL
PUT /domain/sslconfiguration/updatetrustedcertstate
Request Parameters
URL Parameters: None
Payload Parameters:
Response Parameters
Following fields are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/sslconfiguration/updatetrustedcertstate
Payload
{
"alias": [“alias1”, “alias2”],
"state": true
}
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 431
19| SSL Key Resource
{
"status:1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /domain/sslconfiguration/updatedefaulttrustedcerts
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/domain/sslconfiguration/updatedefaulttrustedcerts
Response
432 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
{
"status:1
}
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
PUT /domain/sslconfiguration/importtrustedcert
Request Parameters
URL Parameters: None
Payload Parameters:
Details of BodyPart[0]:
BodyPart[0] Holds the Import re-sign certificate object Application/json object Yes
Details of ImportResignCert:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 433
19| SSL Key Resource
Details of BodyPart[1]:
Response Parameters
Following fields are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/sslconfiguration/importtrustedcert
Payload
434 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
----Boundary_1_12424925_1353496814940
Content-Type: application/json
{ "fileName": "test.pem"}
----Boundary_1_12424925_1353496814940
Content-Type: application/octet-stream
<file_data>
----Boundary_1_12424925_1353496814940—
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
HTTP Error
S.No Code SDK API errorId SDK API errorMessage
2 400 5301 Invalid file type given for import: The file name does not have any
extension
3 400 5301 Invalid file type given for import expected is .pem while <fileType>
was provided
Resource URL
DELETE /domain/sslconfiguration/deletetrustedcerts
Request Parameters
URL Parameters: None
Payload Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 435
19| SSL Key Resource
Response Parameters
Following fields are returned.
Example
Request
DELETE https://<NSM_IP>/sdkapi/domain/sslconfiguration/deletetrustedcerts
Payload
{
"alias": [“alias1”, “alias2”]
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
2 400 2203 Certificates with following alias are not present: <alias_list>
436 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
3 400 2203 Following certificates are default and cannot be deleted: <alias_list>
Resource URL
GET /domain/sslconfiguration/internalwebservercerts
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 437
19| SSL Key Resource
Details of validity:
• VALID
• EXPIRING
• EXPIRED
Details of lastUpdated:
Example
Request
GET https://<NSM_IP>/sdkapi/domain/sslconfiguration/internalwebservercerts
Response
438 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
{
"internalWebServerCerts": [
{
"id": 1008,
"alias": "a",
"issuedBy": "a",
"fileName": "KEYSTORE.p12",
"validity": {
"from": "Thu Aug 11 00:00:00 IST 2016",
"to": "Wed Nov 09 00:00:00 IST 2016",
"status": "EXPIRING"
},
"installOn": [
"/My Company/NS-RD-7200"
],
"lastUpdated": {
"time": "Tue Oct 18 23:06:32 IST 2016",
"by": "admin"
}
}
]
}
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
PUT /domain/sslconfiguration/importinternalwebservercerts
Request Parameters
URL Parameters: None
Payload Parameters:
Details of BodyPart[0]:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 439
19| SSL Key Resource
BodyPart[0] Holds the import internal web server certificate Application/json object Yes
(ImportIWSCert) object
Details of ImportIWSCert:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
440 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/sslconfiguration/importinternalwebservercerts
Payload
----Boundary_1_12424925_1353496814940
Content-Type: application/json
----Boundary_1_12424925_1353496814940
Content-Type: application/octet-stream
----Boundary_1_12424925_1353496814940
Content-Type: application/octet-stream
----Boundary_1_12424925_1353496814940
Content-Type: application/octet-stream
----Boundary_1_12424925_1353496814940—
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 441
19| SSL Key Resource
{
"status": [
{
“filename”: “test.p12”,
“status”: true,
“comment”:”Operation successful for file : test.p12 on following sensors : [1002, 1003]”
},
{
“filename”: “test1.p12”,
“status”: true,
“comment”:”Operation successful for file : test1.p12 on following
sensors : [1002, 1003]”
},
{
“filename”: “test2.p12”,
“status”: true,
“comment”:”Operation successful for file : test2.p12 on following
sensors : [1002, 1003]”
}
]
}
Error Information
Following error codes are returned by this URL:
2 400 5301 Invalid file type given for import : The file name does not have any
extension
3 400 5301 Invalid file type given for import expected is .pem while <fileType> was
provided
5 400 2002 Issue with the payload. Number of file data provided is not same as the
files provided
Resource URL
DELETE /domain/sslconfiguration/deleteinternalwebservercerts
442 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
Request Parameters
URL Parameters: None
Payload parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://<NSM_IP>/sdkapi/domain/sslconfiguration/deleteinternalwebservercerts
Payload
{
"alias": [“test.p12”, “test1.p12”]
}
Response
{
"status:1
}
Error Information
Following error code is returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 443
19| SSL Key Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /domain/sslconfiguration/inboundproxyrules
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned.
444 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
installOn List of Sensors on which the list of web server certificates are installed Array
Example
Request
GET https://<NSM_IP>/sdkapi/domain/sslconfiguration/inboundproxyrules
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 445
19| SSL Key Resource
{
“SSLInboundProxyRuleList”: [
{
“ruleId”: 5,
“ruleName': “InboundProxyRule2”,
“comment”: “Rule 2”,
“destWebServerIPs”: “10.213.0.0/16”
“webServerCerts”: [{“validityStatus”: “VALID”, “keyAlias”: “NSAT_521_1024_SHA384”}],
“installedOn”: [“/Test Child Domain 1/NS9500_2”],
“defaultKey': {“validityStatus”: “VALID”, “keyAlias”: “NSAT_521_1024_SHA384”},
“lastUpdated”: {“by”: “admin”, “time”: “2019-10-22 12:50:58.0”},
}},
“ruleId”: 6,
“ruleName': “InboundProxyRule3”,
“comment”: “Rule 3”,
“destWebServerIPs”: “10.213.23.0/24”
“webServerCerts”: [{“validityStatus”: “VALID”, “keyAlias”: “NSAT_522_1024_SHA384”}],
“installedOn”: [“/Test Child Domain 1/NS9500_1”],
“defaultKey': {“validityStatus”: “VALID”, “keyAlias”: “NSAT_522_1024_SHA384”},
“lastUpdated”: {“by”: “admin”, “time”: “2019-10-23 12:54:58.0”},
}
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /domain/sslconfiguration/inboundproxyruledetail/<ruleId>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
446 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
installOn List of Sensors on which the list of web server certificates are installed Array
McAfee Network Security Platform 10.1.x Manager API Reference Guide 447
19| SSL Key Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domain/sslconfiguration/inboundproxyruledetail/5
Response
{
“ruleId”: 5,
“ruleName': “InboundProxyRule2”,
“comment”: “Rule 2”,
“destWebServerIPs”: “10.213.0.0/16”
“webServerCerts”: [{“validityStatus”: “VALID”, “keyAlias”: “NSAT_521_1024_SHA384”}],
“installedOn”: [“/Test Child Domain 1/NS9500_2”],
“defaultKey': {“validityStatus”: “VALID”, “keyAlias”: “NSAT_521_1024_SHA384”},
“lastUpdated”: {“by”: “admin”, “time”: “2019-10-22 12:50:58.0”},
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
3 500 2002 Inbound proxy rule with given name not found
Resource URL
POST domain/sslconfiguration/inboundproxyrules
Request Parameters
URL Parameters: None
448 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
webServerCerts List of web server certificates (All the web server certificates should Object Yes
be installed on exact same set of Sensors)
defaultKey Default web server certificates (should be one of the web server Object No
certificates. If not given, any one of the web server certificates will
be considered as default key.)
Response Parameters
Following fields are returned.
Example
Request
POST https://<NSM_IP>/sdkapi/domain/sslconfiguration/inboundproxyrules
McAfee Network Security Platform 10.1.x Manager API Reference Guide 449
19| SSL Key Resource
Payload
{
“ruleName': “InboundProxyRule2”,
“comment”: “Rule 2”,
“destWebServerIPs”: “10.213.0.0/16”
“webServerCerts”: [{“keyAlias”: “NSAT_521_1024_SHA384”}],
“defaultKey': {“keyAlias”: “NSAT_521_1024_SHA384”}
}
Response
{
"createdResourceId": 5
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
1 500 2002 Rule name already exist. Please add a unique name.
7 500 2002 Rule name: The maximum length for the field is 254
450 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
Resource URL
PUT domain/sslconfiguration/inboundproxyrules/<ruleId>
Request Parameters
URL Parameters:
Payload Parameters:
webServerCerts List of web server certificates (All the web server certificates should Object Yes
be installed on exact same set of sensors)
defaultKey Default web server certificates (should be one of the web server Object No
certificates. If not given, any one of the web server certificates will
be considered as default key.)
Response Parameters
Following fields are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 451
19| SSL Key Resource
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/sslconfiguration/inboundproxyrules/5
Payload
{
“ruleName': “InboundProxyRule2”,
“comment”: “Rule 2”,
“destWebServerIPs”: “10.213.0.0/16”
“webServerCerts”: [{“keyAlias”: “NSAT_521_1024_SHA384”}],
“defaultKey': {“keyAlias”: “NSAT_521_1024_SHA384”}
}
Response
{
"status": 1
“ruleId”: 10
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
1 500 2002 Rule name already exist. Please add a unique name.
452 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
7 500 2002 Rule name: The maximum length for the field is 254
Resource URL
DELETE /domain/sslconfiguration/inboundproxyrules
Request Parameters
URL Parameters: None
Payload parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 453
19| SSL Key Resource
Example
Request
DELETE https://<NSM_IP>/sdkapi/domain/sslconfiguration/inboundproxyrules
Payload
{
" ruleIds ": [5,6]
}
Response
{
"status:1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /sensor/<sensorId>/decryptionsettings
Request Parameters
URL Parameters:
454 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
• DISABLED
• INBOUND
• OTBOUND
anticipatedSSLTrafficUsageAnticipated Anticipated inbound SSL traffic usage. The values can be: String
• VERY_LIGHT
• LIGHT
• MEDIUM
• HEAVY
• VERY_HEAVY
McAfee Network Security Platform 10.1.x Manager API Reference Guide 455
19| SSL Key Resource
Details of failureHandling:
untrustedOrExpiredServerCertificate Action to take if the target web server's certificate is not on the Number
Sensor's trusted CA list. Used only in case of outbound SSL.
The value can be:
• Block flow
• Decrypt
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/decryptionsettings
Response
456 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
{
"inheritSettings": false,
"decryptionState": "INBOUND",
"anticipatedSSLTrafficUsage": "VERY_HEAVY",
"sslInactivityTimeoutInMinutes": 6,
"maxFlow": 1600000,
"enableDhSupport": true,
"maxConcurrent": 210,
"permittedIPv4CIDRBlocks": [
{
"id": 428,
"cidr": "4.4.4.4/32",
"action": null
},
{
"id": 366,
"cidr": "1.1.1.1/32",
"action": null
}
],
"permittedIPv6CIDRBlocks": [
{
"id": 429,
"cidr": "2001:0DB9:0000:0000:0000:0000:0000:0000/123",
"action": null
},
{
"id": 367,
"cidr": "2001:0DB9:0000:0000:0000:0000:0000:0000/128",
"action": null
}
],
"decryptedFlow": 1600000,
"includeDecryptedPCAPS": true
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
PUT /sensor/<sensorId>/sslconfiguration
McAfee Network Security Platform 10.1.x Manager API Reference Guide 457
19| SSL Key Resource
Request Parameters
URL Parameters:
Payload Parameters:
• DISABLED
• INBOUND
• OTBOUND
anticipatedSSLTrafficUsage Anticipated inbound SSL traffic usage. The values String Yes
can be:
• VERY_HIGH
• LIGHT
• MEDIUM
• HEAVY
• VERY_HEAVY
sslInactivityTimeoutInMinutes The maximum amount of time a Sensor will keep an Number Yes
outbound SSL flow open when no data has been
seen on the Sensor.
458 McAfee Network Security Platform 10.1.x Manager API Reference Guide
19| SSL Key Resource
action Action for the CIDR. The value is delete for deletion. String No
Details of failureHandling:
Data
Field Name Description Type Mandatory
• Block Flow
• Decrypt
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 459
19| SSL Key Resource
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1001/decryptionsettings
Payload
{
"inheritSettings": false,
"decryptionState": "INBOUND",
"anticipatedSSLTrafficUsage": "HEAVY",
"sslInactivityTimeoutInMinutes": 1,
"enableDhSupport": true,
"maxConcurrent": 210,
"permittedIPv4CIDRBlocks": [{"cidr":"10.1.1.0/23"}],
"permittedIPv6CIDRBlocks": [{"cidr":"2001:DB9::1/122"}],
"includeDecryptedPCAPS": false
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
460 McAfee Network Security Platform 10.1.x Manager API Reference Guide
20| Rate Limiting Profiles Resource
Resource URL
POST / ratelimitingprofile
Request Parameters
Payload Request Parameters:
rateLimitingProfileId Unique rate limiting profile id, not required for POST Number No
lastModifiedTime Last modified time of the profile, not required for POST String No
lastModifiedUser Latest user that modified the profile, not required for POST String No
Details of bandwidthLimits:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 461
20| Rate Limiting Profiles Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
462 McAfee Network Security Platform 10.1.x Manager API Reference Guide
20| Rate Limiting Profiles Resource
POST https://<NSM_IP>/sdkapi/ratelimitingprofile
Payload:
{
"name": "Profile10Mbps",
"domainId": 0,
"visibleToChild": true,
"description": "Profile Visible To Child Domain in Domain 0 ",
"bandwidthLimits":
{
"interfaceType": "MBPS_10",
"classBandwidthDetails":
[
{
"qosClass": 1,
"bandwidthLimit": 1024,
"bandwidthUnit": "KBPS"
},
{
"qosClass": 2,
"bandwidthLimit": 9,
"bandwidthUnit": "MBPS"
},
{
"qosClass": 3,
"bandwidthLimit": 0,
"bandwidthUnit": "KBPS"
},
{
"qosClass": 4,
"bandwidthLimit": 0,
"bandwidthUnit": "KBPS"
},
{
"qosClass": 5,
"bandwidthLimit": 0,
"bandwidthUnit": "KBPS"
},
{
"qosClass": 6,
"bandwidthLimit": 0,
"bandwidthUnit": "KBPS"
},
{
"qosClass": 7,
"bandwidthLimit": 0,
"bandwidthUnit": "KBPS"
}
]
}
}
Response
{
"createdResourceId":1000
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 463
20| Rate Limiting Profiles Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
4 400 2404 Bandwidth value cannot be greater than the configured port type
5 400 2406 Queue profile with the same name already exist
6 400 2407 Rate limiting profile name should not be greater than 40 chars
7 400 2408 Rate limiting profile description should not be greater than 250 char
8 400 2409 Only alpha numeric characters allowed in rate limiting profile name
Resource URL
PUT /ratelimitingprofile/<profile_id>
Request Parameters
URL Parameters:
464 McAfee Network Security Platform 10.1.x Manager API Reference Guide
20| Rate Limiting Profiles Resource
lastModifiedTime Last modified timestamp. For Update, the "lastModifiedTime" String Yes
in PUT operation should be the same as returned by the GET
operation for the same rate limiting profile
isEditable Profile is editable or not, For update, the "isEditable" in PUT Boolean Yes
operation should be the same as returned by the GET
operation for the same rate limiting profile
lastModifiedUser Latest user that modified the profile. For update, the String Yes
"lastModifiedUser" in PUT operation should be the same as
returned by the GET operation for the same rate limiting
profile
Details of bandwidthLimits:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 465
20| Rate Limiting Profiles Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/ratelimitingprofile/1003
Payload:
466 McAfee Network Security Platform 10.1.x Manager API Reference Guide
20| Rate Limiting Profiles Resource
{
"rateLimitingProfileId": 1003,
"name": "UpdateProfile",
"domainId": 0,
"visibleToChild": false,
"description": "Profile Not Visible To Child Domain ",
"lastModifiedTime": "2012-10-09 13:32:56",
"lastModifiedUser": "/admin",
"bandwidthLimits":
{
"interfaceType": "GBPS_10",
"classBandwidthDetails":
[
{
"qosClass": 1,
"bandwidthLimit": 1024,
"bandwidthUnit": "MBPS"
},
{
"qosClass": 2,
"bandwidthLimit": 0,
"bandwidthUnit": "KBPS"
},
{
"qosClass": 3,
"bandwidthLimit": 1,
"bandwidthUnit": "MBPS"
},
{
"qosClass": 4,
"bandwidthLimit": 1,
"bandwidthUnit": "GBPS"
},
{
"qosClass": 5,
"bandwidthLimit": 0,
"bandwidthUnit": "KBPS"
},
{
"qosClass": 6,
"bandwidthLimit": 0,
"bandwidthUnit": "KBPS"
},
{
"qosClass": 7,
"bandwidthLimit": 0,
"bandwidthUnit": "KBPS"
}
]
}
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 467
20| Rate Limiting Profiles Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
3 404 2403 Invalid rate limiting profile Id / profile not visible in this domain
4 400 2404 Bandwidth value cannot be greater than the configured port type
5 400 2406 Queue profile with the same name already exist
6 400 2407 Rate limiting profile name should not be greater than 40 chars
7 400 2408 Rate limiting profile description should not be greater than 250 char
8 400 2409 Only alpha numeric characters allowed in rate limiting profile name
Resource URL
DELETE /ratelimitingprofile/<profile_id>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
468 McAfee Network Security Platform 10.1.x Manager API Reference Guide
20| Rate Limiting Profiles Resource
Example
Request
DELETE https://%3CNSM_IP%3E/sdkapi/ratelimitingprofile/1001
Response
{
"status":1
}
HTTP Error
S.No Code SDK API errorId SDK API errorMessage
2 404 2403 Invalid rate limiting profile id / profile not visible in this domain
3 400 2410 Profile in use cannot be deleted. Remove current assignments for the
profile before deleting
Resource URL
GET /ratelimitingprofile/<profile_id>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 469
20| Rate Limiting Profiles Resource
rateLimitingProfileId Unique rate limiting profile id, not required for POST Number
lastModifiedTime Last modified time of the profile, not required for POST String
lastModifiedUser Latest user that modified the profile, not required for POST String
Details of bandwidthLimits:
470 McAfee Network Security Platform 10.1.x Manager API Reference Guide
20| Rate Limiting Profiles Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ratelimitingprofile/1003
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 471
20| Rate Limiting Profiles Resource
{
"rateLimitingProfileId": 1003,
"name": "UpdateProfile",
"domainId": 0,
"visibleToChild": false,
"description": "Profile Not Visible To Child Domain ",
"lastModifiedTime": "2012-10-09 13:32:56",
"lastModifiedUser": "/admin",
"bandwidthLimits":
{
"interfaceType": "GBPS_10",
"classBandwidthDetails":
[
{
"qosClass": 1,
"bandwidthLimit": 1024,
"bandwidthUnit": "MBPS"
},
{
"qosClass": 2,
"bandwidthLimit": 0,
"bandwidthUnit": "KBPS"
},
{
"qosClass": 3,
"bandwidthLimit": 1,
"bandwidthUnit": "MBPS"
},
{
"qosClass": 4,
"bandwidthLimit": 1,
"bandwidthUnit": "GBPS"
},
{
"qosClass": 5,
"bandwidthLimit": 0,
"bandwidthUnit": "KBPS"
},
{
"qosClass": 6,
"bandwidthLimit": 0,
"bandwidthUnit": "KBPS"
},
{
"qosClass": 7,
"bandwidthLimit": 0,
"bandwidthUnit": "KBPS"
}
]
}
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
2 404 2403 Invalid rate limiting profile Id / profile not visible in this domain
472 McAfee Network Security Platform 10.1.x Manager API Reference Guide
20| Rate Limiting Profiles Resource
This URL gets the list of rate limiting profiles defined in a particular domain.
Resource URL
GET /domain/<domain_id>/ratelimitingprofiles
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of RateLimitingProfilesForDomainResponseList:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 473
20| Rate Limiting Profiles Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/domain/0/ratelimitingprofile
Response
{
"RateLimitingProfilesForDomainResponseList":
[
{
"profileId": 1003,
"name": "Profile10Mbps",
"domainId": 0,
"visibleToChild": true,
"description": "Profile Visible To Child Domain in Domain 0 ",
"isEditable": true,
"lastModifiedUser": "admin",
"lastModifiedTime": "2012-10-09 13:32:56",
"interfaceType": "MBPS_10"
},
{
"profileId": 1000,
"name": "UpdateTestProfile1",
"domainId": 0,
"visibleToChild": false,
"description": "Updated Test Profile Not visible to child domain",
"isEditable": true,
"lastModifiedUser": "admin",
"lastModifiedTime": "2012-10-09 13:32:57",
"interfaceType": "GBPS_10"
}
]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
474 McAfee Network Security Platform 10.1.x Manager API Reference Guide
21| QoS Policy Resource
Resource URL
POST /qospolicy
Request Parameters
Payload Request Parameters:
QoSPolicyId Unique QoS policy id, not required for POST Number No
LastModifiedTime Last modified time of the QoS Policy, not required for POST String No
LastModifiedUser Last user that modified the policy, not required for POST String Yes
McAfee Network Security Platform 10.1.x Manager API Reference Guide 475
21| QoS Policy Resource
Details of MemberDetails:
476 McAfee Network Security Platform 10.1.x Manager API Reference Guide
21| QoS Policy Resource
Details of SourceUserObjectList:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 477
21| QoS Policy Resource
Details of TimeObjectList:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://%3CNSM_IP%3E/sdkapi/qospolicy
Payload:
478 McAfee Network Security Platform 10.1.x Manager API Reference Guide
21| QoS Policy Resource
{
"Name" : "QoSPolicyTest",
"DomainId" : 0,
"VisibleToChild" : true,
"Description" : "To Test the QoS Policy",
"IsEditable" : true,
"PolicyType" : "ADVANCED",
"IsDiffServSettoZero" : false,
"IsVlanSettoZero" : true,
"MemberDetails" : {
"QoSMemberRuleList" : [{
"Description" : "QoSpolicyRatelimiting",
"Enabled" : true,
"RuleType" : "RATE_LIMITING",
"TagOrClass" : 3,
"SourceAddressObjectList" : [{
"RuleObjectId" : "AX",
"Name" : "Aland Islands",
"RuleObjectType" : "COUNTRY"
}, {
"RuleObjectId" : "101",
"Name" : "hostDNSRule",
"RuleObjectType" : "HOST_DNS_NAME"
}, {
"RuleObjectId" : "102",
"Name" : "hostIpv4",
"RuleObjectType" : "HOST_IPV_4"
}, {
"RuleObjectId" : "103",
"Name" : "ipv4Addressrange",
"RuleObjectType" : "IPV_4_ADDRESS_RANGE"
}, {
"RuleObjectId" : "104",
"Name" : "networkgroup",
"RuleObjectType" : "NETWORK_GROUP"
}
],
"DestinationAddressObjectList" : [{
"RuleObjectId" : "AL",
"Name" : "Albania",
"RuleObjectType" : "COUNTRY"
}, {
"RuleObjectId" : "DZ",
"Name" : "Algeria",
"RuleObjectType" : "COUNTRY"
}, {
"RuleObjectId" : "AS",
"Name" : "American Samoa",
"RuleObjectType" : "COUNTRY"
}
],
"SourceUserObjectList" : [{
"RuleObjectId" : "-1",
"Name" : "Any",
"RuleObjectType" : "USER"
}
],
"ServiceObjectList" : [{
"RuleObjectId" : "110",
"Name" : "serviceCustom",
"RuleObjectType" : "SERVICE",
"ApplicationType" : "CUSTOM"
}, {
"RuleObjectId" : "112",
"Name" : "serviceGroup",
"RuleObjectType" : "SERVICE_GROUP",
"ApplicationType" : "CUSTOM"
}, {
"RuleObjectId" : "111",
"Name" : "serviceRange",
"RuleObjectType" : "SERVICE_RANGE",
"ApplicationType" : "CUSTOM"
}
],
"ApplicationObjectList" : [],
"TimeObjectList" : [{
"RuleObjectId" : "107",
"Name" : "finiteTimePeriod",
"RuleObjectType" : "FINITE_TIMING_PERIOD"
}
]
}, {
"Description" : "DiffServ Rules",
"Enabled" : true,
"RuleType" : "DIFFSERV",
McAfee Network Security Platform "TagOrClass"
10.1.x Manager API Reference Guide
: 3, 479
"SourceAddressObjectList" : [{
"RuleObjectId" : "AF",
21| QoS Policy Resource
Response
{
"createdResourceId": 183
}
Error Information
Following error codes are returned by this URL:
4 400 1720 Invalid rule object Id/ rule object not visible to this domain
5 400 1804 Maximum of 10 rule objects are allowed in each object list of an advanced
firewall/QoS policy
9 400 1821 Either application or service object list can be defined in a member rule for
an advanced firewall/QoS policy
10 400 1832 Source address and destination address object list cannot combine IPV6
rule objects with host IPV4, network IPV4, IPV4 address range, country and
host DNS name rule objects
480 McAfee Network Security Platform 10.1.x Manager API Reference Guide
21| QoS Policy Resource
16 400 2710 Time object list is not applicable for classic QoS policy
17 400 2711 Application object list is not applicable for classic QoS policy
18 400 2712 Source address object list is not applicable for classic QoS policy
19 400 2713 Source address object list is not applicable for classic QoS policy
20 400 2714 Source user object list is not applicable for classic QoS policy
21 400 2716 Only service type rule object is supported for classic QoS policy
22 400 2717 Name must contain only letters, numerals, spaces, commas, periods,
hyphens or underscores
23 400 2718 QoS policy name should not be greater than 40 chars
24 400 2719 Classic QoS policy should have at least one service object list
25 400 2720 QoS policy with the same name was defined
28 400 2723 Either application or service object list can be defined in a member rule for
an advanced QoS policy
29 400 2724 QoS policy description should not be greater than 255 chars
McAfee Network Security Platform 10.1.x Manager API Reference Guide 481
21| QoS Policy Resource
30 400 2725 Member rule description should not be greater than 64 chars
Resource URL
PUT /qospolicy/<policy_id>
Request Parameters
URL Parameters:
482 McAfee Network Security Platform 10.1.x Manager API Reference Guide
21| QoS Policy Resource
Details of MemberDetails:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 483
21| QoS Policy Resource
Details of SourceUserObjectList:
484 McAfee Network Security Platform 10.1.x Manager API Reference Guide
21| QoS Policy Resource
Details of TimeObjectList:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 485
21| QoS Policy Resource
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/qospolicy/183
486 McAfee Network Security Platform 10.1.x Manager API Reference Guide
21| QoS Policy Resource
{
"QoSPolicyId" : 183,
"Name" : "QoSPolicyTest",
"DomainId" : 0,
"VisibleToChild" : true,
"Description" : "To Test the QoS Policy",
"LastModifiedTime" : "2012-12-12 16:24:28",
"IsEditable" : true,
"PolicyType" : "ADVANCED",
"PolicyVersion" : 1,
"LastModifiedUser" : "admin",
"IsDiffServSettoZero" : false,
"IsVlanSettoZero" : false,
"MemberDetails" : {
"QoSMemberRuleList" : [{
"Description" : "QoSpolicyRatelimiting",
"Enabled" : true,
"RuleType" : "RATE_LIMITING",
"TagOrClass" : 3,
"SourceAddressObjectList" : [{
"RuleObjectId" : "AX",
"Name" : "Aland Islands",
"RuleObjectType" : "COUNTRY"
}, {
"RuleObjectId" : "101",
"Name" : "hostDNSRule",
"RuleObjectType" : "HOST_DNS_NAME"
}, {
"RuleObjectId" : "102",
"Name" : "hostIpv4",
"RuleObjectType" : "HOST_IPV_4"
}, {
"RuleObjectId" : "103",
"Name" : "ipv4Addressrange",
"RuleObjectType" : "IPV_4_ADDRESS_RANGE"
}, {
"RuleObjectId" : "104",
"Name" : "networkgroup",
"RuleObjectType" : "NETWORK_GROUP"
}
],
"DestinationAddressObjectList" : [{
"RuleObjectId" : "AL",
"Name" : "Albania",
"RuleObjectType" : "COUNTRY"
}, {
"RuleObjectId" : "DZ",
"Name" : "Algeria",
"RuleObjectType" : "COUNTRY"
}, {
"RuleObjectId" : "AS",
"Name" : "American Samoa",
"RuleObjectType" : "COUNTRY"
}
],
"SourceUserObjectList" : [{
"RuleObjectId" : "-1",
"Name" : "Any",
"RuleObjectType" : "USER"
}
],
"ServiceObjectList" : [{
"RuleObjectId" : "110",
"Name" : "serviceCustom",
"RuleObjectType" : "SERVICE",
"ApplicationType" : "CUSTOM"
}, {
"RuleObjectId" : "112",
"Name" : "serviceGroup",
"RuleObjectType" : "SERVICE_GROUP",
"ApplicationType" : "CUSTOM"
}, {
"RuleObjectId" : "111",
"Name" : "serviceRange",
"RuleObjectType" : "SERVICE_RANGE",
"ApplicationType" : "CUSTOM"
}
],
"ApplicationObjectList" : [],
"TimeObjectList" : [{
"RuleObjectId" : "107",
"Name" : "finiteTimePeriod",
"RuleObjectType" : "FINITE_TIMING_PERIOD"
}
]
McAfee Network Security Platform
}, { 10.1.x Manager API Reference Guide 487
"Description" : "DiffServ Rules",
"Enabled" : true,
21| QoS Policy Resource
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
4 400 1720 Invalid rule object id/ rule object not visible to this domain
5 400 1804 Maximum of 10 rule objects are allowed in each object list of an advanced
firewall/QoS policy
9 400 1821 Either application or service object list can be defined in a member rule for
an advanced firewall/QoS policy
10 400 1832 Source address and destination address object list cannot combine IPV6
rule objects with host IPV4, network IPV4, IPV4 address range, country and
host DNS name rule objects
12 400 2702 Invalid QoS policy id/ QoS policy not visible to this domain
488 McAfee Network Security Platform 10.1.x Manager API Reference Guide
21| QoS Policy Resource
17 400 2710 Time object list is not applicable for classic QoS policy
18 400 2711 Application object list is not applicable for classic QoS policy
19 400 2712 Source address object list is not applicable for classic QoS policy
20 400 2713 Source address object list is not applicable for classic QoS policy
21 400 2714 Source user object list is not applicable for classic QoS policy
22 400 2716 Only service type rule object is supported for classic QoS policy
23 400 2717 Name must contain only letters, numerals, spaces, commas, periods,
hyphens or underscores
24 400 2718 QoS policy name should not be greater than 40 chars
25 400 2719 Classic QoS policy should have at least one service object list
26 400 2720 QoS policy with the same name was defined
29 400 2723 Either application or service object list can be defined in a member rule for
an advanced QoS policy
McAfee Network Security Platform 10.1.x Manager API Reference Guide 489
21| QoS Policy Resource
30 400 2724 QoS policy description should not be greater than 255 chars
31 400 2725 Member rule description should not be greater than 64 chars
Resource URL
DELETE /qospolicy/<policy_id>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETEhttps://%3CNSM_IP%3E/sdkapi/qospolicy/183
Response
{
"status":1
}
490 McAfee Network Security Platform 10.1.x Manager API Reference Guide
21| QoS Policy Resource
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
1 400 2702 Invalid QoS policy Id/QoS policy not visible to this domain
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 491
21| QoS Policy Resource
Details of MemberDetails:
492 McAfee Network Security Platform 10.1.x Manager API Reference Guide
21| QoS Policy Resource
Details of SourceUserObjectList:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 493
21| QoS Policy Resource
Details of TimeObjectList:
494 McAfee Network Security Platform 10.1.x Manager API Reference Guide
21| QoS Policy Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/qospolicy/183
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 495
21| QoS Policy Resource
{
"QoSPolicyId" : 183,
"Name" : "QoSPolicyTest",
"DomainId" : 0,
"VisibleToChild" : true,
"Description" : "To Test the QoS Policy",
"LastModifiedTime" : "2012-12-12 16:24:28",
"IsEditable" : true,
"PolicyType" : "ADVANCED",
"PolicyVersion" : 1,
"LastModifiedUser" : "admin",
"IsDiffServSettoZero" : false,
"IsVlanSettoZero" : true,
"MemberDetails" : {
"QoSMemberRuleList" : [{
"Description" : "QoSpolicyRatelimiting",
"Enabled" : true,
"RuleType" : "RATE_LIMITING",
"TagOrClass" : 3,
"SourceAddressObjectList" : [{
"RuleObjectId" : "AX",
"Name" : "Aland Islands",
"RuleObjectType" : "COUNTRY"
}, {
"RuleObjectId" : "101",
"Name" : "hostDNSRule",
"RuleObjectType" : "HOST_DNS_NAME"
}, {
"RuleObjectId" : "102",
"Name" : "hostIpv4",
"RuleObjectType" : "HOST_IPV_4"
}, {
"RuleObjectId" : "103",
"Name" : "ipv4Addressrange",
"RuleObjectType" : "IPV_4_ADDRESS_RANGE"
}, {
"RuleObjectId" : "104",
"Name" : "networkgroup",
"RuleObjectType" : "NETWORK_GROUP"
}
],
"DestinationAddressObjectList" : [{
"RuleObjectId" : "AL",
"Name" : "Albania",
"RuleObjectType" : "COUNTRY"
}, {
"RuleObjectId" : "DZ",
"Name" : "Algeria",
"RuleObjectType" : "COUNTRY"
}, {
"RuleObjectId" : "AS",
"Name" : "American Samoa",
"RuleObjectType" : "COUNTRY"
}
],
"SourceUserObjectList" : [{
"RuleObjectId" : "-1",
"Name" : "Any",
"RuleObjectType" : "USER"
}
],
"ServiceObjectList" : [{
"RuleObjectId" : "110",
"Name" : "serviceCustom",
"RuleObjectType" : "SERVICE",
"ApplicationType" : "CUSTOM"
}, {
"RuleObjectId" : "112",
"Name" : "serviceGroup",
"RuleObjectType" : "SERVICE_GROUP",
"ApplicationType" : "CUSTOM"
}, {
"RuleObjectId" : "111",
"Name" : "serviceRange",
"RuleObjectType" : "SERVICE_RANGE",
"ApplicationType" : "CUSTOM"
}
],
"ApplicationObjectList" : [],
"TimeObjectList" : [{
"RuleObjectId" : "107",
"Name" : "finiteTimePeriod",
"RuleObjectType" : "FINITE_TIMING_PERIOD"
}
]
496 }, { McAfee Network Security Platform 10.1.x Manager API Reference Guide
"Description" : "DiffServ Rules",
"Enabled" : true,
21| QoS Policy Resource
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
2 400 2702 Invalid QoS policy Id/ QoS policy not visible to this domain
Resource URL
GET /domain/<domain_id>/ qospolicy
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 497
21| QoS Policy Resource
Example
Request
GEThttps://%3CNSM_IP%3E/sdkapi/domain/0/qospolicy
Response
498 McAfee Network Security Platform 10.1.x Manager API Reference Guide
21| QoS Policy Resource
{
"QoSPoliciesForDomain":
[
{
"policyName": "TestQosPolicy",
"visibleToChild": true,
"isEditable": true,
"description": "To test the QOSPolicy",
"lastModUser": "admin",
"policyType": "ADVANCED",
"policyId": 179,
"domainId": 0,
"policyVersion": 1
},
{
"policyName": "QosPolicy",
"visibleToChild": true,
"isEditable": true,
"description": "To test the QOSPolicy",
"lastModUser": "admin",
"policyType": "ADVANCED",
"policyId": 175,
"domainId": 0,
"policyVersion": 1
}
]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 499
22| Advanced Malware Policy Resource
Resource URL
POST /malwarepolicy
Request Parameters
Payload Request Parameters:
Details of properties:
500 McAfee Network Security Platform 10.1.x Manager API Reference Guide
22| Advanced Malware Policy Resource
Details of actionThresholds:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 501
22| Advanced Malware Policy Resource
sendTcpReset Send TCP reset, can be "DISABLED" / "VERY_LOW" / "LOW" / String Yes
"MEDIUM" / "HIGH" / "VERY_HIGH"
saveFile Save file can be "DISABLED" / "ALWAYS" /"VERY_LOW" / "LOW" / String Yes
"MEDIUM" / "HIGH" / "VERY_HIGH"
addToBlockList Add to block list can be "DISABLED" / "VERY_LOW" / "LOW" / String Yes
"MEDIUM" / "HIGH" / "VERY_HIGH"
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://%3CNSM_IP%3E/sdkapi/malwarepolicy
502 McAfee Network Security Platform 10.1.x Manager API Reference Guide
22| Advanced Malware Policy Resource
{
"properties":
{
"policyName": "Test",
"description": "Add Malware Policy",
"domainId": 0,
"visibleToChild": true,
"protocolsToScan":
[
{
"protocolName": "HTTP",
"protocolNumber": 16,
"enabled": true
},
{
"protocolName": "SMTP",
"protocolNumber": 12,
"enabled": true
}
]
},
"scanningOptions":
[
{
"fileType": "Executables",
"maximumFileSizeScannedInKB": 5120,
"malwareEngines":
[
{
"name": "GTI File Reputation",
"id": 1,
"status": "UNCHECKED"
},
{
"name": " Blocklist and Allowlist",
"id": 2,
"status": "UNCHECKED"
},
{
"name": "PDF Emulation",
"id": 8,
"status": "DISABLED"
},
{
"name": "NTBA",
"id": 16,
"status": "CHECKED"
},
{
"name": "Advanced Threat Defense",
"id": 64,
"status": "CHECKED"
}
],
"actionThresholds":
{
"alert": "LOW",
"block": "HIGH",
"sendTcpReset": "HIGH",
"saveFile": "DISABLED",
"addToBlockList": "DISABLED"
}
},
{
"fileType": "MS Office Files",
"maximumFileSizeScannedInKB": 1024,
"malwareEngines":
[
{
"name": "GTI File Reputation",
"id": 1,
"status": "DISABLED"
},
{
"name": "Blocklist and Allowlist ",
"id": 2,
"status": "CHECKED"
},
{
"name": "PDF Emulation",
"id": 8,
"status": "DISABLED"
},
{
"name": "NTBA",
McAfee Network Security "id":
Platform
16, 10.1.x Manager API Reference Guide 503
"status": "CHECKED"
},
22| Advanced Malware Policy Resource
Response
{
"createdResourceId": 301
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
4 400 2513 Name must contain only letters, numerical, spaces, commas,
periods, hyphens or underscore
Resource URL
PUT /malwarepolicy/<policy_id>
Request Parameters
URL Parameters:
504 McAfee Network Security Platform 10.1.x Manager API Reference Guide
22| Advanced Malware Policy Resource
Details of properties:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 505
22| Advanced Malware Policy Resource
Details of actionThresholds:
506 McAfee Network Security Platform 10.1.x Manager API Reference Guide
22| Advanced Malware Policy Resource
sendTcpReset Send TCP reset, can be "DISABLED" / "VERY_LOW" / "LOW" / String Yes
"MEDIUM" / "HIGH" / "VERY_HIGH"
saveFile Save file can be "DISABLED" / "ALWAYS" /"VERY_LOW" / "LOW" / String Yes
"MEDIUM" / "HIGH" / "VERY_HIGH"
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/malwarepolicy/301
McAfee Network Security Platform 10.1.x Manager API Reference Guide 507
22| Advanced Malware Policy Resource
PUT https://<NSM_IP>/sdkapi/malwarepolicy/301
{
"properties":
{
"policyName": "Test",
"description": "Add Malware Policy",
"domainId": 0,
"visibleToChild": true,
"protocolsToScan":
[
{
"protocolName": "HTTP",
"protocolNumber": 16,
"enabled": true
},
{
"protocolName": "SMTP",
"protocolNumber": 12,
"enabled": true
}
]
},
"scanningOptions":
[
{
"fileType": "Executables",
"maximumFileSizeScannedInKB": 5120,
"malwareEngines":
[
{
"name": "GTI File Reputation",
"id": 1,
"status": "UNCHECKED"
},
{
"name": " Blocklist and Allowlist",
"id": 2,
"status": "UNCHECKED"
},
{
"name": "PDF Emulation",
"id": 8,
"status": "DISABLED"
},
{
"name": "NTBA",
"id": 16,
"status": "CHECKED"
},
{
"name": "Advanced Threat Defense",
"id": 64,
"status": "CHECKED"
}
],
"actionThresholds":
{
"alert": "LOW",
"block": "HIGH",
"sendTcpReset": "HIGH",
"saveFile": "DISABLED",
"addToBlockList": "DISABLED"
}
},
{
"fileType": "MS Office Files",
"maximumFileSizeScannedInKB": 1024,
"malwareEngines":
[
{
"name": "GTI File Reputation",
"id": 1,
"status": "DISABLED"
},
{
"name": "Blocklist and Allowlist ",
"id": 2,
"status": "CHECKED"
},
{
"name": "PDF Emulation",
"id": 8,
"status": "DISABLED"
},
508 { McAfee Network Security Platform 10.1.x Manager API Reference Guide
"name": "NTBA",
"id": 16,
22| Advanced Malware Policy Resource
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
HTTP Error
S.No Code SDK API errorId SDK API errorMessage
2 404 2501 Invalid advanced malware policy id/ policy not visible to this domain
6 400 2513 Name must contain only letters, numerical, spaces, commas, periods,
hyphens or underscore
Resource URL
DELETE /malwarepolicy/<policy_id>
McAfee Network Security Platform 10.1.x Manager API Reference Guide 509
22| Advanced Malware Policy Resource
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETEhttps://%3CNSM_IP%3E/sdkapi/malwarepolicy/301
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
1 404 2501 Invalid advanced malware policy id/ policy not visible to this domain
510 McAfee Network Security Platform 10.1.x Manager API Reference Guide
22| Advanced Malware Policy Resource
Resource URL
GET /malwarepolicy/<policy_id>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of properties:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 511
22| Advanced Malware Policy Resource
512 McAfee Network Security Platform 10.1.x Manager API Reference Guide
22| Advanced Malware Policy Resource
Details of actionThresholds:
alert Alert to be sent, can be "DISABLED" / "VERY_LOW" / "LOW" / "MEDIUM" / "HIGH" / String
"VERY_HIGH"
block Blocking settings, can be "DISABLED" / "VERY_LOW" / "LOW" / "MEDIUM" / "HIGH" / String
"VERY_HIGH"
sendTcpReset Send TCP reset, can be "DISABLED" / "VERY_LOW" / "LOW" / "MEDIUM" / "HIGH" / String
"VERY_HIGH"
saveFile Save file, can be "DISABLED" / "ALWAYS" /"VERY_LOW" / "LOW" / "MEDIUM" / "HIGH" / String
"VERY_HIGH"
Example
Request
GEThttps://%3CNSM_IP%3E/sdkapi/malwarepolicy/301
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 513
22| Advanced Malware Policy Resource
{
"properties":
{
"policyId": 301,
"policyName": "Test",
"description": "",
"domainId": 0,
"lastModifiedTime": "2012-10-08 13:39:56",
"lastModifiedUser": "admin",
"isEditable": true,
"visibleToChild": true,
"protocolsToScan":
[
{
"protocolName": "HTTP",
"protocolNumber": 16,
"enabled": true
},
{
"protocolName": "SMTP",
"protocolNumber": 12,
"enabled": true
}
]
},
"scanningOptions":
[
{
"fileType": "Executables",
"malwareEngines":
[
{
"name": "GTI File Reputation",
"id": 1,
"status": "CHECKED"
},
{
"name": "Custom Fingerprints",
"id": 2,
"status": "UNCHECKED"
},
{
"name": "PDF Analysis",
"id": 8,
"status": "DISABLED"
},
{
"name": "Anti-Malware Analysis",
"id": 16,
"status": "UNCHECKED"
}
],
"actionThresholds":
{
"alert": "LOW",
"block": "HIGH",
"sendTcpReset": "HIGH",
"saveFile": "DISABLED"
}
},
{
"fileType": "MS Office Files",
"malwareEngines":
[
{
"name": "GTI File Reputation",
"id": 1,
"status": "DISABLED"
},
{
"name": "Custom Fingerprints",
"id": 2,
"status": "CHECKED"
},
{
"name": "PDF Analysis",
"id": 8,
"status": "DISABLED"
},
{
"name": "Anti-Malware Analysis",
"id": 16,
"status": "CHECKED"
}
],
514 "actionThresholds": McAfee Network Security Platform 10.1.x Manager API Reference Guide
{
"alert": "MEDIUM",
22| Advanced Malware Policy Resource
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
1 404 2501 Invalid advanced malware policy id/ policy not visible to this domain
Resource URL
GET /domain/<domain_id>/malwarepolicy
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 515
22| Advanced Malware Policy Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/domain/0/malwarepolicy
Response
{
"advancedMalwareListAtDomain":
[
{
"policyId": 1,
"policyName": "Default Malware Policy",
"lastModifiedUser": "admin",
"visibleToChild": true,
"isEditable": true,
"lastModifiedTime": "2012-09-13 15:11:21.0"
},
{
"policyId": 301,
"policyName": "Test1",
"description": "Desc1",
"lastModifiedUser": "admin",
"visibleToChild": true,
"isEditable": true,
"lastModifiedTime": "2012-09-13 16:06:06.0"
},
{
"policyId": 302,
"policyName": "Test2",
"description": "Desc2",
"lastModifiedUser": "admin",
"visibleToChild": false,
"isEditable": true,
"lastModifiedTime": "2012-09-13 16:06:14.0"
}
]
}
516 McAfee Network Security Platform 10.1.x Manager API Reference Guide
22| Advanced Malware Policy Resource
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /malwarepolicy/malwareprotocols
Request Parameters
None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
McAfee Network Security Platform 10.1.x Manager API Reference Guide 517
22| Advanced Malware Policy Resource
GET https://%3CNSM_IP%3E/sdkapi/malwarepolicy/malwareprotocols
Response
{
"advancedMalwareProtocols":
[
{
"protocolName": "HTTP",
"protocolNumber": 16,
"enabled": true
},
{
"protocolName": "SMTP",
"protocolNumber": 12,
"enabled": false
}
]
}
Error Information
None
Resource URL
GET /malwarepolicy/defaultscanningoptions
Request Parameters
None
Response Parameters
Following fields are returned
518 McAfee Network Security Platform 10.1.x Manager API Reference Guide
22| Advanced Malware Policy Resource
Details of actionThresholds:
alert Alert to be sent, can be "DISABLED" / "VERY_LOW" number/ "LOW" / "MEDIUM" / String
"HIGH" / "VERY_HIGH"
block Blocking settings, can be "DISABLED" / "VERY_LOW" / "LOW" / "MEDIUM" / "HIGH" / String
"VERY_HIGH"
sendTcpReset Send TCP reset, can be "DISABLED" / "VERY_LOW" / "LOW" / "MEDIUM" / "HIGH" / String
"VERY_HIGH"
saveFile Save file can be "DISABLED" / "ALWAYS" /"VERY_LOW" / "LOW" / "MEDIUM" / "HIGH" / String
"VERY_HIGH"
addToBlockList Add to block list can be "DISABLED" / "VERY_LOW" / "LOW" / "MEDIUM" / "HIGH" / String
"VERY_HIGH"
McAfee Network Security Platform 10.1.x Manager API Reference Guide 519
22| Advanced Malware Policy Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/malwarepolicy/defaultscanningoptions
Response
520 McAfee Network Security Platform 10.1.x Manager API Reference Guide
22| Advanced Malware Policy Resource
{
"scanningOptions":
[
{
"fileType": "Executables",
"malwareEngines":
[
{
"name": "GTI File Reputation",
"id": 1,
"status": "CHECKED"
},
{
"name": "Custom Fingerprints",
"id": 2,
"status": "UNCHECKED"
},
{
"name": "PDF Analysis",
"id": 8,
"status": "DISABLED"
},
{
"name": "Anti-Malware Analysis",
"id": 16,
"status": "UNCHECKED"
}
],
"actionThresholds":
{
"alert": "LOW",
"block": "HIGH",
"sendTcpReset": "HIGH",
"saveFile": "DISABLED"
}
},
{
"fileType": "MS Office Files",
"malwareEngines":
[
{
"name": "GTI File Reputation",
"id": 1,
"status": "DISABLED"
},
{
"name": "Custom Fingerprints",
"id": 2,
"status": "CHECKED"
},
{
"name": "PDF Analysis",
"id": 8,
"status": "DISABLED"
},
{
"name": "Anti-Malware Analysis",
"id": 16,
"status": "CHECKED"
}
],
"actionThresholds":
{
"alert": "MEDIUM",
"block": "HIGH",
"sendTcpReset": "HIGH",
"saveFile": "DISABLED"
}
},
{
"fileType": "PDF Files",
"malwareEngines":
[
{
"name": "GTI File Reputation",
"id": 1,
"status": "CHECKED"
},
{
"name": "Custom Fingerprints",
"id": 2,
"status": "UNCHECKED"
},
{
"name": "PDF Analysis",
McAfee Network Security "id":
Platform
8, 10.1.x Manager API Reference Guide 521
"status": "CHECKED"
},
22| Advanced Malware Policy Resource
Error Information
None
Resource URL
GET / advancedmalware/blockedhashes?search=<search_string>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of blockedHashList:
lastUpdated Last updated details. Contains the username and the time under which the file hash was String
added.
522 McAfee Network Security Platform 10.1.x Manager API Reference Guide
22| Advanced Malware Policy Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi%20advancedmalware/blockedhashes
Response
"blockedHashList": [
{
"fileHash":"1aaaaaaaaaaaaaaaaaaaaaaaaaaaaa16", "fileName":"file1",
“lastUpdated”: “2018-01-17 20:30:34.0 (Administrator)”
"comment":"Blocked based on user request "},
{
"fileHash":"1aaaaaaaaaaaaaaaaaaaaaaaaaaaaa18", "fileName":"file2",
“lastUpdated”: “2018-01-17 20:35:36.0 (Administrator)”
"comment":"Blocked based on user request "},
]}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /advancedmalware/allowedhashes?search=<search_string>
McAfee Network Security Platform 10.1.x Manager API Reference Guide 523
22| Advanced Malware Policy Resource
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of allowedHashList:
Example
Request
GET https://%3C%20NSM_IP%3E/sdkapi%20advancedmalware/allowedhashes
Response
524 McAfee Network Security Platform 10.1.x Manager API Reference Guide
22| Advanced Malware Policy Resource
{
“allowedHashList”: [{
“fileHash”:”1aaaaaaaaaaaaaaaaaaaaaaaaaaaaa17”,
“fileName”:”1aaaaaaaaaaaaaaaaaaaaaaaaaaaaa17”,
“classifier”:”Manually updated by Administrator”,
“classified”:”2013-09-03 12:56:48.0”,
“comment”:”allowed based on user request “}]}
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
PUT /advancedmalware/blockedhashes/<hash>/takeaction/allow
Request Parameters
URL Parameters:
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
McAfee Network Security Platform 10.1.x Manager API Reference Guide 525
22| Advanced Malware Policy Resource
PUT
https://<NSM_IP>/sdkapi/advancedmalware/blockedhashes/1aaaaaaaaaaaaaaaaaaaaaaaaaaaaa16/takeaction/allow
Response
{
“status”:1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
PUT /advancedmalware/allowedhashes/<hash>/takeaction/<action>
Request Parameters
URL Parameters:
Following fields are returned if the request parameters are correct, otherwise error details are returned.
526 McAfee Network Security Platform 10.1.x Manager API Reference Guide
22| Advanced Malware Policy Resource
Example
Request
PUT https://<NSM_IP>/sdkapi/advancedmalware/allowedhashes/1aaaaaaaaaaaaaaaaaaaaaaaaaaaaa17/takeaction/block
Response
{
“status”:1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
PUT /advancedmalware/blockedhashes/multipleHash/takeaction/allow
Request Parameters
URL Parameters: None
McAfee Network Security Platform 10.1.x Manager API Reference Guide 527
22| Advanced Malware Policy Resource
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/advancedmalware/blockedhashes/multipleHash/takeaction/allow
Payload
{
"hashes": ["1aaaaaaaaaaaaaaaaaaaaaaaaaaaa16,
"1aaaaaaaaaaaaaaaaaaaaaaaaaaaa17",
"1aaaaaaaaaaaaaaaaaaaaaaaaaaaa18"]
}
Response
{
“status”:1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
528 McAfee Network Security Platform 10.1.x Manager API Reference Guide
22| Advanced Malware Policy Resource
Resource URL
PUT /advancedmalware/allowedhashes/multipleHash/takeaction/block
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/advancedmalware/allowedhashes/multipleHash/takeaction/block
Payload
{
"hashes": ["1aaaaaaaaaaaaaaaaaaaaaaaaaaaa16,
"1aaaaaaaaaaaaaaaaaaaaaaaaaaaa17",
"1aaaaaaaaaaaaaaaaaaaaaaaaaaaa18"]
}
Error Information
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 529
22| Advanced Malware Policy Resource
{
"status": 1
}
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
PUT /advancedmalware/blockedhashes/takeaction/removeall
Request Parameters
N/A
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/advancedmalware/blockedhashes/takeaction/removeall
Response
{
“status”:1
}
530 McAfee Network Security Platform 10.1.x Manager API Reference Guide
22| Advanced Malware Policy Resource
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
PUT /advancedmalware/allowedhashes/takeaction/removeall
Request Parameters
N/A
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/advancedmalware/allowedhashes/takeaction/removeall
Response
{
“status”:1
}
Error Information
Following error code is returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 531
22| Advanced Malware Policy Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
POST /advancedmalware?type=<hashtype>
Request Parameters
URL Parameters:
Following fields are returned if the request parameters are correct, otherwise error details are returned.
532 McAfee Network Security Platform 10.1.x Manager API Reference Guide
22| Advanced Malware Policy Resource
Example
Request
POST https://%3CNSM_IP%3E/sdkapi/advancedmalware?type=block
Payload
{
"fileHash":"1aaaaaaaaaaaaaaaaaaaaaaaaaaaaa16",
"fileName":"file1",
"comment":"Blocked filehash "
}
Error Information
Response
{
"createdResourceId": 1
}
HTTP Error
S.No Code SDK API errorId SDK API errorMessage
4 500 1004 Duplicate hash detected. A file with the same hash already exists on this
list.
5 500 1001 File hashes entries has exceeded the maximum support limit of 99,000.
Resource URL
PUT /advancedmalware?type=<hashtype>
McAfee Network Security Platform 10.1.x Manager API Reference Guide 533
22| Advanced Malware Policy Resource
Request Parameters
URL Parameters:
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/advancedmalware?type=block
Payload
{
“oldFileHash”: "1aaaaaaaaaaaaaaaaaaaaaaaaaaaaa16"
"fileHash":"1aaaaaaaaaaaaaaaaaaaaaaaaaaa1116", "fileName":"file1",
"comment":"updated Blocked filehash "
}
534 McAfee Network Security Platform 10.1.x Manager API Reference Guide
22| Advanced Malware Policy Resource
Error Information
Response
{
"status": 1
}
HTTP Error
S.No Code SDK API errorId SDK API errorMessage
4 500 1004 Duplicate hash detected. A file with same hash already exists on this
list.
Resource URL
DELETE /advancedmalware?type=block
Request Parameters
URL Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 535
22| Advanced Malware Policy Resource
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://<NSM_IP>/sdkapi/advancedmalware?type=block
Payload
{
"hashes":
["1aaaaaaaaaaaaaaaaaaaaaaaaaaaa16,
"1aaaaaaaaaaaaaaaaaaaaaaaaaaaa17",
"1aaaaaaaaaaaaaaaaaaaaaaaaaaaa18"]
}
Error Information
Response
{
"status": 1
}
S.No HTTP Error Code SDK API errorId SDK API errorMessage
536 McAfee Network Security Platform 10.1.x Manager API Reference Guide
23| File Reputation Resource
Resource URL
PUT /domain/<domain_id>/filereputation/gti
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
McAfee Network Security Platform 10.1.x Manager API Reference Guide 537
23| File Reputation Resource
PUT https://%3CNSM_IP%3E/sdkapi/domain/0/filereputation/gti
Payload:
{
"Sensitivity":"LOW"
"inheritSettings":false
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
PUT /domain/<domain_id>/filereputation/allowedfingerprints
Request Parameters
URL Parameters:
538 McAfee Network Security Platform 10.1.x Manager API Reference Guide
23| File Reputation Resource
Details of BodyPart[0]:
Details of FingerPrintAction:
Details of BodyPart[1]:
Details of file:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 539
23| File Reputation Resource
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/domain/0/filereputation/allowedfingerprints
Payload:
NSM-SDK-API: RERFNUIyODFCQTdGRDM1MTRBQTA4QzAwQUQ4MzAwQjE6MQ==
Accept: application/vnd.nsm.v1.0+json
Content-Type: multipart/form-data; boundary=Boundary_6_13995234_1360146256146
MIME-Version: 1.0
User-Agent: Java/1.6.0_25
Host: 127.0.0.1:8888
Connection: keep-alive
Content-Length: 3949
--Boundary_6_13995234_1360146256146
Content-Type: application/json
{"Action":"REPLACE"}
--Boundary_6_13995234_1360146256146
Content-Type: application/octet-stream
H¡EÀ¶¡Qoø¼Ä¨tTÐc[pbñšB=ã ¥Lh;bê²gà–*Äe#ÈÃñõ-1€>!´Øùþ&ck¾â•)9R–ë?0Ÿ¡º]‘3 9 ütþù9o\Ð…'㞦}à!ÿDŠ-Wå‡
´ê¬_”v`©BÈ�e8Ã�J=L=ÕÝc�¤Â˜ˆ¸‡u%§?,Sämá†6AÕô޹‰×L-•e«®Öô©Ä®àýò�ŒI5)‰5a7¥P¾£�Öñú�‚xœÕEieÓ°«Q{îB��9¬ëX†®%‰-îlÄ/
9�q¸ÑÞð3;ËZNq(é{h+ò7Y,ቫËvOâazÎGöi"à‘êŒâª6õ]²BÈ‚…KU[Šâ«FA^�[gÝI”•F|ý Qe�’Y},6ؾm
ÒQ£VÄ’ºÉ«ûú >\'HÐ › ;¥žód»,‡‚3oÉæßõe,òöd[®Ýg-ðËÝE
'0•+Õµ(-Ú›íKSöö•�eß>ß”Z6l2¸"Âä±ÄR+ |g¯¿�P‚ÝÑÄú4jÆ¡ÒO’îOi+^VaÄO±K8ØáTÙè�_ˆY=êN¼?޵Ϭ£+Óo÷~uNvG=†•»ËÉ.†ŒÓ¬>vðA?
\®ºÈ—(Mc¯U‚¼tXÊ¡+|)¶úV€²"e¿Z¬]‘�z-Jó\]Iõ€�Ô sµ ŸT\°ÿ”…¸ÇiVˆí^ÒÆü ¥}Tç÷Íõ„›ÌcoM,_1>¾�‡¢]¨£/ôÈ—}ÞÁ8NA�j m…
JÇÇc•í <�eÚ+Å�Ya
--Boundary_6_13995234_1360146256146
Response
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
540 McAfee Network Security Platform 10.1.x Manager API Reference Guide
23| File Reputation Resource
Resource URL
DELETE /domain/<domain_id>/filereputation/allowedfingerprints
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://%3CNSM_IP%3E/sdkapi/domain/0/filereputation/allowedfingerprints
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 541
23| File Reputation Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
PUT /domain/<domain_id>/filereputation/customfingerprints
Request Parameters
URL Parameters:
Details of BodyPart[0]:
542 McAfee Network Security Platform 10.1.x Manager API Reference Guide
23| File Reputation Resource
Details of BodyPart[1]:
Details of file:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/domain/0/filereputation/customfingerprints
Payload:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 543
23| File Reputation Resource
NSM-SDK-API: OEZDNzAwNUQ3OTM2MjUzM0I3QTBBREQ4MENFMzExMTM6MQ==
Accept: application/vnd.nsm.v1.0+json
Content-Type: multipart/form-data; boundary=Boundary_1_21363001_1362483936674
MIME-Version: 1.0
User-Agent: Java/1.6.0_25
Host: localhost:8888
Connection: keep-alive
Content-Length: 348
--Boundary_1_21363001_1362483936674
Content-Type: application/json
{"Action":"REPLACE"}
--Boundary_1_21363001_1362483936674
Content-Type: application/octet-stream
collectmail_notwo0a.pdf,1,MD5,075c8160789eb0829488a4fc9b59ed6c,description
putty_v0.60.exe,1,MD5,acdac6399f73539f6c01b7670045eec7,desc
--Boundary_1_21363001_1362483936674--
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
DELETE /domain/<domain_id>/filereputation/customfingerprints
Request Parameters
URL Parameters:
544 McAfee Network Security Platform 10.1.x Manager API Reference Guide
23| File Reputation Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://%3CNSM_IP%3E/sdkapi/domain/0/filereputation/customfingerprints
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
PUT /domain/<domain_id>/filereputation/filetypes
Request Parameters:
URL parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 545
23| File Reputation Resource
Payload parameters:
Details of fileStatus:
Details of fileType:
Response Parameters
546 McAfee Network Security Platform 10.1.x Manager API Reference Guide
23| File Reputation Resource
Example
Request
PUThttps://%3CNSM_IP%3E/sdkapi/domain/0/filereputation/filetypes
Payload:
{
"fileStatus":
[
{
"fileFormat": "apk",
"enabled": true
},
{
"fileFormat": "cpl",
"enabled": true
},
{
"fileFormat": "doc",
"enabled": false
},
{
"fileFormat": "docx",
"enabled": false
},
{
"fileFormat": "drv",
"enabled": false
},
{
"fileFormat": "exe",
"enabled": false
},
{
"fileFormat": "ocx",
"enabled": false
},
{
"fileFormat": "pdf",
"enabled": false
},
{
"fileFormat": "ppt",
"enabled": false
},
{
"fileFormat": "pptx",
"enabled": false
},
{
"fileFormat": "scr",
"enabled": false
},
{
"fileFormat": "sys",
"enabled": false
},
{
"fileFormat": "xls",
"enabled": false
},
{
"fileFormat": "xlsx",
"enabled": false
}
]
}
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 547
23| File Reputation Resource
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
3 404 1105 Invalid domain: This operation is only allowed for root domain
Resource URL
GET /domain/<domain_id>/filereputation/fingerprintscount
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
548 McAfee Network Security Platform 10.1.x Manager API Reference Guide
23| File Reputation Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/domain/0/filereputation/fingerprintscount
Response
{
" AllowedFingerprintsCount ": 0,
" CustomFingerprintsCount ": 10
}
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /domain/<domain_id>/filereputation/filetypes
Request Parameters:
URL parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 549
23| File Reputation Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of fileStatus:
Details of fileType:
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/domain/0/filereputation/filetypes
Payload:
550 McAfee Network Security Platform 10.1.x Manager API Reference Guide
23| File Reputation Resource
{
"fileStatus":
[
{
"fileFormat": "apk",
"enabled": true
},
{
"fileFormat": "cpl",
"enabled": true
},
{
"fileFormat": "doc",
"enabled": false
},
{
"fileFormat": "docx",
"enabled": false
},
{
"fileFormat": "drv",
"enabled": false
},
{
"fileFormat": "exe",
"enabled": false
},
{
"fileFormat": "ocx",
"enabled": false
},
{
"fileFormat": "pdf",
"enabled": false
},
{
"fileFormat": "ppt",
"enabled": false
},
{
"fileFormat": "pptx",
"enabled": false
},
{
"fileFormat": "scr",
"enabled": false
},
{
"fileFormat": "sys",
"enabled": false
},
{
"fileFormat": "xls",
"enabled": false
},
{
"fileFormat": "xlsx",
"enabled": false
}
]
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 551
23| File Reputation Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
2 404 1105 Invalid domain: This operation is only allowed for root domain
Resource URL
GET /domain/<domain_id>/filereputation/gti/filetypes
Request Parameters:
URL parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/filereputation/gti/filetypes
Response
552 McAfee Network Security Platform 10.1.x Manager API Reference Guide
23| File Reputation Resource
{
"fileFormat":
[
"apk",
"cpl",
"drv",
"exe",
"ocx",
"pdf",
"scr",
"sys"
]
}
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /domain/<domain_id>/filereputation/gti
Request Parameters:
URL parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 553
23| File Reputation Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/filereputation/gti
Response
{
"inheritSettings": false,
"Sensitivity": "VERY_LOW"
}
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
554 McAfee Network Security Platform 10.1.x Manager API Reference Guide
24| Alert Relevance Resource
Resource URL
PUT /alertrelevance
Request Parameters
Payload Request Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/alertrelevance
Payload:
{
"isEnabled":true
}
Response
{
"status":1
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 555
24| Alert Relevance Resource
Resource URL
GET /alertrelevance
Request Parameters
None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/alertrelevance
Response
{
"isEnabled":true
}
556 McAfee Network Security Platform 10.1.x Manager API Reference Guide
25| Manage Import Resource
Resource URL
PUT /botnetdetectors/import/automatic
Request Parameters
None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/botnetdetectors/import/automatic
Response
{
"status":1
}
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 557
25| Manage Import Resource
Request Parameters
Payload Request Parameters:
Details of BodyPart[0]:
Details of BodyPart[1]:
558 McAfee Network Security Platform 10.1.x Manager API Reference Guide
25| Manage Import Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/botnetdetectors/import/manual
Payload:
NSM-SDK-API: QkI2Q0Y4NjgxNzUzNkY0RTc5Qjc5NUJCRUFCRUZEOUM6MQ==
Accept: application/vnd.nsm.v1.0+json
Content-Type: multipart/form-data; boundary=Boundary_1_13198090_1360147081930
MIME-Version: 1.0
User-Agent: Java/1.6.0_25
Host: 127.0.0.1:8888
Connection: keep-alive
Content-Length: 307803
--Boundary_1_13198090_1360147081930
Content-Type: application/json
{"fileName":"botnet_sdkapi","type":"ZIP"}
--Boundary_1_13198090_1360147081930
Content-Type: application/octet-stream
3WA«ˆJY header.json{"sha1": "d37a91be6f92f2620bf0bf0bdba985a2eecced94", "file-length": 229869, "iv": "D
+grgU2y12NHI/OFt8LaRVzP0an/1Fwin8TWhuGIS4aQYfjBhZEQLTzmUGxYjePyPC+v6fQoDfEp
\nT5qHAaZX4xn5b1gdeR9iQgIx9mui2hkHEd2zxaLwzzS/1mWOYbvoKO4DPxYpT3UdDFxhe5nd8PPI
\nCGkDMExlmo2OwHjxiuUIwOOZfGEeA1SVHf8DiGKsmv25WVjF7LsTndRpeksyWyQX1/WESlnC+VkE
\nOaJK6l4DBCfzror7GuFADOKIPcGeZzgUCn/EMYfG/QhFw2vfu+OVub4f6qJZB6fDBn1li8KL+DQ5\niDCI/Gq6zCIGksHPFJ9W
+RN1RdlKVIkATdkkQQ==\n", "version": 31.0, "key": "sFXb40h4vS6dWlaynBPdojhuXJDv9WoN1Jh0ts5+G9x9siDy/
tMwGo9U8pxoLveHJKu7mspI5nL5\nxFI8rR8EMzHjdeO9c9qMs/x6djhKpDn8LQDQT03zdIW5QXwt5uA2tByLAOoKK5LKsveApJzqJMGw\nu/
20sgvouKBLESGVE1WTZ1rlRWC6JPQ5l6ZzkW4kkjtcqGbqSnATipJmyKD2a5sAztXpp7vpNOrK\nGUHH8jViWzgwnzlgW/
8IcypQdCwFiYWnU2lDBzkBx24ROd/D7CavlBHBDUU6vvoeX6mtJLm0UcBN\nHZX/rLmVlqS4hWn79e6F+lkB9/+LntizVRb57g==\n",
"date": 1350968439, "file-type": 1}
--Boundary_1_13198090_1360147081930
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 559
25| Manage Import Resource
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
PUT /signatureset/import/manual
Request Parameters
Payload Request Parameters:
Details of BodyPart[0]:
560 McAfee Network Security Platform 10.1.x Manager API Reference Guide
25| Manage Import Resource
Details of BodyPart[1]:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/signatureset/import/manual
Payload:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 561
25| Manage Import Resource
NSM-SDK-API: QjUzNDQzMjNCNUQ2NkEzQjc4Mzc5REMxRjMxMDg0OTE6MQ==
Accept: application/vnd.nsm.v1.0+json
Content-Type: multipart/form-data; boundary=Boundary_1_17241377_1362484380857
MIME-Version: 1.0
User-Agent: Java/1.6.0_25
Host: localhost:8888
Connection: keep-alive
Content-Length: 15956464
--Boundary_1_17241377_1362484380857
Content-Type: application/json
{"fileName":"siganturesets_sdkapi","type":"JAR"}
--Boundary_1_17241377_1362484380857
Content-Type: application/octet-stream
ÒrÝ?ü0¥ÿ<ˆ}c,¢eXœ^:4 JhÍ2µ�rDYñÇÚd¶/¿í�F~ ÆIc§¼éá©ÿ_8Öø« C6Ô654îÞg‘J6?x‚*T2¡qhã4ÎÅVµ¬Gƒo9ŸCÒª
„í¹Ì —Áë&1¹ì,Ú‹yì^î‘Vö5U.kÝ$±Ñ g§zï0�wÌ [:…œ`Žíì’DŒ¾¸xŒ7è�L“t"á}ñÕùA‡B6W¦P!;Ð?
j*;G¾=X¦Š1s(�ì_œ8•¯Ð"®ƒMîQ,®UÉÔ`7»©2xN£o†¾$h;ÕeÆÄŸ0ÀÑĦûNü,1”1Sõ±œ'n¨$èŒ`I¤@ã¥?$ˆhé_gÙÎ�4L[gàÏ©:•ŒÔ òH
‰KÃïÃÒ"ÑÆ*¼²žØ|r-Þ„”¶K¥*¾¬�k}ddZ¡�ßÔ ¥dK9¥Ð¾ýÎk“{Oj�- ¾€ýb3ÔÏ&«PƒTF âê¡‚4Â{0ä!ÈÝ]ðä[”
¿1•!;d³_
--Boundary_1_17241377_1362484380857--
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
2 400 3002 Signature set supports .ivu and .jar file formats
3 400 3004 Specified signature set version is not supported or EMS already has
this update version
Resource URL
PUT /devicesoftware/import/manual
562 McAfee Network Security Platform 10.1.x Manager API Reference Guide
25| Manage Import Resource
Request Parameters
Payload Request Parameters:
Details of BodyPart[0]:
Details of BodyPart[1]:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 563
25| Manage Import Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/devicesoftware/import/manual
Payload:
NSM-SDK-API: QjUzNDQzMjNCNUQ2NkEzQjc4Mzc5REMxRjMxMDg0OTE6MQ==
Accept: application/vnd.nsm.v1.0+json
Content-Type: multipart/form-data; boundary=Boundary_1_17241377_1362484380857
MIME-Version: 1.0
User-Agent: Java/1.6.0_25
Host: localhost:8888
Connection: keep-alive
Content-Length: 15956464
--Boundary_1_17241377_1362484380857
Content-Type: application/json
{"fileName":"software_sdkapi","type":"JAR"}
--Boundary_1_17241377_1362484380857
Content-Type: application/octet-stream
ÒrÝ?ü0¥ÿ<ˆ}c,¢eXœ^:4 JhÍ2µ�rDYñÇÚd¶/¿í�F~ ÆIc§¼éá©ÿ_8Öø« C6Ô654îÞg‘J6?x‚*T2¡qhã4ÎÅVµ¬Gƒo9ŸCÒª
„í¹Ì —Áë&1¹ì,Ú‹yì^î‘Vö5U.kÝ$±Ñ g§zï0�wÌ [:…œ`Žíì’DŒ¾¸xŒ7è�L“t"á}ñÕùA‡B6W¦P!;Ð?
j*;G¾=X¦Š1s(�ì_œ8•¯Ð"®ƒMîQ,®UÉÔ`7»©2xN£o†¾$h;ÕeÆÄŸ0ÀÑĦûNü,1”1Sõ±œ'n¨$èŒ`I¤@ã¥?$ˆhé_gÙÎ�4L[gàÏ©:•ŒÔ òH
‰KÃïÃÒ"ÑÆ*¼²žØ|r-Þ„”¶K¥*¾¬�k}ddZ¡�ßÔ ¥dK9¥Ð¾ýÎk“{Oj�- ¾€ýb3ÔÏ&«PƒTF âê¡‚4Â{0ä!ÈÝ]ðä[”
¿1•!;d³_
--Boundary_1_17241377_1362484380857--
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
564 McAfee Network Security Platform 10.1.x Manager API Reference Guide
25| Manage Import Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /devicesoftware/versions
Request Parameters
None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 565
25| Manage Import Resource
Example
Request
GET https://<NSM_IP>/sdkapi/devicesoftware/versions
Response
566 McAfee Network Security Platform 10.1.x Manager API Reference Guide
25| Manage Import Resource
{
"downloadedVersions": [
{
"model": "IPS-NS5100",
"versions": [
"10.1.5.75"
]
},
{
"model": "IPS-NS9200",
"versions": [
"10.1.5.75"
]
}
],
"availableVersions": [
{
"model": "M-8000",
"versions": [
{
“version”: “9.1.3.18”,
“releaseDate”: “10-Oct-2020”,
“fileSize”: “59.79 MB”,
“isFIPSCompliant”: false
}…
]
},….
}
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
PUT /gam/import/manual
Request Parameters
Payload Request Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 567
25| Manage Import Resource
Details of BodyPart[0]:
Details of BodyPart[1]:
File Gateway Anti-Malware engine data input stream ByteArrayInput Stream Yes
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
568 McAfee Network Security Platform 10.1.x Manager API Reference Guide
25| Manage Import Resource
Example
Request
PUT https://<NSM_IP>/sdkapi/gam/import/manual
Payload:
NSM-SDK-API: QjUzNDQzMjNCNUQ2NkEzQjc4Mzc5REMxRjMxMDg0OTE6MQ==
Accept: application/vnd.nsm.v1.0+json
Content-Type: multipart/form-data; boundary=Boundary_1_17241377_1362484380857
MIME-Version: 1.0
User-Agent: Java/1.6.0_25
Host: localhost:8888
Connection: keep-alive
Content-Length: 15956464
--Boundary_1_17241377_1362484380857
Content-Type: application/json
{"fileName":"software_sdkapi","type":"JAR"}
--Boundary_1_17241377_1362484380857
Content-Type: application/octet-stream
//file data input stream
--Boundary_1_17241377_1362484380857--
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
2 400 3007 Gateway Anti-Malware update supports only UPD file format
Resource URL
PUT /devicesoftware/import/automatic
McAfee Network Security Platform 10.1.x Manager API Reference Guide 569
25| Manage Import Resource
Request Parameters
Payload request parameters:
model Device model for which the download is done String Yes
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
PUT https://<NSM_IP>/sdkapi/ devicesoftware/import/automatic
Request
Payload:
{
‘model’ : ‘M-3050’,
‘version’ : ‘9.1.5.9’
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
570 McAfee Network Security Platform 10.1.x Manager API Reference Guide
25| Manage Import Resource
HTTP Error
S.No Code SDK API errorId SDK API errorMessage
4 400 3010 Software version provided does not exist for the Sensor : ( <model>.
<version>)
Resource URL
GET /devicesoftware/versions
Request Parameters
None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
availableVersions All device software available in the server for download Array
McAfee Network Security Platform 10.1.x Manager API Reference Guide 571
25| Manage Import Resource
Example
PUT https://<NSM_IP>/sdkapi/devicesoftware/versions
Response
572 McAfee Network Security Platform 10.1.x Manager API Reference Guide
25| Manage Import Resource
{
"downloadedVersions": [
{
"model": "IPS-NS5100",
"versions": [
"10.1.5.75"
]
},
{
"model": "IPS-NS9200",
"versions": [
"10.1.5.75"
]
}
],
"availableVersions": [
{
"model": "M-8000",
"versions": [
{
“version”: “9.1.3.18”,
“releaseDate”: “10-Oct-2020”,
“fileSize”: “59.79 MB”,
“isFIPSCompliant”: false
}…
]
},….
}
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 573
26| Malware Archive Resource
Resource URL
PUT /malwarearchive/action
Request Parameters
Payload Request Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/malwarearchive/action
Payload:
{
"fileHash":" 0bea3f79a36b1f67b2ce0f595524c77c",
"action":"ALLOW"
}
Response
574 McAfee Network Security Platform 10.1.x Manager API Reference Guide
26| Malware Archive Resource
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /malwarearchive/download/<filehash>
Request Parameters
Payload Request Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
McAfee Network Security Platform 10.1.x Manager API Reference Guide 575
26| Malware Archive Resource
GET https://%3CNSM_IP%3E/sdkapi/malwarearchive/download/0bea3f79a36b1f67b2ce0f595524c77c
Response
{
"byteStream": "TVqOAQEAAAAEAAAA//
8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIHJlcXV
pcmVzIE1pY3Jvc29mdCBXaW5kb3dzLg0KJAAAAAAAAABORQU8JgEtAAAAAAABgwMAABQAALIWAgAAAAAAAwADAE8AQABYAOwADQETAdMBAAAH
AAQAAAACCCQAdhYAAAoDJgBiyVAdYsnoDNtQUB3bUAISKElxDShJBAAFgAQAAAAAAJoWCAAwHGWAAAAAAKIWGg”
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /malwarearchive/list
Request Parameters
None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of ArchiveFileList:
576 McAfee Network Security Platform 10.1.x Manager API Reference Guide
26| Malware Archive Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/malwarearchive/list
Response
{
"archiveFileDetails": [
{
"fileHashValue": "0bea3f79a36b1f67b2ce0f595524c77c",
"fileSize": 94784,
"fileType": "Executables",
"creationTime": "Tue Dec 18 21:35:13 IST 2012"
},
{
"fileHashValue": "4498f4c53d122c463861bbd3e8b903f7",
"fileSize": 91648,
"fileType": "Office Files",
"creationTime": "Tue Dec 18 21:40:12 IST 2012"
},
{
"fileHashValue": "d64c92b4a49d7ff50d8e61ee4ea42ee2",
"fileSize": 318976,
"fileType": "Office Files",
"creationTime": "Tue Dec 18 21:45:12 IST 2012"
},
{
"fileHashValue": "0d6054cbbe0ae053fde006f25a0ead61",
"fileSize": 1561,
"fileType": "Compressed Files",
"creationTime": "Tue Dec 18 21:45:12 IST 2012"
}
]
}
Error Information
Following error code is returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 577
26| Malware Archive Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
PUT /malwarearchive?fileHash=
Note
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/malwarearchive?filehash=0bea3f79a36b1f67b2ce0f595524c77c
Response
578 McAfee Network Security Platform 10.1.x Manager API Reference Guide
26| Malware Archive Resource
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 579
27| Passive Device Profiling
Resource URL
GET /domain/<domain_id>/passivedeviceprofiling
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
580 McAfee Network Security Platform 10.1.x Manager API Reference Guide
27| Passive Device Profiling
hostInactivityTimerInHrs Specifies the duration after which information for a device is considered Number
invalid
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/domain/0/passivedeviceprofiling
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 581
27| Passive Device Profiling
{
"inheritSettingsfromIPSSettingsNode": false,
"passiveDeviceProfilingSetting":
{
"profilingTechniques":
{
"DHCPEnableStatus": true,
"TCPEnableStatus": true,
"HTTPEnableStatus": false
},
"profileExpiration":
{
"duration": 30,
"unit": "MINUTES"
},
"hostInactivityTimerInHrs": 2
}
}
Error Information
Following error code is returned by this URL:
Resource URL
PUT /domain/<domain_id>/passivedeviceprofiling
Request Parameters
URL Parameters:
Payload Parameters:
582 McAfee Network Security Platform 10.1.x Manager API Reference Guide
27| Passive Device Profiling
hostInactivityTimerInHrs Specifies the duration after which information for a device Number Yes
is considered invalid
McAfee Network Security Platform 10.1.x Manager API Reference Guide 583
27| Passive Device Profiling
unit Profile expiration duration unit, can be "MINUTES" / "HOURS" String Yes
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/domain/0/passivedeviceprofiling
Payload
{
"inheritSettingsfromIPSSettingsNode": true,
"passiveDeviceProfilingSetting":
{
"profilingTechniques":
{
"DHCPEnableStatus": true,
"TCPEnableStatus": true,
"HTTPEnableStatus": false
},
"profileExpiration":
{
"duration": 30,
"unit": "MINUTES"
},
"hostInactivityTimerInHrs": 2
}
}
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
584 McAfee Network Security Platform 10.1.x Manager API Reference Guide
27| Passive Device Profiling
4 400 3303 Profile expiration value cannot be greater than host inactivity timer
Resource URL
GET /sensor/<sensor_id>/passivedeviceprofiling
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 585
27| Passive Device Profiling
bindIPAddressDetails Object that contains monitoring port details for receiving Object
DHCP traffic
interfaceStatusList List of interfaces with enable status of passive device profiling Object
setting in inbound/outbound direction
hostInactivityTimerInHrs Specifies the duration after which information for a device is considered Number
invalid
586 McAfee Network Security Platform 10.1.x Manager API Reference Guide
27| Passive Device Profiling
designatedPort Monitoring port of a Sensor to receive a DHCP traffic with a relay agent String
subinterfaceStatusList List of sub-interfaces in a particular interface with enable status of passive Object
device profiling in inbound/outbound direction
McAfee Network Security Platform 10.1.x Manager API Reference Guide 587
27| Passive Device Profiling
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/sensor/1001/passivedeviceprofiling
Response
588 McAfee Network Security Platform 10.1.x Manager API Reference Guide
27| Passive Device Profiling
{
"inheritSettingsfromIPSSettingsNode": true,
"passiveDeviceProfilingSetting":
{
"profilingTechniques":
{
"DHCPEnableStatus": false,
"TCPEnableStatus": false,
"HTTPEnableStatus": true
},
"profileExpiration":
{
"duration": 10,
"unit": "HOURS"
},
"hostInactivityTimerInHrs": 11
},
"bindIPForCopiedDHCPTraffic": true,
"bindIPAddressDetails":
{
"designatedPort": "4A",
"portIPAddress": "100.100.100.10",
"networkMask": "255.255.0.0",
"defaultGateway": "100.100.100.1",
"vlanID": "10"
},
"PassiveDeviceProfilingStateForSensor": "ENABLE_DEVICEPROFILING_FOR_ENTIRE_DEVICE",
"interfaceStatusList":
[
{
"interfaceId": 117,
"interfaceName": "3B",
"enableInbound": true,
"enableOutbound": true
},
{
"interfaceId": 105,
"interfaceName": "1A-1B",
"enableInbound": true,
"enableOutbound": true,
"subinterfaceStatusList":
[
{
"subInterfaceId": 118,
"subInterfaceName": "TestVLAN1",
"enableInbound": true,
"enableOutbound": true
}
]
},
{
"interfaceId": 104,
"interfaceName": "2A-2B",
"enableInbound": true,
"enableOutbound": true
},
{
"interfaceId": 103,
"interfaceName": "3A",
"enableInbound": true,
"enableOutbound": true
},
{
"interfaceId": 102,
"interfaceName": "4A-4B",
"enableInbound": true,
"enableOutbound": true
}
]
}
Error Information
Following error code is returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 589
27| Passive Device Profiling
Resource URL
PUT /sensor/<sensor_id>/passivedeviceprofiling
Request Parameters
URL Parameters:
Payload Parameters:
590 McAfee Network Security Platform 10.1.x Manager API Reference Guide
27| Passive Device Profiling
hostInactivityTimerInHrs Specifies the duration after which information for a device Number Yes
is considered invalid
unit Profile expiration duration unit, can be "MINUTES" / "HOURS" String Yes
McAfee Network Security Platform 10.1.x Manager API Reference Guide 591
27| Passive Device Profiling
designatedPort Monitoring port of a Sensor to receive a DHCP traffic with a relay String Yes
agent
592 McAfee Network Security Platform 10.1.x Manager API Reference Guide
27| Passive Device Profiling
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/sensor/1001/passivedeviceprofiling
Payload
McAfee Network Security Platform 10.1.x Manager API Reference Guide 593
27| Passive Device Profiling
{
"inheritSettingsfromIPSSettingsNode": true,
"passiveDeviceProfilingSetting":
{
"profilingTechniques":
{
"DHCPEnableStatus": false,
"TCPEnableStatus": false,
"HTTPEnableStatus": true
},
"profileExpiration":
{
"duration": 10,
"unit": "HOURS"
},
"hostInactivityTimerInHrs": 11
},
"bindIPForCopiedDHCPTraffic": true,
"bindIPAddressDetails":
{
"designatedPort": "4A",
"portIPAddress": "100.100.100.10",
"networkMask": "255.255.0.0",
"defaultGateway": "100.100.100.1",
"vlanID": "10"
},
"PassiveDeviceProfilingStateForSensor": "ENABLE_DEVICEPROFILING_FOR_ENTIRE_DEVICE",
"interfaceStatusList":
[
{
"interfaceId": 117,
"interfaceName": "3B",
"enableInbound": true,
"enableOutbound": true
},
{
"interfaceId": 105,
"interfaceName": "1A-1B",
"enableInbound": true,
"enableOutbound": true,
"subinterfaceStatusList":
[
{
"subInterfaceId": 118,
"subInterfaceName": "TestVLAN1",
"enableInbound": true,
"enableOutbound": true
}
]
},
{
"interfaceId": 104,
"interfaceName": "2A-2B",
"enableInbound": true,
"enableOutbound": true
},
{
"interfaceId": 103,
"interfaceName": "3A",
"enableInbound": true,
"enableOutbound": true
},
{
"interfaceId": 102,
"interfaceName": "4A-4B",
"enableInbound": true,
"enableOutbound": true
}
]
}
Response
594 McAfee Network Security Platform 10.1.x Manager API Reference Guide
27| Passive Device Profiling
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
4 400 3303 Profile expiration value cannot be greater than host inactivity timer
McAfee Network Security Platform 10.1.x Manager API Reference Guide 595
28| Alert Exception Resource
Resource URL
POST /alertexception
Request Parameters
Payload Request Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://%3CNSM_IP%3E/sdkapi/alertexception
596 McAfee Network Security Platform 10.1.x Manager API Reference Guide
28| Alert Exception Resource
{
"attackId" : "0x42C03A00",
"sourceIp" : "2.2.2.2",
"destinationIp" : "Any",
"expiration" : "ONE_DAY"
}
Response
{
"createdResourceId":120
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
5 400 4001 Source and destination can contain either IPV4/IPV6, but not both
simultaneously
9 400 4006 Attack id, source and destination IP, all the three can't be any
McAfee Network Security Platform 10.1.x Manager API Reference Guide 597
28| Alert Exception Resource
Resource URL
GET /alertexception /<alert_exception_id>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/alerexception/106
Response
598 McAfee Network Security Platform 10.1.x Manager API Reference Guide
28| Alert Exception Resource
{
"alertId" : 106,
"attackId" : "0x40500100",
"sourceIp" : "192.168.215.57",
"destinationIp" : "172.16.233.11",
"expiration" : "2013-03-06 14:03:44.0",
"lastModified" : "2013-03-05 14:03:44.0"
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /alertexception /list
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of alertExceptionDescriptorList:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 599
28| Alert Exception Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/alerexception/list
Response
600 McAfee Network Security Platform 10.1.x Manager API Reference Guide
28| Alert Exception Resource
{
"alertExceptionDescriptor" : [{
"alertId" : 102,
"attackId" : "0x42c01800",
"sourceIp" : "116.232.112.112",
"destinationIp" : "95.124.86.145",
"expiration" : "2013-02-27 13:51:49.0",
"lastModified" : "2013-02-26 13:51:49.0"
}, {
"alertId" : 103,
"attackId" : "0x42c03a00",
"sourceIp" : "4.41.149.92",
"destinationIp" : "1.134.102.228",
"expiration" : "2013-02-27 14:06:18.0",
"lastModified" : "2013-02-26 14:43:08.0"
}, {
"alertId" : 104,
"attackId" : "0x42c03a00",
"sourceIp" : "4.41.149.92",
"destinationIp" : "1.134.102.228",
"expiration" : "2013-02-27 14:51:56.0",
"lastModified" : "2013-02-26 20:43:06.0"
}, {
"alertId" : 105,
"attackId" : "0x40300200",
"sourceIp" : "121.251.148.6",
"destinationIp" : "64.54.175.34",
"expiration" : "2013-02-27 20:47:52.0",
"lastModified" : "2013-02-27 14:16:49.0"
}, {
"alertId" : 106,
"attackId" : "0x40500100",
"sourceIp" : "192.168.215.57",
"destinationIp" : "172.16.233.11",
"expiration" : "2013-03-06 14:03:44.0",
"lastModified" : "2013-03-05 14:03:44.0"
}
]
}
Error Information
Resource URL
GET /alertexception /<alert_exception_id>
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 601
28| Alert Exception Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/alerexception/106
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
602 McAfee Network Security Platform 10.1.x Manager API Reference Guide
29| Global Auto Acknowledgment
Resource URL
PUT /globalautoack
Request Parameters
URL Parameters:
N/A
Payload Parameters:
GlobalAutoAckElem Object that contains the details of the field to be sent Object
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 603
29| Global Auto Acknowledgment
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/globalautoack
Payload
{
"enableAutoAlertAck": true,
“applicableTo": “ALL_ALERTS”,
"severity": "LOW_3"
}
Response
{
"status": 1
}
Error Information
N/A
Resource URL
GET /globalautoack
Request Parameters
URL Parameters:
N/A
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
604 McAfee Network Security Platform 10.1.x Manager API Reference Guide
29| Global Auto Acknowledgment
GlobalAutoAckElem Object that contains the details of the field to be sent Object
NON_RFSB_ALERTS_ONLY/ALL_ALERTS
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/globalautoack
Response
{
"enableAutoAlertAck": true,
"applicableTo": "ALL_ALERTS",
"severity": "LOW_3"
}
Error Information
N/A
Resource URL
GET /globalautoack/attack/<search_string>
McAfee Network Security Platform 10.1.x Manager API Reference Guide 605
29| Global Auto Acknowledgment
Request Parameters
URL Parameters:
N/A
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/globalautoack/attacks/malware
Response
{
[
“attackId”:”0x23323223”
“attackName”:“malwareBlocklist”
]
}
Error Information
N/A
Resource URL
POST /globalautoack/rules
Request Parameters
N/A
606 McAfee Network Security Platform 10.1.x Manager API Reference Guide
29| Global Auto Acknowledgment
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://<NSM_IP>/sdkapi/globalautoack/rules
Response
{
"autoAckRules":
[
{
"attackId":"0x45d29400",
"ruleId":"154",
"attackName":"Aasync: Aasync LIST Command Response Filename Handling Overflow",
"targetEndpoint":"1.12.4.4",
"attackerEndpoint":"1.1.1.1",
"expiration":"2016-01-08 00:00:00.0",
"lastModifiedBy":"admin",
"lastModifiedDate":"2016-01-07 14:20:03.0",
"comment":"adssfsd"
}
]
}
Error Information
N/A
McAfee Network Security Platform 10.1.x Manager API Reference Guide 607
29| Global Auto Acknowledgment
Resource URL
POST /globalautoack/rules/<rule_id>
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://<NSM_IP>/sdkapi/globalautoack/rules/154
Response
608 McAfee Network Security Platform 10.1.x Manager API Reference Guide
29| Global Auto Acknowledgment
{
"autoAckRules":
[
{
"attackId":"0x45d29400",
"ruleId":"154",
"attackName":"Aasync: Aasync LIST Command Response Filename Handling Overflow",
"targetEndpoint":"1.12.4.4",
"attackerEndpoint":"1.1.1.1",
"expiration":"2016-01-08 00:00:00.0",
"lastModifiedBy":"admin",
"lastModifiedDate":"2016-01-07 14:20:03.0",
"comment":"adssfsd"
}
]
}
Error Information
N/A
Resource URL
POST /globalautoack/rules
Request Parameters
URL Parameters:
N/A
Payload Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 609
29| Global Auto Acknowledgment
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://<NSM_IP>/sdkapi/globalautoack/rules
Payload
{
"attackId":"0x45d29400",
"targetEndpoint":"1.12.4.4",
"attackerEndpoint":"1.1.1.1",
"expiration":"2016-01-08 00:00:00.0",
"comment":"adssfsd"
}
Response
{
"status": 1
}
Error Information
N/A
Resource URL
POST /globalautoack/rules/<rule_id>
Request Parameters
URL Parameters:
610 McAfee Network Security Platform 10.1.x Manager API Reference Guide
29| Global Auto Acknowledgment
Payload Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/globalautoack/rules/154
Payload
McAfee Network Security Platform 10.1.x Manager API Reference Guide 611
29| Global Auto Acknowledgment
{
"attackId":"0x45d29400",
"targetEndpoint":"1.12.4.4",
"attackerEndpoint":"1.1.1.1",
"expiration":"2016-01-08 00:00:00.0",
"comment":"adssfsd"
}
Response
{
"status": 1
}
Error Information
N/A
612 McAfee Network Security Platform 10.1.x Manager API Reference Guide
30| Name Resolution Resource
Resource URL
PUT /domain/<domain_id>/nameresolution
Request Parameters
URL Parameters:
Payload Parameters:
DNSDetailsElement Object that contains the details of the field to be sent Object
primaryDNSServer Primary DNS server IP, mandatory when name resolution is String No
enabled
McAfee Network Security Platform 10.1.x Manager API Reference Guide 613
30| Name Resolution Resource
refreshIntervalInHours Refresh interval in hours, applicable only for NTBA device Number No
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/domain/0/nameresolution
Payload
{
"inheritFromIPSSetting": false,
"enableNameResolution": true,
"dnsSuffixList":
[
"mcafee.com",
"google.com"
],
"primaryDNSServer": "172.16.230.211",
"secondaryDNSServer": "172.16.232.72",
"refreshIntervalInHours": 120
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
614 McAfee Network Security Platform 10.1.x Manager API Reference Guide
30| Name Resolution Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /domain/<domain_id>/nameresolution
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 615
30| Name Resolution Resource
primaryDNSServer Primary DNS server IP, mandatory when name resolution is enabled String
refreshIntervalInHours Refresh interval in hours, applicable only for NTBA device Number
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/domain/0/nameresolution
Response
{
"inheritFromIPSSetting": false,
"enableNameResolution": true,
"dnsSuffixList":
[
"mcafee.com",
"google.com"
],
"primaryDNSServer": "172.16.230.211",
"secondaryDNSServer": "172.16.232.72",
"refreshIntervalInHours": 120
}
Error Information
Following error code is returned by this URL:
616 McAfee Network Security Platform 10.1.x Manager API Reference Guide
30| Name Resolution Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
PUT /sensor/<sensor_id>/nameresolution
Request Parameters
URL Parameters:
Payload Parameters:
DNSDetailsElement Object that contains the details of the field to be sent Object
McAfee Network Security Platform 10.1.x Manager API Reference Guide 617
30| Name Resolution Resource
primaryDNSServer Primary DNS server IP, mandatory when name resolution is String No
enabled
refreshIntervalInHours Refresh interval in hours, applicable only for NTBA device Number No
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/sensor/1001/nameresolution
Payload
{
"inheritFromIPSSetting": false,
"enableNameResolution": true,
"dnsSuffixList":
[
"mcafee.com",
"google.com"
],
"primaryDNSServer": "172.16.230.211",
"secondaryDNSServer": "172.16.232.72",
"refreshIntervalInHours": 120
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
618 McAfee Network Security Platform 10.1.x Manager API Reference Guide
30| Name Resolution Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /sensor/<sensor_id>/nameresolution
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 619
30| Name Resolution Resource
primaryDNSServer Primary DNS server IP, mandatory when name resolution is enabled String
refreshIntervalInHours Refresh interval in hours, applicable only for NTBA device Number
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/sensor/1001/nameresolution
Response
{
"inheritFromIPSSetting": false,
"enableNameResolution": true,
"dnsSuffixList":
[
"mcafee.com",
"google.com"
],
"primaryDNSServer": "172.16.230.211",
"secondaryDNSServer": "172.16.232.72",
"refreshIntervalInHours": 0
}
Error Information
Following error code is returned by this URL:
620 McAfee Network Security Platform 10.1.x Manager API Reference Guide
30| Name Resolution Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 621
31| Device Resource
Device Resource
Add Device
This URL adds a new device in the specified domain.
Resource URL
POST /domain/<domain_id>/device
Request Parameters
Payload Parameters:
deviceId Unique device id, not required for POST String Yes
Details of IPSNACSensor:
622 McAfee Network Security Platform 10.1.x Manager API Reference Guide
31| Device Resource
Details of virtualHIPSensor:
Details of NTBAAppliance:
Details of loadBalancer:
model Load balancer model. Values can be XC-240 or XC-640 String Yes
McAfee Network Security Platform 10.1.x Manager API Reference Guide 623
31| Device Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://%3CNSM_IP%3E/sdkapi/domain/0/device
{
"deviceName": "Load_BALANCER",
"deviceType": {
"virtualHIPSensor": null,
"loadBalancer": {
"ipAddress": "1.1.1.1",
"SNMPv3User": "SNMP",
"authenticationPassword": "admin123",
"privacyPassword": "admin123"
"model": "XC-240"
}
},
"contactInformation": "Contact_Infor",
"location": "Location",
"LastModifiedTime": "Mon Jul 22 20:05:00 IST 2013"
}
Response
{
"createdResourceId":1006
}
Error Information
Following error codes are returned by this URL:
HTTP Error
S.No Code SDK API errorId SDK API errorMessage
624 McAfee Network Security Platform 10.1.x Manager API Reference Guide
31| Device Resource
HTTP Error
S.No Code SDK API errorId SDK API errorMessage
11 400 4613 Name must contain only letters, numerical, dot, hyphens or
underscore
16 400 4618 Location must contain only letters, numerical, dot, hyphens or
underscore
18 400 4620 Location must contain only letters, numerical, dot, hyphens or
underscore
McAfee Network Security Platform 10.1.x Manager API Reference Guide 625
31| Device Resource
Get Device
This URL gets the device details.
Resource URL
GET /domain/<domain_id>/device/<device_id>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of IPSNACSensor:
626 McAfee Network Security Platform 10.1.x Manager API Reference Guide
31| Device Resource
Details of virtualHIPSensor:
Details of NTBAAppliance:
Details of loadBalancer:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 627
31| Device Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/device/1005
Response
{
"deviceId": 1005,
"deviceName": "NTBA_APPLIANCEs",
"deviceType": {
"virtualHIPSensor": null,
"NTBAAppliance": {
"sharedSecret": "admin123",
"confirmSharedSecret": "admin123"
},
"loadBalancer": null
},
"contactInformation": "Contact_Infor",
"location": "Locaiton",
"LastModifiedTime": "2013-07-22 20:04:17.0"
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Update Device
628 McAfee Network Security Platform 10.1.x Manager API Reference Guide
31| Device Resource
Resource URL
PUT /domain/<domain_id>/device/<device_id>
Request Parameters
URL Parameters:
deviceId Unique device id, not required for POST String Yes
Details of IPSNACSensor:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 629
31| Device Resource
Details of virtualHIPSensor:
Details of NTBAAppliance:
Details of loadBalancer:
630 McAfee Network Security Platform 10.1.x Manager API Reference Guide
31| Device Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/domain/0/device/1006
{
"deviceId": 1006,
"deviceName": "Load_BALANCER",
"deviceType": {
"virtualHIPSensor": null,
"loadBalancer": {
"ipAddress": "1.1.1.1",
"SNMPv3User": "SNMP",
"authenticationPassword": "admin123",
"privacyPassword": "admin123"
}
},
"contactInformation": "ContactInform",
"location": "Location",
"LastModifiedTime": "Mon Jul 22 20:05:00 IST 2013"
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
HTTP Error
S.No Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 631
31| Device Resource
HTTP Error
S.No Code SDK API errorId SDK API errorMessage
14 400 4613 Name must contain only letters, numerical, dot, hyphens or
underscore
19 400 4618 Location must contain only letters, numerical, dot, hyphens or
underscore
632 McAfee Network Security Platform 10.1.x Manager API Reference Guide
31| Device Resource
HTTP Error
S.No Code SDK API errorId SDK API errorMessage
21 400 4620 Location must contain only letters, numerical, dot, hyphens or
underscore
Delete Device
This URL deletes the specified device.
Resource URL
GET /domain/<domain_id>/device/<device_id>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/domain/0/device/120
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 633
31| Device Resource
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /domain/<domainId>/device
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of alertExceptionDescriptorList:
634 McAfee Network Security Platform 10.1.x Manager API Reference Guide
31| Device Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/domain/0/device
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 635
31| Device Resource
{
"DeviceResponseList": [
{
"deviceId": 1010,
"deviceName": "LB",
"deviceType": "LOAD_BALANCER",
"updatingMode": "UNKNOWN"
},
{
"deviceId": 1002,
"deviceName": "M-2850",
"deviceType": "IPS_SENSOR",
"updatingMode": "ONLINE",
"contactInformation": "",
"location": ""
},
{
"deviceId": 1001,
"deviceName": "M-2950",
"deviceType": "IPS_SENSOR",
"updatingMode": "ONLINE"
},
{
"deviceId": 1003,
"deviceName": "M-3050",
"deviceType": "IPS_SENSOR",
"updatingMode": "ONLINE"
},
{
"deviceId": 1009,
"deviceName": "M-8000-P",
"deviceType": "IPS_SENSOR",
"updatingMode": "ONLINE"
},
{
"deviceId": 1008,
"deviceName": "M8000-34",
"deviceType": "IPS_SENSOR",
"updatingMode": "ONLINE"
},
{
"deviceId": 1004,
"deviceName": "NTBA-Regression",
"deviceType": "NTBA_APPLIANCE",
"updatingMode": "UNKNOWN"
}
]
}
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
636 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
NTBA Resource
Get NTBA Monitors
This URL gets the available NTBA monitors.
Resource URL
GET /ntbamonitors
Request Parameters
N/A
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of NTBA:
nbaId Id String
McAfee Network Security Platform 10.1.x Manager API Reference Guide 637
32| NTBA Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors
Response
{
"ntbaMonitors":[{
"nbaId":1003,"name":"T-100VM",
"serialNumber":"T0020121211165440","softwareVersion":"8.0.4.5",
"ipAddress":"172.16.232.162","LastSignatureUpdateTime":"2013-08-14 19:14:37.0",
"lastRebootTime":"2013-08-14 19:14:37.0"}]
}
Error Information
Resource URL
GET /ntbamonitors/{ntbaId}/hoststhreatfactor? TopN=<TopN>
&timePeriod=<timePeriod>&startTime=<startTime>&endTime=<endTime>
Request Parameters
• LAST_MINUTE
• LAST_10_MINUTES
• LAST_HOUR
• LAST_24_HOURS
• CUSTOM
638 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of NTBA:
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/hoststhreatfactor?timePeriod=CUSTOM&startTime=2012-
APR-20%2012:15&endTime=2012-APR-20%2012:11
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 639
32| NTBA Resource
{
"hostsThreatFactor" : [{
"hostIP" : "10.100.16.125",
"zone" : "Default Inside Zone",
"threatFactor" : "10.0",
"threats" : "Illegal Reputation, BOT: Potential Bot Detected - High Confidence
Heuristics Correlation, HTTP: Executable File in PDF File Detected, BOT: Potential Bot Detected - Medium
Confidence Heuristics Correlation "
}, {
"hostIP" : "18.16.24.22",
"zone" : "Default Inside Zone",
"threatFactor" : "10.0",
"threats" : "Illegal Reputation "
}, {
"hostIP" : "80.198.199.175",
"zone" : "Default Inside Zone",
"threatFactor" : "10.0",
"threats" : "Illegal Reputation "
}
]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ntbamonitors/{ntbaId}/topurls? TopN=<TopN> &timePeriod=<timePeriod>&startTime=<startTime>&endTime=<endTime>
640 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
Request Parameters
• LAST_MINUTE
• LAST_10_MINUTES
• LAST_HOUR
• LAST_24_HOURS
• CUSTOM
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of topURLsOnNetwork:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 641
32| NTBA Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/%20topurls?timePeriod=CUSTOM&startTime=2012-
APR-20%2012:15&endTime=2012-APR-20%2012:11
Response
{"topURLsOnNetwork":
[
{
"reputation":"Minimal Risk",
"url":"twitter.com",
"urlId":"8390917",
"category":"Blogs/Wiki",
"categoryId":898,
"country":"United States",
"count":6
}
]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
642 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ntbamonitors/{ntbaId}/topzoneurls/<zoneid>
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of topURLsOnNetwork:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 643
32| NTBA Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/%20topzoneurls/9898
Response
{"topURLsOnNetwork":
[
{
"reputation":"Minimal Risk",
"url":"twitter.com",
"urlId":"8390917",
"category":"Blogs/Wiki",
"categoryId":898,
"country":"United States",
"count":6
}
]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
644 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ntbamonitors/{ntbaId}/tophosturls/<hostId >
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of topURLsOnNetwork:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 645
32| NTBA Resource
Example
Request
GEThttps://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/%20tophosturls/9
Response
{"topURLsOnNetwork":
[
{
"reputation":"Minimal Risk",
"url":"twitter.com",
"urlId":"8390917",
"category":"Blogs/Wiki",
"categoryId":898,
"country":"United States",
"count":6
}
]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
646 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ntbamonitors/{ntbaId}/topurlsbyreputation? TopN=<TopN>
&timePeriod=<timePeriod>&startTime=<startTime>&endTime=<endTime>
Request Parameters
• LAST_MINUTE
• LAST_10_MINUTES
• LAST_HOUR
• LAST_24_HOURS
• CUSTOM
McAfee Network Security Platform 10.1.x Manager API Reference Guide 647
32| NTBA Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of topURLsOnNetwork:
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/topurlsbyreputation?timePeriod=CUSTOM&startTime=2012-APR-20
Response
648 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
{
"topURLsOnNetwork":
[{
"reputation":"Minimal Risk",
"url":"twitter.com","urlId":"8390917",
"category":"Blogs/Wiki","country":"United States","count":6
}]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ntbamonitors/{ntbaId}/showurlactivity/{urlid}? TopN=<TopN>
&timePeriod=<timePeriod>&startTime=<startTime>&endTime=<endTime>
Request Parameters
McAfee Network Security Platform 10.1.x Manager API Reference Guide 649
32| NTBA Resource
• LAST_MINUTE
• LAST_10_MINUTES
• LAST_HOUR
• LAST_24_HOURS
• CUSTOM
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of urlActivities:
650 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/showurlactivity%20/8390917?timePeriod=CUSTOM&startTime=2012-
APR-20
Response
{"urlActivities":
[{
"srcEndpoint":"16843018",
"srcReputation":"Not Queried",
"srcZone":"Default Inside Zone",
"srcCountry":"---",
"destEndpoint":"16843017",
"destReputation":"Minimal Risk",
"destZone":"Default Outside Zone",
"destCountry":"Malaysia",
"action":"URL Accessed",
"lastAccessed":"2013-08-20 06:15:18"}
]
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 651
32| NTBA Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ntbamonitors/{ntbaId}/ topurlsbycategory? TopN=<TopN>
&timePeriod=<timePeriod>&startTime=<startTime>&endTime=<endTime>
Request Parameters
• LAST_MINUTE
• LAST_10_MINUTES
• LAST_HOUR
• LAST_24_HOURS
• CUSTOM
652 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of topURLsOnNetwork:
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/topurlsbycategory?timePeriod=CUSTOM&startTime=2012-APR-20
Response
{
"topURLsOnNetwork":
[{
"category":"Blogs/Wiki","categoryId":"188","count":15
}]
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 653
32| NTBA Resource
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ntbamonitors/{ntbaId}/ topurlsbycategory/<category_id>? TopN=<TopN>
&timePeriod=<timePeriod>&startTime=<startTime>&endTime=<endTime>
Request Parameters
• LAST_MINUTE
• LAST_10_MINUTES
• LAST_HOUR
• LAST_24_HOURS
654 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
• CUSTOM
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of topURLsOnNetwork:
Example
Request
McAfee Network Security Platform 10.1.x Manager API Reference Guide 655
32| NTBA Resource
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/topurlsbycategory/188?timePeriod=CUSTOM&startTime=2012-APR-20
Response
{
"topURLsOnNetwork":[{
"reputation":"Minimal Risk","url":"twitter.com","urlId":"8390917","category":"Blogs/Wiki","country":"United
States","count":6},{"reputation":"Minimal
Risk","url":"wikipedia.org","urlId":"10536655","category":"Education/Reference","country":"United
States","count":7}]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ntbamonitors/{ntbaId}/topfiles? TopN=<TopN> &timePeriod=<timePeriod>&startTime=<startTime>&endTime=<endTime>
656 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
Request Parameters
• LAST_MINUTE
• LAST_10_MINUTES
• LAST_HOUR
• LAST_24_HOURS
• CUSTOM
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of topFilesOnNetwork:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 657
32| NTBA Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/topfiles?timePeriod=CUSTOM&startTime=2012-APR-20
Response
{
"topFilesOnNetwork":[{
"file":"test.txt",
"fileId":8389181,
"count":2}]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
658 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
Resource URL
GET /ntbamonitors/{ntbaId}/topzonefiles/<zone_id
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of topFilesOnNetwork:
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/topzonefiles/9
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 659
32| NTBA Resource
{
"topFilesOnNetwork":[{
"file":"test.txt",
"fileId":8389181,
"count":2}]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ntbamonitors/{ntbaId}/ fileactivity/{fileid}? TopN=<TopN>
&timePeriod=<timePeriod>&startTime=<startTime>&endTime=<endTime>
660 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
Request Parameters
• LAST_MINUTE
• LAST_10_MINUTES
• LAST_HOUR
• LAST_24_HOURS
• CUSTOM
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of fileActivities:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 661
32| NTBA Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/fileactivity/8389181?timePeriod=CUSTOM&startTime=2012-
APR-20%2012:15&endTime=2012-APR-20%2012:11
Response
{“fileActivities”:[{
“srcEndpoint”:”16843018”,
“srcUser”:”—“,
“srcZone”:”Default Inside Zone”,
“destEndpoint”:”16843017”,
“destUser”:”—“,
“destZone”:”Default Outside Zone”,
“action”:”file upload”,
“lastAccessed”:”2013-08-20 06:15:18”}
]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
662 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ntbamonitors/{ntbaId}/topexthostsbyreputation? TopN=<TopN>
&timePeriod=<timePeriod>&startTime=<startTime>&endTime=<endTime>
Request Parameters
• LAST_MINUTE
• LAST_10_MINUTES
• LAST_HOUR
• LAST_24_HOURS
• CUSTOM
McAfee Network Security Platform 10.1.x Manager API Reference Guide 663
32| NTBA Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of topHostsOnNetwork:
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/%20topexthostsbyreputation?timePeriod=CUSTOM&startTime=2012-
APR-20%2012:15&endTime=2012-APR-20%2012:11
Response
664 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
{
"topHostsOnNetwork":[{
"reputation":"Unverified","hostIp":"11.11.10.60",
"hostId":4480240188,"zone":"Default Outside Zone",
"country":"United States","time":"2013-08-27 16:30:24"}]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ntbamonitors/{ntbaId}/newhosts? TopN=<TopN>
Request Parameters
McAfee Network Security Platform 10.1.x Manager API Reference Guide 665
32| NTBA Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of newHostsOnNetwork:
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/newhosts
Response
{
"newHostsOnNetwork":[{"
endpointIp":"10.10.10.60","hostId":62,"zone":"Default Inside Zone","lastSeen":"2013-08-27 16:32:48"}]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
666 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ntbamonitors/{ntbaId}/activehosts? TopN=<TopN>
&timePeriod=<timePeriod>&startTime=<startTime>&endTime=<endTime>
Request Parameters
• LAST_MINUTE
• LAST_10_MINUTES
• LAST_HOUR
• LAST_24_HOURS
• CUSTOM
McAfee Network Security Platform 10.1.x Manager API Reference Guide 667
32| NTBA Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/activehosts?timePeriod=CUSTOM&startTime=2012-
APR-20%2012:15&endTime=2012-APR-20%2012:11
Response
{
"activeHosts":[{
"hostId":11,"endpointIp":"1.1.1.10",
"zone":"Default Inside Zone","lastSeen":"2013-08-27 16:26:14"}]
}
668 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ntbamonitors/{ntbaId}/tophoststraffic? TopN=<TopN>
&startTime=<startTime>&endTime=<endTime>&direction=<direction>
Request Parameters
McAfee Network Security Platform 10.1.x Manager API Reference Guide 669
32| NTBA Resource
Bidirectional
Inbound
Outbound
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/tophoststraffic?startTime=2012-APR-20%2012:15&endTime=2012-
APR-20%2012:11
Response
670 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
{"hostsTraffic":[{"
endpointIp":"1.1.1.10",
"hostId":11,
"zone":"Default Inside Zone",
"traffic":"22M"}]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ntbamonitors/{ntbaId}/applicationtraffic? TopN=<TopN>
&startTime=<startTime>&endTime=<endTime>&direction=<direction>&frequency=<frequency>
Request Parameters
McAfee Network Security Platform 10.1.x Manager API Reference Guide 671
32| NTBA Resource
Bidirectional
Inbound
Outbound
1min
10mins
Hourly
Daily
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of applicationsTraffic:
672 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/applicationtraffic?startTime=2012-APR-20%2012:15&endTime=2012-
APR-20%2012:11
Response
{"applicationsTraffic":[
{"application":"FTP","applicationId":1191186432,
"inbound":"7M",
"outbound":"7M",
"total":"15M"
}]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 673
32| NTBA Resource
Resource URL
GET /ntbamonitors/{ntbaId}/ applicationtraffic/profile/{appId}? startTime=<startTime>&endTime=<endTime>
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of serverProfile/clientsProfile:
674 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/applicationprofile/profile/131231?startTime=2012-
APR-20%2012:15&endTime=2012-APR-20%2012:11
Response
{"serversProfile":[{
"endpointIp":"1.1.1.1",
"hostName":"--",
"zone":"Default Inside Zone",
"vlanId":"---",
"inboundTraffic":"1M",
"outboundTraffic":"1M",
"totalTraffic":"2M",
"noOfConnections":2,
}]
"clientsProfile":[{
"endpointIp":"1.1.1.1",
"hostName":"--",
"zone":"Default Inside Zone",
"vlanId":"---",
"inboundTraffic":"1M",
"outboundTraffic":"1M",
"totalTraffic":"2M",
"noOfConnections":2,
}]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 675
32| NTBA Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ntbamonitors/{ntbaId}/throughputtraffic? TopN=<TopN>
&startTime=<startTime>&endTime=<endTime&frequency=<frequency>
Request Parameters
1min
10mins
Hourly
676 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
Daily
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of throughputTrafficList:
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/throughputtraffic?startTime=2012-APR-20%2012:15&endTime=2012-
APR-20%2012:11
Response
{
"throughputTrafficList":[
{"inbound":"0M",
"outbound":"0M",
"time":"2013-08-27 16:47:00"}]
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 677
32| NTBA Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ntbamonitors/{ntbaId}/bandwidthutilization? TopN=<TopN>
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
678 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
Details of bandwidthUtilizationList:
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/bandwidthutilization
Response
{
“bandwidthUtilizationList”:[{
“exporter”:”M-1450”,
“exporterId”:3,
“interface”:”1A”,
“interfaceId”:0,
“linkSpeed”:”1.0G”,
“inbound”:”0%”,
“outbound”:”0%”}]
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 679
32| NTBA Resource
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ntbamonitors/{ntbaId}/zonetraffic? TopN=<TopN> &direction=<direction>&frequency=<frequency>
Request Parameters
680 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of zoneTrafficList:
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/zonetraffic
Response
{
“ zoneTrafficList “:[{
“zone”:”Inside Zone”,
“zoneId”:1191186432,
“inbound”:”7M”,
“outbound”:”7M”,
“lastseen”:2013-08-27 16:47:00”}]
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 681
32| NTBA Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ntbamonitors/{ntbaId}/activeservices? TopN=<TopN>
&timePeriod=<timePeriod>&startTime=<startTime>&endTime=<endTime>
Request Parameters
• LAST_MINUTE
• LAST_10_MINUTES
• LAST_HOUR
• LAST_24_HOURS
• CUSTOM
682 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of services:
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/activeservices?timePeriod=CUSTOM&startTime=2012-
APR-20%2012:15&endTime=2012-APR-20%2012:11
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 683
32| NTBA Resource
{
“services”:[{
“service”:”Unprofiled”,
“serviceId”:0,
“protocol”:”ipv4”,
“lastSeen”:”2013-08-27 16:44:06”
}]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ntbamonitors/{ntbaId}/tophostactiveservices/<host_id>? TopN=<TopN>
&timePeriod=<timePeriod>&startTime=<startTime>&endTime=<endTime>
Request Parameters
684 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
• LAST_MINUTE
• LAST_10_MINUTES
• LAST_HOUR
• LAST_24_HOURS
• CUSTOM
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of services:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 685
32| NTBA Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/tophostactiveservices/9?timePeriod=CUSTOM&startTime=2012-
APR-20%2012:15&endTime=2012-APR-20%2012:11
Response
{
“services”:[{
“service”:”Unprofiled”,
“serviceId”:0,
“protocol”:”ipv4”,
“lastSeen”:”2013-08-27 16:44:06”
}]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ntbamonitors/{ntbaId}/newservices? TopN=<TopN>
686 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of services:
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/newservices
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 687
32| NTBA Resource
{
"services":[{
"service":"Unprofiled",
"serviceId":0,
"protocol":"ipv4",
"lastSeen":"2013-08-27 16:44:06"
}]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ntbamonitors/{ntbaId}/activeapplications? TopN=<TopN>
&timePeriod=<timePeriod>&startTime=<startTime>&endTime=<endTime>
Request Parameters
688 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
• LAST_MINUTE
• LAST_10_MINUTES
• LAST_HOUR
• LAST_24_HOURS
• CUSTOM
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of applications:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 689
32| NTBA Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/activeapplications?timePeriod=CUSTOM&startTime=2012-
APR-20%2012:15&endTime=2012-APR-20%2012:11
Response
{
"applications":[{
"applicationName":"FTP",
"applicationId":1191186432,
"starttime":"2013-08-27 16:44:06",
"lastseen":"2013-08-27 16:44:06"}
}]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ntbamonitors/{ntbaId}/newapplications? TopN=<TopN>
690 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
Request Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of applications:
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/newapplications
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 691
32| NTBA Resource
{
"applications":[{
"applicationName":"FTP",
"applicationId":1191186432,
"starttime":"2013-08-27 16:44:06",
"lastseen":"2013-08-27 16:44:06"}
}]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /ntbamonitors/{ntbaId}/tophostactiveapplications/<host_id>? TopN=<TopN>
&timePeriod=<timePeriod>&startTime=<startTime>&endTime=<endTime>
Request Parameters
692 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
• LAST_MINUTE
• LAST_10_MINUTES
• LAST_HOUR
• LAST_24_HOURS
• CUSTOM
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of applications :
McAfee Network Security Platform 10.1.x Manager API Reference Guide 693
32| NTBA Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/tophostactiveapplications/9?timePeriod=CUSTOM&startTime=2012-
APR-20%2012:15&endTime=2012-APR-20%2012:11
Response
{
"applications":[{
"applicationName":"FTP",
"applicationId":1191186432,
"starttime":"2013-08-27 16:44:06",
"lastseen":"2013-08-27 16:44:06"}
}]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
694 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
Resource URL
GET /ntbamonitors/{ntbaId}/tophostports/<host_id>? TopN=<TopN>
&timePeriod=<timePeriod>&startTime=<startTime>&endTime=<endTime>
Request Parameters
• LAST_MINUTE
• LAST_10_MINUTES
• LAST_HOUR
• LAST_24_HOURS
• CUSTOM
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of applications:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 695
32| NTBA Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/ntbamonitors/1006/tophostports/9?timePeriod=CUSTOM&startTime=2012-
APR-20%2012:15&endTime=2012-APR-20%2012:11
Response
{
"hostports":[{
"port":8888,
"protocol":”ftp”,
"starttime":"2013-08-27 16:44:06",
"lastseen":"2013-08-27 16:44:06"}
}]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
696 McAfee Network Security Platform 10.1.x Manager API Reference Guide
32| NTBA Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 697
33| Endpoint Executables Resource
Resource URL
GET /<nbaid>/endpointintelligence?
search=<search_string>&&confidencetype=<confidencetype>&&classificationtype=<classificationtype>&&duration=<duration>
Request Parameters
• any
• block
• allow
• unclassified
Default: any
• high
• any
Default: any
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
• LAST-12_HOURS
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
698 McAfee Network Security Platform 10.1.x Manager API Reference Guide
33| Endpoint Executables Resource
• LAST_14_DAYS
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of EndpointExecutableList:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 699
33| Endpoint Executables Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/1001/endpointintelligence/%20endpointintelligence?
duration=LAST_14_DAYS&&confidencetype=any&&classificationtype=any
Response
{
"endpointExecutableList":[
{"executableHash":"1aaaaaaaaaaaaaaaaaaaaaaaaaaaaa23",
"executableName":"abc.exe",
"executableVersions":"file_version",
"malwareConfidence":"Medium",
"classification":"unclassified",
"fileSize":2566795,
"firstSeen":"2013-09-10 00:00:00",
"lastSeen":"2013-09-10 12:45:00",
"endpointsCount":1,
"connectionsCount":4,
"eventsCount":12}]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
700 McAfee Network Security Platform 10.1.x Manager API Reference Guide
33| Endpoint Executables Resource
Resource URL
GET /<nbaid>/endpointintelligence/<hash>/executableinformation? duration=<duration>
Request Parameters
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
• LAST-12_HOURS
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of EndpointExecutableList:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 701
33| Endpoint Executables Resource
Details of properties:
Details of heuristics:
702 McAfee Network Security Platform 10.1.x Manager API Reference Guide
33| Endpoint Executables Resource
Details of parentProcesses:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 703
33| Endpoint Executables Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/1001/endpointintelligence/aaaaaaaa16/%20executableinformation?duration=LAST_14_DAYS
Response
{
"properties":
{"hash":"1aaaaaaaaaaaaaaaaaaaaaaaaaaaaa23",
"binaryType":"Process",
"binaryName":"abc.exe",
"productName":"",
"productVersion":"file_version",
"overallMalwareConfidence":"Medium",
"eiaAgentMalwareConfidence":"Medium",
"classification":"unclassified",
"classifier":"---","filesize":2566795},
"heuristics":{},
"suspiciousLibraries":[{
"hash":"1aaaaaaaaaaaaaaaaaaaaaaaaaaaaab1",
"name":"abc_dll.dll",
"malwareConfidence":"High"}]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Get Endpoints
This URL gets the endpoints information.
Resource URL
GET /<nbaid>/endpointintelligence/<hash>/endpoints? duration=<duration>
704 McAfee Network Security Platform 10.1.x Manager API Reference Guide
33| Endpoint Executables Resource
Request Parameters
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
• LAST-12_HOURS
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of EndpointList:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 705
33| Endpoint Executables Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/1001/endpointintelligence/aaaaaaaa16/endpoints?duration=LAST_14_DAYS
Response
{
"endpointList":
[{"ipAddress":"2.1.1.1","hostName":"","os":"","user":"poori.com\\[email protected]","connectionsCount":
3,"eventsCount":0}]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Get Applications
This URL gets the applications information.
Resource URL
GET /<nbaid>/endpointintelligence/<hash>/applications? duration=<duration>
706 McAfee Network Security Platform 10.1.x Manager API Reference Guide
33| Endpoint Executables Resource
Request Parameters
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
• LAST-12_HOURS
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of ApplicationList:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 707
33| Endpoint Executables Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/1001/endpointintelligence/aaaaaaaa16/applications?duration=LAST_14_DAYS
Response
{
{" applicationList ":[{" applicationName ":"abc.exe","connectionscount":1,"eventsCount":0}]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Get Events
This URL gets the events information.
Resource URL
GET /<nbaid>/endpointintelligence/<hash>/events? duration=<duration>
Request Parameters
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
• LAST-12_HOURS
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
708 McAfee Network Security Platform 10.1.x Manager API Reference Guide
33| Endpoint Executables Resource
• LAST_14_DAYS
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of eventList:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 709
33| Endpoint Executables Resource
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/1001/endpointintelligence/aaaaaaaa16/events?duration=LAST_14_DAYS
Response
{
{"eventList":[{"time":"Tue Sep 10 17:16:26 IST 2013","attack":"MALWARE: High-confidence malware executable
detected by Endpoint Intelligence Agent
engine","result":"Inconclusive","direction":"Unknown","attackerCountry":"---","victimIpAddress":"0.1.138.146"
,"victimPort":0,"victimCountry}]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Action on Hash
This URL to perform the action on hash to make it allow/block/unclassified.
Resource URL
PUT /<nbaid>/endpointintelligence/<hash>/takeaction/<action>
Request Parameters
URL Parameters:
710 McAfee Network Security Platform 10.1.x Manager API Reference Guide
33| Endpoint Executables Resource
• Allow
• Block
• Unclassified
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/1001/endpointintelligence/aaaaaaaa16/takeaction/Allow
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 711
33| Endpoint Executables Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
712 McAfee Network Security Platform 10.1.x Manager API Reference Guide
34| NMS IP Resource
NMS IP Resource
Get NMS IPs at Domain
This URL gets the NMS IP's present at the domain and the parent domains.
Resource URL
GET /domain/<domain_id> /nmsips
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 713
34| NMS IP Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domain/101/nmsips
Response
{
"nmsIPDetails":
[
{
"IPAddress": "1.1.1.1",
"IPId": 49,
"createdAt": "/My Company"
},
{
"IPAddress": "2.2.2.2",
"IPId": 50,
"createdAt": "/My Company/Test Child Domain 1"
}
]
}
Error Information
Following error codes are returned by this URL:
Resource URL
POST /domain/<domain_id> /nmsip
714 McAfee Network Security Platform 10.1.x Manager API Reference Guide
34| NMS IP Resource
Request Parameters
URL Parameters:
Payload Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://<NSM_IP>/sdkapi/domain/0/nmsip
Payload
McAfee Network Security Platform 10.1.x Manager API Reference Guide 715
34| NMS IP Resource
{
"IPAddress": "1.1.1.1"
}
Response
{
"createdResourceId": 49
}
Error Information
Following error codes are returned by this URL:
Resource URL
DELETE / domain/<domain_id> /nmsip/<ipId>
716 McAfee Network Security Platform 10.1.x Manager API Reference Guide
34| NMS IP Resource
Request Parameters
URL Parameters:
Payload Parameters:
None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://<NSM_IP>/sdkapi/domain/0/nmsip/49
Payload
None
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 717
34| NMS IP Resource
Resource URL
GET /sensor/<sensor_id> /nmsips
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
718 McAfee Network Security Platform 10.1.x Manager API Reference Guide
34| NMS IP Resource
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/nmsips
Response
{
"nmsIPDetails":
[
{
"IPAddress": "1.1.1.1",
"IPId": 49,
"createdAt": "/My Company"
},
{
"IPAddress": "2.2.2.2",
"IPId": 50,
"createdAt": "Sensor"
}
]
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 719
34| NMS IP Resource
Resource URL
GET /sensor/<sensor_id> /nmsips/available
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
720 McAfee Network Security Platform 10.1.x Manager API Reference Guide
34| NMS IP Resource
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/nmsips/available
Response
{
"nmsIPDetails":
[
{
"IPAddress": "1.1.1.1",
"IPId": 49,
"createdAt": "/My Company"
}
]
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 721
34| NMS IP Resource
Error Information
POST /sensor/<sensor_id> /nmsip
Request Parameters
URL Parameters:
Payload Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
722 McAfee Network Security Platform 10.1.x Manager API Reference Guide
34| NMS IP Resource
Example
Request
POST https://<NSM_IP>/sdkapi/sensor/1001/nmsip
Payload
{
"IPAddress": "1.1.1.1"
}
Response
{
"createdResourceId": 25
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 723
34| NMS IP Resource
Resource URL
POST /sensor/<sensor_id> /nmsip/allocate/<ipId>
Request Parameters
URL Parameters:
Payload Parameters:
None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
724 McAfee Network Security Platform 10.1.x Manager API Reference Guide
34| NMS IP Resource
Example
Request
POST https://<NSM_IP>/sdkapi/sensor/1001/nmsip/allocate/49
Payload
None
Response
{
"createdResourceId": 50
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 725
34| NMS IP Resource
Resource URL
DELETE / sensor/<sensor_id> /nmsip
Request Parameters
URL Parameters:
Payload Parameters:
726 McAfee Network Security Platform 10.1.x Manager API Reference Guide
34| NMS IP Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://<NSM_IP>/sdkapi/sensor/1001/nmsip
Payload
{
"IPAddress": "1.1.1.1"
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 727
34| NMS IP Resource
728 McAfee Network Security Platform 10.1.x Manager API Reference Guide
35| NMS Users Resource
Resource URL
GET /domain/<domain_id> /nmsusers
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 729
35| NMS Users Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domain/101/nmsusers
Response
{
"nmsUserDetails":
[
{
"userName": "user1",
"userId": 14,
"createdAt": "/My Company"
},
{
"userName": "admin123",
"userId": 9,
"createdAt": "/My Company/Test Child Domain 1"
},
{
"userName": "user1234",
"userId": 10,
"createdAt": "/My Company/Test Child Domain 1"
}
]
}
Error Information
Following error code is returned by this URL:
730 McAfee Network Security Platform 10.1.x Manager API Reference Guide
35| NMS Users Resource
Resource URL
POST /domain/<domain_id> /nmsuser
Request Parameters
URL Parameters:
Payload Parameters:
Response Parameter
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 731
35| NMS Users Resource
Example
Request
POST https://<NSM_IP>/sdkapi/domain/0/nmsuser
Payload
{
"userName": "user2",
"authenticationKey": "admin1235",
"privateKey": "admin1235"
}
Response
{
"createdResourceId": 14
}
Error Information
Following error codes are returned by this URL:
HTTP Error
No Code SDK API errorId SDK API errorMessage
2 400 5601 User name, private key and authorization key are mandatory
3 400 5602 User name, private key and authorization key should be alphanumeric
5 400 5604 Length of private key and authorization key should be between 8 and 15
732 McAfee Network Security Platform 10.1.x Manager API Reference Guide
35| NMS Users Resource
HTTP Error
No Code SDK API errorId SDK API errorMessage
11 400 5610 This object has been created in some other domain: Cannot be deleted/
edited
Resource URL
PUT /domain/<domain_id> /nmsuser/<nmsuser_id>
Request Parameters
URL Parameters:
Payload Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 733
35| NMS Users Resource
Response Parameters
Following fields are returned.
Example
Request
POST https://<NSM_IP>/sdkapi/domain/0/nmsuser/14
Payload
{
"userName": "user2",
"authenticationKey": "admin123",
"privateKey": "admin123"
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
734 McAfee Network Security Platform 10.1.x Manager API Reference Guide
35| NMS Users Resource
2 400 5601 User name, private key and authorization key are mandatory
3 400 5602 User name, private key and authorization key should be alphanumeric
5 400 5604 Length of private key and authorization key should be between 8 and 15
11 400 5610 This object has been created in some other domain: Cannot be deleted/
edited
12 500 3514 Invalid user id message from backend: Array index out of range: 0
Resource URL
GET / domain/<domain_id> /nmsuser/<nmsuser_id>
Request Parameters
URL Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 735
35| NMS Users Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/nmsuser/14
Payload
None
Response
736 McAfee Network Security Platform 10.1.x Manager API Reference Guide
35| NMS Users Resource
{
"userName": "user2",
"authenticationKey": "admin123",
"privateKey": "admin123"
}
Error Information
Following error codes are returned by this URL:
2 500 3514 Invalid user id message from backend: Array index out of range: 0
Resource URL
DELETE / domain/<domain_id> /nmsuser/<nmsuser_id>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 737
35| NMS Users Resource
Example
Request
DELETE https://<NSM_IP>/sdkapi/domain/0/nmsuser/14
Payload
None
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
2 500 3514 Invalid user id Message from backend: Array index out of range: 0
Resource URL
GET /sensor/<sensor_id> /nmsusers
Request Parameters
URL Parameters:
738 McAfee Network Security Platform 10.1.x Manager API Reference Guide
35| NMS Users Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/nmsusers
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 739
35| NMS Users Resource
{
"nmsUserDetails":
[
{
"userName": "user1",
"userId": 14,
"createdAt": "/My Company"
},
{
"userName": "admin123",
"userId": 9,
"createdAt": "Sensor"
}
]
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /sensor/<sensor_id> /nmsusers/available
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
740 McAfee Network Security Platform 10.1.x Manager API Reference Guide
35| NMS Users Resource
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/nmsusers/available
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 741
35| NMS Users Resource
{
"nmsUserDetails":
[
{
"userName": "user1",
"userId": 14,
"createdAt": "/My Company"
},
{
"userName": "admin123",
"userId": 9,
"createdAt": "/My Company "
},
{
"userName": "user1234",
"userId": 10,
"createdAt": "/My Company"
}
]
}
Error Information
Following error codes are returned by this URL:
Resource URL
POST /sensor/<sensor_id> /nmsuser
Request Parameters
URL Parameters:
742 McAfee Network Security Platform 10.1.x Manager API Reference Guide
35| NMS Users Resource
Payload Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://<NSM_IP>/sdkapi/sensor/1001/nmsuser
Payload
{
"userName": "user2",
"authenticationKey": "admin1235",
"privateKey": "admin1235"
}
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 743
35| NMS Users Resource
{
"createdResourceId": 20
}
Error Information
Following error codes are returned by this URL:
HTTP Error
No Code SDK API errorId SDK API errorMessage
2 400 5601 User name, private key and authorization key are mandatory
3 400 5602 User name, private key and authorization key should be alphanumeric
5 400 5604 Length of private key and authorization key should be between 8 and 15
11 400 5610 This object has been created in some other domain: Cannot be deleted/
edited
744 McAfee Network Security Platform 10.1.x Manager API Reference Guide
35| NMS Users Resource
Resource URL
POST /sensor/<sensor_id> /nmsuser/<nmsuser_id>
Request Parameters
URL Parameters:
Payload Parameters:
None
Response Parameters
Following fields are returned.
Example
Request
POST https://<NSM_IP>/sdkapi/sensor/1001/nmsuser/14
Payload
None
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 745
35| NMS Users Resource
{
"createdResourceId": 25
}
Error Information
Following error codes are returned by this URL:
HTTP Error
No Code SDK API errorId SDK API errorMessage
2 400 5601 User name, private key and authorization key are mandatory
3 400 5602 User name, private key and authorization key should be alphanumeric
5 400 5604 Length of private key and authorization key should be between 8 and 15
11 400 5610 This object has been created in some other domain: Cannot be deleted/
edited
746 McAfee Network Security Platform 10.1.x Manager API Reference Guide
35| NMS Users Resource
Resource URL
PUT /sensor/<sensor_id> /nmsuser/<nmsuser_id>
Request Parameters
URL Parameters:
Payload Parameters:
Response Parameters
Following fields are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 747
35| NMS Users Resource
Example
Request
POST https://<NSM_IP>/sdkapi/sensor/1001/nmsuser/20
Payload
{
"userName": "user2",
"authenticationKey": "admin123",
"privateKey": "admin123"
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
HTTP Error
No Code SDK API errorId SDK API errorMessage
2 400 5601 User name, private key and authorization key are mandatory
3 400 5602 User name, private key and authorization key should be alphanumeric
5 400 5604 Length of private key and authorization key should be between 8 and 15
748 McAfee Network Security Platform 10.1.x Manager API Reference Guide
35| NMS Users Resource
HTTP Error
No Code SDK API errorId SDK API errorMessage
11 400 5610 This object has been created in some other domain: Cannot be deleted/
edited
Resource URL
GET / sensor/<sensor_id> /nmsuser/<nmsuser_id>
Request Parameters
URL Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 749
35| NMS Users Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/nmsuser/20
Payload
None
Response
{
"userName": "user2",
"authenticationKey": "admin123",
"privateKey": "admin123"
}
Error Information
Following error codes are returned by this URL:
750 McAfee Network Security Platform 10.1.x Manager API Reference Guide
35| NMS Users Resource
Resource URL
DELETE / sensor/<sensor_id> /nmsuser/<nmsuser_id>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 751
35| NMS Users Resource
Example
Request
DELETE https://<NSM_IP>/sdkapi/sensor/1001/nmsuser/20
Payload
None
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
752 McAfee Network Security Platform 10.1.x Manager API Reference Guide
36| Policy Export Import Resource
Resource URL
PUT /domain/<domain_id>/ipsreconpolicy/import
Request Parameters
URL Parameters:
Details of BodyPart[0]:
BodyPart[0] Holds the import file element object Application/json object Yes
Details of ImportFileElement:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 753
36| Policy Export Import Resource
Details of BodyPart[1]:
Response Parameters
Following fields are returned.
PolicyDiffElementList Contains the list of the policy status when the policy present on XML is ObjectList
compared by the policy present on the Manager
PolicyDiffElement Difference between the policy present on the Manager and the XML file Object
754 McAfee Network Security Platform 10.1.x Manager API Reference Guide
36| Policy Export Import Resource
status Status of the policy when the policy on XML and Manager are compared String
outboundPolicyId Outbound ID of the policy (-1 if not present on the Manager) String
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/ipsreconpolicy/import
Payload
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 755
36| Policy Export Import Resource
{
"policyDiffElement": [
{
"status": "Exists and Not Identical",
"policyName": "NSAT_AIWA_Blocking",
"outboundPolicyId": "312",
"isOutbound": false,
"policyId": "312",
"import": "UNCHECKED",
"type": 1
},
{
"status": "Exists and Identical",
"policyName": "NSAT 7.1 Reconnaissance Policy",
"isOutbound": false,
"policyId": "301",
"import": "DISABLED",
"type": 3
},
{
"status": "Exists and Not Identical",
"policyName": "NSAT_AIWA_AlertNotf",
"outboundPolicyId": "308",
"isOutbound": false,
"policyId": "309",
"import": "UNCHECKED",
"type": 1
},
{
"status": "Exists and Not Identical",
"policyName": "NSAT_AIWA_SB",
"outboundPolicyId": "315",
"isOutbound": false,
"policyId": "316",
"import": "UNCHECKED",
"type": 1
},
{
"status": "Exists and Not Identical",
"policyName": "NSAT All-Inclusive With Audit",
"outboundPolicyId": "313",
"isOutbound": false,
"policyId": "314",
"import": "UNCHECKED",
"type": 1
},
{
"status": "Exists and Not Identical",
"policyName": "NSAT AIWA Filtered",
"outboundPolicyId": "310",
"isOutbound": false,
"policyId": "311",
"import": "UNCHECKED",
"type": 1
}
]
}
Error Information
Following error codes are returned by this URL:
756 McAfee Network Security Platform 10.1.x Manager API Reference Guide
36| Policy Export Import Resource
6 400 5305 The policy given to import is not present in the file
8 500 5307 Policy import failed.. Please look into the logs..
Resource URL
POST /domain/<domain_id>/ipsreconpolicy/import
Request Parameters
URL Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 757
36| Policy Export Import Resource
Details of BodyPart[0]:
BodyPart[0] Holds the import file element object Application/json object Yes
Details of ImportFileElement:
Details of BodyPart[1]:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
758 McAfee Network Security Platform 10.1.x Manager API Reference Guide
36| Policy Export Import Resource
Example
Request
POST https://<NSM_IP>/sdkapi/domain/0/ipsreconpolicy/import
Payload
----Boundary_1_12424925_1353496814940
Content-Type: application/json
{
"fileType": "xml",
"selectedPolicyNameList": ["NSAT_AIWA_Blocking"],
"fileName": "IPS_ReconnaissancePolicy_latest_NSAT"
}
----Boundary_1_12424925_1353496814940
Content-Type: application/octet-stream
<userinput><?xml version='1.0' encoding='ISO-8859-1'?></userinput>
<userinput><PolicyExport version="5.0"></userinput>
<userinput><Recon hash="ce408928d2292651da7acd44f32c4b7"></userinput>
<userinput><ReconPolicy name="NSAT 7.1 Reconnaissance Policy" visibleToChild="yes"></userinput>
//…..
…..
…..//
<userinput><attack id="0xe000da00" isActive="INHERIT"/></userinput>
<userinput></customizedAttacks></userinput>
<userinput></policy></userinput>
<userinput></IDSPolicy></userinput>
<userinput></PolicyExport></userinput>
----Boundary_1_12424925_1353496814940--
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 759
36| Policy Export Import Resource
6 400 5305 The policy given to import is not present in the file
8 500 5307 Policy import failed.. Please look into the logs..
Resource URL
POST /domain/<domain_id>/malwarepolicy/import
Request Parameters
URL Parameters:
760 McAfee Network Security Platform 10.1.x Manager API Reference Guide
36| Policy Export Import Resource
Details of BodyPart[0]:
BodyPart[0] Holds the import file element object Application/json object Yes
Details of ImportFileElement:
Details of BodyPart[1]:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 761
36| Policy Export Import Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://<NSM_IP>/sdkapi/domain/0/malwarepolicy/import
Payload
762 McAfee Network Security Platform 10.1.x Manager API Reference Guide
36| Policy Export Import Resource
----Boundary_1_12424925_1353496814940
Content-Type: application/json
{
"fileType": "xml",
"skipDuplicate": false,
"fileName": "MalwarePolicies0"
}
----Boundary_1_12424925_1353496814940
Content-Type: application/octet-stream
----Boundary_1_12424925_1353496814940--
Response
{
"status": 1,
"message": ",,Importing Malware Policy: malware archive,Importing Malware Policy:
TestMalwarePolicy_2,Importing Malware Policy: TestMalwarePolicy_1, "
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 763
36| Policy Export Import Resource
3 500 5307 Policy import failed.. Please look into the logs..
Resource URL
POST /domain/<domain_id>/ firewallpolicy/import
Request Parameters
URL Parameters:
Details of BodyPart[0]:
BodyPart[0] Holds the import file element object Application/json object Yes
764 McAfee Network Security Platform 10.1.x Manager API Reference Guide
36| Policy Export Import Resource
Details of ImportFileElement:
Details of BodyPart[1]:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
McAfee Network Security Platform 10.1.x Manager API Reference Guide 765
36| Policy Export Import Resource
POST https://<NSM_IP>/sdkapi/domain/0/firewallpolicy/import
Payload
----Boundary_1_12424925_1353496814940
Content-Type: application/json
{
"fileType": "xml",
"skipDuplicate": false,
"fileName": "FirewallPolicies0"
}
----Boundary_1_12424925_1353496814940
Content-Type: application/octet-stream
<FWConfig>
<NetworkObjects/>
<FWPolicies>
<FWPolicy owner_ad="My Company" policyName="FirewallPolicy4" policyType="1" visibleToChild="false"
policyDescription="Firewall Policy for Port">
<FWPolicyRules owner_ad="My Company" uuid="108" Rulename="" direction="3" action="0" enablelog="N"
description="" ordernum="0" type="1" state="1" mandate_auth="N">
<SourceObjectMember>
<NetworkObjectMember noid="-1" noname="" notype="1" noconfig="1"/>
</SourceObjectMember>
<DestinationObjectMember>
<NetworkObjectMember noid="-1" noname="" notype="1" noconfig="1"/>
</DestinationObjectMember>
<ServiceObjectMember>
<NetworkObjectMember noid="-1" noname="" notype="8" noconfig="1"/>
</ServiceObjectMember>
//……//
DestinationObjectMember>
<NetworkObjectMember noid="-1" noname="" notype="1" noconfig="1"/>
</DestinationObjectMember>
<ServiceObjectMember>
<NetworkObjectMember noid="-1" noname="" notype="8" noconfig="1"/>
</ServiceObjectMember>
<TimeObjectMember>
<NetworkObjectMember noid="-1" noname="" notype="9" noconfig="1"/>
</TimeObjectMember>
<UserObjectMember>
<NetworkObjectMember noid="-1" noname="" notype="32" noconfig="1"/>
</UserObjectMember>
</FWPolicyRules>
</FWPolicy>
</FWPolicies>
</FWConfig>
----Boundary_1_12424925_1353496814940--
Response
{
"status": 1,
"message": "Added new Firewall Policy in the current Admin Domain : FirewallPolicy4
Added new Firewall Policy in the current Admin Domain : FirewallPolicy3
Added new Firewall Policy in the current Admin Domain : FirewallPolicy2
Added new Firewall Policy in the current Admin Domain : FirewallPolicy1"
}
Error Information
Following error codes are returned by this URL:
766 McAfee Network Security Platform 10.1.x Manager API Reference Guide
36| Policy Export Import Resource
3 500 5307 Policy import failed.. Please look into the logs..
Resource URL
POST /domain/<domain_id>/ exceptions/import
Request Parameters
URL Parameters:
Details of BodyPart[0]:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 767
36| Policy Export Import Resource
BodyPart[0] Holds the import file element object Application/json object Yes
Details of ImportFileElement:
Details of BodyPart[1]:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
768 McAfee Network Security Platform 10.1.x Manager API Reference Guide
36| Policy Export Import Resource
Example
Request
POST https://<NSM_IP>/sdkapi/domain/0/exceptions/import
Payload
----Boundary_1_12424925_1353496814940
Content-Type: application/json
----Boundary_1_12424925_1353496814940
Content-Type: application/octet-stream
----Boundary_1_12424925_1353496814940--
Response
{
"status": 1,
"message": ",,Importing Alert Filter: test3,Importing Alert Filter: test2,Importing Alert Filter: test1"
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 769
36| Policy Export Import Resource
3 500 5307 Policy import failed.. Please look into the logs..
Resource URL
GET /domain/<domain_id>/ipsreconpolicy/export
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of exportablePolicyList:
770 McAfee Network Security Platform 10.1.x Manager API Reference Guide
36| Policy Export Import Resource
Details of exportablePolicyDetail:
• IPS_POLICY
• RECON_POLICY
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/ipsreconpolicy/export
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 771
36| Policy Export Import Resource
{
'exportablePolicyDetail': [{
'policyName': 'DefaultIPSAttackSettings',
'policyType': 'IPS_POLICY',
'policyId': -1
},
{
'policyName': 'DefaultIDS',
'policyType': 'IPS_POLICY',
'policyId': 0
},
{
'policyName': 'Null',
'policyType': 'IPS_POLICY',
'policyId': 18
},
{
'policyName': 'DefaultInlineIPS',
'policyType': 'IPS_POLICY',
'policyId': 19
},
{
'policyName': 'DefaultReconnaissancePolicy',
'policyType': 'RECON_POLICY',
'policyId': 300
}]
}
Error Information
Following error code is returned by this URL:
Resource URL
GET /domain/<domain_id>/ipsreconpolicy/export
Request Parameters
URL Parameters:
772 McAfee Network Security Platform 10.1.x Manager API Reference Guide
36| Policy Export Import Resource
Details of selectedPolicyList:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/ipsreconpolicy/export
Payload
{
“selectedPolicyNameList”:[“DefaultInlineIPS”,“NSAT 7.1 Reconnaissance Policy”]
}
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 773
36| Policy Export Import Resource
{
"byteSream": "<?xml version='1.0' encoding='ISO-8859-1'?>
<PolicyExport version="5.0">
<Recon hash="ce408928d2292651da7acd44f32c4b7">
<ReconPolicy name="NSAT 7.1 Reconnaissance Policy" visibleToChild="yes">
//…..
…..
…..//
<attack id="0xe000da00" isActive="INHERIT"/>
</customizedAttacks>
</policy>
</IDSPolicy>
</PolicyExport>"
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /domain/<domain_id>/malwarepolicy/export
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
774 McAfee Network Security Platform 10.1.x Manager API Reference Guide
36| Policy Export Import Resource
Details of exportablePolicyList:
Details of exportablePolicyDetail:
• MALWARE_POLICY
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/malwarepolicy/export
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 775
36| Policy Export Import Resource
{
'exportablePolicyDetail': [{
'policyName': 'DefaultMalwarePolicy',
'policyType': 'MALWARE_POLICY',
'policyId': 1
},
{
'policyName': 'TestMalwarePolicy_1',
'policyType': 'MALWARE_POLICY',
'policyId': 301
},
{
'policyName': 'TestMalwarePolicy_2',
'policyType': 'MALWARE_POLICY',
'policyId': 302
},
{
'policyName': 'malwarearchive',
'policyType': 'MALWARE_POLICY',
'policyId': 305
}]
}
Error Information
Following error code is returned by this URL:
Resource URL
PUT /domain/<domain_id>/malwarepolicy/export
Request Parameters
URL Parameters:
776 McAfee Network Security Platform 10.1.x Manager API Reference Guide
36| Policy Export Import Resource
Details of selectedPolicyList:
selectedPolicyNameList List of name of malware policy to export. By default all the StringList No
policies are exported.
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/malwarepolicy/export
Payload
{
“selectedPolicyNameList”:[“ TestMalwarePolicy_1”,“ TestMalwarePolicy_2” ,“malware archive”]
}
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 777
36| Policy Export Import Resource
{
"byteSream": " <?xml version='1.0' encoding='ISO-8859-1'?>
<MalwarePolicyConfig>
<MalwarePolicyExport EMSVersion="8.0.5.9.108">
<MalwarePolicy>
<MalwarePolicyVO name="TestMalwarePolicy_1" owner="0" visibleToChild="yes" isEditable="yes"
desc="VisibletoChildDomain"/>
</MalwarePolicy>
<MalwarePolicy>
<MalwarePolicyVO name="TestMalwarePolicy_2" owner="0" visibleToChild="no" isEditable="yes"
desc="NotVisible tochildDomain"/>
</MalwarePolicy>
<MalwarePolicy>
<MalwarePolicyVO name="malware archive" owner="0" visibleToChild="yes" isEditable="yes" desc="">
<MalwarePolicyProtocol idnum="16" enabled="yes"/>
<MalwarePolicyProtocol idnum="12" enabled="yes"/>
</MalwarePolicyVO>
<MalwarePolicyFileActions groupId="1" engineStatus="19" alertingConfidence="5" blockingConfidence="5"
sendTcpConfidence="5" quaratineConfidence="0" saveFileConfidence="1" blacklistConfidence="0" fileSize="0"/>
<MalwarePolicyFileActions groupId="2" engineStatus="18" alertingConfidence="5" blockingConfidence="5"
sendTcpConfidence="5" quaratineConfidence="0" saveFileConfidence="1" blacklistConfidence="0" fileSize="0"/>
<MalwarePolicyFileActions groupId="3" engineStatus="27" alertingConfidence="5" blockingConfidence="5"
sendTcpConfidence="5" quaratineConfidence="0" saveFileConfidence="1" blacklistConfidence="0" fileSize="0"/>
<MalwarePolicyFileActions groupId="4" engineStatus="18" alertingConfidence="5" blockingConfidence="5"
sendTcpConfidence="5" quaratineConfidence="0" saveFileConfidence="1" blacklistConfidence="0" fileSize="0"/>
<MalwarePolicyFileActions groupId="5" engineStatus="3" alertingConfidence="5" blockingConfidence="5"
sendTcpConfidence="5" quaratineConfidence="0" saveFileConfidence="1" blacklistConfidence="0" fileSize="0"/>
<MalwarePolicyFileActions groupId="6" engineStatus="18" alertingConfidence="5" blockingConfidence="5"
sendTcpConfidence="5" quaratineConfidence="0" saveFileConfidence="1" blacklistConfidence="0" fileSize="0"/>
</MalwarePolicy>
</MalwarePolicyExport>
</MalwarePolicyConfig> "
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /domain/<domain_id>/firewallpolicy/export
Request Parameters
URL Parameters:
778 McAfee Network Security Platform 10.1.x Manager API Reference Guide
36| Policy Export Import Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of exportablePolicyList:
Details of exportablePolicyDetail:
• FIREWALL_POLICY
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/firewallpolicy/export
McAfee Network Security Platform 10.1.x Manager API Reference Guide 779
36| Policy Export Import Resource
Response
{
'exportablePolicyDetail': [{
'policyName': 'FirewallPolicy4',
'policyType': 'FIREWALL_POLICY',
'policyId': 107
},
{
'policyName': 'FirewallPolicy3',
'policyType': 'FIREWALL_POLICY',
'policyId': 105
},
{
'policyName': 'FirewallPolicy2',
'policyType': 'FIREWALL_POLICY',
'policyId': 103
},
{
'policyName': 'FirewallPolicy1',
'policyType': 'FIREWALL_POLICY',
'policyId': 101
}]
}
Error Information
Following error code is returned by this URL:
Resource URL
PUT /domain/<domain_id>/firewallpolicy/export
Request Parameters
URL Parameters:
780 McAfee Network Security Platform 10.1.x Manager API Reference Guide
36| Policy Export Import Resource
Details of selectedPolicyList:
selectedPolicyNameList List of name of firewall policy to export. By default all the StringList No
policies are exported.
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/firewallpolicy/export
Payload
{
“selectedPolicyNameList”:[“FirewallPolicy4”,“FirewallPolicy3”]
}
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 781
36| Policy Export Import Resource
{
"byteSream": “<FWConfig>
<NetworkObjects/>
<FWPolicies>
<FWPolicy owner_ad="My Company" policyName="FirewallPolicy4" policyType="1" visibleToChild="false"
policyDescription="Firewall Policy for Port">
<FWPolicyRules owner_ad="My Company" uuid="108" Rulename="" direction="3" action="0" enablelog="N"
description="" ordernum="0" type="1" state="1" mandate_auth="N">
<SourceObjectMember>
<NetworkObjectMember noid="-1" noname="" notype="1" noconfig="1"/>
</SourceObjectMember>
<DestinationObjectMember>
<NetworkObjectMember noid="-1" noname="" notype="1" noconfig="1"/>
</DestinationObjectMember>
<ServiceObjectMember>
<NetworkObjectMember noid="-1" noname="" notype="8" noconfig="1"/>
</ServiceObjectMember>
//……//
DestinationObjectMember>
<NetworkObjectMember noid="-1" noname="" notype="1" noconfig="1"/>
</DestinationObjectMember>
<ServiceObjectMember>
<NetworkObjectMember noid="-1" noname="" notype="8" noconfig="1"/>
</ServiceObjectMember>
<TimeObjectMember>
<NetworkObjectMember noid="-1" noname="" notype="9" noconfig="1"/>
</TimeObjectMember>
<UserObjectMember>
<NetworkObjectMember noid="-1" noname="" notype="32" noconfig="1"/>
</UserObjectMember>
</FWPolicyRules>
</FWPolicy>
</FWPolicies>
</FWConfig>”
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /domain/<domain_id>/exceptions/export
Request Parameters
URL Parameters:
782 McAfee Network Security Platform 10.1.x Manager API Reference Guide
36| Policy Export Import Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of exportablePolicyList:
Details of exportablePolicyDetail:
• EXCEPTIONS
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/exceptions/export
McAfee Network Security Platform 10.1.x Manager API Reference Guide 783
36| Policy Export Import Resource
Response
{
'exportablePolicyDetail': [{
'policyName': 'test1',
'policyType': 'EXCEPTIONS',
'policyId': 301
},
{
'policyName': 'test2',
'policyType': 'EXCEPTIONS',
'policyId': 302
}]
}
Error Information
Following error code is returned by this URL:
Resource URL
PUT /domain/<domain_id>/exceptions/export
Request Parameters
URL Parameters:
784 McAfee Network Security Platform 10.1.x Manager API Reference Guide
36| Policy Export Import Resource
Details of selectedPolicyList:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/exceptions/export
Payload
{
“selectedPolicyNameList”:[“test1”,“test2”, “test3”]
}
Response
{
"byteSream": “<?xml version='1.0' encoding='ISO-8859-1'?>
<AFConfig>
<AlertFilterExport EMSVersion="8.1.3.1.22">
<AlertFilter name="test1" visibleToChild="yes" addressType="0">
<AlertExclusion srcMode="2" dstMode="3" srcAddr="null" srcMask="null" destAddr="null" destMask="null"
srcPortType="0" srcPort="null" destPortType="0" destPort="null"/>
<AlertExclusion srcMode="1" dstMode="1" srcAddr="null" srcMask="null" destAddr="null" destMask="null"
srcPortType="0" srcPort="null" destPortType="0" destPort="null"/>
</AlertFilter>
<AlertFilter name="test2" visibleToChild="yes" addressType="0">
<AlertExclusion srcMode="1" dstMode="1" srcAddr="null" srcMask="null" destAddr="null" destMask="null"
srcPortType="0" srcPort="null" destPortType="0" destPort="null"/>
</AlertFilter>
<AlertFilter name="test3" visibleToChild="yes" addressType="0">
<AlertExclusion srcMode="1" dstMode="1" srcAddr="null" srcMask="null" destAddr="null" destMask="null"
srcPortType="0" srcPort="null" destPortType="0" destPort="null"/>
</AlertFilter>
</AlertFilterExport>
</AFConfig>”
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 785
36| Policy Export Import Resource
Error Information
Following error codes are returned by this URL:
786 McAfee Network Security Platform 10.1.x Manager API Reference Guide
37| TCP Settings
TCP Settings
Get TCP Settings Configuration at Sensor Level
This URL gets the TCP settings on the Sensor.
Resource URL
GET /sensor/<sensor_id>/tcpsettings
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 787
37| TCP Settings
Data
Field Name Description Type
coldStartDropAction The cold start drop action. The value can be: String
• DROP_FLOWS
• FORWARD_FLOWS
tcpFlowViolation The TCP flow violation. The value can be: String
• PERMIT
• DENY
• PERMIT_OUT_OF_ORDER
• DENY_NO_TCB
• STATELESS_INSPECTION
• ON
• OFF
tcpOverlapOption The TCP overlap option. The value can be: String
• OLD_DATA
• NEW_DATA
788 McAfee Network Security Platform 10.1.x Manager API Reference Guide
37| TCP Settings
Data
Field Name Description Type
• DISABLED
• SET_FOR_ALL_TRAFFIC
• SET_FOR_DOS_ATTACK_TRAFFIC_ONLY
synCookieOption The SYN cookie option. The value can be: String
• DISABLED
• INBOUND_ONLY
• OUTBOUND_ONLY
• BOTH_INBOUND_AND_OUTBOUND
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1002/tcpsettings
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 789
37| TCP Settings
{
"tcpParameter": {
"supportedUDPFlows": 100,
"tcbInactivityTimesInMinutes": 10,
"tcpSegmentTimerInSeconds": 10,
"tcp2MSLTimerInSeconds": 10,
"coldStartTimeInMinutes": 0,
"coldStartAckScanAlertDiscardIntervalInMinutes": 0,
"coldStartDropAction": "FORWARD_FLOWS",
"tcpFlowViolation": "PERMIT_OUT_OF_ORDER",
"unsolicitedUDPPacketTimeOutInSeconds": 10,
"normalization": "OFF",
"tcpOverlapOption": "NEW_DATA",
"synCookie": {
"synCookieOption": "INBOUND_ONLY",
"inboundThresholdValue": 14112,
"outboundThresholdValue": 10000
},
"dnsSinkholingTimeToLive": 720,
"dnsSinkholingIPAddress": "1.1.1.1"
"resetUnfinished3WayHandshakeConnection": "SET_FOR_DOS_ATTACK_TRAFFIC_ONLY"
}
}
Error Information
Following error code is returned by this URL:
Resource URL
PUT /sensor/<sensor_id>/tcpsettings
Request Parameters
URL Parameters:
Payload Parameters:
790 McAfee Network Security Platform 10.1.x Manager API Reference Guide
37| TCP Settings
Data
Field Name Description Type Mandatory
coldStartAckScan The cold start ack scan alert discard Interval Number No
(minutes)
AlertDiscardIntervalInMinutes
coldStartDropAction The cold start drop action. The value can be: String No
• DROP_FLOWS
• FORWARD_FLOWS
tcpFlowViolation The TCP flow violation. The value can be: String No
• PERMIT
McAfee Network Security Platform 10.1.x Manager API Reference Guide 791
37| TCP Settings
Data
Field Name Description Type Mandatory
• DENY
• PERMIT_OUT_OF_ORDER
• DENY_NO_TCB
• STATELESS_INSPECTION
PacketTimeOutInSeconds
• ON
• OFF
tcpOverlapOption The TCP overlap option. The value can be: String No
• OLD_DATA
• NEW_DATA
synCookieOption The SYN cookie option. The value can be: String Yes
• DISABLED
792 McAfee Network Security Platform 10.1.x Manager API Reference Guide
37| TCP Settings
• INBOUND_ONLY
• OUTBOUND_ONLY
• BOTH_INBOUND_AND_OUTBOUND
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1002/tcpsettings
Payload
{
"tcpParameter": {
"supportedUDPFlows": 100,
"tcbInactivityTimesInMinutes": 10,
"tcpSegmentTimerInSeconds": 10,
"tcp2MSLTimerInSeconds": 10,
"coldStartTimeInMinutes": 0,
"coldStartAckScanAlertDiscardIntervalInMinutes": 0,
"coldStartDropAction": "FORWARD_FLOWS",
"tcpFlowViolation": "PERMIT_OUT_OF_ORDER",
"unsolicitedUDPPacketTimeOutInSeconds": 10,
"normalization": "OFF",
"tcpOverlapOption": "NEW_DATA",
"synCookie": {
"synCookieOption": "INBOUND_ONLY",
"inboundThresholdValue": 14112,
"outboundThresholdValue": 10000
},
"dnsSinkholingTimeToLive": 720,
"dnsSinkholingIPAddress": "1.1.1.1"
"resetUnfinished3WayHandshakeConnection": "SET_FOR_DOS_ATTACK_TRAFFIC_ONLY"
}
}
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 793
37| TCP Settings
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
6 400 5504 TCP 2MSL should be between 3 and 120 and the value should be 3 sec more
than the correlation time for signatures. Correlation time is <value>
8 400 5506 Cold start ack scan alert discard interval should be between 0 and 1440
9 400 5507 Unsolicited UDP packet timeout should be between 10 and 3600
10 400 5508 Disable SYN cookie first before setting TCP flow violation to stateless
inspection
11 400 5509 SYN cookie must be set to DISABLED when TCP flow violation is stateless
inspection
12 400 5510 Cannot update SYN cookie when TCP flow violation is set to stateless
inspection
794 McAfee Network Security Platform 10.1.x Manager API Reference Guide
37| TCP Settings
McAfee Network Security Platform 10.1.x Manager API Reference Guide 795
38| IP Settings
IP Settings
Update IP Settings Configuration at Sensor Level
This URL updates IP settings configuration at Sensor level.
Resource URL
PUT /sensor/<sensor_id>/ipsettings
Request Parameters
URL Parameters:
Payload Parameters:
jumboFrameParsing The jumbo frame parsing settings for IP settings. The value can String No
be:
• ENABLED
• DISABLED
796 McAfee Network Security Platform 10.1.x Manager API Reference Guide
38| IP Settings
• OLD_DATA
• NEW_DATA
• ENABLED
• DISABLED
ipv6Scanning The IPv6 scanning data. The value can be: String No
• SCAN_IPV_6_TRAFFIC_FOR_ATTACKS
• DROP_ALL_IPV_6_TARFFIC_INLINE_ONLY
• PASS_IPV_6_TRAFFIC_WITHOUT_SCANNING
• OLD_DATA
• NEW_DATA
• DROP
McAfee Network Security Platform 10.1.x Manager API Reference Guide 797
38| IP Settings
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1002/ipsettings
Payload
{
"ipv4Parameter": {
"fragmentTimer": 180,
"overlapOption": "OLD_DATA",
"smallestFragmentSize": 1480,
"smallFragmentThreshold": 100000,
"fragmentReassembly": "DISABLED"
},
"ipv6Parameter": {
"ipv6Scanning": "SCAN_IPV_6_TRAFFIC_FOR_ATTACKS",
"overlapOption": "OLD_DATA",
"smallestFragmentSize": 1280,
"smallFragmentThreshold": 100000
},
"jumboFrameParsing": null
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
HTTP Error
No Code SDK API errorId SDK API errorMessage
798 McAfee Network Security Platform 10.1.x Manager API Reference Guide
38| IP Settings
HTTP Error
No Code SDK API errorId SDK API errorMessage
3 400 5512 Smallest fragment size for IPV4 should be between 8 and 1480 and
should be a multiple of 8
4 400 5513 Small fragment threshold should be between 100 and 100000
5 400 5514 Smallest fragment size for IPV6 should be between 40 and 1280 and a
multiple of 8
Resource URL
GET /sensor/<sensor_id>/ipsettings
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 799
38| IP Settings
jumboFrameParsing The jumbo frame parsing settings for IP settings. The value can be: String
• ENABLED
• DISABLED
• OLD_DATA
• NEW_DATA
• ENABLED
• DISABLED
ipv6Scanning The IPv6 scanning data. The value can be: String
• SCAN_IPV_6_TRAFFIC_FOR_ATTACKS
800 McAfee Network Security Platform 10.1.x Manager API Reference Guide
38| IP Settings
• DROP_ALL_IPV_6_TARFFIC_INLINE_ONLY
• PASS_IPV_6_TRAFFIC_WITHOUT_SCANNING
• OLD_DATA
• NEW_DATA
• DROP
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1002/ipsettings
Response
{
"ipv4Parameter": {
"fragmentTimer": 180,
"overlapOption": "OLD_DATA",
"smallestFragmentSize": 1480,
"smallFragmentThreshold": 100000,
"fragmentReassembly": "DISABLED"
},
"ipv6Parameter": {
"ipv6Scanning": "SCAN_IPV_6_TRAFFIC_FOR_ATTACKS",
"overlapOption": "OLD_DATA",
"smallestFragmentSize": 1280,
"smallFragmentThreshold": 100000
},
"jumboFrameParsing": null
}
Error Information
Following error code is returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 801
39| Firewall Logging Resource
Resource URL
PUT /sensor/<sensor_id>/firewalllogging
Request Parameters
URL Parameters:
Payload Parameters:
Data
Field Name Description Type Mandatory
DestinationIPpairs
• "DISABLE_DEVICE"
• "LOG_ALL_MATCHED_TRAFFIC"
• "LOG_ALL_DROPPED_DENIED_TRAFFIC"
• "LOG_ALL_PERMITTED_TRAFFIC"
• "LOG_MATCHED_TRAFFIC_ONLY"
802 McAfee Network Security Platform 10.1.x Manager API Reference Guide
39| Firewall Logging Resource
Data
Field Name Description Type Mandatory
"MESSAGES_TO_TARGET_SYSLOGSERVER_VIA_MANAGER",
"MESSAGES_TO_TARGET_SYSLOGSERVER_DIRECTLY_FROM_DEVICE"
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1001/firewalllogging
Payload
{
"loggingType": "LOG_ALL_MATCHED_TRAFFIC",
"deliveryType": "MESSAGES_TO_TARGET_SYSLOGSERVER_VIA_MANAGER",
"isSuppressionEnabled": false,
"individualMessage": 25,
"suppressionInterval": 120,
"uniqueSourceDestinationIPpairs": 10
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 803
39| Firewall Logging Resource
HTTP Error
No Code SDK API errorId SDK API errorMessage
3 400 6001 Sending messages directly to syslog server is not supported in I series
Sensor
Resource URL
GET /sensor/<sensor_id>/firewalllogging
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
804 McAfee Network Security Platform 10.1.x Manager API Reference Guide
39| Firewall Logging Resource
DestinationIPpairs
• "DISABLE_DEVICE"
• "LOG_ALL_MATCHED_TRAFFIC"
• "LOG_ALL_DROPPED_DENIED_TRAFFIC"
• "LOG_ALL_PERMITTED_TRAFFIC"
• "LOG_MATCHED_TRAFFIC_ONLY"
"MESSAGES_TO_TARGET_SYSLOGSERVER_VIA_MANAGER",
"MESSAGES_TO_TARGET_SYSLOGSERVER_DIRECTLY_FROM_DEVICE"
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/firewalllogging
Response
{
"loggingType": "LOG_ALL_MATCHED_TRAFFIC",
"deliveryType": "MESSAGES_TO_TARGET_SYSLOGSERVER_VIA_MANAGER",
"isSuppressionEnabled": false,
"individualMessage": 25,
"suppressionInterval": 120,
"uniqueSourceDestinationIPpairs": 10
}
Error Information
Following error code is returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 805
39| Firewall Logging Resource
806 McAfee Network Security Platform 10.1.x Manager API Reference Guide
40| IPS Alerting Resource
Resource URL
GET /sensor/<sensor_id>/ipsalerting/alertsuppression
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 807
40| IPS Alerting Resource
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/ipsalerting/alertsuppression
Response
{
"isEnabled": true,
"uniqueSourceDestinationIPpairs": 16,
"individualAlerts": 2,
"suppressSeconds": 2,
"alertCorrelation": 3
"packetsLoggedPerFlow": 6400,
"enablePacketLogChannelEncryption": true
}
Error Information
Following error code is returned by this URL:
Resource URL
PUT /sensor/<sensor_id>/ipsalerting/alertsuppression
Request Parameters
URL Parameters:
Payload Parameters:
808 McAfee Network Security Platform 10.1.x Manager API Reference Guide
40| IPS Alerting Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1001/ipsalerting/alertsuppression
Payload
{
"isEnabled": true,
"uniqueSourceDestinationIPpairs": 16,
"individualAlerts": 2,
"suppressSeconds": 2,
"alertCorrelation": 3
"packetsLoggedPerFlow": 6400,
"enablePacketLogChannelEncryption": true
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 809
40| IPS Alerting Resource
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
HTTP Error
No Code SDK API errorId SDK API errorMessage
7 400 5705 TCP 2MSL timer interval should be at least 3 seconds more than the alert
correlation time
810 McAfee Network Security Platform 10.1.x Manager API Reference Guide
41| Failover Resource
Failover Resource
Add Failover
This URL creates the failover pair.
Resource URL
POST /domain/<domain_id>/failoverpair?SSLOverwrite=<true or false>
Request Parameters
URL Parameters:
SSLOverwrite True or false, to ignore the SSL key difference with primary & secondary Boolean No
Sensor
Payload Parameters:
failoverPairId Unique failover pair id, not required for POST Number No
McAfee Network Security Platform 10.1.x Manager API Reference Guide 811
41| Failover Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/domain/0/failoverpair
Payload
{
"name": "NS9100_failover",
"templateDeviceId": 1004,
"peerDeviceId": 1003,
"templateDeviceName": "NS9100_NSM_API_FO_2",
"peerDeviceName": "NS9100_NSM_API_FO_1",
"isFailOpen": false
}
Response
{
" createdResourceId ": 119
}
Error Information
Following error codes are returned by this URL:
812 McAfee Network Security Platform 10.1.x Manager API Reference Guide
41| Failover Resource
4 400 5902 The Sensors have different IPv6 processing options configured
5 400 5903 OOB NAC deployment mode is set on secondary Sensor interfaces
7 400 5905 The Sensors have different sensor configuration as per license configured
8 400 5906 Either delete the primary's NTBA configuration or set the secondary's NTBA
configuration to match the primary's
9 400 5907 Either delete the secondary's NTBA configuration or set the primary's NTBA
configuration to match the secondary's
10 400 5908 Both primary and secondary Sensors need to be configured for the same
NTBA
16 400 5915 Name must contain only letters, numerals, hyphens or underscores
17 400 5916 Primary and secondary Sensors have different SSL private/public keys
McAfee Network Security Platform 10.1.x Manager API Reference Guide 813
41| Failover Resource
Resource URL
GET /domain/<domain_id>/failoverpair /<failoverpair_id>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
failoverPairId Unique failover pair id, not required for POST Number
814 McAfee Network Security Platform 10.1.x Manager API Reference Guide
41| Failover Resource
Example
Request
GET https://<NSM_IP>/domain/0/failoverpair/119
Response
{
"name": "NS9100_failover",
"templateDeviceId": 1004,
"peerDeviceId": 1003,
"templateDeviceName": "NS9100_NSM_API_FO_2",
"peerDeviceName": "NS9100_NSM_API_FO_1",
"isFailOpen": false
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /domain/<domain_id>/failoverpair
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 815
41| Failover Resource
Details of FailoverPairForDomainResponseList:
failoverPairId Unique failover pair id, not required for POST Number
Example
Request
GET https://<NSM_IP>/domain/0/failoverpair
Response
816 McAfee Network Security Platform 10.1.x Manager API Reference Guide
41| Failover Resource
{
"FailoverPairForDomain" : [{
"failoverPairId" : 119,
"name" : "NS9100_failover",
"templateDeviceId" : 1004,
"peerDeviceId" : 1003,
"templateDeviceName" : "NS9100_NSM_API_FO_2",
"peerDeviceName" : "NS9100_NSM_API_FO_1",
"isFailOpen" : false
}, {
"failoverPairId" : 120,
"name" : "M2950_failover",
"templateDeviceId" : 1005,
"peerDeviceId" : 1006,
"templateDeviceName" : "M2950_NSM_API_FO_2",
"peerDeviceName" : "M2950_NSM_API_FO_1",
"isFailOpen" : false
}
]
}
Error Information
Following error code is returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 817
42| Syslog Firewall Notification Resource
Resource URL
GET /domain/<domain_id>/notification/firewall/syslog
Request Parameters
URL Request Parameters:
Response Parameters
Details of SyslogNotification:
818 McAfee Network Security Platform 10.1.x Manager API Reference Guide
42| Syslog Firewall Notification Resource
Example
Request
Response
{
[
"enableSyslog": true,
"parentAndChildDomain": true,
"serverIp": "1.1.1.2",
"serverPort": 515,
"facilities": "CLOCK_DAEMON_NOTE_2",
"severity”: "EMERGENCY_SYSTEM_UNUSABLE",
"message": "$IV_ACK_INFORMATION$ $IV_ADMIN_DOMAIN$ $IV_DESCRIPTION$"
]
}
Error Information
Following error code is returned by this URL:
Resource URL
GET /domain/<domain_id>/notification/firewall/syslog
Request Parameters
Details of SyslogNotification:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 819
42| Syslog Firewall Notification Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
Request Payload
{
"enableSyslog": true,
"parentAndChildDomain": true,
"serverIp": "1.1.1.2",
"serverPort": 515,
"facilities": "CLOCK_DAEMON_NOTE_2",
"severity”: "EMERGENCY_SYSTEM_UNUSABLE",
"message": "$IV_ACK_INFORMATION$ $IV_ADMIN_DOMAIN$ $IV_DESCRIPTION$"
}
820 McAfee Network Security Platform 10.1.x Manager API Reference Guide
42| Syslog Firewall Notification Resource
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 821
43| Syslog Faults Notification Resource
Resource URL
GET /domain/<domain_id>/notification/faults/syslog
Request Parameters
URL Request Parameters:
Response Parameters
Details of SyslogNotification:
822 McAfee Network Security Platform 10.1.x Manager API Reference Guide
43| Syslog Faults Notification Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/notification/faults/syslog
Response
{
[
"enableSyslog": true,
"parentAndChildDomain": true,
"serverIp": "1.1.1.2",
"serverPort": 515,
"facilities": "CLOCK_DAEMON_NOTE_2",
"severityMapping":
{
"informationTo": "EMERGENCY_SYSTEM_UNUSABLE",
"errorTo": "EMERGENCY_SYSTEM_UNUSABLE",
"warningTO": "EMERGENCY_SYSTEM_UNUSABLE",
"criticalTo": "EMERGENCY_SYSTEM_UNUSABLE"
},
"forwrdResults": "INFORMATIONAL_AND_ABOVE",
"message": "$IV_ACK_INFORMATION$ $IV_ADMIN_DOMAIN$ $IV_DESCRIPTION$"
]
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 823
43| Syslog Faults Notification Resource
Resource URL
PUT /domain/<domain_id>/notification/faults/syslog
Request Parameters
URL Request Parameters:
Payload Parameter
Details of SyslogNotification:
824 McAfee Network Security Platform 10.1.x Manager API Reference Guide
43| Syslog Faults Notification Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/notification/faults/syslog
Request Payload
McAfee Network Security Platform 10.1.x Manager API Reference Guide 825
43| Syslog Faults Notification Resource
{
"enableSyslog": true,
"parentAndChildDomain": true,
"serverIp": "1.1.1.2",
"serverPort": 515,
"facilities": "CLOCK_DAEMON_NOTE_2",
"severityMapping":
{
"informationTo": "EMERGENCY_SYSTEM_UNUSABLE",
"errorTo": "EMERGENCY_SYSTEM_UNUSABLE",
"warningTO": "EMERGENCY_SYSTEM_UNUSABLE",
"criticalTo": "EMERGENCY_SYSTEM_UNUSABLE"
},
"forwrdResults": "INFORMATIONAL_AND_ABOVE",
"message": "$IV_ACK_INFORMATION$ $IV_ADMIN_DOMAIN$ $IV_DESCRIPTION$"
}
Error Information
Following error codes are returned by this URL:
826 McAfee Network Security Platform 10.1.x Manager API Reference Guide
44| Tacacs Resource
Tacacs Resource
Get Tacacs on Domain
This URL gets the Tacacs configuration.
Resource URL
GET domain/<domain_id>/remoteaccess/tacacs
Request Parameters
URL Request Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 827
44| Tacacs Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/remoteaccess/tacacs
Response
{
"enableTACACS":true,
"tacacsServerIP1":"1.1.1.1",
"tacacsServerIP2":"1.1.1.2",
"tacacsServerIP3":"1.1.1.3",
"tacacsServerIP4":"1.1.1.4",
"enableEncryption":true,
"encryptionKey":"abc"
}
Error Information
Following error code is returned by this URL:
Resource URL
PUT domain/<domain_id>/remoteaccess/tacacs
Request Parameters
URL Request Parameters:
Payload Parameter:
828 McAfee Network Security Platform 10.1.x Manager API Reference Guide
44| Tacacs Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/remoteaccess/tacacs
{
"enableTACACS":true,
"tacacsServerIP1":"1.1.1.1",
"tacacsServerIP2":"1.1.1.2",
"tacacsServerIP3":"1.1.1.3",
"tacacsServerIP4":"1.1.1.4",
"enableEncryption":true,
"encryptionKey":"abc"
}
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 829
44| Tacacs Resource
{
"status":1
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET sensor/<sensor_id>/remoteaccess/tacacs
Request Parameters
URL Request Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
830 McAfee Network Security Platform 10.1.x Manager API Reference Guide
44| Tacacs Resource
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/remoteaccess/tacacs
Response
{
“inheritSettings”:false,
"enableTACACS":true, "tacacsServerIP1":"1.1.1.1",
"tacacsServerIP2":"1.1.1.2",
"tacacsServerIP3":"1.1.1.3",
"tacacsServerIP4":"1.1.1.4", "enableEncryption":true, "encryptionKey":"abc"
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 831
44| Tacacs Resource
Resource URL
PUT sensor/<sensor_id>/remoteaccess/tacacs
Request Parameters
URL Request Parameters:
Payload parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
832 McAfee Network Security Platform 10.1.x Manager API Reference Guide
44| Tacacs Resource
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/remoteaccess/tacacs
{
“inheritSettings”:false,
"enableTACACS":true, "tacacsServerIP1":"1.1.1.1",
"tacacsServerIP2":"1.1.1.2",
"tacacsServerIP3":"1.1.1.3",
"tacacsServerIP4":"1.1.1.4", "enableEncryption":true, "encryptionKey":"abc"
}
Response
{
{
"status":1
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 833
45| Active Botnets Resource
Resource URL
GET /domain/<domain_id>/activebotnets?includeChildDomain=<includeChildDomain>&&duration=<duration>
Request Parameters
URL Parameters:
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOUR
• LAST_12_HOUR
• LAST_24_HOUR
• LAST_48_HOUR
• LAST_7_DAYS
• LAST_14_DAYS
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
834 McAfee Network Security Platform 10.1.x Manager API Reference Guide
45| Active Botnets Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/activebotnets
Response
{
"botnetDetailList":
[
{
"name": "IRCBots",
"botId": 6,
"ccCommunication": "UN_BLOCKED",
"events": 1,
"lastEvent": "Jan 31 10:04 IST"
}
]
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 835
45| Active Botnets Resource
Resource URL
GET /domain/<domain_id>/activebotnetzombies/<bot_id>?includeChildDomain=<includeChildDomain>&&duration=<duration>
Request Parameters
URL Parameters:
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOUR
• LAST_12_HOUR
• LAST_24_HOUR
• LAST_48_HOUR
• LAST_7_DAYS
• LAST_14_DAYS
Response Parameters
Following fields are returned.
836 McAfee Network Security Platform 10.1.x Manager API Reference Guide
45| Active Botnets Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/activebotnetzombies/6
Response
{
"zombiesDetailList":
[
{
"ipAddress": "192.168.2.2",
"dnsName": "",
"ccCommunication": "UN_BLOCKED",
"events": 2,
"lastEvent": "Jan 31 16:53 IST",
"comment": ""
}
]
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 837
45| Active Botnets Resource
838 McAfee Network Security Platform 10.1.x Manager API Reference Guide
46| Automatic Update Configuration Resource
Resource URL
GET /autoupdateconfiguration/sigset
Request Parameters
None
Response Parameters
Following fields are returned.
• FREQUENTLY
• DAILY
• WEEKLY
startTime Time when the update should start. Should be in hh:mm format. String
McAfee Network Security Platform 10.1.x Manager API Reference Guide 839
46| Automatic Update Configuration Resource
endTime Time when the update should start. Should be in hh:mm format. String
• FREQUENTLY
• DAILY
• WEEKLY
startTime Time when the update should start. Should be in hh:mm format. String
endTime Time when the update should start. Should be in hh:mm format. String
Example
Request
Response
840 McAfee Network Security Platform 10.1.x Manager API Reference Guide
46| Automatic Update Configuration Resource
{
"automaticDownloadDetails":
{
"enableDownload": true,
"schedule": "FREQUENTLY",
"startTime": "0:0",
"endTime": "23:0",
"recur": "10 Hr"
},
"automaticDeploymentDetails":
{
"enableDeployInRealTime": true,
"enableDeployAtScheduledInterval": true,
"schedule": "FREQUENTLY",
"startTime": "7:50",
"endTime": "23:0",
"recur": "10 Min"
}
}
Error Information
None
Resource URL
GET /autoupdateconfiguration/botnet
Request Parameters
None
Response Parameters
Following fields are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 841
46| Automatic Update Configuration Resource
• FREQUENTLY
• DAILY
• WEEKLY
startTime Time when the update should start. Should be in hh:mm format. String
endTime Time when the update should start. Should be in hh:mm format. String
• FREQUENTLY
• DAILY
• WEEKLY
startTime Time when the update should start. Should be in hh:mm format. String
endTime Time when the update should start. Should be in hh:mm format. String
842 McAfee Network Security Platform 10.1.x Manager API Reference Guide
46| Automatic Update Configuration Resource
Example
Request
Response
{
"automaticDownloadDetails":
{
"enableDownload": true,
"schedule": "FREQUENTLY",
"startTime": "0:0",
"endTime": "23:0",
"recur": "10 Hr"
},
"automaticDeploymentDetails":
{
"enableDeployInRealTime": true,
"enableDeployAtScheduledInterval": true,
"schedule": "FREQUENTLY",
"startTime": "7:50",
"endTime": "23:0",
"recur": "10 Min"
}
}
Error Information
None
Resource URL
PUT /autoupdateconfiguration/sigsetdownloadconfig
Request Parameters
URL Parameters:
None
Payload Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 843
46| Automatic Update Configuration Resource
• FREQUENTLY
• DAILY
• WEEKLY
startTime Time when the update should start. Should be in hh:mm format. String
endTime Time when the update should start. Should be in hh:mm format. String
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/autoupdateconfiguration/sigsetdownloadconfig
Payload
{
"enableDownload": true,
"schedule": "FREQUENTLY",
"startTime": "0:0",
"endTime": "23:0",
"recur": "10 Hr"
}
Response
{
"status": 1
}
844 McAfee Network Security Platform 10.1.x Manager API Reference Guide
46| Automatic Update Configuration Resource
Error Information
Following error codes are returned by this URL:
1 400 6101 Invalid time format... Time is mandatory and should be in hh:mm format
4 400 6104 For frequently: duration should end with Min or Hr... If hr then 1 to 10 and 12
is allowed... If min then 10 15 30 & 45 are allowed...
5 400 6105 For weekly: duration should be name of the days like SUNDAY,MONDAY,etc.
6 400 6106 Schedule should be one of the following: FREQUENTLY, DAILY & WEEKLY
Resource URL
PUT /autoupdateconfiguration/botnetdownloadconfig
Request Parameters
URL Parameters:
None
Payload Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 845
46| Automatic Update Configuration Resource
• FREQUENTLY
• DAILY
• WEEKLY
startTime Time when the update should start. Should be in hh:mm format. String
endTime Time when the update should start. Should be in hh:mm format. String
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/autoupdateconfiguration/botnetdownloadconfig
Payload
{
"enableDownload": true,
"schedule": "FREQUENTLY",
"startTime": "0:0",
"endTime": "23:0",
"recur": "10 Hr"
}
Response
846 McAfee Network Security Platform 10.1.x Manager API Reference Guide
46| Automatic Update Configuration Resource
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
1 400 6101 Invalid time format... Time is mandatory and should be in hh:mm format
4 400 6104 For frequently: duration should end with Min or Hr... If hr then 1 to 10 and 12
is allowed... If min then 10 15 30 & 45 are allowed...
5 400 6105 For weekly: duration should be name of the days like SUNDAY,MONDAY,etc.
6 400 6106 Schedule should be one of the following: FREQUENTLY, DAILY & WEEKLY
Resource URL
PUT /autoupdateconfiguration/sigsetdeploymentconfig
Request Parameters
URL Parameters:
None
McAfee Network Security Platform 10.1.x Manager API Reference Guide 847
46| Automatic Update Configuration Resource
Payload Parameters:
• FREQUENTLY
• DAILY
• WEEKLY
startTime Time when the update should start. Should be in hh:mm format. String
endTime Time when the update should start. Should be in hh:mm format. String
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/autoupdateconfiguration/sigsetdeploymentconfig
Payload
848 McAfee Network Security Platform 10.1.x Manager API Reference Guide
46| Automatic Update Configuration Resource
{
"enableDeployInRealTime": true,
"enableDeployAtScheduledInterval": true,
"schedule": "FREQUENTLY",
"startTime": "7:50",
"endTime": "23:0",
"recur": "10 Min"
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
1 400 6101 Invalid time format... Time is mandatory and should be in hh:mm format
4 400 6104 For frequently: duration should end with Min or Hr... If hr then 1 to 10 and 12
is allowed... If min then 10 15 30 & 45 are allowed...
5 400 6105 For weekly: duration should be name of the days like SUNDAY,MONDAY,etc.
6 400 6106 Schedule should be one of the following: FREQUENTLY, DAILY & WEEKLY
McAfee Network Security Platform 10.1.x Manager API Reference Guide 849
46| Automatic Update Configuration Resource
Resource URL
PUT /autoupdateconfiguration/botnetdeploymentconfig
Request Parameters
URL Parameters:
None
Payload Parameters:
• FREQUENTLY
• DAILY
• WEEKLY
startTime Time when the update should start. Should be in hh:mm format. String
endTime Time when the update should start. Should be in hh:mm format. String
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
850 McAfee Network Security Platform 10.1.x Manager API Reference Guide
46| Automatic Update Configuration Resource
PUT https://<NSM_IP>/sdkapi/autoupdateconfiguration/botnetdeploymentconfig
Payload
{
"enableDeployInRealTime": true,
"enableDeployAtScheduledInterval": true,
"schedule": "FREQUENTLY",
"startTime": "7:50",
"endTime": "23:0",
"recur": "10 Min"
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
1 400 6101 Invalid time format... Time is mandatory and should be in hh:mm format
4 400 6104 For frequently: duration should end with Min or Hr... If hr then 1 to 10 and 12
is allowed... If min then 10 15 30 & 45 are allowed...
5 400 6105 For weekly: duration should be name of the days like SUNDAY,MONDAY,etc.
6 400 6106 Schedule should be one of the following: FREQUENTLY, DAILY & WEEKLY
McAfee Network Security Platform 10.1.x Manager API Reference Guide 851
47| Malware Downloads Resource
Resource URL
GET /domain/<domain_id>/malwaredownloads?
duration=<duration>&resultType=<resultType>&confidenceType=<confidenceType>&includeChildDomain=<includeChildDomain>
Request Parameters
URL Parameters:
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
• LAST_12_HOURS
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
• ANY_RESULT
• BLOCKED
• UNBLOCKED
• ANY_MALWARE_CONFIDENCE
• VERY_HIGH_MALWARE_CONFIDENCE
• HIGH_MALWARE_CONFIDENCE
• LOW_MALWARE_CONFIDENCE
• MEDIUM_MALWARE_CONFIDENCE
852 McAfee Network Security Platform 10.1.x Manager API Reference Guide
47| Malware Downloads Resource
• VERY_LOW_MALWARE_CONFIDENCE
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 853
47| Malware Downloads Resource
Example
Request
GET https://<NSM_IP>/domain/0/malwaredownloads
Response
{
"malwareSummaryDetailList": [
{
"filehash": "493d146a59a155ed2eb890f5fd3bb182",
"overAllConfidence": "LOW",
"individualEngineConfidence": {
"CustomFingerPrints": "UNKNOWN",
"GTIFileReputation": "VERY_LOW",
"PDFEmulation": "UNKNOWN",
"GatewayAntiMalware": "LOW"
},
"lastDownload": "Mon Mar 10 17:37:49 IST 2014",
"totalDownloads": 2,
"fileSize": "1024"
}
]
}
Error Information
Following error codes are returned by this URL:
854 McAfee Network Security Platform 10.1.x Manager API Reference Guide
47| Malware Downloads Resource
Resource URL
GET /domain/<domain_id>/malwaredownloads/ filehash/<filehash>?
duration=<duration>&resultType=<resultType>&confidenceType=<confidenceType>&includeChildDomain=<includeChildDomain>
Request Parameters
URL Parameters:
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
• LAST_12_HOURS
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
• ANY_RESULT
• BLOCKED
• UNBLOCKED
McAfee Network Security Platform 10.1.x Manager API Reference Guide 855
47| Malware Downloads Resource
• ANY_MALWARE_CONFIDENCE
• VERY_HIGH_MALWARE_CONFIDENCE
• HIGH_MALWARE_CONFIDENCE
• LOW_MALWARE_CONFIDENCE
• MEDIUM_MALWARE_CONFIDENCE
• VERY_LOW_MALWARE_CONFIDENCE
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
856 McAfee Network Security Platform 10.1.x Manager API Reference Guide
47| Malware Downloads Resource
Example
Request
GET https://<NSM_IP>/domain/0/malwaredownloads/filehash/493d146a59a155ed2eb890f5fd3bb182
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 857
47| Malware Downloads Resource
" {
"malwareAlertDetailsList": [
{
"time": "Mar 11 13:09 IST",
"attacker": {
"ipAddress": "1.1.1.9",
"country": "---"
},
"target": {
"ipAddress": "1.1.1.10",
"country": "---"
},
"result": "Inconclusive",
"protocol": "http",
"confidence": "LOW",
"engine": "Gateway Anti-Malware",
"attackDescription": {
"attackName": "MALWARE: Malicious file detected by Network Threat Behavioural Analysis engine",
"result": "INCONCLUSIVE",
"direction": "OUTBOUND"
}
},
{
"time": "Mar 11 13:09 IST",
"attacker": {
"ipAddress": "1.1.1.9",
"country": "---"
},
"target": {
"ipAddress": "1.1.1.10",
"country": "---"
},
"result": "Inconclusive",
"protocol": "http",
"confidence": "VERY_LOW",
"engine": "GTI File Reputation",
"attackDescription": {
"attackName": "MALWARE: Malicious File transfer detected by McAfee Global Threat Intelligence
Service",
"result": "INCONCLUSIVE",
"direction": "OUTBOUND"
}
}
]
}
Error Information
Following error codes are returned by this URL:
858 McAfee Network Security Platform 10.1.x Manager API Reference Guide
48| Nessus scan report Resource
Resource URL
PUT domain/<domain_id>/integration/vulnerability/importscanreport
Request Parameters
URL Parameters:
Payload Parameters:
Details of BodyPart[0]:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 859
48| Nessus scan report Resource
Details of BodyPart[1]:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/integration/vulnerability/importscanreport
860 McAfee Network Security Platform 10.1.x Manager API Reference Guide
48| Nessus scan report Resource
----Boundary_1_12424925_1353496814940
Content-Type: application/json
{
"reportFileName": "Test1.nessus",
"reportType": "NESSUS",
"description": "test import",
"enableOnImport": true
}
----Boundary_1_12424925_1353496814940
Content-Type: application/octet-stream
ÒrÝ?ü0¥ÿ<ˆ}c,¢eXœ^:4 JhÍ2µ�rDYñÇÚd¶/¿í�F~ ÆIc§¼éá©ÿ_8Öø« C6Ô654îÞg‘J6?x ‚*T2¡qhã4ÎÅVµGƒo9ŸCÒª„í¹Ì —
Áë&1¹ì,Ú‹y ì^î‘Vö5U
----Boundary_1_12424925_1353496814940--
Response
{
" status ": 1
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 861
49| ATD Configuration Resource
Resource URL
GET domain/<domain_id>/ipsdevices/atdintegration
Request Parameters
URL Parameter
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
862 McAfee Network Security Platform 10.1.x Manager API Reference Guide
49| ATD Configuration Resource
GET https://<NSM_IP>/sdkapi/domain/0/ipsdevices/atdintegration
Response
{
"enableCommunication":true,
"atdUsername":"admin",
"sensorToATDCommunicationPort":8505,
"managerToATDCommunicationPort":443,
"atdPassword":"admin123",
"atdApplianceIPAddr":"1.1.1.1"}
Error Information
Following error code is returned by this URL:
Resource URL
PUT domain/<domain_id>/ipsdevices/atdintegration
Request Parameters
URL Parameters:
Payload Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 863
49| ATD Configuration Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/ipsdevices/atdintegration
{
"enableCommunication":true,
"atdUsername":"admin",
"sensorToATDCommunicationPort":8505,
"managerToATDCommunicationPort":443,
"atdPassword":"admin123",
"atdApplianceIPAddr":"1.1.1.1"}
Response
{
" status ": 1
}
Error Information
Following error codes are returned by this URL:
864 McAfee Network Security Platform 10.1.x Manager API Reference Guide
49| ATD Configuration Resource
Resource URL
GET sensor/<sensor_id>/atdintegration
Request Parameters
URL Parameter
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 865
49| ATD Configuration Resource
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/0/atdintegration
Response
{
"enableCommunication":true,
“inheritSettings”:”false”,
"atdUsername":"admin",
"sensorToATDCommunicationPort":8505,
"managerToATDCommunicationPort":443,
"atdPassword":"admin123",
"atdApplianceIPAddr":"1.1.1.1"}
Error Information
Following error code is returned by this URL:
Resource URL
PUT sensor/<sensor_id>/atdintegration
Request Parameters
URL Parameters:
866 McAfee Network Security Platform 10.1.x Manager API Reference Guide
49| ATD Configuration Resource
Payload Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/0/atdintegration
McAfee Network Security Platform 10.1.x Manager API Reference Guide 867
49| ATD Configuration Resource
{
“inheritSettings”:”false”,
"enableCommunication":true,
"atdUsername":"admin",
"sensorToATDCommunicationPort":8505,
"managerToATDCommunicationPort":443,
"atdPassword":"admin123",
"atdApplianceIPAddr":"1.1.1.1"}
Response
{
" status ": 1
}
Error Information
Following error code is returned by this URL:
868 McAfee Network Security Platform 10.1.x Manager API Reference Guide
50| Sensor Configuration Export Import Resource
Resource URL
PUT /sensor/<sensor_id>/ exportconfiguration
Request Parameters
URL Parameters:
Details of SensorConfigExportElement:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 869
50| Sensor Configuration Export Import Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1002/exportconfiguration
Payload
{
"exportFirewallConfig": true,
"exportMonitoringPortConfig": true,
"exportFOConfig": true,
"exportNACConfig": true,
"exportSSLConfig": true,
"exportExceptionsConfig": true,
"fileDestination": "C:\\sensorconfigexport\\sensorAPIallTRUE",
"exportNTBAConfig": true
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
870 McAfee Network Security Platform 10.1.x Manager API Reference Guide
50| Sensor Configuration Export Import Resource
Resource URL
PUT /sensor/<sensor_id>/importconfiguration
Request Parameters
URL Parameters:
Details of BodyPart[0]:
BodyPart[0] Holds the import file element object Application/json object Yes
Details of ImportFileElement:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 871
50| Sensor Configuration Export Import Resource
Details of BodyPart[1]:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/<sensor_id>/importconfiguration
Payload
872 McAfee Network Security Platform 10.1.x Manager API Reference Guide
50| Sensor Configuration Export Import Resource
----Boundary_1_12424925_1353496814940
Content-Type: application/json
----Boundary_1_12424925_1353496814940
Content-Type: application/octet-stream
<Sensor swVersion="8.0.2.2">
<PhysicalConfig originalSensorName="M-2950" failoverMode="standalone">
<sensor description="MCAFEE-NETWORK-SECURITY-PLATFORM" model="M-2950" slotCount="2" //……
……
…..//
----Boundary_1_12424925_1353496814940--
Response
{
"status": 1,
"message": "IN PROGRESS:Queued: Generation of Signature file Segment for Sensor: M-2950 IN
PROGRESS:Generating Signature Segments for Sensor: M-2950. Sig Version: 8.6.25.6 IN PROGRESS:Generating
Response Segments for Sensor: M-2950 IN PROGRESS:Beginning Signature download to the sensor: M-2950 IN
PROGRESS:Transferred files successfully applied for... DOWNLOAD COMPLETE "
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 873
50| Sensor Configuration Export Import Resource
5 500 500 Fail over Sensor required for importing this file
7 500 500 IPv6 configuration mismatch. Correct this and try again.
8 500 500 Sensor model is different. Correct this and try again.
9 500 500 Invalid import file. Correct this and try again.
10 500 500 Physical configuration is different. Correct this and try again.
13 400 1142 Please wait a minute and then try again, check the system log for details
14 400 1144 Sensor is not a standalone device. Signature set download cannot be done
on a failover device
16 400 1148 Sensor software version is not compatible with the Manager
874 McAfee Network Security Platform 10.1.x Manager API Reference Guide
51| Denial Of Service Resource
Resource URL
GET /sensor/<sensor_id>/dosprofilesonmanager
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of DosProfilesOnManager:
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1002/dosprofilesonmanager
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 875
51| Denial Of Service Resource
{
"dosProfiles":
[
"profile_Thu_Apr_24_17_50_16_IST_2014.dat.gz",
"profile_Thu_Apr_24_17_50_35_IST_2014.dat.gz"
]
}
Error Information
Following error code is returned by this URL:
Resource URL
PUT /sensor/<sensor_id>/ dosprofilelearningmode
Request Parameters
URL Parameters:
Details of DosProfilesLearning:
876 McAfee Network Security Platform 10.1.x Manager API Reference Guide
51| Denial Of Service Resource
• LEARNING_MODE
• DETECTION_MODE
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1002/dosprofilelearningmode
Payload
{
"dosProfileLearning" : "LEARNING_MODE"
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 877
51| Denial Of Service Resource
Resource URL
GET /sensor/<sensor_id>/ dospacketforwarding
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
DosProfilesOnManager The DoS profiles on the Manager for the Sensor Object
Details of DosProfilesOnManager:
Example
Request
878 McAfee Network Security Platform 10.1.x Manager API Reference Guide
51| Denial Of Service Resource
GET https://<NSM_IP>/sdkapi/sensor/1002/dospacketforwarding
Response
{
"dosPacketForwarding": "Do Not Copy DoS Packets (Dos Packet Logging is disabled)"
}
Error Information
Following error code is returned by this URL:
Resource URL
PUT /sensor/<sensor_id>/uploaddosprofile
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 879
51| Denial Of Service Resource
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1002/uploaddosprofile
Response
{
"status": 1,
"message": "Upload Complete for Dos (from sensor to manager)"
}
Error Information
Following error codes are returned by this URL:
Resource URL
PUT /sensor/<sensor_id>/restoredosprofile
Request Parameters
URL Parameters:
880 McAfee Network Security Platform 10.1.x Manager API Reference Guide
51| Denial Of Service Resource
Details of DosProfileRestoreName:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1002/retoredosprofile
Payload
{
"dosProfileName" : "profile_Thu_Apr_24_17_50_16_IST_2014.dat.gz"
}
Response
{
"status": 1,
"message": "Download Complete for Dos (from manager to sensor)"
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 881
51| Denial Of Service Resource
Error Information
Following error codes are returned by this URL:
3 400 5601 The profile name does not exist for the Sensor
Resource URL
DELETE /sensor/<sensor_id>/deletedosprofile
Request Parameters
URL Parameters:
Details of DosProfileRestoreName:
882 McAfee Network Security Platform 10.1.x Manager API Reference Guide
51| Denial Of Service Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1002/deletedosprofile
Payload
{
"dosProfileName" : "profile_Thu_Apr_24_17_50_16_IST_2014.dat.gz"
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 883
51| Denial Of Service Resource
3 400 5601 The profile name does not exist for the Sensor
Resource URL
PUT /sensor/<sensor_id>/ exportdosprofile
Request Parameters
URL Parameters:
Details of DosProfileRestoreName:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
884 McAfee Network Security Platform 10.1.x Manager API Reference Guide
51| Denial Of Service Resource
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1002/exportdosprofile
Payload
{
"dosProfileName": "profile_Fri_Apr_25_15_49_38_IST_2014.dat.gz",
"destinationFolder": "C:\\dos"
}
Response
{
"status": 1,
"message": "File Copied to : C:\dos\profile_Fri_Apr_25_15_49_38_IST_2014.dat.gz "
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 885
52| Domain Name Exceptions Resource
Resource URL
GET /domainnameexceptions/
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned.
added When and who added the domain name exception String
Example
Request
GET https://<NSM_IP>/sdkapi/domainnameexceptions
Response
886 McAfee Network Security Platform 10.1.x Manager API Reference Guide
52| Domain Name Exceptions Resource
{
'dneDetail': [{
'added': 'Sep 1 16:20 (admin)',
'id': 9835,
'domainName': 'www.google.com',
‘comment’: ‘Google’
},
{
'added': 'Sep 1 16:20 (admin)',
'id': 9836,
'domainName': 'www.yahoo.com'
},
{
'added': 'Sep 1 16:20(admin)',
'id': 9837,
'domainName': 'www.abc.com'
}]
}
Error Information
None
Resource URL
POST /domainnameexceptions/import
Request Parameters
URL Parameters: None
Details of BodyPart[0]:
BodyPart[0] Holds the DNE file element object Application/json object Yes
McAfee Network Security Platform 10.1.x Manager API Reference Guide 887
52| Domain Name Exceptions Resource
Details of BodyPart[1]:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://<NSM_IP>/sdkapi/domainnameexceptions/import
Payload
888 McAfee Network Security Platform 10.1.x Manager API Reference Guide
52| Domain Name Exceptions Resource
----Boundary_1_12424925_1353496814940
Content-Type: application/json
----Boundary_1_12424925_1353496814940
Content-Type: application/octet-stream
www.google.com,
www.yahoo.com,
www.abc.com,
www.test1.com,
www.test2.com
----Boundary_1_12424925_1353496814940--
Response
{
"status": 1
}
Error Information
Following error code s returned by this URL:
Resource URL
GET /domainnameexceptions/export
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 889
52| Domain Name Exceptions Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domainnameexceptions/export
Response
{
"byteStream": "www.google.com,\nwww.yahoo.com,\nwww.abc.com,nwww.test1.com,\nwww.test2.com"
}
Error Information
Following error code is returned by this URL:
Resource URL
PUT /domainnameexceptions
Request Parameters
URL Parameters: None
890 McAfee Network Security Platform 10.1.x Manager API Reference Guide
52| Domain Name Exceptions Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domainnameexceptions
Payload
{
"domainName": "www.google.com",
"comment": "Google"
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
2 500 1001 Internal error message: Following domain name was not found:
<domainname>
McAfee Network Security Platform 10.1.x Manager API Reference Guide 891
52| Domain Name Exceptions Resource
Resource URL
DELETE /domainnameexceptions
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://<NSM_IP>/sdkapi/domainnameexceptions
Payload
{
"domainName": ["www.google.com",
"abc",
"test"]
}
Response
{
"status": 1
}
892 McAfee Network Security Platform 10.1.x Manager API Reference Guide
52| Domain Name Exceptions Resource
Error Information
Following error code is returned by this URL:
HTTP Error
No Code SDK API errorId SDK API errorMessage
1 500 1001 Internal error message: Following domain names were not found:
<domainname1>, <domainname2>, others have been deleted.
Resource URL
DELETE /domainnameexceptions/all
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://<NSM_IP>/sdkapi/domainnameexceptions/all
Payload
None
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 893
52| Domain Name Exceptions Resource
{
"status": 1
}
Error Information
None
Resource URL
POST /domainnameexceptions
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://<NSM_IP>/sdkapi/domainnameexceptions
Payload
894 McAfee Network Security Platform 10.1.x Manager API Reference Guide
52| Domain Name Exceptions Resource
{
"domainName": "www.google1.com",
"comment": "updated domain"
}
Response
{
"createdResourceId": 1
}
Error Information
Following error codes are returned by this URL:
Resource URL
PUT /domainnameexceptions/updatedetail
Request Parameters
URL Parameters: None
McAfee Network Security Platform 10.1.x Manager API Reference Guide 895
52| Domain Name Exceptions Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domainnameexceptions/updatedetail
Payload
{
“oldDomainName”: “www.google.com”,
"domainName": "www.google1.com",
"comment": "updated domain"
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
896 McAfee Network Security Platform 10.1.x Manager API Reference Guide
52| Domain Name Exceptions Resource
2 500 1001 Internal error message: Domain name field is not found
<domainname>
McAfee Network Security Platform 10.1.x Manager API Reference Guide 897
53| Direct Syslog Resource
Resource URL
GET /domain/<domain_id>/directsyslog
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
898 McAfee Network Security Platform 10.1.x Manager API Reference Guide
53| Direct Syslog Resource
Details of syslogPriorityMapping:
Details of filter:
Details of LogSomeAttacks:
isExplicitlyEnabled The attack definition has syslog notification explicitly enabled Boolean
McAfee Network Security Platform 10.1.x Manager API Reference Guide 899
53| Direct Syslog Resource
Details of minimumSeverity:
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/directsyslog
Response
{
'enableSyslog': 'true',
'syslogPriorityMapping': {
'lowTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'highTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'informationTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'mediumTO': 'EMERGENCY_SYSTEM_UNUSABLE'
},
'isInherit': 'false',
'serverIp': '10.213.172.94',
'filter': {
'LogSomeAttacks': {
'isExplicitlyEnabled': 'false',
'minimumSeverity': {
'isMinimumSeverity': 'false',
'severityType': 'LOW'
}
}
},
'serverPort': '514',
'syslogFacility': 'SECURITY_AUTHORIZATION_CODE_4',
'message': 'Admin_Domain=$IV_ADMIN_DOMAIN$Alert_Type=$IV_ALERT_TYPE$Attack_Name=$IV_ATTACK_NAME
$AttackConfidence=$IV_ATTACK_CONFIDENCE$DetectMech=$IV_DETECTION_MECHANISM$Category=$IV_CATEGORY$SubCategory=
$IV_SUB_CATEGORY$INTF=$IV_INTERFACE$Attack_Id=$IV_ATTACK_ID$Attack_Count=$IV_ATTACK_COUNT$Attack_Severity=
$IV_ATTACK_SEVERITY$Attack_Signature=$IV_ATTACK_SIGNATURE$Source_Ip=$IV_SOURCE_IP$Dest_Ip=$IV_DESTINATION_IP
$Dest_Port=$IV_DESTINATION_PORT$Source_Port=$IV_SOURCE_PORT$Malware_Confidence=$IV_MALWARE_CONFIDENCE
$Detection_Engine=$IV_MALWARE_DETECTION_ENGINE$Mal_File_Len=$IV_MALWARE_FILE_LENGTH$Mal_file_md5=
$IV_MALWARE_FILE_MD5_HASH$Mal_File_Name=$IV_MALWARE_FILE_NAME$Mal_File_Type=$IV_MALWARE_FILE_TYPE
$Mal_Vir_Name=$IV_MALWARE_VIRUS_NAME$Direction=$IV_DIRECTION$Nw_Protocol=$IV_NETWORK_PROTOCOL$AppProtocol=
$IV_APPLICATION_PROTOCOL$Attack_Time=$IV_ATTACK_TIME$Qurantine_Time=$IV_QUARANTINE_END_TIME$Result_Status=
$IV_RESULT_STATUS$Alert_UUID=$IV_SENSOR_ALERT_UUID$PeerName=$IV_SENSOR_CLUSTER_MEMBER$Sensor_Name=
$IV_SENSOR_NAME$SourceOs=$IV_SOURCE_OS$DestOs=$IV_DEST_OS$Src_APN=$IV_SRC_APN$Dest_APN=$IV_DEST_APN$Src_IMSI=
$IV_SRC_IMSI$Dest_IMSI=$IV_DEST_IMSI$Src_Phone=$IV_SRC_PHONE_NUMBER$Dest_Phone=$IV_DEST_PHONE_NUMBER$Vlan_ID=
$IV_VLAN_ID$'
}
Error Information
Following error codes are returned by this URL:
900 McAfee Network Security Platform 10.1.x Manager API Reference Guide
53| Direct Syslog Resource
2 400 6001 Direct sysog configuration is not present for this domain/Sensor
Resource URL
PUT /domain/<domain_id>/directsyslog
Request Parameters
URL Parameters:
• SECURITY_AUTHORIZATION_CODE_10
• SECURITY_AUTHORIZATION_CODE_4
McAfee Network Security Platform 10.1.x Manager API Reference Guide 901
53| Direct Syslog Resource
• LOG_AUDIT_NOTE_1
• LOG_ALERT_NOTE_1
• CLOCK_DAEMON_NOTE_2
• LOCAL_USER_0
• LOCAL_USER_1
• LOCAL_USER_2
• LOCAL_USER_3
• LOCAL_USER_4
• LOCAL_USER_5
• LOCAL_USER_6
• LOCAL_USER_7
Details of syslogPriorityMapping:
informationTo Informational severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
lowTo Low severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
902 McAfee Network Security Platform 10.1.x Manager API Reference Guide
53| Direct Syslog Resource
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
mediumTO Medium severity attack mapping. Values allowed are: String yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
highTo High severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
Details of filter:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 903
53| Direct Syslog Resource
Details of LogSomeAttacks:
isExplicitlyEnabled The attack definition has Syslog notification explicitly enabled Boolean Yes
Details of minimumSeverity:
• INFORMATIONAL
• LOW
• MEDIUM
• HIGH
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/directsyslog
Payload
904 McAfee Network Security Platform 10.1.x Manager API Reference Guide
53| Direct Syslog Resource
{
'enableSyslog': 'true',
'syslogPriorityMapping': {
'lowTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'highTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'informationTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'mediumTO': 'EMERGENCY_SYSTEM_UNUSABLE'
},
'isInherit': 'false',
'serverIp': '10.213.172.94',
'filter': {
'LogSomeAttacks': {
'isExplicitlyEnabled': 'false',
'minimumSeverity': {
'isMinimumSeverity': 'false',
'severityType': 'LOW'
}
}
},
'serverPort': '514',
'syslogFacility': 'SECURITY_AUTHORIZATION_CODE_4',
'message': 'Admin_Domain=$IV_ADMIN_DOMAIN$Alert_Type=$IV_ALERT_TYPE$Attack_Name=$IV_ATTACK_NAME
$AttackConfidence=$IV_ATTACK_CONFIDENCE$DetectMech=$IV_DETECTION_MECHANISM$Category=$IV_CATEGORY$SubCategory=
$IV_SUB_CATEGORY$INTF=$IV_INTERFACE$Attack_Id=$IV_ATTACK_ID$Attack_Count=$IV_ATTACK_COUNT$Attack_Severity=
$IV_ATTACK_SEVERITY$Attack_Signature=$IV_ATTACK_SIGNATURE$Source_Ip=$IV_SOURCE_IP$Dest_Ip=$IV_DESTINATION_IP
$Dest_Port=$IV_DESTINATION_PORT$Source_Port=$IV_SOURCE_PORT$Malware_Confidence=$IV_MALWARE_CONFIDENCE
$Detection_Engine=$IV_MALWARE_DETECTION_ENGINE$Mal_File_Len=$IV_MALWARE_FILE_LENGTH$Mal_file_md5=
$IV_MALWARE_FILE_MD5_HASH$Mal_File_Name=$IV_MALWARE_FILE_NAME$Mal_File_Type=$IV_MALWARE_FILE_TYPE
$Mal_Vir_Name=$IV_MALWARE_VIRUS_NAME$Direction=$IV_DIRECTION$Nw_Protocol=$IV_NETWORK_PROTOCOL$AppProtocol=
$IV_APPLICATION_PROTOCOL$Attack_Time=$IV_ATTACK_TIME$Qurantine_Time=$IV_QUARANTINE_END_TIME$Result_Status=
$IV_RESULT_STATUS$Alert_UUID=$IV_SENSOR_ALERT_UUID$PeerName=$IV_SENSOR_CLUSTER_MEMBER$Sensor_Name=
$IV_SENSOR_NAME$SourceOs=$IV_SOURCE_OS$DestOs=$IV_DEST_OS$Src_APN=$IV_SRC_APN$Dest_APN=$IV_DEST_APN$Src_IMSI=
$IV_SRC_IMSI$Dest_IMSI=$IV_DEST_IMSI$Src_Phone=$IV_SRC_PHONE_NUMBER$Dest_Phone=$IV_DEST_PHONE_NUMBER$Vlan_ID=
$IV_VLAN_ID$'
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 905
53| Direct Syslog Resource
Resource URL
GET /sensor/<sensor_id>/directsyslog
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of syslogPriorityMapping:
906 McAfee Network Security Platform 10.1.x Manager API Reference Guide
53| Direct Syslog Resource
Details of filter:
Details of LogSomeAttacks:
isExplicitlyEnabled The attack definition has syslog notification explicitly enabled Boolean
Details of minimumSeverity:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 907
53| Direct Syslog Resource
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/directsyslog
Response
{
'enableSyslog': 'true',
'syslogPriorityMapping': {
'lowTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'highTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'informationTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'mediumTO': 'EMERGENCY_SYSTEM_UNUSABLE'
},
'isInherit': 'false',
'serverIp': '10.213.172.94',
'filter': {
'LogSomeAttacks': {
'isExplicitlyEnabled': 'false',
'minimumSeverity': {
'isMinimumSeverity': 'false',
'severityType': 'LOW'
}
}
},
'serverPort': '514',
'syslogFacility': 'SECURITY_AUTHORIZATION_CODE_4',
'message': 'Admin_Domain=$IV_ADMIN_DOMAIN$Alert_Type=$IV_ALERT_TYPE$Attack_Name=$IV_ATTACK_NAME
$AttackConfidence=$IV_ATTACK_CONFIDENCE$DetectMech=$IV_DETECTION_MECHANISM$Category=$IV_CATEGORY$SubCategory=
$IV_SUB_CATEGORY$INTF=$IV_INTERFACE$Attack_Id=$IV_ATTACK_ID$Attack_Count=$IV_ATTACK_COUNT$Attack_Severity=
$IV_ATTACK_SEVERITY$Attack_Signature=$IV_ATTACK_SIGNATURE$Source_Ip=$IV_SOURCE_IP$Dest_Ip=$IV_DESTINATION_IP
$Dest_Port=$IV_DESTINATION_PORT$Source_Port=$IV_SOURCE_PORT$Malware_Confidence=$IV_MALWARE_CONFIDENCE
$Detection_Engine=$IV_MALWARE_DETECTION_ENGINE$Mal_File_Len=$IV_MALWARE_FILE_LENGTH$Mal_file_md5=
$IV_MALWARE_FILE_MD5_HASH$Mal_File_Name=$IV_MALWARE_FILE_NAME$Mal_File_Type=$IV_MALWARE_FILE_TYPE
$Mal_Vir_Name=$IV_MALWARE_VIRUS_NAME$Direction=$IV_DIRECTION$Nw_Protocol=$IV_NETWORK_PROTOCOL$AppProtocol=
$IV_APPLICATION_PROTOCOL$Attack_Time=$IV_ATTACK_TIME$Qurantine_Time=$IV_QUARANTINE_END_TIME$Result_Status=
$IV_RESULT_STATUS$Alert_UUID=$IV_SENSOR_ALERT_UUID$PeerName=$IV_SENSOR_CLUSTER_MEMBER$Sensor_Name=
$IV_SENSOR_NAME$SourceOs=$IV_SOURCE_OS$DestOs=$IV_DEST_OS$Src_APN=$IV_SRC_APN$Dest_APN=$IV_DEST_APN$Src_IMSI=
$IV_SRC_IMSI$Dest_IMSI=$IV_DEST_IMSI$Src_Phone=$IV_SRC_PHONE_NUMBER$Dest_Phone=$IV_DEST_PHONE_NUMBER$Vlan_ID=
$IV_VLAN_ID$'
}
Error Information
Following error codes are returned by this URL:
908 McAfee Network Security Platform 10.1.x Manager API Reference Guide
53| Direct Syslog Resource
3 400 6001 Direct sysog configuration is not present for this domain/Sensor
Resource URL
PUT /sensor/<sensor_id>/directsyslog
Request Parameters
URL Parameters:
• SECURITY_AUTHORIZATION_CODE_10
• SECURITY_AUTHORIZATION_CODE_4
• LOG_AUDIT_NOTE_1
• LOG_ALERT_NOTE_1
• CLOCK_DAEMON_NOTE_2
• LOCAL_USER_0
McAfee Network Security Platform 10.1.x Manager API Reference Guide 909
53| Direct Syslog Resource
• LOCAL_USER_1
• LOCAL_USER_2
• LOCAL_USER_3
• LOCAL_USER_4
• LOCAL_USER_5
• LOCAL_USER_6
• LOCAL_USER_7
Details of syslogPriorityMapping:
informationTo Informational severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
lowTo Low severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
910 McAfee Network Security Platform 10.1.x Manager API Reference Guide
53| Direct Syslog Resource
• DEBUG_MESSAGES
mediumTO Medium severity attack mapping. Values allowed are: String yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
highTo High severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
Details of filter:
Details of LogSomeAttacks:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 911
53| Direct Syslog Resource
isExplicitlyEnabled The attack definition has syslog notification explicitly enabled Boolean Yes
Details of minimumSeverity:
• INFORMATIONAL
• LOW
• MEDIUM
• HIGH
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1001/directsyslog
Payload
912 McAfee Network Security Platform 10.1.x Manager API Reference Guide
53| Direct Syslog Resource
{
'enableSyslog': 'true',
'syslogPriorityMapping': {
'lowTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'highTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'informationTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'mediumTO': 'EMERGENCY_SYSTEM_UNUSABLE'
},
'isInherit': 'false',
'serverIp': '10.213.172.94',
'filter': {
'LogSomeAttacks': {
'isExplicitlyEnabled': 'false',
'minimumSeverity': {
'isMinimumSeverity': 'false',
'severityType': 'LOW'
}
}
},
'serverPort': '514',
'syslogFacility': 'SECURITY_AUTHORIZATION_CODE_4',
'message': 'Admin_Domain=$IV_ADMIN_DOMAIN$Alert_Type=$IV_ALERT_TYPE$Attack_Name=$IV_ATTACK_NAME
$AttackConfidence=$IV_ATTACK_CONFIDENCE$DetectMech=$IV_DETECTION_MECHANISM$Category=$IV_CATEGORY$SubCategory=
$IV_SUB_CATEGORY$INTF=$IV_INTERFACE$Attack_Id=$IV_ATTACK_ID$Attack_Count=$IV_ATTACK_COUNT$Attack_Severity=
$IV_ATTACK_SEVERITY$Attack_Signature=$IV_ATTACK_SIGNATURE$Source_Ip=$IV_SOURCE_IP$Dest_Ip=$IV_DESTINATION_IP
$Dest_Port=$IV_DESTINATION_PORT$Source_Port=$IV_SOURCE_PORT$Malware_Confidence=$IV_MALWARE_CONFIDENCE
$Detection_Engine=$IV_MALWARE_DETECTION_ENGINE$Mal_File_Len=$IV_MALWARE_FILE_LENGTH$Mal_file_md5=
$IV_MALWARE_FILE_MD5_HASH$Mal_File_Name=$IV_MALWARE_FILE_NAME$Mal_File_Type=$IV_MALWARE_FILE_TYPE
$Mal_Vir_Name=$IV_MALWARE_VIRUS_NAME$Direction=$IV_DIRECTION$Nw_Protocol=$IV_NETWORK_PROTOCOL$AppProtocol=
$IV_APPLICATION_PROTOCOL$Attack_Time=$IV_ATTACK_TIME$Qurantine_Time=$IV_QUARANTINE_END_TIME$Result_Status=
$IV_RESULT_STATUS$Alert_UUID=$IV_SENSOR_ALERT_UUID$PeerName=$IV_SENSOR_CLUSTER_MEMBER$Sensor_Name=
$IV_SENSOR_NAME$SourceOs=$IV_SOURCE_OS$DestOs=$IV_DEST_OS$Src_APN=$IV_SRC_APN$Dest_APN=$IV_DEST_APN$Src_IMSI=
$IV_SRC_IMSI$Dest_IMSI=$IV_DEST_IMSI$Src_Phone=$IV_SRC_PHONE_NUMBER$Dest_Phone=$IV_DEST_PHONE_NUMBER$Vlan_ID=
$IV_VLAN_ID$'
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 913
53| Direct Syslog Resource
Resource URL
PUT /sensor/<sensor_id>/directsyslog
Request Parameters
URL Parameters:
• SECURITY_AUTHORIZATION_CODE_10
• SECURITY_AUTHORIZATION_CODE_4
• LOG_AUDIT_NOTE_1
• LOG_ALERT_NOTE_1
• CLOCK_DAEMON_NOTE_2
• LOCAL_USER_0
• LOCAL_USER_1
• LOCAL_USER_2
• LOCAL_USER_3
• LOCAL_USER_4
• LOCAL_USER_5
• LOCAL_USER_6
• LOCAL_USER_7
914 McAfee Network Security Platform 10.1.x Manager API Reference Guide
53| Direct Syslog Resource
Details of syslogPriorityMapping:
informationTo Informational severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
lowTo Low severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
mediumTO Medium severity attack mapping. Values allowed are: String yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
McAfee Network Security Platform 10.1.x Manager API Reference Guide 915
53| Direct Syslog Resource
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
highTo High severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
Details of filter:
Details of LogSomeAttacks:
isExplicitlyEnabled The attack definition has syslog notification explicitly enabled Boolean Yes
Details of minimumSeverity:
916 McAfee Network Security Platform 10.1.x Manager API Reference Guide
53| Direct Syslog Resource
• INFORMATIONAL
• LOW
• MEDIUM
• HIGH
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/directsyslog/testconnection
Payload
McAfee Network Security Platform 10.1.x Manager API Reference Guide 917
53| Direct Syslog Resource
{
'enableSyslog': 'true',
'syslogPriorityMapping': {
'lowTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'highTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'informationTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'mediumTO': 'EMERGENCY_SYSTEM_UNUSABLE'
},
'isInherit': 'false',
'serverIp': '10.213.172.94',
'filter': {
'LogSomeAttacks': {
'isExplicitlyEnabled': 'false',
'minimumSeverity': {
'isMinimumSeverity': 'false',
'severityType': 'LOW'
}
}
},
'serverPort': '514',
'syslogFacility': 'SECURITY_AUTHORIZATION_CODE_4',
'message': 'Admin_Domain=$IV_ADMIN_DOMAIN$Alert_Type=$IV_ALERT_TYPE$Attack_Name=$IV_ATTACK_NAME
$AttackConfidence=$IV_ATTACK_CONFIDENCE$DetectMech=$IV_DETECTION_MECHANISM$Category=$IV_CATEGORY$SubCategory=
$IV_SUB_CATEGORY$INTF=$IV_INTERFACE$Attack_Id=$IV_ATTACK_ID$Attack_Count=$IV_ATTACK_COUNT$Attack_Severity=
$IV_ATTACK_SEVERITY$Attack_Signature=$IV_ATTACK_SIGNATURE$Source_Ip=$IV_SOURCE_IP$Dest_Ip=$IV_DESTINATION_IP
$Dest_Port=$IV_DESTINATION_PORT$Source_Port=$IV_SOURCE_PORT$Malware_Confidence=$IV_MALWARE_CONFIDENCE
$Detection_Engine=$IV_MALWARE_DETECTION_ENGINE$Mal_File_Len=$IV_MALWARE_FILE_LENGTH$Mal_file_md5=
$IV_MALWARE_FILE_MD5_HASH$Mal_File_Name=$IV_MALWARE_FILE_NAME$Mal_File_Type=$IV_MALWARE_FILE_TYPE
$Mal_Vir_Name=$IV_MALWARE_VIRUS_NAME$Direction=$IV_DIRECTION$Nw_Protocol=$IV_NETWORK_PROTOCOL$AppProtocol=
$IV_APPLICATION_PROTOCOL$Attack_Time=$IV_ATTACK_TIME$Qurantine_Time=$IV_QUARANTINE_END_TIME$Result_Status=
$IV_RESULT_STATUS$Alert_UUID=$IV_SENSOR_ALERT_UUID$PeerName=$IV_SENSOR_CLUSTER_MEMBER$Sensor_Name=
$IV_SENSOR_NAME$SourceOs=$IV_SOURCE_OS$DestOs=$IV_DEST_OS$Src_APN=$IV_SRC_APN$Dest_APN=$IV_DEST_APN$Src_IMSI=
$IV_SRC_IMSI$Dest_IMSI=$IV_DEST_IMSI$Src_Phone=$IV_SRC_PHONE_NUMBER$Dest_Phone=$IV_DEST_PHONE_NUMBER$Vlan_ID=
$IV_VLAN_ID$'
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
3 400 6002 Direct syslog is disabled or inherit settings has been selected
918 McAfee Network Security Platform 10.1.x Manager API Reference Guide
53| Direct Syslog Resource
Resource URL
PUT /sensor/<sensor_id>/ directsyslog/testconnection
Request Parameters
URL Parameters:
• SECURITY_AUTHORIZATION_CODE_10
• SECURITY_AUTHORIZATION_CODE_4
• LOG_AUDIT_NOTE_1
• LOG_ALERT_NOTE_1
• CLOCK_DAEMON_NOTE_2
• LOCAL_USER_0
• LOCAL_USER_1
• LOCAL_USER_2
• LOCAL_USER_3
• LOCAL_USER_4
• LOCAL_USER_5
• LOCAL_USER_6
• LOCAL_USER_7
McAfee Network Security Platform 10.1.x Manager API Reference Guide 919
53| Direct Syslog Resource
Details of syslogPriorityMapping:
informationTo Informational severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
lowTo Low severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
mediumTO Medium severity attack mapping. Values allowed are: String yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
920 McAfee Network Security Platform 10.1.x Manager API Reference Guide
53| Direct Syslog Resource
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
highTo High severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
Details of filter:
Details of LogSomeAttacks:
isExplicitlyEnabled The attack definition has syslog notification explicitly enabled Boolean Yes
Details of minimumSeverity:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 921
53| Direct Syslog Resource
• INFORMATIONAL
• LOW
• MEDIUM
• HIGH
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1001/directsyslog/testconnection
Payload
922 McAfee Network Security Platform 10.1.x Manager API Reference Guide
53| Direct Syslog Resource
{
'enableSyslog': 'true',
'syslogPriorityMapping': {
'lowTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'highTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'informationTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'mediumTO': 'EMERGENCY_SYSTEM_UNUSABLE'
},
'isInherit': 'false',
'serverIp': '10.213.172.94',
'filter': {
'LogSomeAttacks': {
'isExplicitlyEnabled': 'false',
'minimumSeverity': {
'isMinimumSeverity': 'false',
'severityType': 'LOW'
}
}
},
'serverPort': '514',
'syslogFacility': 'SECURITY_AUTHORIZATION_CODE_4',
'message': 'Admin_Domain=$IV_ADMIN_DOMAIN$Alert_Type=$IV_ALERT_TYPE$Attack_Name=$IV_ATTACK_NAME
$AttackConfidence=$IV_ATTACK_CONFIDENCE$DetectMech=$IV_DETECTION_MECHANISM$Category=$IV_CATEGORY$SubCategory=
$IV_SUB_CATEGORY$INTF=$IV_INTERFACE$Attack_Id=$IV_ATTACK_ID$Attack_Count=$IV_ATTACK_COUNT$Attack_Severity=
$IV_ATTACK_SEVERITY$Attack_Signature=$IV_ATTACK_SIGNATURE$Source_Ip=$IV_SOURCE_IP$Dest_Ip=$IV_DESTINATION_IP
$Dest_Port=$IV_DESTINATION_PORT$Source_Port=$IV_SOURCE_PORT$Malware_Confidence=$IV_MALWARE_CONFIDENCE
$Detection_Engine=$IV_MALWARE_DETECTION_ENGINE$Mal_File_Len=$IV_MALWARE_FILE_LENGTH$Mal_file_md5=
$IV_MALWARE_FILE_MD5_HASH$Mal_File_Name=$IV_MALWARE_FILE_NAME$Mal_File_Type=$IV_MALWARE_FILE_TYPE
$Mal_Vir_Name=$IV_MALWARE_VIRUS_NAME$Direction=$IV_DIRECTION$Nw_Protocol=$IV_NETWORK_PROTOCOL$AppProtocol=
$IV_APPLICATION_PROTOCOL$Attack_Time=$IV_ATTACK_TIME$Qurantine_Time=$IV_QUARANTINE_END_TIME$Result_Status=
$IV_RESULT_STATUS$Alert_UUID=$IV_SENSOR_ALERT_UUID$PeerName=$IV_SENSOR_CLUSTER_MEMBER$Sensor_Name=
$IV_SENSOR_NAME$SourceOs=$IV_SOURCE_OS$DestOs=$IV_DEST_OS$Src_APN=$IV_SRC_APN$Dest_APN=$IV_DEST_APN$Src_IMSI=
$IV_SRC_IMSI$Dest_IMSI=$IV_DEST_IMSI$Src_Phone=$IV_SRC_PHONE_NUMBER$Dest_Phone=$IV_DEST_PHONE_NUMBER$Vlan_ID=
$IV_VLAN_ID$'
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
4 400 6002 Direct syslog is disabled or inherit settings has been selected
McAfee Network Security Platform 10.1.x Manager API Reference Guide 923
54| Packet Capture Resource
Resource URL
GET /sensor/<sensor_id>/packetcapture
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of capTureSettings:
924 McAfee Network Security Platform 10.1.x Manager API Reference Guide
54| Packet Capture Resource
Details of rules:
Details of monitoringSPANPort:
Details of captureDuration:
Details of Manager:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 925
54| Packet Capture Resource
Details of scpServer:
Details of captureRule:
926 McAfee Network Security Platform 10.1.x Manager API Reference Guide
54| Packet Capture Resource
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/packetcapture
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 927
54| Packet Capture Resource
{
"status": "Not yet started",
"capTureSettings": {
"monitoringSPANPort": {
"port": "Capturing Disabled",
"captureDuration": {
"captureDurationInMinutes": 120,
"runTillExplicitlyReleased": false
}
},
"manager": null,
"scpServer": null
},
"rules": {
"captureRule":
[
{
"ruleId": 716,
"monitoringPort": "ALL",
"traffic": "ALL",
"protocol": "TCP",
"ipVersion": "IPV_6",
"fragmentsOnly": true,
"sourceIP": "0.0.0.0",
"sourceMask": 0,
"sourcePort": 0,
"destinationIP": "0.0.0.0",
"destinationMask": 0,
"destinationPort": 0,
"vlanId": 0,
"protocolNumber": 0
},
{
"ruleId": 717,
"monitoringPort": "ALL",
"traffic": "ARP",
"protocol": "TCP",
"ipVersion": "IPV_6",
"fragmentsOnly": true,
"sourceIP": "0.0.0.0",
"sourceMask": 0,
"sourcePort": 0,
"destinationIP": "0.0.0.0",
"destinationMask": 0,
"destinationPort": 0,
"vlanId": 0,
"protocolNumber": 0
} ]
}
}
Error Information
Following error codes are returned by this URL:
928 McAfee Network Security Platform 10.1.x Manager API Reference Guide
54| Packet Capture Resource
Resource URL
PUT /sensor/<sensor_id>/packetcapture
Request Parameters
URL Parameters:
capTureSettings Packet capture settings can be: monitoring SPAN port/manager/scp Object No
server
Details of capTureSettings:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 929
54| Packet Capture Resource
Details of monitoringSPANPort:
Details of captureDuration:
Details of Manager:
930 McAfee Network Security Platform 10.1.x Manager API Reference Guide
54| Packet Capture Resource
monitoringPort Monitoring port. Give ALL if choosing for all ports String Yes
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 931
54| Packet Capture Resource
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1001/packetcapture
Payload
932 McAfee Network Security Platform 10.1.x Manager API Reference Guide
54| Packet Capture Resource
{
"capTureSettings": {
"monitoringSPANPort": {
"port": "ALL",
"captureDuration": {
"captureDurationInMinutes": 0,
"runTillExplicitlyReleased": true
}
},
"manager": null,
"scpServer": null
},
"templates": ["test",
"test1"],
"rules": [{
"ruleId": 2,
"monitoringPort": "ALL",
"traffic": "ARP",
"protocol": "TCP",
"ipVersion": "IPV_4",
"fragmentsOnly": true,
"sourceIP": "0.0.0.0",
"sourceMask": 0,
"sourcePort": 0,
"destinationIP": "0.0.0.0",
"destinationMask": 0,
"destinationPort": 0,
"vlanId": 0,
"protocolNumber": 0
},
{
"ruleId": 3,
"monitoringPort": "ALL",
"traffic": "IP",
"protocol": "ICMP",
"ipVersion": "IPV_4",
"fragmentsOnly": false,
"sourceIP": "192.168.12.0",
"sourceMask": 23,
"sourcePort": 1,
"destinationIP": "192.168.12.0",
"destinationMask": 23,
"destinationPort": 1,
"vlanId": 1,
"protocolNumber": 0
},
{
"ruleId": null,
"monitoringPort": "ALL",
"traffic": "ALL",
"protocol": "TCP",
"ipVersion": "IPV_4",
"fragmentsOnly": false,
"sourceIP": "0.0.0.0",
"sourceMask": 0,
"sourcePort": 0,
"destinationIP": "0.0.0.0",
"destinationMask": 0,
"destinationPort": 0,
"vlanId": 0,
"protocolNumber": 0
}]
}
Response
{
"status": 1
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 933
54| Packet Capture Resource
Error Information
Following error codes are returned by this URL:
6 400 6204 SCP server IP, username, password, and capture size are mandatory
7 400 6205 SCP server username should not contain space and special characters other
than {-,_,.}
8 400 6206 File upload in progress so could not save the configuration now
Resource URL
PUT /sensor/<sensor_id>/packetcapturestate
934 McAfee Network Security Platform 10.1.x Manager API Reference Guide
54| Packet Capture Resource
Request Parameters
URL Parameters:
• START
• STOP
• CANCEL
• DELETE_FILE
• UPLOAD_TO_MANAGER
• RETRY_SCP_SERVER
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sensor/1001/packetcapturestate
Payload
{
"captureNow": "START"
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 935
54| Packet Capture Resource
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
4 400 6206 File upload in progress so could not save the configuration now
5 400 6207 Packet capture settings where changed but not saved
Resource URL
GET /sensor/<sensor_id>/packetcaptureruletemplate
Request Parameters
URL Parameters:
Query Parameters:
936 McAfee Network Security Platform 10.1.x Manager API Reference Guide
54| Packet Capture Resource
name Name of the rule template. Default is empty which returns all the String no
templates
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 937
54| Packet Capture Resource
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/packetcaptureruletemplate?name=test
Response
938 McAfee Network Security Platform 10.1.x Manager API Reference Guide
54| Packet Capture Resource
{
"tempate": [{
"templateId": 101,
"templateName": "test",
"visibleToCild": true,
"rule": [{
"ruleId": 101,
"traffic": "ALL",
"protocol": "TCP",
"ipVersion": "IPV_4",
"fragmentsOnly": false,
"sourceIP": "0.0.0.0",
"sourceMask": 0,
"sourcePort": 0,
"destinationIP": "0.0.0.0",
"destinationMask": 0,
"destinationPort": 0,
"vlanId": 0,
"protocolNumber": 0
}]
}]
}
Error Information
Following error codes are returned by this URL:
Resource URL
POST /sensor/<sensor_id>/packetcaptureruletemplate
Request Parameters
URL Parameters:
sensor_id Sensor id. Give -1 if all the quarantine hosts are needed number Yes
McAfee Network Security Platform 10.1.x Manager API Reference Guide 939
54| Packet Capture Resource
940 McAfee Network Security Platform 10.1.x Manager API Reference Guide
54| Packet Capture Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://<NSM_IP>/sdkapi/sensor/1001/packetcaptureruletemplate
Payload
{
"templateName": "test",
"visibleToCild": true,
"rule": [{
"traffic": "ALL",
"protocol": "TCP",
"ipVersion": "IPV_4",
"fragmentsOnly": false,
"sourceIP": "0.0.0.0",
"sourceMask": 0,
"sourcePort": 0,
"destinationIP": "0.0.0.0",
"destinationMask": 0,
"destinationPort": 0,
"vlanId": 0,
"protocolNumber": 0
}]
}
Response
{
"createdResourceId":101
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 941
54| Packet Capture Resource
6 400 6204 SCP server IP, username, password, and capture size are mandatory
7 400 6205 SCP server username should not contain space and special characters other
than {-,_,.}
Resource URL
GET /sensor/<sensor_id>/packetcapturepcapfiles
Request Parameters
URL Parameters:
942 McAfee Network Security Platform 10.1.x Manager API Reference Guide
54| Packet Capture Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/packetcapturepcapfiles
Payload
None
Response
{
"files":[“capture_Mon_Aug_18_16_12_49_IST_2014.pcap”, “capture_Mon_Aug_18_16_12_55_IST_2014.pcap”]
}
Error Information
Following error codes are returned by this URL:
Resource URL
PUT /sensor/<sensor_id>/packetcapturepcapfile/export
McAfee Network Security Platform 10.1.x Manager API Reference Guide 943
54| Packet Capture Resource
Request Parameters
URL Parameters:
sensor_id Sensor id. Give -1 if all the quarantine hosts are needed Number Yes
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1001/packetcapturepcapfile/export
Payload
{
"fileName": "capture_Mon_Aug_18_16_12_49_IST_2014.pcap"
}
Response
{
"byteStream": "<pcap file data>"
}
944 McAfee Network Security Platform 10.1.x Manager API Reference Guide
54| Packet Capture Resource
Error Information
Following error codes are returned by this URL:
Resource URL
DELETE /sensor/<sensor_id>/packetcapturepcapfile
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 945
54| Packet Capture Resource
Example
Request
DELETE https://<NSM_IP>/sdkapi/sensor/1001/packetcapturepcapfile
Payload
{
"fileName": "capture_Mon_Aug_18_16_12_49_IST_2014.pcap"
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
946 McAfee Network Security Platform 10.1.x Manager API Reference Guide
54| Packet Capture Resource
Resource URL
GET /domain/<domain_id>/packetcaptureruletemplate
Request Parameters
URL Parameters:
Query Parameters:
name Name of the rule template. Default is empty which returns all the String no
templates
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 947
54| Packet Capture Resource
Example
Request
948 McAfee Network Security Platform 10.1.x Manager API Reference Guide
54| Packet Capture Resource
GET https://<NSM_IP>/sdkapi/domain/101/packetcaptureruletemplate?name=test
Response
{
"tempate": [{
"templateId": 101,
"templateName": "test",
"visibleToCild": true,
"rule": [{
"ruleId": 101,
"traffic": "ALL",
"protocol": "TCP",
"ipVersion": "IPV_4",
"fragmentsOnly": false,
"sourceIP": "0.0.0.0",
"sourceMask": 0,
"sourcePort": 0,
"destinationIP": "0.0.0.0",
"destinationMask": 0,
"destinationPort": 0,
"vlanId": 0,
"protocolNumber": 0
}]
}]
}
Error Information
Following error code is returned by this URL:
Resource URL
POST /domain/<domain_id>/packetcaptureruletemplate
Request Parameters
URL Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 949
54| Packet Capture Resource
950 McAfee Network Security Platform 10.1.x Manager API Reference Guide
54| Packet Capture Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://<NSM_IP>/sdkapi/domain/101/packetcaptureruletemplate
Payload
{
"templateName": "test",
"visibleToCild": true,
"rule": [{
"traffic": "ALL",
"protocol": "TCP",
"ipVersion": "IPV_4",
"fragmentsOnly": false,
"sourceIP": "0.0.0.0",
"sourceMask": 0,
"sourcePort": 0,
"destinationIP": "0.0.0.0",
"destinationMask": 0,
"destinationPort": 0,
"vlanId": 0,
"protocolNumber": 0
}]
}
Response
{
"createdResourceId":101
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 951
54| Packet Capture Resource
4 400 6204 SCP server IP, username, password, and capture size are mandatory
5 400 6205 SCP server username should not contain space and special characters other
than {-,_,.}
Resource URL
PUT /domain/<domain_id>/packetcaptureruletemplate/<name>
Request Parameters
URL Parameters:
952 McAfee Network Security Platform 10.1.x Manager API Reference Guide
54| Packet Capture Resource
McAfee Network Security Platform 10.1.x Manager API Reference Guide 953
54| Packet Capture Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
POST https://<NSM_IP>/sdkapi/domain/101/packetcaptureruletemplate/test
Payload
{
"templateName": "test",
"visibleToCild": true,
"rule": [{
"traffic": "ALL",
"protocol": "TCP",
"ipVersion": "IPV_4",
"fragmentsOnly": false,
"sourceIP": "0.0.0.0",
"sourceMask": 0,
"sourcePort": 0,
"destinationIP": "0.0.0.0",
"destinationMask": 0,
"destinationPort": 0,
"vlanId": 0,
"protocolNumber": 0
}]
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
954 McAfee Network Security Platform 10.1.x Manager API Reference Guide
54| Packet Capture Resource
4 400 6204 SCP server IP, username, password, and capture size are mandatory
5 400 6205 SCP server username should not contain space and special characters other
than {-,_,.}
Resource URL
DELETE /domain/<domain_id>/packetcaptureruletemplate/<name>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 955
54| Packet Capture Resource
Example
Request
DELETE https://<NSM_IP>/sdkapi/domain/101/packetcaptureruletemplate/test
Payload
None
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
956 McAfee Network Security Platform 10.1.x Manager API Reference Guide
55| Policy Group Resource
Resource URL
GET domain/<domain_id>/policygroup
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 957
55| Policy Group Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/policygroup
Response
{
“policyGroups”:
[
{
“name”: “pg1”,
“policyGroupId”: 21,
“description”: “desc1”,
“ipsPolicy”: “Default Inline IPS”,
“advancedMalwareInboundPolicy”: “Default Malware Policy”,
“advancedMalwareOutboundPolicy”: “Default Malware Policy”,
“connectionLimitingPolicy”: “Test_CLP1”,
“firewallPolicy”: “FirewallPolicy1”,
“qosInboundPolicy”: “QoSPolicyAdvanced1”
}
]
}
Error Information
Following error code is returned by this URL:
Resource URL
POST domain/<domain_id>/policygroup
958 McAfee Network Security Platform 10.1.x Manager API Reference Guide
55| Policy Group Resource
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 959
55| Policy Group Resource
Example
Request
POST https://<NSM_IP>/sdkapi/domain/0/policygroup
Payload
{
“name”: “pg1”,
“policyGroupId”: 21,
“description”: “desc1”,
“ipsPolicy”: “Default Inline IPS”,
“advancedMalwareInboundPolicy”: “Default Malware Policy”,
“advancedMalwareOutboundPolicy”: “Default Malware Policy”,
“connectionLimitingPolicy”: “Test_CLP1”,
“firewallPolicy”: “FirewallPolicy1”,
“qosInboundPolicy”: “QoSPolicyAdvanced1”
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
960 McAfee Network Security Platform 10.1.x Manager API Reference Guide
55| Policy Group Resource
Resource URL
GET domain/<domain_id>/policygroup/<policygroup_id>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 961
55| Policy Group Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/policygroup/1
Response
{
"name": "pg1",
"policyGroupId": 21,
"description": "desc1",
"ipsPolicy": "Default Inline IPS",
"advancedMalwareInboundPolicy": "Default Malware Policy",
"advancedMalwareOutboundPolicy": "Default Malware Policy",
"connectionLimitingPolicy": "Test_CLP1",
"firewallPolicy": "FirewallPolicy1",
"qosInboundPolicy": "QoSPolicyAdvanced1"
}
Error Information
Following error code is returned by this URL:
962 McAfee Network Security Platform 10.1.x Manager API Reference Guide
55| Policy Group Resource
Resource URL
PUT domain/<domain_id>/policygroup/<policygroup_id>
Request Parameters
URL Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 963
55| Policy Group Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/domain/0/policygroup/1
Payload
{
"name": "pg1",
"policyGroupId": 21,
"description": "desc1",
"ipsPolicy": "Default Inline IPS",
"advancedMalwareInboundPolicy": "Default Malware Policy",
"advancedMalwareOutboundPolicy": "Default Malware Policy",
"connectionLimitingPolicy": "Test_CLP1",
"firewallPolicy": "FirewallPolicy1",
"qosInboundPolicy": "QoSPolicyAdvanced1"
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
964 McAfee Network Security Platform 10.1.x Manager API Reference Guide
55| Policy Group Resource
Resource URL
PUT domain/<domain_id>/policygroup/<policygroup_id>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
McAfee Network Security Platform 10.1.x Manager API Reference Guide 965
55| Policy Group Resource
DELETE https://<NSM_IP>/sdkapi/domain/0/policygroup/1
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
966 McAfee Network Security Platform 10.1.x Manager API Reference Guide
56| Policy Assignments Resource
Resource URL
GET domain/<domain_id>/policyassignments/interface
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 967
56| Policy Assignments Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/policyassignemnts/interface
Response
policyAssignmentsList
{
[
{
"deviceName": "API_2950_2",
"deviceId": 1001,
"interfaceName": "5A-5B",
"interfaceId": 137,
"ipsPolicy": "Default Inline IPS",
"firewallPolicy": "NSAT_Adv_Rules_for_Interface",
"firewallPortPolicy": "NSAT_Adv_Rules_for_Port",
"qosInboundPolicy": "SrvRL_Inbound",
"qosOutboundPolicy": "SrvRL_Outbound",
"qosInboundRateLimitingProfile": "AppID-RL Inbound",
"qosOutboundRateLimitingProfile": "AppID-RL Outbound"
}
]
}
Error Information
Following error code is returned by this URL:
968 McAfee Network Security Platform 10.1.x Manager API Reference Guide
56| Policy Assignments Resource
Resource URL
GET domain/<domain_id>/policyassignments/interface/<interface_id>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 969
56| Policy Assignments Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/policyassignemnts/interface/137
Response
970 McAfee Network Security Platform 10.1.x Manager API Reference Guide
56| Policy Assignments Resource
policyAssignmentsList
{
[
{
"deviceName": "API_2950_2",
"deviceId": 1001,
"interfaceName": "5A-5B",
"interfaceId": 137,
"ipsPolicy": "Default Inline IPS",
"firewallPolicy": "NSAT_Adv_Rules_for_Interface",
"firewallPortPolicy": "NSAT_Adv_Rules_for_Port",
"qosInboundPolicy": "SrvRL_Inbound",
"qosOutboundPolicy": "SrvRL_Outbound",
"qosInboundRateLimitingProfile": "AppID-RL Inbound",
"qosOutboundRateLimitingProfile": "AppID-RL Outbound"
}
]
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET domain/<domain_id>/policyassignments/device
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 971
56| Policy Assignments Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/policyassignemnts/interface
Response
policyAssignmentsList
{
[
{
"deviceName": "API_2950_2",
"deviceId": 1001,
"firewallPolicyLast": "NSAT_Adv_Rules_for_Interface",
"firewallPolicyFirst": "NSAT_Adv_Rules_for_Interface
}
]
}
Error Information
Following error codes are returned by this URL:
972 McAfee Network Security Platform 10.1.x Manager API Reference Guide
56| Policy Assignments Resource
Resource URL
GET domain/<domain_id>/policyassignments/device/<device_id>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/policyassignemnts/interface/1001
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 973
56| Policy Assignments Resource
policyAssignmentsList
{
[
{
"deviceName": "API_2950_2",
"deviceId": 1001,
"firewallPolicyLast": "NSAT_Adv_Rules_for_Interface",
"firewallPolicyFirst": "NSAT_Adv_Rules_for_Interface
}
]
}
Error Information
Following error codes are returned by this URL:
Resource URL
PUT domain/<domain_id>/policyassignments/interface/<interface_id>
Request Parameters
URL Parameters:
974 McAfee Network Security Platform 10.1.x Manager API Reference Guide
56| Policy Assignments Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 975
56| Policy Assignments Resource
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/policyassignments/interface/137
Payload
{
"deviceName":"Sensor-name",
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
976 McAfee Network Security Platform 10.1.x Manager API Reference Guide
56| Policy Assignments Resource
Resource URL
PUT domain/<domain_id>/policyassignments/device/<device_id>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/policyassignments/device/1001
Payload
McAfee Network Security Platform 10.1.x Manager API Reference Guide 977
56| Policy Assignments Resource
{
"firewallPolicyLast": "NSAT_Adv_Rules_for_Interface",
"firewallPolicyFirst": "NSAT_Adv_Rules_for_Interface
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
978 McAfee Network Security Platform 10.1.x Manager API Reference Guide
57| Ignore Rules/NTBA Ignore Rules
Resource URL
GET /domain/<domainId>/attackfilter82?context = NTBA/SENSOR:
This URL is to retrieve all the details of all the ignore rules created within the given context and domain.
This URL is to get the details of the ignore rule created with the given rule Id within given context and domain.
Request Parameters
URL Parameters:
ruleId Ignore rule id Number Yes (Only to get details of any specific ignore rule)
Query Parameters:
context Context of the ignore rule. Its values can be: String Yes (If not specified default is SENSOR)
• NTBA
• SENSOR
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 979
57| Ignore Rules/NTBA Ignore Rules
attackFilter The details of the ignore rule created within the given domain Object
Details of attackFilter:
state Field to indicate whether an ignore rule is active or inactive. The values can be: String
• ENABLED
• DISABLED
lastUpdatedByUserName The user by whom the ignore rule was last updated String
Details of attack:
980 McAfee Network Security Platform 10.1.x Manager API Reference Guide
57| Ignore Rules/NTBA Ignore Rules
• INBOUND
• OUTBOUND
• ANY
Details of resource:
resourceType Indicated the type of interface on which ignore rule is created. Its values can be: Number
Details of attacker:
AttackerEndPoint Attacker rule objects on which ignore rules will be applicable. String
McAfee Network Security Platform 10.1.x Manager API Reference Guide 981
57| Ignore Rules/NTBA Ignore Rules
• TCP
• UDP
• TCP_UDP
• ANY
Details of target:
TargetEndPoint Target rule objects on which ignore rules will be applicable String
• TCP
• UDP
• TCP_UDP
• ANY
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/attackfilter82?context=SENSOR
Response
982 McAfee Network Security Platform 10.1.x Manager API Reference Guide
57| Ignore Rules/NTBA Ignore Rules
{
"id": 142,
"state": "ENABLED",
"name": "TEST IGNORE RULE_1",
"attack":
{
"attackName":
[
"0x45d20400"
],
"attackDirection": "INBOUND"
},
"resource":
[
{
"resourceID": 118,
"resourceName": "M-2950-1/1A-1B",
"resourceType": 2,
"sensorID": 1002
}
],
"attacker":
{
"AttackerEndPoint":
[
"0012_0040_0045_src",
"109_110_111_112_src"
],
"AttackerPort": "TCP",
"AttackerPortNumber": "25"
},
"target":
{
"TargetEndPoint":
[
"0012_0040_0045_src",
"118_117_116_116_dest"
],
"TargetPort": "TCP",
"TargetPortNumber": "25"
},
"lastUpdatedByTime": 1409726699000,
"lastUpdatedByUserName": "admin",
"comment": "McAfee NETWORK SECURITY MANAGER",
"ownerDomain": "My Company"
}
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/attackfilter82/142?context=SENSOR
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 983
57| Ignore Rules/NTBA Ignore Rules
{
"id": 142,
"state": "ENABLED",
"name": "TEST IGNORE RULE_1",
"attack":
{
"attackName":
[
"0x45d20400"
],
"attackDirection": "INBOUND"
},
"resource":
[
{
"resourceID": 118,
"resourceName": "M-2950-1/1A-1B",
"resourceType": 2,
"sensorID": 1002
}
],
"attacker":
{
"AttackerEndPoint":
[
"0012_0040_0045_src",
"109_110_111_112_src"
],
"AttackerPort": "TCP",
"AttackerPortNumber": "25"
},
"target":
{
"TargetEndPoint":
[
"0012_0040_0045_src",
"118_117_116_116_dest"
],
"TargetPort": "TCP",
"TargetPortNumber": "25"
},
"lastUpdatedByTime": 1409726699000,
"lastUpdatedByUserName": "admin",
"comment": "McAfee NETWORK SECURITY MANAGER",
"ownerDomain": "My Company"
}
Error Information
Following error code is returned by this URL:
1 404 1408 Invalid rule id/provided rule id not visible to this domain
Resource URL
POST /domain/<domainId>/attackfilter82
984 McAfee Network Security Platform 10.1.x Manager API Reference Guide
57| Ignore Rules/NTBA Ignore Rules
Request Parameters
URL Parameters:
attackFilter The details of the ignore rules created within the given domain Object Yes
Details of attackFilter:
state Field to indicate whether an ignore rule e is active or inactive. String Yes
The values can be:
• ENABLED
• DISABLED
McAfee Network Security Platform 10.1.x Manager API Reference Guide 985
57| Ignore Rules/NTBA Ignore Rules
lastUpdatedByUserName The user by whom the ignore rule was last updated String No
Details of attack:
attackDirection Direction of the attack. The values can be: String Yes
• INBOUND
• OUTBOUND
• ANY
Details of resource:
Data
Field Name Description Type Mandatory
resourceType Indicated the type of interface on which ignore rule is created. Its Number No
values can be:
986 McAfee Network Security Platform 10.1.x Manager API Reference Guide
57| Ignore Rules/NTBA Ignore Rules
Data
Field Name Description Type Mandatory
Details of attacker:
Data
Field Name Description Type Mandatory
AttackerEndPoint Attacker rule objects on which ignore rules String Yes (Default is Match ANY)
will be applicable.
AttackerPort Port type. Its value can be: String Yes (If not specified default is
• TCP ANY)
• UDP
• TCP_UDP
• ANY
Details of target:
Data
Field Name Description Type Mandatory
TargetEndPoint Target rule objects on which ignore rules will String Yes (Default is Match ANY)
be applicable
McAfee Network Security Platform 10.1.x Manager API Reference Guide 987
57| Ignore Rules/NTBA Ignore Rules
Data
Field Name Description Type Mandatory
TargetPort Port type. Its value can be: String Yes (If not specified default is
• TCP ANY)
• UDP
• TCP_UDP
• ANY
TargetPortNumber • Port numbers String Yes (not applicable for ANY port
type)
Note
Query Parameters:
context Context of the ignore rule. Its values can be: String Yes (If not specified default is SENSOR)
• NTBA
• SENSOR
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/attackfilter82?context=SENSOR
Payload
988 McAfee Network Security Platform 10.1.x Manager API Reference Guide
57| Ignore Rules/NTBA Ignore Rules
{
"state": "ENABLED",
"name": "TEST IGNORE RULE_3",
"attack":
{
"attackName":
[
"0x45d20400"
],
"attackDirection": "INBOUND"
},
"resource":
[
{
"resourceName": "M-2950-1/1A-1B"
}
],
"attacker":
{
"AttackerEndPoint":
[
"0012_0040_0045_src",
"109_110_111_112_src"
],
"AttackerPort": "TCP",
"AttackerPortNumber": "25"
},
"target":
{
"TargetEndPoint":
[
"0012_0040_0045_src",
"118_117_116_116_dest"
],
"TargetPort": "TCP",
"TargetPortNumber": "25"
},
"comment": "McAfee NETWORK SECURITY MANAGER",
}
Response
{
"createdResourceId": 145
}
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/attackfilter82?context=NTBA
Payload
McAfee Network Security Platform 10.1.x Manager API Reference Guide 989
57| Ignore Rules/NTBA Ignore Rules
{
"state": "ENABLED",
"name": "NTBA IGNORE RULE",
"attack":
{
"attackName":
[
"0x43f00900",
"0x43f00800",
"0x43f00c00"
],
"attackDirection": "ANY"
},
"resource":
[
{
"resourceName": "ntba-nsmapi"
}
],
"attacker":
{
"AttackerEndPoint":
[
"0012_0040_0045_src"
],
"AttackerPort": "UDP",
"AttackerPortNumber": "23"
},
"target":
{
"TargetEndPoint":
[
"00012_0030_0038_dest"
],
"TargetPort": "UDP",
"TargetPortNumber": "23"
},
"comment": "McAfee NETWORK SECURITY MANAGER"
}
Response
{
"createdResourceId": 146
}
Error Information
Following error codes are returned by this URL:
1 404 1408 Invalid rule id/provided rule id is not visible this domain
2 400 1720 Invalid rule object/rule object is not visible in this domain
3 400 2513 Name must only letters, numerical, spaces, commas, periods, hyphen or
underscore
990 McAfee Network Security Platform 10.1.x Manager API Reference Guide
57| Ignore Rules/NTBA Ignore Rules
5 400 1433 This rule is invalid because it would match all alerts. Please specify at least
one alert criterion
6 400 1434 Port number must be given for TCP, UDP, TCP_UDP port types.
7 400 1415 Port not valid, please enter a number between 1 and 65535
10 400 1435 The same combination of IPv4 and IPv6 should be used in attacker and target
endpoints.
11 400 1421 The attacker and target port fields are using an invalid protocol combination.
Resource URL
POST /domain/<domainId>/attackfilter82/<ruleId>?context=SENSOR/NTBA
Request Parameters
URL Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 991
57| Ignore Rules/NTBA Ignore Rules
attackFilter The details of the ignore rules created within the given domain Object Yes
Details of attackFilter:
state Field to indicate whether an ignore rule is active or inactive. String Yes
The values can be:
• ENABLED
• DISABLED
lastUpdatedByUserName The user by whom the ignore rule was last updated String No
992 McAfee Network Security Platform 10.1.x Manager API Reference Guide
57| Ignore Rules/NTBA Ignore Rules
Details of attack:
attackDirection Direction of the attack. The values can be: String Yes
• INBOUND
• OUTBOUND
• ANY
Details of resource:
Data
Field Name Description Type Mandatory
resourceType Indicated the type of interface on which ignore rule is created. Its Number No
values can be:
Details of attacker:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 993
57| Ignore Rules/NTBA Ignore Rules
Data
Field Name Description Type Mandatory
AttackerEndPoint Attacker rule objects on which ignore rules will be String Yes (Default is Match
applicable. The applicable rule object types for ignore ANY)
rule are:
AttackerPort Port type. Its value can be: String Yes (If not specified
• UDP
• TCP_UDP
• ANY
Details of target:
Data
Field Name Description Type Mandatory
TargetEndPoint Target rule objects on which ignore rules will be String Yes (If not specified,
applicable. The applicable rule object types are: default is MATCH ANY)
994 McAfee Network Security Platform 10.1.x Manager API Reference Guide
57| Ignore Rules/NTBA Ignore Rules
Data
Field Name Description Type Mandatory
TargetPort Port type. Its value can be: String Yes (If not specified,
• UDP
• TCP_UDP
• ANY
Note
Query Parameters:
context Context of the ignore rule. Its values can be: String Yes (If not specified default is SENSOR)
• NTBA
• SENSOR
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
Payload
McAfee Network Security Platform 10.1.x Manager API Reference Guide 995
57| Ignore Rules/NTBA Ignore Rules
{
"state": "ENABLED",
"name": "TEST IGNORE RULE_3",
"attack":
{
"attackName":
[
""
],
"attackDirection": "INBOUND"
},
"resource":
[
{
"resourceName": "M-2950-1/1A-1B"
}
],
"attacker":
{
"AttackerEndPoint":
[
"0012_0040_0045_src",
"109_110_111_112_src"
],
"AttackerPort": "TCP",
"AttackerPortNumber": "25"
},
"target":
{
"TargetEndPoint":
[
"0012_0040_0045_src",
"118_117_116_116_dest"
],
"TargetPort": "TCP",
"TargetPortNumber": "25"
},
"comment": "McAfee NETWORK SECURITY MANAGER",
}
Response
996 McAfee Network Security Platform 10.1.x Manager API Reference Guide
57| Ignore Rules/NTBA Ignore Rules
{
"status": 1
}
In the above payload the Attack name from the TEST IGNORE RULE_3 has been removed.
After update the Response on getting details of TEST IGNORE RULE_3 is:
{
"state": "ENABLED",
"name": "TEST IGNORE RULE_3",
"attack":
{
"attackName":
[
""
],
"attackDirection": "INBOUND"
},
"resource":
[
{
"resourceName": "M-2950-1/1A-1B"
}
],
"attacker":
{
"AttackerEndPoint":
[
"0012_0040_0045_src",
"109_110_111_112_src"
],
"AttackerPort": "TCP",
"AttackerPortNumber": "25"
},
"target":
{
"TargetEndPoint":
[
"0012_0040_0045_src",
"118_117_116_116_dest"
],
"TargetPort": "TCP",
"TargetPortNumber": "25"
},
"comment": "McAfee NETWORK SECURITY MANAGER",
}
Error Information
Following error codes are returned by this URL:
1 404 1408 Invalid rule id/provided rule id is not visible to this domain
2 400 1720 Invalid rule object/rule object is not visible in this domain
3 400 2513 Name must only letters, numerical, spaces, commas, periods, hyphen or
underscore
McAfee Network Security Platform 10.1.x Manager API Reference Guide 997
57| Ignore Rules/NTBA Ignore Rules
5 400 1433 This rule is invalid because it would match all alerts. Please specify at least
one alert criterion
6 400 1434 Port number must be given for TCP, UDP, TCP_UDP port types.
7 400 1415 Port not valid, please enter a number between 1 and 65535
9 400 1435 The same combination of IPv4 and IPv6 should be used in attacker and target
endpoints.
10 400 1421 The attacker and target port fields are using an invalid protocol combination.
Resource URL
DELETE /domain/<domainId>/attackfilter82/<ruleId>?context=NTBA/SENSOR
Request Parameters
URL Parameters:
998 McAfee Network Security Platform 10.1.x Manager API Reference Guide
57| Ignore Rules/NTBA Ignore Rules
Query Parameters:
context Context of the ignore rule. Its values can be: String Yes (If not specified default is SENSOR)
• NTBA
• SENSOR
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://<NSM_IP>/sdkapi/domain/0/attackfilter82/143?context=SENSOR
Response
{
"status": 1
}
Error Information
Following error code is returned by this URL:
1 404 1408 Invalid rule id/provided rule id is not visible to this domain
McAfee Network Security Platform 10.1.x Manager API Reference Guide 999
58| Protection Options Policy Resource
Resource URL
GET /protectionoptionspolicy
Request Parameters
N/A
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/protectionoptionspolicy
Response
1000 McAfee Network Security Platform 10.1.x Manager API Reference Guide
58| Protection Options Policy Resource
{
"protectionOptionsPolicyList": [
{
"policyId": 1,
"policyName": "Default Client and Server Inspection",
"domainId": 0,
"visibleToChild": true,
"description": "Inspect traffic both from internal endpoints and to exposed Web and mail servers",
"isEditable": false,
"lastUpdatedBy": "admin",
"lastUpdated": "2017-Jun-25 18:27",
"protectionOptions": null
},
{
"policyId": 2,
"policyName": "Default Client Inspection",
"domainId": 0,
"visibleToChild": true,
"description": "Inspect traffic from internal endpoints as they access the Internet",
"isEditable": false,
"lastUpdatedBy": "admin",
"lastUpdated": "2017-Jun-25 18:27",
"protectionOptions": null
}
]
}
Error Information
Following error code is returned by this URL:
Resource URL
GET /protectionoptionspolicy/<policy_id>
Request Parameters
URL Parameter
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1001
58| Protection Options Policy Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of protectionOptions:
1002 McAfee Network Security Platform 10.1.x Manager API Reference Guide
58| Protection Options Policy Resource
Details of inspectionOptions:
1. INBOUND_ONLY
2. OUTBOUND_ONLY
3. DISABLED
4. INBOUND_AND_OUTBOUND
Details of advancedBotnetDetectionOptions:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1003
58| Protection Options Policy Resource
1. INBOUND_ONLY
2. OUTBOUND_ONLY
3. DISABLED
4. INBOUND_AND_OUTBOUND
1. LOW
2. MEDIUM
3. HIGH
Details of gtiEndpointReputationAnalysysOptions:
• INBOUND_ONLY
• OUTBOUND_ONLY
• DISABLED
• INBOUND_AND_OUTBOUND
1004 McAfee Network Security Platform 10.1.x Manager API Reference Guide
58| Protection Options Policy Resource
Details of webserverHuresticAnalysysOptions:
Details of webserverDOSOptions:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1005
58| Protection Options Policy Resource
Example
Request
GET https://<NSM_IP>/sdkapi/protectionoptionspolicy/2
Response
1006 McAfee Network Security Platform 10.1.x Manager API Reference Guide
58| Protection Options Policy Resource
{
"policyId": 2,
"policyName": "httpresponse",
"domainId": 0,
"visibleToChild": true,
"description": "Enable xff",
"isEditable": true,
"lastUpdatedBy": "admin",
"lastUpdated": "2014-Aug-11 16:19",
"protectionOptions":
{
"inspectionOptions":
{
"httpResponseTrafficScanning": "INBOUND_AND_OUTBOUND",
"chunkedHTTPResponseDecoding": "DISABLED",
"htmlEncodedHTTPResponseDecoding": "DISABLED",
"base64SMTPDecoding": "DISABLED",
"quotedPrintableSMTPDecoding": "DISABLED",
"msRPCSMBFragmentReassembly": "DISABLED",
"msOfficeDeepFileInspection": "DISABLED",
"xffHeaderParsing": "DISABLED",
"layer7DataCollection": "DISABLED",
"passiveDeviceProfiling": "DISABLED",
"attackBlockingSimulation": false
},
"advancedBotnetDetectionOptions":
{
"advancedBotnetDetection": "INBOUND_AND_OUTBOUND",
"sensitivity": "LOW",
"exportTrafficToNTBA": false,
"fastFluxDetection": "DISABLED",
"domainGenerationAlgorithmDetection": "DISABLED",
"dnsSinkholing": false,
"domainNameAllowlistProcessing": true,
"cidrsExcluded": [],
},
"gtiEndpointReputationAnalysysOptions":
{
"gtiEndpointReputationAnalysys": "DISABLED",
"useToInfluenceSmartBlocking": false,
"excludeInternalEndpoint": false
"cidrsExcluded": [],
"protocalsExcluded": [],
"urlReputationAnalysis": null,
"urlReputationMinimumRisk": null
},
"webserverHuresticAnalysysOptions":
{
"huresticAnalysys": "INBOUND_ONLY",
"websitePathToProtect": "ALL",
"blockedTextList": [],
"websitePathToProtectList": [],
},
"webserverDOSOptions":
{
"dosPrevention": "INBOUND_ONLY",
"maxConnectionAllowedToWS": 750000,
"slowConnectionAttackPrevention": false,
"maxHTTPRequestPERSecondTOAnyPath": 10000,
"websitePathToProtect": "ALL",
"clientBrowserDetection": false,
"browserDetectionMethod": null,
"websitePathToProtectList": [],
}
}
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1007
58| Protection Options Policy Resource
Error Information
Resource URL
POST /protectionoptionspolicy/
Request Parameters
Payload Parameters:
Details of protectionOptions:
1008 McAfee Network Security Platform 10.1.x Manager API Reference Guide
58| Protection Options Policy Resource
Details of inspectionOptions:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1009
58| Protection Options Policy Resource
1. INBOUND_ONLY
2. OUTBOUND_ONLY
3. DISABLED
4. INBOUND_AND_OUTBOUND
Details of advancedBotnetDetectionOptions:
1. INBOUND_ONLY
2. OUTBOUND_ONLY
3. DISABLED
4. INBOUND_AND_OUTBOUND
1010 McAfee Network Security Platform 10.1.x Manager API Reference Guide
58| Protection Options Policy Resource
1. LOW
2. MEDIUM
3. HIGH
Details of gtiEndpointReputationAnalysysOptions:
• INBOUND_ONLY
• OUTBOUND_ONLY
• DISABLED
• INBOUND_AND_OUTBOUND
Valid Values:
• INBOUND_ONLY
• OUTBOUND_ONLY
• DISABLED
• INBOUND_AND_OUTBOUND
1. HIGH
2. MEDIUM
Details of webserverHuresticAnalysysOptions:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1011
58| Protection Options Policy Resource
Details of webserverDOSOptions:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
1012 McAfee Network Security Platform 10.1.x Manager API Reference Guide
58| Protection Options Policy Resource
Example
Request
POST https://<NSM_IP>/sdkapi/protectionoptionspolicy/
{
"policyName": "httpresponse",
"domainId": 0,
"visibleToChild": true,
"description": "Enable xff",
"isEditable": true,
"protectionOptions":
{
"inspectionOptions":
{
"httpResponseTrafficScanning": "INBOUND_AND_OUTBOUND",
"chunkedHTTPResponseDecoding": "DISABLED",
"htmlEncodedHTTPResponseDecoding": "DISABLED",
"base64SMTPDecoding": "DISABLED",
"quotedPrintableSMTPDecoding": "DISABLED",
"msRPCSMBFragmentReassembly": "DISABLED",
“msOfficeDeepFileInspection”: “DISABLED”,
"xffHeaderParsing": "DISABLED",
"layer7DataCollection": "DISABLED",
"passiveDeviceProfiling": "DISABLED",
"attackBlockingSimulation": false
},
"advancedBotnetDetectionOptions":
{
"advancedBotnetDetection": "DISABLED",
"exportTrafficToNTBA": false
},
"gtiEndpointReputationAnalysysOptions":
{
"gtiEndpointReputationAnalysys": "DISABLED",
"useToInfluenceSmartBlocking": false,
"excludeInternalEndpoint": false
“urlReputationAnalysis”: “INBOUND_ONLY”,
“urlReputationMinimumRisk:”MEDIUM”
},
"webserverHuresticAnalysysOptions":
{
"huresticAnalysys": "DISABLED"
},
"webserverDOSOptions":
{
"dosPrevention": "DISABLED",
"maxConnectionAllowedToWS": 0,
"slowConnectionAttackPrevention": false,
"maxHTTPRequestPERSecondTOAnyPath": 0,
"clientBrowserDetection": false
}
}
}
Response
{
"createdResourceId": 101
}
Error Information
Following error code is returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1013
58| Protection Options Policy Resource
Resource URL
PUT /protectionoptionspolicy/<policy_id>
Request Parameters
URL Parameter
Payload Parameters:
Details of protectionOptions:
1014 McAfee Network Security Platform 10.1.x Manager API Reference Guide
58| Protection Options Policy Resource
Details of inspectionOptions:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1015
58| Protection Options Policy Resource
1. INBOUND_ONLY
2. OUTBOUND_ONLY
3. DISABLED
4. INBOUND_AND_OUTBOUND
Details of advancedBotnetDetectionOptions:
1. INBOUND_ONLY
2. OUTBOUND_ONLY
3. DISABLED
1016 McAfee Network Security Platform 10.1.x Manager API Reference Guide
58| Protection Options Policy Resource
4. INBOUND_AND_OUTBOUND
1. LOW
2. MEDIUM
3. HIGH
Details of gtiEndpointReputationAnalysysOptions:
• INBOUND_ONLY
• OUTBOUND_ONLY
• DISABLED
• INBOUND_AND_OUTBOUND
1. HIGH
2. MEDIUM
Details of webserverHuresticAnalysysOptions:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1017
58| Protection Options Policy Resource
Details of webserverDOSOptions:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
1018 McAfee Network Security Platform 10.1.x Manager API Reference Guide
58| Protection Options Policy Resource
Example
Request
PUT https://<NSM_IP>/sdkapi/protectionoptionspolicy/1
{
"policyId": 1,
"policyName": "Default Client and Server Inspection",
"domainId": 0,
"visibleToChild": true,
"description": "Inspect traffic both from internal endpoints and to exposed Web and mail servers",
"isEditable": false,
"lastUpdatedBy": "admin",
"lastUpdated": "Jun 25 18:27",
"protectionOptions":
{
"inspectionOptions":
{
"httpResponseTrafficScanning": "OUTBOUND_ONLY",
"chunkedHTTPResponseDecoding": "OUTBOUND_ONLY",
"htmlEncodedHTTPResponseDecoding": "OUTBOUND_ONLY",
"base64SMTPDecoding": "INBOUND_AND_OUTBOUND",
"quotedPrintableSMTPDecoding": "INBOUND_AND_OUTBOUND",
"msRPCSMBFragmentReassembly": "DISABLED",
"msOfficeDeepFileInspection”: “DISABLED",
"xffHeaderParsing": "INBOUND_ONLY",
"layer7DataCollection": "INBOUND_AND_OUTBOUND",
"passiveDeviceProfiling": "INBOUND_AND_OUTBOUND",
"attackBlockingSimulation": false
}
,
"advancedBotnetDetectionOptions":
{
"advancedBotnetDetection": "DISABLED",
"exportTrafficToNTBA": false
}
,
"gtiEndpointReputationAnalysysOptions":
{
"gtiEndpointReputationAnalysys": "DISABLED",
"useToInfluenceSmartBlocking": false,
"excludeInternalEndpoint": false,
"urlReputationAnalysis”: “INBOUND_ONLY",
"urlReputationMinimumRisk:”MEDIUM"
}
,
"webserverHuresticAnalysysOptions":
{
"huresticAnalysys": "INBOUND_ONLY",
"websitePathToProtect": "ALL",
"blockedTextList": [],
"websitePathToProtectList": [],
}
,
"webserverDOSOptions":
{
"dosPrevention": "INBOUND_ONLY",
"maxConnectionAllowedToWS": 750000,
"slowConnectionAttackPrevention": true,
"maxHTTPRequestPERSecondTOAnyPath": 10000,
"websitePathToProtect": "ALL",
"clientBrowserDetection": true,
"browserDetectionMethod": "HTML_CHALLENGE",
"websitePathToProtectList": [],
}
}
}
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1019
58| Protection Options Policy Resource
{
"status":1
}
Error Information
Following error code is returned by this URL:
Resource URL
DELETE /protectionoptionspolicy/<policy_id>
Request Parameters
URL Parameter
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://<NSM_IP>/sdkapi/protectionoptionspolicy/1
1020 McAfee Network Security Platform 10.1.x Manager API Reference Guide
58| Protection Options Policy Resource
Response
{
"status":1
}
Error Information
Following error code is returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1021
59| DXL Integration Resource
Resource URL
GET /domain/<domain_id>/dxlintegration
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/dxlintegration
Response
{
"inheritSettings": true,
"enableDXL": true
}
1022 McAfee Network Security Platform 10.1.x Manager API Reference Guide
59| DXL Integration Resource
Error Information
Following error code is returned by this URL:
Resource URL
PUT /domain/<domain_id>/dxlintegration
Request Parameters
URL Parameter
Payload Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1023
59| DXL Integration Resource
Example
Request
Payload
{
"inheritSettings": true,
"enableDXL": true
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /sensor/<sensor_id>/ dxlintegration
1024 McAfee Network Security Platform 10.1.x Manager API Reference Guide
59| DXL Integration Resource
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/dxlintegration
Response
{
"inheritSettings": false,
"enableDXL": true,
"epoServerIporName": "10.213.169.206",
"epoServerPort": 8443,
"epoUsername": "admin",
"epoPassword": "admin123"
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1025
59| DXL Integration Resource
Error Information
Following error codes are returned by this URL:
3 404 9201 DXL integration supported only for NS and Virtual IPS Sensors having
software version greater than or equal to 9.1
Resource URL
PUT /sensor/<sensor_id>/dxlintegration
Request Parameters
URL Parameter
Payload Parameters:
1026 McAfee Network Security Platform 10.1.x Manager API Reference Guide
59| DXL Integration Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1001/dxlintegration
Payload
{
"inheritSettings": false,
"enableDXL": true,
"epoServerIporName": "10.213.169.206",
"epoServerPort": 8443,
"epoUsername": "admin",
"epoPassword": "admin123"
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1027
59| DXL Integration Resource
3 404 9201 DXL integration supported only for NS and Virtual Sensors having
software version greater than or equal to 9.1
4 400 9102 McAfee ePO server IP address, username and password are mandatory
5 400 9103 McAfee ePO server username can contain space, numbers, alphabets and
special characters '_-.\\'
1028 McAfee Network Security Platform 10.1.x Manager API Reference Guide
60| Threat Explorer Resource
Resource URL
GET /domain/<domain_id>/threatexplorer/alerts/TopN/<count>/direction/<direction>/duration/<duration>?
includeChildDomain=<includeChildDomain>&&action=<action>&&value=<value>
Request Parameters
URL Parameters:
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
• LAST_12_HOURS
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
Default is true
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1029
60| Threat Explorer Resource
• Group(default)
• Filter
<filter_name2>=<filter_value> .
1030 McAfee Network Security Platform 10.1.x Manager API Reference Guide
60| Threat Explorer Resource
block, none,
Response Parameters
Following fields are returned.
topAttacks List of all the top attacks. The data is same as TE top attacks explained in 1.2.3 Object
topAttackers List of all the top attackers. The data is same as TE top attackers explained in Object
1.3.3
topTargets List of all the top targets. The data is same as TE top targets explained in 1.4.3 Object
topAttackApplications List of all the top attack applications. The data is same as TE top attack Object
applications explained in 1.5.3
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1031
60| Threat Explorer Resource
topAttackExecutables List of all the top executables. The data is same as TE top executables explained Object
in 1.7.3
topMalware List of all the top malwares. The data is same as TE top malware downloads Object
explained in 1.6.3
Example
Request
Response
1032 McAfee Network Security Platform 10.1.x Manager API Reference Guide
60| Threat Explorer Resource
{
"topAttacks":
{
"TETopAttacksList":
[
{
"attackName": "MALWARE: Malicious File detected by Mcafee Cloud Service - Mobile Engine",
"attackCategory": "Malware",
"attackSubcategory": "McAfee-Cloud",
"attackSeverity": "High",
"attackCount": 4
}
]
},
"topAttackers":
{
"TETopAttackersList":
[
{
"attackerIP": "1.1.223.9",
"attackerDNSName": "node-irt.pool-1-1.dynamic.totbb.net.",
"attackerCountry": "Thailand",
"attackerUser": "Unknown",
"attackCount": 2
},
{
"attackerIP": "1.1.223.10",
"attackerDNSName": "node-iru.pool-1-1.dynamic.totbb.net.",
"attackerCountry": "Thailand",
"attackerUser": "Unknown",
"attackCount": 2
}
]
},
"topTargets":
{
"TETopTargetsList":
[
{
"targetIP": "1.1.223.9",
"targetDNSName": "node-irt.pool-1-1.dynamic.totbb.net.",
"targetCountry": "Thailand",
"targetUser": "Unknown",
"attackCount": 2
},
{
"targetIP": "1.1.223.10",
"targetDNSName": "node-iru.pool-1-1.dynamic.totbb.net.",
"targetCountry": "Thailand",
"targetUser": "Unknown",
"attackCount": 2
}
]
},
"topAttackApplications":
{
"TETopAttackApplicationsList":
[
{
"applicationName": "SMTP",
"applicationRisk": "High",
"applicationCategory": "Email",
"attackCount": 2
},
{
"applicationName": "HTTP",
"applicationRisk": "Low",
"applicationCategory": "Infrastructure Services",
"attackCount": 2
}
]
},
"topAttackExecutables":
{
},
"topMalware":
{
"TETopMalwareDownloadsList":
[
{
"malwareFileHash": "f70664bb0d45665e79ba9113c5e4d0f4",
"malwareConfidence": "Very High",
"malwareFileSizeInBytes": "314445",
"attackCount": 4
}
McAfee Network
] Security Platform 10.1.x Manager API Reference Guide 1033
}
}
60| Threat Explorer Resource
Error Information
Following error codes are returned by this URL:
Resource URL
GET /domain/<domain_id>/threatexplorer/alerts/TopN/<count>/direction/<direction>/duration/<duration>/attacks?
includeChildDomain=<includeChildDomain>&&action=<action>&&value=<value>
Request Parameters
URL Parameters:
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
• LAST_12_HOURS
• LAST_24_HOURS
• LAST_48_HOURS
1034 McAfee Network Security Platform 10.1.x Manager API Reference Guide
60| Threat Explorer Resource
• LAST_7_DAYS
• LAST_14_DAYS
• Group(default)
• Filter
value String No
If action is group, the values allowed are:
• attack (default)
• severity
• category
• subCategory
<filter_name2>=<filter_value> .
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1035
60| Threat Explorer Resource
block, none,
Response Parameters
Following fields are returned.
1036 McAfee Network Security Platform 10.1.x Manager API Reference Guide
60| Threat Explorer Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/threatexplorer/alerts/TopN/10/direction/ANY/duration/LAST_12_HOURS/attacks?
action=filter&&value=malwareConfidence=Very High
Response
{
"TETopAttacksList":
[
{
"attackName": "MALWARE: Malicious File detected by Mcafee Cloud Service - Mobile Engine",
"attackCategory": "Malware",
"attackSubcategory": "McAfee-Cloud",
"attackSeverity": "High",
"attackCount": 4
}
]
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1037
60| Threat Explorer Resource
Resource URL
GET /domain/<domain_id>/threatexplorer/alerts/TopN/<count>/direction/<direction>/duration/<duration>/attackers?
includeChildDomain=<includeChildDomain>&&action=<action>&&value=<value>
Request Parameters
URL Parameters:
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
1038 McAfee Network Security Platform 10.1.x Manager API Reference Guide
60| Threat Explorer Resource
• LAST_12_HOURS
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
Default is true
• Group(default)
• Filter
value String No
If action is group, the values allowed are:
• attackerIp (default)
• dnsName
• country
• user
<filter_name2>=<filter_value> .
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1039
60| Threat Explorer Resource
block, none,
Response Parameters
Following fields are returned.
1040 McAfee Network Security Platform 10.1.x Manager API Reference Guide
60| Threat Explorer Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/threatexplorer/alerts/TopN/10/direction/ANY/duration/LAST_12_HOURS/attackers?
action=filter&&value=malwareConfidence=Very High:::country=Thailand
Response
{
"TETopAttackersList":
[
{
"attackerIP": "1.1.223.9",
"attackerDNSName": "node-irt.pool-1-1.dynamic.totbb.net.",
"attackerCountry": "Thailand",
"attackerUser": "Unknown",
"attackCount": 2
},
{
"attackerIP": "1.1.223.10",
"attackerDNSName": "node-iru.pool-1-1.dynamic.totbb.net.",
"attackerCountry": "Thailand",
"attackerUser": "Unknown",
"attackCount": 2
}
]
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1041
60| Threat Explorer Resource
Resource URL
GET /domain/<domain_id>/threatexplorer/alerts/TopN/<count>/direction/<direction>/duration/<duration>/targets?
includeChildDomain=<includeChildDomain>&&action=<action>&&value=<value>
Request Parameters
URL Parameters:
• LAST_5_MINUTES
1042 McAfee Network Security Platform 10.1.x Manager API Reference Guide
60| Threat Explorer Resource
• LAST_1_HOUR
• LAST_6_HOURS
• LAST_12_HOURS
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
Default is true
• Group(default)
• Filter
value String No
If action is group, the values allowed are:
• victimIp(default)
• victimDnsName
• victimCountry
• victimUser
<filter_name2>=<filter_value> .
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1043
60| Threat Explorer Resource
block, none,
Response Parameters
Following fields are returned.
1044 McAfee Network Security Platform 10.1.x Manager API Reference Guide
60| Threat Explorer Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/threatexplorer/alerts/TopN/10/direction/ANY/duration/LAST_12_HOURS/targets?
action=filter&&value=malwareConfidence=Very High:::country=Thailand
Response
{
"TETopTargetsList":
[
{
"targetIP": "1.1.223.9",
"targetDNSName": "node-irt.pool-1-1.dynamic.totbb.net.",
"targetCountry": "Thailand",
"targetUser": "Unknown",
"attackCount": 2
},
{
"targetIP": "1.1.223.10",
"targetDNSName": "node-iru.pool-1-1.dynamic.totbb.net.",
"targetCountry": "Thailand",
"targetUser": "Unknown",
"attackCount": 2
}
]
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1045
60| Threat Explorer Resource
Resource URL
GET /domain/<domain_id>/threatexplorer/alerts/TopN/<count>/direction/<direction>/duration/<duration>/attack_applications?
includeChildDomain=<includeChildDomain>&&action=<action>&&value=<value>
Request Parameters
URL Parameters:
1046 McAfee Network Security Platform 10.1.x Manager API Reference Guide
60| Threat Explorer Resource
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
• LAST_12_HOURS
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
Default is true
• group(default)
• filter
value String No
If action is group, the values allowed are:
• applicationName(default)
• applicationRisk
• applicationCategory
<filter_name2>=<filter_value> .
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1047
60| Threat Explorer Resource
block, none,
Response Parameters
Following fields are returned.
1048 McAfee Network Security Platform 10.1.x Manager API Reference Guide
60| Threat Explorer Resource
TETopAttackApplications List of top attack applications. Contains TE top attack applications list Object
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/threatexplorer/alerts/TopN/10/direction/ANY/duration/LAST_12_HOURS/
attack_applications?action=filter&&value=malwareConfidence=Very High:::country=Thailand
Response
{
"TETopAttackApplicationsList":
[
{
"applicationName": "SMTP",
"applicationRisk": "High",
"applicationCategory": "Email",
"attackCount": 2
},
{
"applicationName": "HTTP",
"applicationRisk": "Low",
"applicationCategory": "Infrastructure Services",
"attackCount": 2
}
]
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1049
60| Threat Explorer Resource
Resource URL
GET /domain/<domain_id>/threatexplorer/alerts/TopN/<count>/direction/<direction>/duration/<duration>/malware?
includeChildDomain=<includeChildDomain>&&action=<action>&&value=<value>
Request Parameters
URL Parameters:
1050 McAfee Network Security Platform 10.1.x Manager API Reference Guide
60| Threat Explorer Resource
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
• LAST_12_HOURS
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
• Group(default)
• Filter
value String No
If action is group, the values allowed are:
• fileHash (default)
• malwareConfidence
• fileSize
<filter_name2>=<filter_value> .
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1051
60| Threat Explorer Resource
block, none,
Response Parameters
Following fields are returned.
TETopMalware List of top malwares. Contains TE top malware downloads list Object
1052 McAfee Network Security Platform 10.1.x Manager API Reference Guide
60| Threat Explorer Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/threatexplorer/alerts/TopN/10/direction/ANY/duration/LAST_12_HOURS/malware?
action=filter&&value=malwareConfidence=Very High:::country=Thailand
Response
{
"TETopMalwareDownloadsList":
[
{
"malwareFileHash": "f70664bb0d45665e79ba9113c5e4d0f4",
"malwareConfidence": "Very High",
"malwareFileSizeInBytes": "314445",
"attackCount": 4
}
]
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1053
60| Threat Explorer Resource
Resource URL
GET /domain/<domain_id>/threatexplorer/alerts/TopN/<count>/direction/<direction>/duration/<duration>/executables?
includeChildDomain=<includeChildDomain>&&action=<action>&&value=<value>
Request Parameters
URL Parameters:
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
• LAST_12_HOURS
• LAST_24_HOURS
1054 McAfee Network Security Platform 10.1.x Manager API Reference Guide
60| Threat Explorer Resource
• LAST_48_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
Default is true
• Group(default)
• Filter
value String No
If action is group, the values allowed are:
• ExecutableHash(default)
• ExecutableConfidence
• ExecutableClassification
• ExecutableName
<filter_name2>=<filter_value> .
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1055
60| Threat Explorer Resource
block, none,
Response Parameters
Following fields are returned.
1056 McAfee Network Security Platform 10.1.x Manager API Reference Guide
60| Threat Explorer Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/threatexplorer/alerts/TopN/10/direction/ANY/duration/LAST_12_HOURS/executables?
action=filter&&value=executableConfidence=veryLow
Response
{
"TETopExecutablesList":
[
{
"executableHash": "6691f88cbd9122d990fe9e17197e2771",
"executableConfidence": "veryLow",
"executableName": "BitTorrent.exe",
"executableClassification": "Allowed",
"attackCount": 327
},
{
"executableHash": "fb104d17018b4ca9f0c1a9bed02d15fc",
"executableConfidence": "veryLow",
"executableName": "firefox.exe",
"executableClassification": "Allowed",
"attackCount": 13
},
{
"executableHash": "f71d97b6b631d565af7c6e0bdf9d49f4",
"executableConfidence": "veryLow",
"executableName": "IEXPLORE.EXE.MUI",
"executableClassification": "Allowed",
"attackCount": 6
},
{
"executableHash": "bcd9cbf0621f9a6767276a2e0bf1dd15",
"executableConfidence": "veryLow",
"executableName": "googletalk.exe",
"executableClassification": "Allowed",
"attackCount": 5
}
]
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1057
60| Threat Explorer Resource
Error Information
Following error codes are returned by this URL:
1058 McAfee Network Security Platform 10.1.x Manager API Reference Guide
61| Network Forensics
Network Forensics
Get Host Summary
This URL retrieves the host analysis summary for given IP address for the time frame.
Resource URL
GET /networkforensics/<ipaddress>?startime=<start_time>&&duration=<duration>&&ntba=<ntba_id>
• NEXT_60_SECONDS
• NEXT_5_MINUTES
• NEXT_60_MINUTES
• NEXT_30_MINUTES
Request Parameters
Query Request Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1059
61| Network Forensics
1060 McAfee Network Security Platform 10.1.x Manager API Reference Guide
61| Network Forensics
Details of ServerConnections:
Example
Request
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1061
61| Network Forensics
Response
{
" endpointSummary ":
{
" analysisWindow ": "",
" zone ": "South",
" country ": "India",
" dataSource ": "Allowed",
" ipAddress ": “”
}
" ClientConnections ":
{
" connections ": "10-Aug-2014 12:00",
" applications ": "",
" endpointExecutables ": "BitTorrent.exe"
}
" ServerConnections ":
{
" connections ": "10-Aug-2014 12:00",
" applications ": "",
}
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /networkforensics/<ipaddress>/suspiciousflows ?startime=<start_time>&&duration=<duration>&&ntba=<ntba_id>
1062 McAfee Network Security Platform 10.1.x Manager API Reference Guide
61| Network Forensics
• NEXT_60_SECONDS
• NEXT_5_MINUTES
• NEXT_60_MINUTES
• NEXT_30_MINUTES
Request Parameters
Query Request Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1063
61| Network Forensics
Example
Request
Response
{
"suspciousFlows":
[
{
" time ": "10-Aug-2014 12:00",
" suspciousActivity ": "",
" sourceEcecutable ": "BitTorrent.exe",
"executableClassification": "Allowed",
"attackName": “”
}
]
}
Error Information
Following error codes are returned by this URL:
1064 McAfee Network Security Platform 10.1.x Manager API Reference Guide
61| Network Forensics
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1065
62| Gateway Anti-Malware Update Resource
Resource URL
GET /domain/<domain_id>/gamupdatesettings
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/gamupdatesettings
Response
1066 McAfee Network Security Platform 10.1.x Manager API Reference Guide
62| Gateway Anti-Malware Update Resource
{
"inheritSettings": false,
"enableAutoUpdate": false,
"updateInterval": "6 hrs"
}
Error Information
Following error code is returned by this URL:
Resource URL
PUT /domain/<domain_id>/gamupdatesettings
Request Parameters
URL Parameter
Payload Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1067
62| Gateway Anti-Malware Update Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/gamupdatesettings
Payload
{
"inheritSettings": false,
"enableAutoUpdate": false,
"updateInterval": "6 hrs"
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
HTTP Error
No Code SDK API errorId SDK API errorMessage
3 400 9302 Gateway Anti-Malware update time interval should be one of the
following : ["1.5 hrs", "3 hrs", "6 hrs", "12 hrs", "24 hrs"]
1068 McAfee Network Security Platform 10.1.x Manager API Reference Guide
62| Gateway Anti-Malware Update Resource
Resource URL
GET /sensor/<sensor_id>/gamupdatesettings
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
GAM_DAT_VERSION Version: Latest and active version of Gateway Anti-Malware DAT on Object
Sensor
GAM_ENGINE_VERSION Version: Latest and active version of Gateway Anti-Malware engine on Object
Sensor
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1069
62| Gateway Anti-Malware Update Resource
ANTI_MALWARE_ENGINE_VERSION Version: Latest and active version of Anti-Malware engine on Sensor Object
Details of Version:
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/gamupdatesettings
Response
{
"inheritSettings": false,
"enableAutoUpdate": false,
"updateInterval": "6.0 hrs",
"lastUpdate": "Sat Jan 17 14:34:39 IST 1970",
"GAM_DAT_VERSION":
{
"activeVersion": "3177",
"latestVersion": "3185"
},
"GAM_ENGINE_VERSION":
{
"activeVersion": "7001.1302.1842 ",
"latestVersion": "7001.1302.1842"
},
"AV_DAT_VERSION":
{
"activeVersion": "7607",
"latestVersion": "7611"
},
"ANTI_MALWARE_ENGINE_VERSION":
{
"activeVersion": "5600",
"latestVersion": "5600"
}
}
Error Information
Following error codes are returned by this URL:
1070 McAfee Network Security Platform 10.1.x Manager API Reference Guide
62| Gateway Anti-Malware Update Resource
Resource URL
PUT /sensor/<sensor_id>/gamupdatesettings
Request Parameters
URL Parameter
Payload Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1071
62| Gateway Anti-Malware Update Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1001/gamupdatesettings
Payload
{
"inheritSettings": false,
"enableAutoUpdate": false,
"updateInterval": "6 hrs"
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
HTTP Error
No Code SDK API errorId SDK API errorMessage
4 400 9302 GAM update time interval should be one of the following : ["1.5 hrs", "3
hrs", "6 hrs", "12 hrs", "24 hrs"]
1072 McAfee Network Security Platform 10.1.x Manager API Reference Guide
63| User Resource
User Resource
Get the User Details
These URL's retrieve the details of the user with the user id passed as parameter.
Resource URL
GET /user/ {userId}:
This URL is to retrieve the details of user with the given user id.
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
userCredentials This field contains the user id and password details of the user Object
userDetails This field contains general details like name, contact etc. for a user. Object
roleAssignment This field contains the details about the domain and role. Object
dashBoardAssignment This field contains the details of the dash boards assigned to the user. Object
Details of userCredentials:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1073
63| User Resource
password Secret key required to login. Its value will not be visible as it is confidential and should only String
be known to the user.
Details of userDetails:
Details of address:
address1 Address line 1. Containing one segment of the users address. String
address2 Address line 2. Containing other segment of the users address. String
Details of roleAssignment:
1074 McAfee Network Security Platform 10.1.x Manager API Reference Guide
63| User Resource
Data
Field Name Description Type
role This field contains the information regarding the role assigned to the user. It can have any String
value from the list of roles already defined in the Manager, i.e.
Note: In addition to the above mentioned roles, the user can also be assigned a
custom created role.
Details of dashBoardAssignment:
Example
Request
GET https://<NSM_IP>/sdkapi/user/1
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1075
63| User Resource
{
"userCredentials":
{
"loginID": "admin",
"password": ""
},
"userDetails":
{
"firstAndLastName": "Administrator",
"email": "Administrator Email",
"company": "",
"phone": "",
"address":
{
"address1": "",
"address2": ""
},
"state": "",
"country": ""
},
"roleAssignment":
{
"domainId": 0,
"role": "Super User"
},
"dashBoardAssignment":
{
"dashBoardList": ["Dashboard_1","Dashboard_2"]
}
}
Error Information
Following error code is returned by this URL:
Create a User
Creates a new user resource.
Resource URL
POST /user
Request Parameters
Payload Request Parameters:
userCredentials This field contains the user id and password details of the user Object
1076 McAfee Network Security Platform 10.1.x Manager API Reference Guide
63| User Resource
userDetails This field contains general details like name, contact etc. for a user Object
roleAssignment This field contains the details about domain and role Object
Details of userCredentials:
password Secret key required to login. Its value will not be visible as it is String Yes
confidential and should only be known to the user.
Details of userDetails:
Details of address:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1077
63| User Resource
address1 Address line 1. Contains one segment of the users address. String No
address2 Address line 2. Contains the other segment of the users address. String No
Details of roleAssignment:
Field Data
Name Description Type Mandatory
role This field contains the information regarding the role assigned to String No (In this case No
the user. It can have any value from the list of roles already Role will be assigned
defined in the Manager, i.e. by default if no value is
• NOC operator
• Report generator
• Security expert
• Super user
• System administrator
• No role
Details of dashBoardAssignment:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
1078 McAfee Network Security Platform 10.1.x Manager API Reference Guide
63| User Resource
Example
Request
PUT https://<NSM_IP>/sdkapi/user
Payload
{
"userCredentials":
{
"loginID": "nsmuser",
"password": "nsmuser1234"
},
"userDetails":
{
"firstAndLastName": "NSM USER",
"email": "[email protected]",
"company": "Intel Secutity",
"phone": "",
"address":
{
"address1": "Intel Security",
"address2": "Intel Security"
},
"state": "Karnataka",
"country": "India"
},
"roleAssignment":
{
"domainId": 0,
"role": "Super User"
},
"dashBoardAssignment":
{
"dashBoardList": ["Dashboard_1","Dashboard_2"]
}
Response
{
"createdResourceId": 103
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1079
63| User Resource
Update a User
This URL updates the details of a user.
Resource URL
POST /user/{userId}
Request Parameters
URL Parameter
1080 McAfee Network Security Platform 10.1.x Manager API Reference Guide
63| User Resource
userCredentials This field contains the user id and password details of the user Object
userDetails This field contains general details like name, contact etc. for a user. Object
roleAssignment This field contains the details about domain and role. Object
Details of userCredentials:
password Secret key required to login. Its value will not be visible as it is String Yes
confidential and should only be known to the user.
Details of userDetails:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1081
63| User Resource
Details of address:
address1 Address line 1. Contains one segment of the users address. String No
address2 Address line 2. Contains other segment of the users address. String No
Details of roleAssignment:
Field Data
Name Description Type Mandatory
role This field contains the information regarding the role assigned to String No (In this case "No
the user. It can have any value from the list of roles already Role" will be assigned
defined in the Manager, i.e. by default if no value is
• NOC operator
• Report generator
• Security expert
• Super user
• System administrator
• No role
Details of dashBoardAssignment:
1082 McAfee Network Security Platform 10.1.x Manager API Reference Guide
63| User Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/user/103
Payload
{
"userCredentials":
{
"loginID": "nsmuser",
"password": "nsmuser1234"
},
"userDetails":
{
"firstAndLastName": "NSM USER",
"email": "[email protected]",
"company": "Intel Secutity",
"phone": "",
"address":
{
"address1": "Intel Security",
"address2": "Intel Security"
},
"state": "Karnataka",
"country": "India"
},
"roleAssignment":
{
"domainId": 0,
"role": " Security Expert"
},
"dashBoardAssignment":
{
"dashBoardList": ["Dashboard_1","Dashboard_2"]
}
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1083
63| User Resource
{
"status":1
}
Error Information
Following error codes are returned by this URL:
Delete a User
This URL deletes the record of an existing user.
Resource URL
DELETE /user/{userId}
Request Parameters
URL Parameter
1084 McAfee Network Security Platform 10.1.x Manager API Reference Guide
63| User Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://<NSM_IP>/user/103
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1085
64| Alert Pruning Resource
Resource URL
PUT /Maintenance/prunealerts
Request Parameters
Payload Request Parameters:
Details of AlertPruningForm:
maxAlertsToStoreForDashboard Maximum number of alerts that will be stored for Number Yes
dashboards
maxAlertsToStoreForReport Maximum number of alerts that will be stored for Number Yes
reports
maxALertAgeForReport Maximum number of days for which the alert details Number Yes
will be stored
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
1086 McAfee Network Security Platform 10.1.x Manager API Reference Guide
64| Alert Pruning Resource
Example
Request
PUT https://<NSM_IP>/sdkapi/Maintenance/prunealerts
Payload
{
"enableAlertPruning":"true",
"pruningStartTime":"12:40",
"maxAlertsToStoreForDashboard":"10000",
"maxAlertsToStoreForReport":"10000",
"maxALertAgeForReport":"20"
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
1 400 9509 Time should be in HH:MM (24 Hrs format), minutes should be multiple of 5
2 400 9510 Number of alerts to store must be greater than or equal to 10000
3 400 9511 Number of alerts to store for dashboard should not be greater than number
of alerts to store for reports.
4 400 9512 Maximum alert age can't be greater than 999 days
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1087
65| Custom Role Resource
Resource URL
GET /role
Request Parameters
No request parameters are required for this URL.
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Data
Field Name Description Type
description The description of the role, that is given while creating the role String
privileges List of the privileges that the role has. It can have following values like: Array
Other available privileges as visible in the Manager based on the types of devices added in
the Manager.
1088 McAfee Network Security Platform 10.1.x Manager API Reference Guide
65| Custom Role Resource
Example
Request
GET https://<NSM_IP>/sdkapi/role
Response
{
"customRoleList": [
{
"roleName": "ePO Dashboard Data Retriever",
"description": "Special role for use with the ePO Extension to pull NSP data from ePO for
display in ePO Dashboards.",
"privileges":
[
"ePO Dashboard Data Retrieval"
]
},
{
"roleName": "Crypto Administrator",
"description": "Add and remove devices.",
"privileges":
[
"Devices - Edit"
]
},
{
"roleName": "Audit Administrator",
"description": "Administer user activity logs.",
"privileges":
[
"User Auditing - Edit"
]
}
]
}
Create a Role
Creates a new role.
Resource URL
POST /role
Request Parameters
Payload Request Parameters:
Data
Field Name Description Type
description The description of the role, that is given while creating the role String
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1089
65| Custom Role Resource
Data
Field Name Description Type
privileges List of the privileges that the role has. It can have following values like: Array
Other available privileges as visible in the Manager based on the types of devices added in
the Manager.
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/role
Payload
1090 McAfee Network Security Platform 10.1.x Manager API Reference Guide
65| Custom Role Resource
{
"roleName": "TEST1",
"description": "Full rights to the Network Security Manager",
"privileges":
[
"Alerts - View Packet Logs",
"Analysis",
"Configuration Reports - IPS - Create",
"Configuration Reports - IPS - Run Only",
"Dashboard",
"Deploy Changes - IPS",
"ePO Dashboard Data Retrieval",
"Event Reports - IPS - Create",
"Event Reports - IPS - Run Only",
"IPS Policy - Edit",
"IPS Policy - View Only",
"Manage IPS - Edit",
"Manage IPS - View Only",
"Manage Manager - Edit",
"Manage Manager - View Only",
"Run Vulnerability Scan",
"System - Edit",
"System - View Only",
"TA Alert Assignment Supervisor",
"TA Alerts - Manage",
"TA Alerts - View Only",
"TA Dashboards - General Monitors - Create",
"TA Dashboards - General Monitors - View Only",
"TA Dashboards - IPS Monitors - Create",
"TA Dashboards - IPS Monitors - View Only",
"TA Edit IPS Policy",
"TA Endpoints - Manage",
"TA Endpoints - View Only",
"TA Retrieve ePO Data",
"Users and Roles - Edit",
"Users and Roles - View Only"
]
}
Response
{
"createdResourceId": 103
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1091
65| Custom Role Resource
Delete a Role
This URL deletes an existing custom role.
Resource URL
DELETE /role/{roleName}
Request Parameters
URL Parameter
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://<NSM_IP>/sdkapi/role/{CustomRole}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
1092 McAfee Network Security Platform 10.1.x Manager API Reference Guide
65| Custom Role Resource
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1093
66| Direct Syslog Resource
Resource URL
GET /domain/<domain_id>/directsyslog
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
1094 McAfee Network Security Platform 10.1.x Manager API Reference Guide
66| Direct Syslog Resource
Details of syslogPriorityMapping:
Details of filter:
Details of LogSomeAttacks:
isExplicitlyEnabled The attack definition has syslog notification explicitly enabled Boolean
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1095
66| Direct Syslog Resource
Details of minimumSeverity:
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/directsyslog
Response
{
'enableSyslog': 'true',
'syslogPriorityMapping': {
'lowTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'highTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'informationTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'mediumTO': 'EMERGENCY_SYSTEM_UNUSABLE'
},
'isInherit': 'false',
'serverIp': '10.213.172.94',
'filter': {
'LogSomeAttacks': {
'isExplicitlyEnabled': 'false',
'minimumSeverity': {
'isMinimumSeverity': 'false',
'severityType': 'LOW'
}
}
},
'serverPort': '514',
'syslogFacility': 'SECURITY_AUTHORIZATION_CODE_4',
'message': 'Admin_Domain=$IV_ADMIN_DOMAIN$Alert_Type=$IV_ALERT_TYPE$Attack_Name=$IV_ATTACK_NAME
$AttackConfidence=$IV_ATTACK_CONFIDENCE$DetectMech=$IV_DETECTION_MECHANISM$Category=$IV_CATEGORY$SubCategory=
$IV_SUB_CATEGORY$INTF=$IV_INTERFACE$Attack_Id=$IV_ATTACK_ID$Attack_Count=$IV_ATTACK_COUNT$Attack_Severity=
$IV_ATTACK_SEVERITY$Attack_Signature=$IV_ATTACK_SIGNATURE$Source_Ip=$IV_SOURCE_IP$Dest_Ip=$IV_DESTINATION_IP
$Dest_Port=$IV_DESTINATION_PORT$Source_Port=$IV_SOURCE_PORT$Malware_Confidence=$IV_MALWARE_CONFIDENCE
$Detection_Engine=$IV_MALWARE_DETECTION_ENGINE$Mal_File_Len=$IV_MALWARE_FILE_LENGTH$Mal_file_md5=
$IV_MALWARE_FILE_MD5_HASH$Mal_File_Name=$IV_MALWARE_FILE_NAME$Mal_File_Type=$IV_MALWARE_FILE_TYPE
$Mal_Vir_Name=$IV_MALWARE_VIRUS_NAME$Direction=$IV_DIRECTION$Nw_Protocol=$IV_NETWORK_PROTOCOL$AppProtocol=
$IV_APPLICATION_PROTOCOL$Attack_Time=$IV_ATTACK_TIME$Qurantine_Time=$IV_QUARANTINE_END_TIME$Result_Status=
$IV_RESULT_STATUS$Alert_UUID=$IV_SENSOR_ALERT_UUID$PeerName=$IV_SENSOR_CLUSTER_MEMBER$Sensor_Name=
$IV_SENSOR_NAME$SourceOs=$IV_SOURCE_OS$DestOs=$IV_DEST_OS$Src_APN=$IV_SRC_APN$Dest_APN=$IV_DEST_APN$Src_IMSI=
$IV_SRC_IMSI$Dest_IMSI=$IV_DEST_IMSI$Src_Phone=$IV_SRC_PHONE_NUMBER$Dest_Phone=$IV_DEST_PHONE_NUMBER$Vlan_ID=
$IV_VLAN_ID$'
}
Error Information
Following error codes are returned by this URL:
1096 McAfee Network Security Platform 10.1.x Manager API Reference Guide
66| Direct Syslog Resource
2 400 6001 Direct sysog configuration is not present for this domain/Sensor
Resource URL
PUT /domain/<domain_id>/directsyslog
Request Parameters
URL Parameters:
• SECURITY_AUTHORIZATION_CODE_10
• SECURITY_AUTHORIZATION_CODE_4
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1097
66| Direct Syslog Resource
• LOG_AUDIT_NOTE_1
• LOG_ALERT_NOTE_1
• CLOCK_DAEMON_NOTE_2
• LOCAL_USER_0
• LOCAL_USER_1
• LOCAL_USER_2
• LOCAL_USER_3
• LOCAL_USER_4
• LOCAL_USER_5
• LOCAL_USER_6
• LOCAL_USER_7
Details of syslogPriorityMapping:
informationTo Informational severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
lowTo Low severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
1098 McAfee Network Security Platform 10.1.x Manager API Reference Guide
66| Direct Syslog Resource
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
mediumTO Medium severity attack mapping. Values allowed are: String yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
highTo High severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
Details of filter:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1099
66| Direct Syslog Resource
Details of LogSomeAttacks:
isExplicitlyEnabled The attack definition has Syslog notification explicitly enabled Boolean Yes
Details of minimumSeverity:
• INFORMATIONAL
• LOW
• MEDIUM
• HIGH
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/directsyslog
Payload
1100 McAfee Network Security Platform 10.1.x Manager API Reference Guide
66| Direct Syslog Resource
{
'enableSyslog': 'true',
'syslogPriorityMapping': {
'lowTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'highTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'informationTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'mediumTO': 'EMERGENCY_SYSTEM_UNUSABLE'
},
'isInherit': 'false',
'serverIp': '10.213.172.94',
'filter': {
'LogSomeAttacks': {
'isExplicitlyEnabled': 'false',
'minimumSeverity': {
'isMinimumSeverity': 'false',
'severityType': 'LOW'
}
}
},
'serverPort': '514',
'syslogFacility': 'SECURITY_AUTHORIZATION_CODE_4',
'message': 'Admin_Domain=$IV_ADMIN_DOMAIN$Alert_Type=$IV_ALERT_TYPE$Attack_Name=$IV_ATTACK_NAME
$AttackConfidence=$IV_ATTACK_CONFIDENCE$DetectMech=$IV_DETECTION_MECHANISM$Category=$IV_CATEGORY$SubCategory=
$IV_SUB_CATEGORY$INTF=$IV_INTERFACE$Attack_Id=$IV_ATTACK_ID$Attack_Count=$IV_ATTACK_COUNT$Attack_Severity=
$IV_ATTACK_SEVERITY$Attack_Signature=$IV_ATTACK_SIGNATURE$Source_Ip=$IV_SOURCE_IP$Dest_Ip=$IV_DESTINATION_IP
$Dest_Port=$IV_DESTINATION_PORT$Source_Port=$IV_SOURCE_PORT$Malware_Confidence=$IV_MALWARE_CONFIDENCE
$Detection_Engine=$IV_MALWARE_DETECTION_ENGINE$Mal_File_Len=$IV_MALWARE_FILE_LENGTH$Mal_file_md5=
$IV_MALWARE_FILE_MD5_HASH$Mal_File_Name=$IV_MALWARE_FILE_NAME$Mal_File_Type=$IV_MALWARE_FILE_TYPE
$Mal_Vir_Name=$IV_MALWARE_VIRUS_NAME$Direction=$IV_DIRECTION$Nw_Protocol=$IV_NETWORK_PROTOCOL$AppProtocol=
$IV_APPLICATION_PROTOCOL$Attack_Time=$IV_ATTACK_TIME$Qurantine_Time=$IV_QUARANTINE_END_TIME$Result_Status=
$IV_RESULT_STATUS$Alert_UUID=$IV_SENSOR_ALERT_UUID$PeerName=$IV_SENSOR_CLUSTER_MEMBER$Sensor_Name=
$IV_SENSOR_NAME$SourceOs=$IV_SOURCE_OS$DestOs=$IV_DEST_OS$Src_APN=$IV_SRC_APN$Dest_APN=$IV_DEST_APN$Src_IMSI=
$IV_SRC_IMSI$Dest_IMSI=$IV_DEST_IMSI$Src_Phone=$IV_SRC_PHONE_NUMBER$Dest_Phone=$IV_DEST_PHONE_NUMBER$Vlan_ID=
$IV_VLAN_ID$'
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1101
66| Direct Syslog Resource
Resource URL
GET /sensor/<sensor_id>/directsyslog
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of syslogPriorityMapping:
1102 McAfee Network Security Platform 10.1.x Manager API Reference Guide
66| Direct Syslog Resource
Details of filter:
Details of LogSomeAttacks:
isExplicitlyEnabled The attack definition has syslog notification explicitly enabled Boolean
Details of minimumSeverity:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1103
66| Direct Syslog Resource
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/directsyslog
Response
{
'enableSyslog': 'true',
'syslogPriorityMapping': {
'lowTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'highTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'informationTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'mediumTO': 'EMERGENCY_SYSTEM_UNUSABLE'
},
'isInherit': 'false',
'serverIp': '10.213.172.94',
'filter': {
'LogSomeAttacks': {
'isExplicitlyEnabled': 'false',
'minimumSeverity': {
'isMinimumSeverity': 'false',
'severityType': 'LOW'
}
}
},
'serverPort': '514',
'syslogFacility': 'SECURITY_AUTHORIZATION_CODE_4',
'message': 'Admin_Domain=$IV_ADMIN_DOMAIN$Alert_Type=$IV_ALERT_TYPE$Attack_Name=$IV_ATTACK_NAME
$AttackConfidence=$IV_ATTACK_CONFIDENCE$DetectMech=$IV_DETECTION_MECHANISM$Category=$IV_CATEGORY$SubCategory=
$IV_SUB_CATEGORY$INTF=$IV_INTERFACE$Attack_Id=$IV_ATTACK_ID$Attack_Count=$IV_ATTACK_COUNT$Attack_Severity=
$IV_ATTACK_SEVERITY$Attack_Signature=$IV_ATTACK_SIGNATURE$Source_Ip=$IV_SOURCE_IP$Dest_Ip=$IV_DESTINATION_IP
$Dest_Port=$IV_DESTINATION_PORT$Source_Port=$IV_SOURCE_PORT$Malware_Confidence=$IV_MALWARE_CONFIDENCE
$Detection_Engine=$IV_MALWARE_DETECTION_ENGINE$Mal_File_Len=$IV_MALWARE_FILE_LENGTH$Mal_file_md5=
$IV_MALWARE_FILE_MD5_HASH$Mal_File_Name=$IV_MALWARE_FILE_NAME$Mal_File_Type=$IV_MALWARE_FILE_TYPE
$Mal_Vir_Name=$IV_MALWARE_VIRUS_NAME$Direction=$IV_DIRECTION$Nw_Protocol=$IV_NETWORK_PROTOCOL$AppProtocol=
$IV_APPLICATION_PROTOCOL$Attack_Time=$IV_ATTACK_TIME$Qurantine_Time=$IV_QUARANTINE_END_TIME$Result_Status=
$IV_RESULT_STATUS$Alert_UUID=$IV_SENSOR_ALERT_UUID$PeerName=$IV_SENSOR_CLUSTER_MEMBER$Sensor_Name=
$IV_SENSOR_NAME$SourceOs=$IV_SOURCE_OS$DestOs=$IV_DEST_OS$Src_APN=$IV_SRC_APN$Dest_APN=$IV_DEST_APN$Src_IMSI=
$IV_SRC_IMSI$Dest_IMSI=$IV_DEST_IMSI$Src_Phone=$IV_SRC_PHONE_NUMBER$Dest_Phone=$IV_DEST_PHONE_NUMBER$Vlan_ID=
$IV_VLAN_ID$'
}
Error Information
Following error codes are returned by this URL:
1104 McAfee Network Security Platform 10.1.x Manager API Reference Guide
66| Direct Syslog Resource
3 400 6001 Direct sysog configuration is not present for this domain/Sensor
Resource URL
PUT /sensor/<sensor_id>/directsyslog
Request Parameters
URL Parameters:
• SECURITY_AUTHORIZATION_CODE_10
• SECURITY_AUTHORIZATION_CODE_4
• LOG_AUDIT_NOTE_1
• LOG_ALERT_NOTE_1
• CLOCK_DAEMON_NOTE_2
• LOCAL_USER_0
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1105
66| Direct Syslog Resource
• LOCAL_USER_1
• LOCAL_USER_2
• LOCAL_USER_3
• LOCAL_USER_4
• LOCAL_USER_5
• LOCAL_USER_6
• LOCAL_USER_7
Details of syslogPriorityMapping:
informationTo Informational severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
lowTo Low severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
1106 McAfee Network Security Platform 10.1.x Manager API Reference Guide
66| Direct Syslog Resource
• DEBUG_MESSAGES
mediumTO Medium severity attack mapping. Values allowed are: String yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
highTo High severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
Details of filter:
Details of LogSomeAttacks:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1107
66| Direct Syslog Resource
isExplicitlyEnabled The attack definition has syslog notification explicitly enabled Boolean Yes
Details of minimumSeverity:
• INFORMATIONAL
• LOW
• MEDIUM
• HIGH
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1001/directsyslog
Payload
1108 McAfee Network Security Platform 10.1.x Manager API Reference Guide
66| Direct Syslog Resource
{
'enableSyslog': 'true',
'syslogPriorityMapping': {
'lowTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'highTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'informationTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'mediumTO': 'EMERGENCY_SYSTEM_UNUSABLE'
},
'isInherit': 'false',
'serverIp': '10.213.172.94',
'filter': {
'LogSomeAttacks': {
'isExplicitlyEnabled': 'false',
'minimumSeverity': {
'isMinimumSeverity': 'false',
'severityType': 'LOW'
}
}
},
'serverPort': '514',
'syslogFacility': 'SECURITY_AUTHORIZATION_CODE_4',
'message': 'Admin_Domain=$IV_ADMIN_DOMAIN$Alert_Type=$IV_ALERT_TYPE$Attack_Name=$IV_ATTACK_NAME
$AttackConfidence=$IV_ATTACK_CONFIDENCE$DetectMech=$IV_DETECTION_MECHANISM$Category=$IV_CATEGORY$SubCategory=
$IV_SUB_CATEGORY$INTF=$IV_INTERFACE$Attack_Id=$IV_ATTACK_ID$Attack_Count=$IV_ATTACK_COUNT$Attack_Severity=
$IV_ATTACK_SEVERITY$Attack_Signature=$IV_ATTACK_SIGNATURE$Source_Ip=$IV_SOURCE_IP$Dest_Ip=$IV_DESTINATION_IP
$Dest_Port=$IV_DESTINATION_PORT$Source_Port=$IV_SOURCE_PORT$Malware_Confidence=$IV_MALWARE_CONFIDENCE
$Detection_Engine=$IV_MALWARE_DETECTION_ENGINE$Mal_File_Len=$IV_MALWARE_FILE_LENGTH$Mal_file_md5=
$IV_MALWARE_FILE_MD5_HASH$Mal_File_Name=$IV_MALWARE_FILE_NAME$Mal_File_Type=$IV_MALWARE_FILE_TYPE
$Mal_Vir_Name=$IV_MALWARE_VIRUS_NAME$Direction=$IV_DIRECTION$Nw_Protocol=$IV_NETWORK_PROTOCOL$AppProtocol=
$IV_APPLICATION_PROTOCOL$Attack_Time=$IV_ATTACK_TIME$Qurantine_Time=$IV_QUARANTINE_END_TIME$Result_Status=
$IV_RESULT_STATUS$Alert_UUID=$IV_SENSOR_ALERT_UUID$PeerName=$IV_SENSOR_CLUSTER_MEMBER$Sensor_Name=
$IV_SENSOR_NAME$SourceOs=$IV_SOURCE_OS$DestOs=$IV_DEST_OS$Src_APN=$IV_SRC_APN$Dest_APN=$IV_DEST_APN$Src_IMSI=
$IV_SRC_IMSI$Dest_IMSI=$IV_DEST_IMSI$Src_Phone=$IV_SRC_PHONE_NUMBER$Dest_Phone=$IV_DEST_PHONE_NUMBER$Vlan_ID=
$IV_VLAN_ID$'
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1109
66| Direct Syslog Resource
Resource URL
PUT /sensor/<sensor_id>/directsyslog
Request Parameters
URL Parameters:
• SECURITY_AUTHORIZATION_CODE_10
• SECURITY_AUTHORIZATION_CODE_4
• LOG_AUDIT_NOTE_1
• LOG_ALERT_NOTE_1
• CLOCK_DAEMON_NOTE_2
• LOCAL_USER_0
• LOCAL_USER_1
• LOCAL_USER_2
• LOCAL_USER_3
• LOCAL_USER_4
• LOCAL_USER_5
• LOCAL_USER_6
• LOCAL_USER_7
1110 McAfee Network Security Platform 10.1.x Manager API Reference Guide
66| Direct Syslog Resource
Details of syslogPriorityMapping:
informationTo Informational severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
lowTo Low severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
mediumTO Medium severity attack mapping. Values allowed are: String yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1111
66| Direct Syslog Resource
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
highTo High severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
Details of filter:
Details of LogSomeAttacks:
isExplicitlyEnabled The attack definition has syslog notification explicitly enabled Boolean Yes
Details of minimumSeverity:
1112 McAfee Network Security Platform 10.1.x Manager API Reference Guide
66| Direct Syslog Resource
• INFORMATIONAL
• LOW
• MEDIUM
• HIGH
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/directsyslog/testconnection
Payload
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1113
66| Direct Syslog Resource
{
'enableSyslog': 'true',
'syslogPriorityMapping': {
'lowTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'highTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'informationTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'mediumTO': 'EMERGENCY_SYSTEM_UNUSABLE'
},
'isInherit': 'false',
'serverIp': '10.213.172.94',
'filter': {
'LogSomeAttacks': {
'isExplicitlyEnabled': 'false',
'minimumSeverity': {
'isMinimumSeverity': 'false',
'severityType': 'LOW'
}
}
},
'serverPort': '514',
'syslogFacility': 'SECURITY_AUTHORIZATION_CODE_4',
'message': 'Admin_Domain=$IV_ADMIN_DOMAIN$Alert_Type=$IV_ALERT_TYPE$Attack_Name=$IV_ATTACK_NAME
$AttackConfidence=$IV_ATTACK_CONFIDENCE$DetectMech=$IV_DETECTION_MECHANISM$Category=$IV_CATEGORY$SubCategory=
$IV_SUB_CATEGORY$INTF=$IV_INTERFACE$Attack_Id=$IV_ATTACK_ID$Attack_Count=$IV_ATTACK_COUNT$Attack_Severity=
$IV_ATTACK_SEVERITY$Attack_Signature=$IV_ATTACK_SIGNATURE$Source_Ip=$IV_SOURCE_IP$Dest_Ip=$IV_DESTINATION_IP
$Dest_Port=$IV_DESTINATION_PORT$Source_Port=$IV_SOURCE_PORT$Malware_Confidence=$IV_MALWARE_CONFIDENCE
$Detection_Engine=$IV_MALWARE_DETECTION_ENGINE$Mal_File_Len=$IV_MALWARE_FILE_LENGTH$Mal_file_md5=
$IV_MALWARE_FILE_MD5_HASH$Mal_File_Name=$IV_MALWARE_FILE_NAME$Mal_File_Type=$IV_MALWARE_FILE_TYPE
$Mal_Vir_Name=$IV_MALWARE_VIRUS_NAME$Direction=$IV_DIRECTION$Nw_Protocol=$IV_NETWORK_PROTOCOL$AppProtocol=
$IV_APPLICATION_PROTOCOL$Attack_Time=$IV_ATTACK_TIME$Qurantine_Time=$IV_QUARANTINE_END_TIME$Result_Status=
$IV_RESULT_STATUS$Alert_UUID=$IV_SENSOR_ALERT_UUID$PeerName=$IV_SENSOR_CLUSTER_MEMBER$Sensor_Name=
$IV_SENSOR_NAME$SourceOs=$IV_SOURCE_OS$DestOs=$IV_DEST_OS$Src_APN=$IV_SRC_APN$Dest_APN=$IV_DEST_APN$Src_IMSI=
$IV_SRC_IMSI$Dest_IMSI=$IV_DEST_IMSI$Src_Phone=$IV_SRC_PHONE_NUMBER$Dest_Phone=$IV_DEST_PHONE_NUMBER$Vlan_ID=
$IV_VLAN_ID$'
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
3 400 6002 Direct syslog is disabled or inherit settings has been selected
1114 McAfee Network Security Platform 10.1.x Manager API Reference Guide
66| Direct Syslog Resource
Resource URL
PUT /sensor/<sensor_id>/ directsyslog/testconnection
Request Parameters
URL Parameters:
• SECURITY_AUTHORIZATION_CODE_10
• SECURITY_AUTHORIZATION_CODE_4
• LOG_AUDIT_NOTE_1
• LOG_ALERT_NOTE_1
• CLOCK_DAEMON_NOTE_2
• LOCAL_USER_0
• LOCAL_USER_1
• LOCAL_USER_2
• LOCAL_USER_3
• LOCAL_USER_4
• LOCAL_USER_5
• LOCAL_USER_6
• LOCAL_USER_7
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1115
66| Direct Syslog Resource
Details of syslogPriorityMapping:
informationTo Informational severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
lowTo Low severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
mediumTO Medium severity attack mapping. Values allowed are: String yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
1116 McAfee Network Security Platform 10.1.x Manager API Reference Guide
66| Direct Syslog Resource
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
highTo High severity attack mapping. Values allowed are: String Yes
• EMERGENCY_SYSTEM_UNUSABLE
• ALERT_ACTION_IMMEDIATELY
• CRITICAL_CONDITIONS
• ERROR
• WARNING_CONDITIONS
• NOTICE_NORAML_BUT_SIGNIFICANT_CONDITION
• INFORMATIONAL_MESSGES
• DEBUG_MESSAGES
Details of filter:
Details of LogSomeAttacks:
isExplicitlyEnabled The attack definition has syslog notification explicitly enabled Boolean Yes
Details of minimumSeverity:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1117
66| Direct Syslog Resource
• INFORMATIONAL
• LOW
• MEDIUM
• HIGH
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1001/directsyslog/testconnection
Payload
1118 McAfee Network Security Platform 10.1.x Manager API Reference Guide
66| Direct Syslog Resource
{
'enableSyslog': 'true',
'syslogPriorityMapping': {
'lowTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'highTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'informationTo': 'EMERGENCY_SYSTEM_UNUSABLE',
'mediumTO': 'EMERGENCY_SYSTEM_UNUSABLE'
},
'isInherit': 'false',
'serverIp': '10.213.172.94',
'filter': {
'LogSomeAttacks': {
'isExplicitlyEnabled': 'false',
'minimumSeverity': {
'isMinimumSeverity': 'false',
'severityType': 'LOW'
}
}
},
'serverPort': '514',
'syslogFacility': 'SECURITY_AUTHORIZATION_CODE_4',
'message': 'Admin_Domain=$IV_ADMIN_DOMAIN$Alert_Type=$IV_ALERT_TYPE$Attack_Name=$IV_ATTACK_NAME
$AttackConfidence=$IV_ATTACK_CONFIDENCE$DetectMech=$IV_DETECTION_MECHANISM$Category=$IV_CATEGORY$SubCategory=
$IV_SUB_CATEGORY$INTF=$IV_INTERFACE$Attack_Id=$IV_ATTACK_ID$Attack_Count=$IV_ATTACK_COUNT$Attack_Severity=
$IV_ATTACK_SEVERITY$Attack_Signature=$IV_ATTACK_SIGNATURE$Source_Ip=$IV_SOURCE_IP$Dest_Ip=$IV_DESTINATION_IP
$Dest_Port=$IV_DESTINATION_PORT$Source_Port=$IV_SOURCE_PORT$Malware_Confidence=$IV_MALWARE_CONFIDENCE
$Detection_Engine=$IV_MALWARE_DETECTION_ENGINE$Mal_File_Len=$IV_MALWARE_FILE_LENGTH$Mal_file_md5=
$IV_MALWARE_FILE_MD5_HASH$Mal_File_Name=$IV_MALWARE_FILE_NAME$Mal_File_Type=$IV_MALWARE_FILE_TYPE
$Mal_Vir_Name=$IV_MALWARE_VIRUS_NAME$Direction=$IV_DIRECTION$Nw_Protocol=$IV_NETWORK_PROTOCOL$AppProtocol=
$IV_APPLICATION_PROTOCOL$Attack_Time=$IV_ATTACK_TIME$Qurantine_Time=$IV_QUARANTINE_END_TIME$Result_Status=
$IV_RESULT_STATUS$Alert_UUID=$IV_SENSOR_ALERT_UUID$PeerName=$IV_SENSOR_CLUSTER_MEMBER$Sensor_Name=
$IV_SENSOR_NAME$SourceOs=$IV_SOURCE_OS$DestOs=$IV_DEST_OS$Src_APN=$IV_SRC_APN$Dest_APN=$IV_DEST_APN$Src_IMSI=
$IV_SRC_IMSI$Dest_IMSI=$IV_DEST_IMSI$Src_Phone=$IV_SRC_PHONE_NUMBER$Dest_Phone=$IV_DEST_PHONE_NUMBER$Vlan_ID=
$IV_VLAN_ID$'
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
4 400 6002 Direct syslog is disabled or inherit settings has been selected
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1119
67| Radius Resource
Radius Resource
Get the Radius Configuration for Domain
This URL retrieves the radius configuration for the domain.
Resource URL
GET /domain/<domain_id>/remoteaccess/radius
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
1120 McAfee Network Security Platform 10.1.x Manager API Reference Guide
67| Radius Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/remoteaccess/radius
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1121
67| Radius Resource
{
"inheritSettings": false,
"enableRadiusCLIAuthentication": true,
"primaryRadiusServer":
{
"serverIpAddr": "1.1.1.3",
"sharedSecret": "adsadasl3232",
"authenticationPort": 1812,
"connectionTimeoutInSeconds": 6,
"enableAccounting": false,
"accountingPort": 1813
},
"secondayRadiusServer":
{
"serverIpAddr": "1.1.1.5",
"sharedSecret": "dssdfksdnfsdf",
"authenticationPort": 1812,
"connectionTimeoutInSeconds": 6,
"enableAccounting": false,
"accountingPort": 1813
}
}
Error Information
Following error code is returned by this URL:
Resource URL
PUT /domain/<domain_id>/remoteaccess/radius
Request Parameters
URL Parameters:
1122 McAfee Network Security Platform 10.1.x Manager API Reference Guide
67| Radius Resource
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1123
67| Radius Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/remoteacess/radius
Payload
{
"inheritSettings": false,
"enableRadiusCLIAuthentication": true,
"primaryRadiusServer":
{
"serverIpAddr": "1.1.1.3",
"sharedSecret": "adsadasl3232",
"authenticationPort": 1812,
"connectionTimeoutInSeconds": 6,
"enableAccounting": false,
"accountingPort": 1813
},
"secondayRadiusServer":
{
"serverIpAddr": "1.1.1.5",
"sharedSecret": "dssdfksdnfsdf",
"authenticationPort": 1812,
"connectionTimeoutInSeconds": 6,
"enableAccounting": false,
"accountingPort": 1813
}
}
Response
{
"status": 1
}
Error Information
Following error code is returned by this URL:
1124 McAfee Network Security Platform 10.1.x Manager API Reference Guide
68| Advanced Device Configuration Resource
Resource URL
GET /domain/<domainId>/ advanceddeviceconfiguration
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
• DISABLED
• DEVICE_ONLY
• MANAGER_ONLY
• DEVICE_AND_MANAGER
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1125
68| Advanced Device Configuration Resource
permittedIPv4CIDRBlocks The permitted IPV4 CIDR list for SSH access to CLI Object
permittedIPv6CIDRBlocks The permitted IPV6 CIDR list for SSH access to CLI Object
useTraditionalSnort Chooses either the traditional McAfee snort or the new Suricata snort Boolean
Details of permittedIPv4CIDRBlocks:
Details of permittedIPv6CIDRBlocks:
Example
Request
1126 McAfee Network Security Platform 10.1.x Manager API Reference Guide
68| Advanced Device Configuration Resource
GET https://<NSM_IP>/sdkapi/domain/0/advanceddeviceconfiguration
Response
{
"inheritSettings": false,
"preAttackBytestoCapture": 128,
"inspectTunneledTraffic": false,
"cliActivityLogging": "DISABLED",
"showCPUUsageinCLI": false,
"restrictSSHAccesstoCLI": true,
"enableSSHLogging": false,
"permittedIPv4CIDRBlocks":
[
{
"id": 1,
"cidr": "1.1.1.1/32",
"action": null
}
],
"permittedIPv6CIDRBlocks":
[
{
"id": 2,
"cidr": "2001:0DB9:0000:0000:0000:0000:0000:0001/128",
"action": null
}
],
“useTraditionalSnort”: true
}
Error Information
Following error code is returned by this URL:
Resource URL
PUT /domain/<domainId>/ advanceddeviceconfiguration
Request Parameters
URL Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1127
68| Advanced Device Configuration Resource
• DISABLED
• DEVICE_ONLY
• MANAGER_ONLY
• DEVICE_AND_MANAGER
permittedIPv4CIDRBlocks The permitted IPV4 CIDR list for SSH access to CLI Object Yes
permittedIPv6CIDRBlocks The permitted IPV6 CIDR list for SSH access to CLI Object Yes
useTraditionalSnort Chooses either the traditional McAfee snort or the new Boolean Yes
Suricata snort
Details of permittedIPv4CIDRBlocks:
1128 McAfee Network Security Platform 10.1.x Manager API Reference Guide
68| Advanced Device Configuration Resource
Details of permittedIPv6CIDRBlocks:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/advanceddeviceconfiguration
Payload
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1129
68| Advanced Device Configuration Resource
{
"inheritSettings": false,
"preAttackBytestoCapture": 128,
"inspectTunneledTraffic": false,
"cliActivityLogging": "DISABLED",
"showCPUUsageinCLI": false,
"restrictSSHAccesstoCLI": true,
"enableSSHLogging": false,
"permittedIPv4CIDRBlocks":
[
{
"id": null,
"cidr": "1.1.1.1/32",
"action": null
}
],
"permittedIPv6CIDRBlocks":
[
{
"id": null,
"cidr": "2001:0DB9:0000:0000:0000:0000:0000:0001/128",
"action": null
}
] ,
“useTraditionalSnort”: true
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
HTTP Error
No Code SDK API errorId SDK API errorMessage
2 400 1001 Pre attack packet capture bytes if provided, can only be 128 and 256
4 400 1701 The cidrs provided are not present in the resource :: <list>
5 400 1701 The cidrs provided for addition are already present in the resource ::
<list>
1130 McAfee Network Security Platform 10.1.x Manager API Reference Guide
68| Advanced Device Configuration Resource
HTTP Error
No Code SDK API errorId SDK API errorMessage
Resource URL
GET /sensor/<sensorId>/ advanceddeviceconfiguration
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
• DISABLED
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1131
68| Advanced Device Configuration Resource
• DEVICE_ONLY
• MANAGER_ONLY
• DEVICE_AND_MANAGER
permittedIPv4CIDRBlocks The permitted IPV4 CIDR list for SSH access to CLI Object
permittedIPv6CIDRBlocks The permitted IPV6 CIDR list for SSH access to CLI Object
useTraditionalSnort Chooses either the traditional McAfee Snort or the new Suricata snort Boolean
Details of permittedIPv4CIDRBlocks:
Details of permittedIPv6CIDRBlocks:
1132 McAfee Network Security Platform 10.1.x Manager API Reference Guide
68| Advanced Device Configuration Resource
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/advanceddeviceconfiguration
Response
{
"inheritSettings": false,
"preAttackBytestoCapture": 128,
"inspectTunneledTraffic": false,
"cliActivityLogging": "DISABLED",
"showCPUUsageinCLI": false,
"restrictSSHAccesstoCLI": true,
"enableSSHLogging": false,
"permittedIPv4CIDRBlocks":
[
{
"id": 1,
"cidr": "1.1.1.1/32",
"action": null
}
],
"permittedIPv6CIDRBlocks":
[
{
"id": 2,
"cidr": "2001:0DB9:0000:0000:0000:0000:0000:0001/128",
"action": null
}
] ,
“useTraditionalSnort”: true
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1133
68| Advanced Device Configuration Resource
Resource URL
PUT /sensor/<sensorId>/ advanceddeviceconfiguration
Request Parameters
URL Parameters:
• DISABLED
• DEVICE_ONLY
• MANAGER_ONLY
• DEVICE_AND_MANAGER
permittedIPv4CIDRBlocks The permitted IPV4 CIDR list for SSH access to CLI Object Yes
permittedIPv6CIDRBlocks The permitted IPV6 CIDR list for SSH access to CLI Object Yes
1134 McAfee Network Security Platform 10.1.x Manager API Reference Guide
68| Advanced Device Configuration Resource
useTraditionalSnort Chooses either the traditional McAfee Snort or the new Boolean Yes
Suricata Snort
Details of permittedIPv4CIDRBlocks:
Details of permittedIPv6CIDRBlocks:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1135
68| Advanced Device Configuration Resource
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1001/advanceddeviceconfiguration
Payload
{
"inheritSettings": false,
"preAttackBytestoCapture": 128,
"inspectTunneledTraffic": false,
"cliActivityLogging": "DISABLED",
"showCPUUsageinCLI": false,
"restrictSSHAccesstoCLI": true,
"enableSSHLogging": false,
"permittedIPv4CIDRBlocks":
[
{
"id": 1,
"cidr": "1.1.1.1/32",
"action": null
}
],
"permittedIPv6CIDRBlocks":
[
{
"id": 2,
"cidr": "2001:0DB9:0000:0000:0000:0000:0000:0001/128",
"action": “delete”
}
] ,
“useTraditionalSnort”: true
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
HTTP Error
No Code SDK API errorId SDK API errorMessage
3 400 1001 Pre attack packet capture bytes if provided, can only be 128 and 256
1136 McAfee Network Security Platform 10.1.x Manager API Reference Guide
68| Advanced Device Configuration Resource
HTTP Error
No Code SDK API errorId SDK API errorMessage
4 400 1701 The cidrs provided are not present in the resource :: <list>
5 400 1701 The cidrs provided for addition are already present in the resource ::
<list>
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1137
69| Attack Log Resource
Resource URL
GET /alerts? domainId=<domain_id>&includeChildDomain=<true/
false>&alertstate=<state>&timeperiod=<timeperiod>&startime=<start_time>&endtime=<endBtime>&search=<search_string>
&page=<page>&filter=<filterBvalue>
Request Parameters
Query Parameters:
Data
Field Name Description Type Mandatory
• LAST_5_MINUTES
• Last_1_HOUR
• LAST_6_HOURS
• LAST_12_HOURS
• LAST_24_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
• CUSTOM
1138 McAfee Network Security Platform 10.1.x Manager API Reference Guide
69| Attack Log Resource
Data
Field Name Description Type Mandatory
includeChildDomain Chooses to include child domain or not. Default value is true. Boolean Yes
Ex: name:Malware;direction:Inbound,Outbound;attackcount:>3,<4
Response Parameters
Following fields are returned.
Details of alerts:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1139
69| Attack Log Resource
Details of event:
1140 McAfee Network Security Platform 10.1.x Manager API Reference Guide
69| Attack Log Resource
Details of attacker/target:
os OS String
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1141
69| Attack Log Resource
Details of malwareFile:
Details of EndpointExecutable:
Example
Request
1142 McAfee Network Security Platform 10.1.x Manager API Reference Guide
69| Attack Log Resource
GET https://<NSM_IP>/sdkapi/alerts?fromalert=1334242&page=next&timeperiod=custom&starttime=10/10/2015
12:00&endtime=01/12/2015 12:00
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1143
69| Attack Log Resource
"totalAlertsCount": 824917,
"retrievedAlertsCount": 1000,
"alertsList":
[
{
"name": "DNS: New Dataloc Test Attack 8-3 (16 bytes)",
"uniqueAlertId": "6245941293374082717",
"alertState": "UnAcknowledged",
"assignTo": "",
"attackSeverity": "Medium",
"event":
{
"time": "Jan 04, 2016 16:24:4",
"direction": "Outbound",
"result": "Inconclusive",
"attackCount": 1,
"relevance": "Unknown",
"alertId": "1383009720294233669"
},
"attack":
{
"nspId": "0x40307a00",
"btp": "Low",
"attackCategory": "Exploit"
},
"attacker":
{
"ipAddrs": "1.1.1.10",
"port": 58719,
"hostName": "",
"country": null,
"os": null,
"vmName": null,
"proxyIP": "",
"user": null,
"risk": "Minimal Risk",
"networkObject": null
},
"target":
{
"ipAddrs": "1.1.1.9",
"port": 53,
"hostName": "",
"country": null,
"os": null,
"vmName": null,
"proxyIP": "",
"user": null,
"risk": "Minimal Risk",
"networkObject": null
},
"malwareFile":
{
"fileName": "",
"fileHash": "",
"malwareName": "",
"malwareConfidence": "",
"engine": "",
"size": null
},
"endpointExcutable":
{
"name": "",
"hash": "",
"malwareConfidence": ""
},
"detection":
{
"domain": "/My Company",
"device": "prabu-6050",
"interface": "5A-5B"
},
"application": "DNS",
"layer7Data": ""
},
{
"name": "DNS: New Dataloc Test Attack 8-3 (16 bytes)",
"uniqueAlertId": "6245941293374082716",
"alertState": "UnAcknowledged",
"assignTo": "",
"attackSeverity": "Medium",
"event":
{
"time": "Jan 04, 2016 16:24:4",
"direction": "Outbound",
1144 "result": "Inconclusive", McAfee Network Security Platform 10.1.x Manager API Reference Guide
"attackCount": 1,
"relevance": "Unknown",
69| Attack Log Resource
Error Information
Following error codes are returned by this URL:
Resource URL
DELETE /alerts? alertstate=<state> &timeperiod==<timeperiod> &startime==<start_time>
&endtime=<end_time>&search=<search_strng>&filter=<filter_value>
Request Parameters
Query Parameters:
Data
Field Name Description Type Mandatory
• LAST_5_MINUTES
• Last_1_HOUR
• LAST_6_HOURS
• LAST_12_HOURS
• LAST_24_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
• CUSTOM
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1145
69| Attack Log Resource
Data
Field Name Description Type Mandatory
Ex: name:Malware;direction:Inbound,Outbound;attackcount:>3,<4
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://<NSM_IP>/sdkapi/alerts?fromalert=1334242&page=next&timeperiod=custom&starttime=10/10/2015
12:00&endtime=01/12/2015 12:00
Response
{
"status":1
}
1146 McAfee Network Security Platform 10.1.x Manager API Reference Guide
69| Attack Log Resource
Error Information
Following error codes are returned by this URL:
Resource URL
UPDATE /alerts? alertstate=<state> &timeperiod==<timeperiod> &startime==<start_time> &endtime=<end_time>&
search=<search_strng>&filter=<filter_value>
Request Parameters
Query Parameters:
Data
Field Name Description Type Mandatory
• LAST_5_MINUTES
• Last_1_HOUR
• LAST_6_HOURS
• LAST_12_HOURS
• LAST_24_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
• CUSTOM
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1147
69| Attack Log Resource
Data
Field Name Description Type Mandatory
Ex: name:Malware;direction:Inbound,Outbound;attackcount:>3,<4
Payload parameters:
Response Parameters
Following fields are returned.
1148 McAfee Network Security Platform 10.1.x Manager API Reference Guide
69| Attack Log Resource
Example
Request
UPDATE https://<NSM_IP>/sdkapi/alerts?fromalert=1334242&page=next&timeperiod=custom&starttime=10/10/2015
12:00&endtime=01/12/2015 12:00
{
"alertState": "Acknowledged",
"assignTo": "admin"
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /alerts/<alert_uuid>?sensorId=<sensor_id>&manager=<manager_name>
Request Parameters
Query Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1149
69| Attack Log Resource
manager Name of the Manager. Required in case a multiple Managers are String No
monitored with a single Manager.
Response Parameters
Following fields are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/alerts/6245941293374080682
Response
1150 McAfee Network Security Platform 10.1.x Manager API Reference Guide
69| Attack Log Resource
{
"name": "DNS: IQUERY Buffer Overflow",
"uniqueAlertId": "6806386691967877137",
"alertState": "UnAcknowledged",
"assignTo": "---",
"summary": {
"event": {
"application": "Not Available",
"protocol": "telnet",
"domain": "/My Company",
"manager": null,
"device": "vm600-nsmapi-cc",
"deviceId": "1001",
"interface": "1-2",
"matchedPolicy": "Default Prevention",
"zone": null,
"vlan": "-10",
"detection": "Application anomaly",
"time": "Apr 23, 2020 22:26:13",
"direction": "Inbound",
"result": "Inconclusive",
"attackCount": 1,
"relevance": "Unknown",
"alertId": "6806386691964665876"
},
"attacker": {
"ipAddrs": "60.131.8.49",
"port": 17561,
"hostName": null,
"country": null,
"os": "Microsoft Windows Server 2008",
"vmName": null,
"proxyIP": null,
"user": "Unknown",
"risk": "N/A",
"networkObject": "---"
},
"target": {
"ipAddrs": "0.20.209.51",
"port": 58004,
"hostName": null,
"country": null,
"os": "Microsoft Windows Server 2003 Service Pack 1",
"vmName": null,
"proxyIP": null,
"user": "Unknown",
"risk": "N/A",
"networkObject": "---"
},
"source": null,
"destination": null,
"zoombie": null,
"cAndcServer": null,
"fastFluxAgent": null,
"attackedHIPEndpoint": null,
"compromisedEndpoint": null
},
"details": {
"matchedSignature": {
"signatureName": "IQUERY-overflow-iquery.c",
"signature": {
"name": "Signature#1",
"conditions": [
"condition 1",
" dns-request-hdr-opcode == 1 ( unsigned )",
"[AND] dns-request-answer-type == 1 ( unsigned )",
"[AND] dns-request-answer-class == 1 ( unsigned )",
"[AND] dns-request-answer-rdata matches \"(\\xeb\\x6e\\x5e\\xc6\\x06\\x9a\\x31\
\xc9\\x89\\x4e\\x01|\\x80\\xe8\\xd7\\xff\\xff\\xff/bin/sh)\" ( case-sensitive )"
]
}
},
"layer7": null,
"malwareFile": null,
"hostSweep": null,
"portScan": null,
"fastFlux": null,
"triggeredComponentAttacks": null,
"sqlInjection": null,
"callbackDetectors": null,
"exceededThreshold": null,
"communicationRuleMatch": null
},
"description": {
"definition": "BIND is used by most UNIX DNS servers, and implements the Domain Name Service
McAfee Network
(DNS) protocol. Security
Certain Platform
versions 10.1.x Manager
of BIND do not API Reference
properly Guide
bounds check a memory copy when responding to an 1151
inverse query (IQUERY) request. An improperly or maliciously formatted inverse query in a TCP stream can
crash the server or allow an attacker to execute arbitrary code, possibly gaining root privileges.\n\nBuffer
69| Attack Log Resource
Error Information
Following error codes are returned by this URL:
Resource URL
UPDATE /alerts/<alert_uuid>?sensorId=<sensor_id>&manager=<manager_name>
Request Parameters
Query Parameters:
manager Name of the Manager. Required in case a multiple Managers are String No
monitored with a single Manager.
Payload Parameters:
1152 McAfee Network Security Platform 10.1.x Manager API Reference Guide
69| Attack Log Resource
Response Parameters
Following fields are returned.
Example
Request
UPDATE https://<NSM_IP>/sdkapi/alerts/66692334234234
{
"alertState": "Acknowledged",
"assignTo": "admin"
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1153
69| Attack Log Resource
Delete Alert
This URL is used to delete a single alert.
Resource URL
DELETE /alerts/<alert_uuid>?sensorId=<sensor_id>&manager=<manager_name>
Request Parameters
Query Parameters:
manager Name of the Manager. Required in case a multiple Managers are String No
monitored with a single Manager.
Response Parameters
Following fields are returned.
Example
Request
DELETE https://<NSM_IP>/sdkapi/alerts/66692334234234
Response
{
"status":1
}
1154 McAfee Network Security Platform 10.1.x Manager API Reference Guide
69| Attack Log Resource
Error Information
Following error codes are returned by this URL:
Resource URL
GET /alerts/<alert_id>/triggeredpkt
Request Parameters
URL Parameters:
Query Parameters:
manager Name of the Manager. Required in case a multiple Managers are String No
monitored with a single Manager.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1155
69| Attack Log Resource
Response Parameters
Returns packet log files associated with the alert in a ZIP file.
Example
Request
GET https://<NSM_IP>/sdkapi/alerts/12345678/triggeredpkt?sensorId=1001
Payload
NA
Response
Error Information
Following error codes are returned by this URL:
Resource URL
GET /domain/<domainId>/threatanalysis/packetlog?alertId=<alertId>&device=<deviceName>
Request Parameters
URL Parameters:
1156 McAfee Network Security Platform 10.1.x Manager API Reference Guide
69| Attack Log Resource
Query Parameters:
device Name of the device required in case multiple devices are managed by a String No
single Manager.
Response Parameters
Returns packet capture file data associated with the alert.
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/threatanalysis/packetlog?alertId=103&device=NS-9200
Payload
NA
Response
Error Information
Following error code is returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1157
70| Traffic Statistics
Traffic Statistics
Get the Traffic Send/Received Statistics
This URL is used to retrieve the traffic send/received statistics for the Sensor.
Resource URL
GET /sensor/{sensorId}/port/{portId}/trafficstats/trafficrxtx
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
totalBytesSent Total bytes sent on the given port of the Sensor String
totalBytesReceived Total bytes received at the given port of the Sensor String
totalPacketsSent Total number of packets sent on the given port of the Sensor String
totalPacketsReceived Total number of packets received at the given port of the Sensor String
packetsUnicastSent Total number of unicast packets sent on the given port of the Sensor String
packetsUnicastReceived Total number of unicast packets received at the given port of the Sensor String
packetsBroadcastSent Total number of broadcast packets sent on the given port of the Sensor String
1158 McAfee Network Security Platform 10.1.x Manager API Reference Guide
70| Traffic Statistics
packetsBroadcastReceived Total number of broadcast packets received at the given port of the Sensor String
packetsMulticastSent Total number of multicast packets sent on the given port of the Sensor String
packetsMulticastReceived Total number of multicast packets received at the given port of the Sensor String
crcErrorsSent Total number of packets sent with crc errors on a given port of the Sensor String
crcErrorsReceived Total number of packets sent with crc errors at a given port of the Sensor String
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1009/port/124/trafficstats/trafficrxtx
Response
{
"totalBytesSent": "4800",
"totalBytesReceived": "2374734758",
"totalPacketsSent": "63",
"totalPacketsReceived": "2828977",
"packetsUnicastSent": "62",
"packetsUnicastReceived": "2828956",
"packetsBroadcastSent": "1",
"packetsBroadcastReceived": "19",
"packetsMulticastSent": "0",
"packetsMulticastReceived": "2",
"crcErrorsSent": "0",
"crcErrorsReceived": "0"
}
Error Information
Following error codes are returned by this URL:
2 404 Invalid port: If the given port does not belong to the device
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1159
70| Traffic Statistics
Resource URL
GET /sensor/{sensorId}/trafficstats/flows
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
inboundSynCookieProtection Shows whether inbound SYN cookie protection is active or inactive. String
Can have two values:
• Inactive
• Active
• Inactive
• Active
totalFlowsActiveUsingSYNcookies Shows total number of active flows using SYN cookies String
1160 McAfee Network Security Platform 10.1.x Manager API Reference Guide
70| Traffic Statistics
totalFlowsTimedOut Shows total number of flows that are timed out String
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1009/trafficstats/flows
Response
{
"overallFlowUsage":0,
"inboundSynCookieProtection":"Inactive",
"outboundSynCookieProtection":"Inactive",
"totalFlowsProcessed":59271,
"totalFlowsActive":0,
"totalFlowsActiveUsingSYNcookies":0,
"totalFlowsInSYNState":0,
"totalFlowsInTimeWaitState":0,
"totalFlowsInactive":205,
"totalFlowsTimedOut":4287,
"udpFlowsActive":0
}
Error Information
Following error code is returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1161
70| Traffic Statistics
Resource URL
GET /sensor/{sensorId}/port/{portId/trafficstats/droppedpackets
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
1162 McAfee Network Security Platform 10.1.x Manager API Reference Guide
70| Traffic Statistics
outOfOrderReassemblyTimeoutsTCP TCP packets dropped due to out of order reassembly timeout String
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1009/port/124/trafficstats/droppedpackets
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1163
70| Traffic Statistics
{
"crcFailures": 0,
"devicePowerUp": 0,
"deviceResourceExhaustion": 0,
"fragementReAssemblyTimeoutIPv4": 0,
"fragementReAssemblyTimeoutIPv6": 0,
"incorrectChecksumsICMPv4": 0,
"incorrectChecksumsICMPv6": 0,
"incorrectChecksumsIP": 0,
"incorrectChecksumsTCP": 0,
"incorrectChecksumsUDP": 0,
"invalidConnections": 16538,
"offsetIndexLengthErrors": 0,
"otherLayer2Errors": 0,
"outOfOrderReassemblyTimeoutsTCP": 63233,
"policyResponseActionsFirewall": 0,
"policyResponseActionsIPS": 2,
"policyResponseActionsIPv4Quarantine": 0,
"policyResponseActionsIPv6Quarantine": 0,
"protocolErrorsICMPv4": 0,
"protocolErrorsICMPv6": 0,
"protocolErrorsIPv4": 0,
"protocolErrorsIPv6": 0,
"protocolErrorsTCP": 2257,
"protocolErrorsUDP": 0
}
Error Information
Following error codes are returned by this URL:
2 404 Invalid port: If the port id given does not belong to device
Resource URL
GET /sensor/{sensorId}/trafficstats/malwarestatsgroupbyengine
Request Parameters
URL Parameters:
1164 McAfee Network Security Platform 10.1.x Manager API Reference Guide
70| Traffic Statistics
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
engine Name of the engine for which the statistics(values) is given String
values Values of traffic statistics parameters for the given engine Object
Details of values:
cleanFiles Number of clean files out of all the files submitted String
veryHighMalwareConfidenceMatches Number of files with very high malware confidence matches String
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1165
70| Traffic Statistics
veryLowMalwareConfidenceMatches Number of files with very low malware confidence matches String
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1009/trafficstats/malwarestatsgroupbyengine
Response
1166 McAfee Network Security Platform 10.1.x Manager API Reference Guide
70| Traffic Statistics
{
"mlawareEngineTrafficStats":[
{
"engine":"Blocklist",
"values":{
"filesSubmitted":0,
"filesIgnored":0,
"filesProcessed":0,
"atdFilesDroppedUnderLoad":0,
"atdStaticAnalysis":0,
"atdDynamicAnalysis":0,
"atdCacheReferences":0,
"cleanFiles":0,
"veryHighMalwareConfidenceMatches":0,
"highMalwareConfidenceMatches":0,
"mediumMalwareConfidenceMatches":0,
"lowMalwareConfidenceMatches":0,
"veryLowMalwareConfidenceMatches":0,
"unknownMalwareConfidenceMatches":0,
"alertsGenerated":0,
"filesBlocked":0,
"connectionsReset":0
}
},
{
"engine":"GTI File Reputation",
"values":{
"filesSubmitted":0,
"filesIgnored":0,
"filesProcessed":0,
"atdFilesDroppedUnderLoad":0,
"atdStaticAnalysis":0,
"atdDynamicAnalysis":0,
"atdCacheReferences":0,
"cleanFiles":0,
"veryHighMalwareConfidenceMatches":0,
"highMalwareConfidenceMatches":0,
"mediumMalwareConfidenceMatches":0,
"lowMalwareConfidenceMatches":0,
"veryLowMalwareConfidenceMatches":0,
"unknownMalwareConfidenceMatches":0,
"alertsGenerated":0,
"filesBlocked":0,
"connectionsReset":0
}
},
{
"engine":"PDFEmulation",
"values":{
"filesSubmitted":0,
"filesIgnored":0,
"filesProcessed":0,
"atdFilesDroppedUnderLoad":0,
"atdStaticAnalysis":0,
"atdDynamicAnalysis":0,
"atdCacheReferences":0,
"cleanFiles":0,
"veryHighMalwareConfidenceMatches":0,
"highMalwareConfidenceMatches":0,
"mediumMalwareConfidenceMatches":0,
"lowMalwareConfidenceMatches":0,
"veryLowMalwareConfidenceMatches":0,
"unknownMalwareConfidenceMatches":0,
"alertsGenerated":0,
"filesBlocked":0,
"connectionsReset":0
}
},
{
"engine":"Flash Analysis Engine",
"values":{
"filesSubmitted":0,
"filesIgnored":0,
"filesProcessed":0,
"atdFilesDroppedUnderLoad":0,
"atdStaticAnalysis":0,
"atdDynamicAnalysis":0,
"atdCacheReferences":0,
"cleanFiles":0,
"veryHighMalwareConfidenceMatches":0,
"highMalwareConfidenceMatches":0,
"mediumMalwareConfidenceMatches":0,
"lowMalwareConfidenceMatches":0,
"veryLowMalwareConfidenceMatches":0,
"unknownMalwareConfidenceMatches":0,
McAfee Network Security Platform "alertsGenerated":0,
10.1.x Manager API Reference Guide 1167
"filesBlocked":0,
"connectionsReset":0
70| Traffic Statistics
Error Information
Following error code is returned by this URL:
1 404 1106 Invalid Sensor: When the device id given is not valid
Resource URL
GET /sensor/{sensorId}/trafficstats/malwarestatsgroupbyfile
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1009/trafficstats/malwarestatsgroupbyfile
Response
1168 McAfee Network Security Platform 10.1.x Manager API Reference Guide
70| Traffic Statistics
{
"malwareEngineTrafficStatsByFile":
[
{
"fileType": "PE (EXE,DLL,SYS,COM,etc.) Files",
"filesProcessed": 0
},
{
"fileType": "PDF Files",
"filesProcessed": 0
},
{
"fileType": "Flash Files",
"filesProcessed": 0
},
{
"fileType": "MS Office Files",
"filesProcessed": 0
},
{
"fileType": "APK Files",
"filesProcessed": 0
},
{
"fileType": "JAR Files",
"filesProcessed": 0
},
{
"fileType": "Compressed (Zip,RAR) Files",
"filesProcessed": 0
}
]
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /sensor/{sensorId}/trafficstats/advcallbackdetectionstats
Request Parameters
URL Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1169
70| Traffic Statistics
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1009/trafficstats/advcallbackdetectionstats
Response
1170 McAfee Network Security Platform 10.1.x Manager API Reference Guide
70| Traffic Statistics
{
"callbackDetectorsAlerts": 39,
"dgaZombieDetectionAlerts": 90,
"dgaCncServerDetectionAlerts": 40,
"dgaCncServerConnectionAlerts": 30,
"fastFluxDnsDetectionAlerts": 1,
"connectionToFastFluxAgentsAlerts": 1,
"zeroDayBotnetDetectionAlerts": 3,
"knownBotnetDetectionAlerts": 0
}
Error Information
Following error code is returned by this URL:
Resource URL
GET /sensor/{sensorId}/trafficstats/sensorsslstats
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1171
70| Traffic Statistics
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1009/trafficstats/sensorsslstats
Response
{
"recycledSSLFlows": 0,
"sslFlowAllocationErrors": 0,
"skippedSSLFlowsDueFlowAllocationErrors": 0,
"packetsReceivedFromUnknownSSLFlows": 0,
"sslFlowsUsingUnsupportedDiffieHellmanCipherSuite": 0,
"sslFlowsUsingUnsupportedExportCipher": 0,
"sslFlowsUsingUnsupportedOrUnknownCipher": 0
}
Error Information
Following error code is returned by this URL:
1172 McAfee Network Security Platform 10.1.x Manager API Reference Guide
70| Traffic Statistics
Resource URL
GET /sensor/{sensorId}/trafficstats/outboundsslstats
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1173
70| Traffic Statistics
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1009/trafficstats/outboundsslstats
Response
{
"sslConnectionAttemptsFromClientToSensor": 0,
"sslConnectionAttemptsFromSensorToWebServer": 0,
"endToEndSSLHandshakesInProgress": 0,
"endToEndSSLFlowsEstablished": 0,
"allowedSSLFlows": 0,
"attacksDetectedInSSLFlows": 0,
"RSAFlows": 0,
"diffieHellmanFlows": 0,
"nonSSLFlows": 0,
"untrustedCertificates": 0,
"sslFlowsBlockedOrSkippedFromUntrustedCertificates": 0,
"sslFlowsBlockedOrSkippedFromUnsupportedCipherSuite": 0,
"sslFlowsBlockedOrSkippedFromGeneralDecryptionFailures": 0
}
Error Information
Following error code is returned by this URL:
1174 McAfee Network Security Platform 10.1.x Manager API Reference Guide
70| Traffic Statistics
This URL is used to retrieve traffic statistics for internal web certificate matches for a Sensor.
Resource URL
GET /sensor/{sensorId}/trafficstats/sslinternalwebcertmatches
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1009/trafficstats/sslinternalwebcertmatches
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1175
70| Traffic Statistics
{
"unMatchedCertificates": 0,
"matchedCertificates": [
{
“certificateName": ”: “test”,
“flows”: 10
},
{
“certificateName”: “test2",
“flows”: 2
}
]
}
Error Information
Following error code is returned by this URL:
Resource URL
GET /sensor/{sensorId}/trafficstats/resetsslcounters
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
1176 McAfee Network Security Platform 10.1.x Manager API Reference Guide
70| Traffic Statistics
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1009/trafficstats/resetsslcounters
Response
{
"status": 1
}
Error Information
Following error code is returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1177
71| CLI Auditing Resource
Resource URL
GET /domain/<domainId>/cliauditing
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/cliauditing
Response
{
"inheritSettings": false,
"enable": true
}
1178 McAfee Network Security Platform 10.1.x Manager API Reference Guide
71| CLI Auditing Resource
Error Information
Following error code is returned by this URL:
Resource URL
PUT /domain/<domainId>/cliauditing
Request Parameters
URL Parameter
Payload Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1179
71| CLI Auditing Resource
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/cliauditing
Payload
{
"inheritSettings": false,
"enable": true
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /sensor/<sensorId>/cliauditing
1180 McAfee Network Security Platform 10.1.x Manager API Reference Guide
71| CLI Auditing Resource
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/cliauditing
Response
{
"inheritSettings": false,
"enable": true
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1181
71| CLI Auditing Resource
Resource URL
PUT /sensor/<sensorId>/cliauditing
Request Parameters
URL Parameter
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1001/cliauditing
Payload
1182 McAfee Network Security Platform 10.1.x Manager API Reference Guide
71| CLI Auditing Resource
{
"inheritSettings": false,
"enable": true
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1183
72| Diagnostics Trace Resource
Resource URL
GET /sensor/<sensor_id>/diagnosticstrace
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/diagnosticstrace
Response
{
"files":[“trace_API_2950_2_Thu_Mar_03_13_58_39_IST_2016.enc”,
“trace_API_2950_2_Thu_Mar_03_14_06_15_IST_2016.enc”]
}
1184 McAfee Network Security Platform 10.1.x Manager API Reference Guide
72| Diagnostics Trace Resource
Error Information
Following error codes are returned by this URL:
Resource URL
PUT /sensor/<sensor_id>/diagnosticstrace/upload
Request Parameters
URL Parameter
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1001/diagnosticstrace/upload
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1185
72| Diagnostics Trace Resource
Payload
None
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
3 500 1001 Internal error message: There is another request the same as yours to
Sensor in progress, Try LATER.
Resource URL
GET /sensor/<sensor_id>/diagnosticstrace/upload
Request Parameters
URL Parameters:
1186 McAfee Network Security Platform 10.1.x Manager API Reference Guide
72| Diagnostics Trace Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://<NSM_IP>/sensor/1001/diagnosticstrace/upload
Payload
None
Response
{
"updatePercentageComplete": 50,
"updateStatusMessage": "IN PROGRESS:Transfer of File Segment in progress for.... Sensor: sensor"
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1187
72| Diagnostics Trace Resource
Resource URL
PUT /sensor/<sensor_id>/diagnosticstrace/export
Request Parameters
URL Parameters:
Response Parameters
Diagnostic trace file data is returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1001/diagnosticstrace/export
Payload
{
"fileName": "trace_API_2950_2_Thu_Mar_03_13_58_39_IST_2016.enc"
}
Response
Error Information
Following error codes are returned by this URL:
1188 McAfee Network Security Platform 10.1.x Manager API Reference Guide
72| Diagnostics Trace Resource
Resource URL
DELETE /sensor/<sensor_id>/diagnosticstrace
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1189
72| Diagnostics Trace Resource
Example
Request
DELETE https://<NSM_IP>/sdkapi/sensor/1001/diagnosticstrace
Payload
{
"fileName": "trace_API_2950_2_Thu_Mar_03_13_58_39_IST_2016.enc"
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
3 400 1001 Internal error message: Trace file given is invalid. Could not be deleted
1190 McAfee Network Security Platform 10.1.x Manager API Reference Guide
73| Health Check Resource
Resource URL
GET /healthcheck
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned.
id Feature id String
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1191
73| Health Check Resource
Example
Request
GET https://<NSM_IP>/sdkapi/healthcheck
Response
{
'connectivityChecks': [
{'lastRun': 'Tue May 17 10:26:33 IST 2016', 'indicator': 'low', 'run': True, 'name': 'Callback Detectors
Update Server Connectivity', 'notes': 'Server: download.nai.com\n Port: TCP 80 \n Response time: 9690 ms',
'result': 'Pass', 'id': 'CallbackDetectorsUpdateServerConnectivity'},
... ,
{'lastRun': 'Tue May 17 10:26:25 IST 2016', 'indicator': '', 'run': True, 'name': 'NSCM Connectivity',
'notes': 'NSCM is not in use with this Manager', 'result': '', 'id': 'NSCMConnectivity'}
],
'databaseChecks': [
{'lastRun': 'Tue May 17 10:26:23 IST 2016', 'indicator': '', 'run': True, 'name': 'Disk Space Used by MySQL
Database Backups', 'notes': 'No backup files detected', 'result': '0 MB', 'id': 'BackupFilesSpaceCheck'},
... ,
{'lastRun': 'Tue May 17 10:26:25 IST 2016', 'indicator': 'low', 'run': True, 'name': 'Slow Queries',
'notes': '', 'result': '0', 'id': 'CheckForSlowQueriesInDatabase'}
],
'summary': [
{'lastRun': 'Tue May 17 10:26:23 IST 2016', 'indicator': '', 'run': True, 'name': 'Manager Software
Version', 'notes': '', 'result': '8.3.7.20.8', 'id': 'GetNSMVersion'},
... ,
{'lastRun': 'Tue May 17 10:26:24 IST 2016', 'indicator': '', 'run': True, 'name': 'Manager Name', 'notes':
'', 'result': 'NSM', 'id': 'ManagerNameCheck'}
]
}
Error Information
Following error code is returned by this URL:
Resource URL
PUT /healthcheck
Request Parameters
URL Parameters: None
1192 McAfee Network Security Platform 10.1.x Manager API Reference Guide
73| Health Check Resource
Field Data
Name Description Type Mandatory
id Feature id list for which the health check should happen Array Yes
Values can be as below:
• Single value “defaut”. Which will run health check only for the features which
are selected by default
• Single value “all”. Which will run health check for all the features
• Single value “summary”. Which will run health check for summary features
• Single value “databasechecks”. Which will run health check for database
check features
• List of the feature id for which the health check should run
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
id Feature id String
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1193
73| Health Check Resource
Example
Request
PUT https://<NSM_IP>/healthcheck
Payload Examples
{
"id": [“all”]
}
{
"id": [“default”]
}
{
"id": [“summary”]
}
{
"id": [“CallbackDetectorsUpdateServerConnectivity”, “NSCMConnectivity”, “BackupFilesSpaceCheck”,
“CheckForSlowQueriesInDatabase”, “GetNSMVersion”, “ManagerNameCheck”]
}
Response
1194 McAfee Network Security Platform 10.1.x Manager API Reference Guide
73| Health Check Resource
{
'connectivityChecks': [
{'lastRun': 'Tue May 17 10:26:33 IST 2016', 'indicator': 'low', 'run': True, 'name': 'Callback Detectors
Update Server Connectivity', 'notes': 'Server: download.nai.com\n Port: TCP 80 \n Response time: 9690 ms',
'result': 'Pass', 'id': 'CallbackDetectorsUpdateServerConnectivity'},
... ,
{'lastRun': 'Tue May 17 10:26:25 IST 2016', 'indicator': '', 'run': True, 'name': 'NSCM Connectivity',
'notes': 'NSCM is not in use with this Manager', 'result': '', 'id': 'NSCMConnectivity'}
],
'databaseChecks': [
{'lastRun': 'Tue May 17 10:26:23 IST 2016', 'indicator': '', 'run': True, 'name': 'Disk Space Used by MySQL
Database Backups', 'notes': 'No backup files detected', 'result': '0 MB', 'id': 'BackupFilesSpaceCheck'},
... ,
{'lastRun': 'Tue May 17 10:26:25 IST 2016', 'indicator': 'low', 'run': True, 'name': 'Slow Queries',
'notes': '', 'result': '0', 'id': 'CheckForSlowQueriesInDatabase'}
],
'summary': [
{'lastRun': 'Tue May 17 10:26:23 IST 2016', 'indicator': '', 'run': True, 'name': 'Manager Software
Version', 'notes': '', 'result': '8.3.7.20.8', 'id': 'GetNSMVersion'},
... ,
{'lastRun': 'Tue May 17 10:26:24 IST 2016', 'indicator': '', 'run': True, 'name': 'Manager Name', 'notes':
'', 'result': 'NSM', 'id': 'ManagerNameCheck'}
]
}
Error Information
Following error code is returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1195
74| McAfee Cloud Integration Resource
Resource URL
GET /mcafeecloudintegration
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned.
Details of statistics:
filesSubmittedAfterDailyLimitReached Files submitted to the cloud after the daily file submission Number
limit is reached
1196 McAfee Network Security Platform 10.1.x Manager API Reference Guide
74| McAfee Cloud Integration Resource
Example
Request
GET https://<NSM_IP>/sdkapi/mcafeecloudintegration
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1197
74| McAfee Cloud Integration Resource
{
'statistics': {
'veryHighMalwareConfidenceFiles': 0,
'highMalwareConfidenceFiles': 0,
'lastSubmissionTime': '',
'lastSubmissionFrom': '',
'veryLowMalwareConfidenceFiles': 0,
'lowMalwareConfidenceFiles': 0,
'cleanMalwareConfidenceFiles': 0,
'totalSubmissionErrors': 0,
'mediumMalwareConfidenceFiles': 0,
'totalFilesSubmitted': 0,
'filesSubmittedAfterDailyLimitReached': 0,
'lastSubmissionError': ''
},
'enable': True,
'tenantIdStatus': 'Present',
'tenantId': 'M46MS8MXle/AVyAbtyqbxBdPwMPtXZTX1Fj2RibW0Ch68tpnCiMU3V2u1KB4nnNO',
'provisioningKey': 'Ya+WyijMltOTWuLpzRHSbvK7bLeSewQIzxmx6LzQca0='
}
Error Information
Following error code is returned by this URL:
Resource URL
PUT /mcafeecloudintegration
Request Parameters
URL Parameters: None
1198 McAfee Network Security Platform 10.1.x Manager API Reference Guide
74| McAfee Cloud Integration Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/mcafeecloudintegration
Payload
{
"enable": true,
"tenantId": "5JT9TV3F7k9taFget0p37O5shpe0j+1FX8+ggrTZQ1/u99z8vkXzFTjRSkBD4BZu"
}
Response
{
"status": 1
}
Error Information
Following error code is returned by this URL:
Resource URL
PUT /mcafeecloudintegration/testconnection
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1199
74| McAfee Cloud Integration Resource
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned.
Example
Request
PUT https://<NSM_IP>/mcafeecloudintegraton/testconnection
Response
{
"status": 1
}
Error Information
Following error code is returned by this URL:
Resource URL
GET /mcafeecloudinteration/statistics
Request Parameters
URL Parameters: None
1200 McAfee Network Security Platform 10.1.x Manager API Reference Guide
74| McAfee Cloud Integration Resource
Response Parameters
Following fields are returned.
filesSubmittedAfterDailyLimitReached Files submitted to the cloud after the daily file submission Number
limit is reached
Example
Request
GET https://<NSM_IP>/mcafeecloudintegration/statistics
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1201
74| McAfee Cloud Integration Resource
{
'veryHighMalwareConfidenceFiles': 0,
'highMalwareConfidenceFiles': 0,
'lastSubmissionTime': '',
'lastSubmissionFrom': '',
'veryLowMalwareConfidenceFiles': 0,
'lowMalwareConfidenceFiles': 0,
'cleanMalwareConfidenceFiles': 0,
'totalSubmissionErrors': 0,
'mediumMalwareConfidenceFiles': 0,
'totalFilesSubmitted': 0,
'filesSubmittedAfterDailyLimitReached': 0,
'lastSubmissionError': ''
}
Error Information
Following error code is returned by this URL:
Resource URL
PUT /mcafeecloudintegration/resetstatistics
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned.
Example
Request
PUThttps://<NSM_IP>/mcafeecloudintegraton/resetstatistics
1202 McAfee Network Security Platform 10.1.x Manager API Reference Guide
74| McAfee Cloud Integration Resource
Response
{
"status": 1
}
Error Information
Following error code is returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1203
75| Performance Monitoring Resource
Resource URL
GET /domain/<domainId>/performancemonitoring
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
1204 McAfee Network Security Platform 10.1.x Manager API Reference Guide
75| Performance Monitoring Resource
Details of display:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1205
75| Performance Monitoring Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/performancemonitoring
Response
1206 McAfee Network Security Platform 10.1.x Manager API Reference Guide
75| Performance Monitoring Resource
{
"inheritSettings": false,
"enableMetricCollection": true,
"enableThresholdAnalysis": true,
"visibleToChildAdminDomain": true,
"enableCPUUtilizationMetricCollection": true,
"enablePortThroughputUtilizationMetricCollection": true,
"thresholds": [{
"metric": "CPU Usage",
"thresholds": [{
"thresholdName": "High Utilization",
"direction": "Rising",
"thresholdValue": 92,
"resetThresholdValue": 72,
"enableAlarm": true
},
{
"thresholdName": "Medium Utilization",
"direction": "Rising",
"thresholdValue": 72,
"resetThresholdValue": 52,
"enableAlarm": true
}]
},
{
"metric": "Sensor Throughput Usage",
"thresholds": [{
"thresholdName": "High Utilization",
"direction": "Rising",
"thresholdValue": 91,
"resetThresholdValue": 71,
"enableAlarm": false
},
{
"thresholdName": "Medium Utilization",
"direction": "Rising",
"thresholdValue": 71,
"resetThresholdValue": 51,
"enableAlarm": true
},
{
"thresholdName": "Under Utilization",
"direction": "Falling",
"thresholdValue": 6,
"resetThresholdValue": 11,
"enableAlarm": true
}]
},
{
"metric": "L2 Error Drop",
"thresholds": [{
"thresholdName": "Too Many L2 Errors",
"direction": "Rising",
"thresholdValue": 99,
"resetThresholdValue": 51,
"enableAlarm": true
}]
},
{
"metric": "L3/L4 Error Drop",
"thresholds": [{
"thresholdName": "Too Many L3/L4 Errors",
"direction": "Rising",
"thresholdValue": 1001,
"resetThresholdValue": 101,
"enableAlarm": true
}]
},
{
"metric": "Memory Usage",
"thresholds": [{
"thresholdName": "High Utilization",
"direction": "Rising",
"thresholdValue": 91,
"resetThresholdValue": 71,
"enableAlarm": false
},
{
"thresholdName": "Medium Utilization",
"direction": "Rising",
"thresholdValue": 71,
"resetThresholdValue": 51,
"enableAlarm": false
}]
}],
McAfee Network Security
"display": { Platform 10.1.x Manager API Reference Guide 1207
"mediumMemoryUsage": 76,
"highMemoryUsage": 91,
75| Performance Monitoring Resource
Error Information
Following error codes are returned by this URL:
Resource URL
PUT /domain/<domainId>/performancemonitoring
Request Parameters
URL Parameters:
1208 McAfee Network Security Platform 10.1.x Manager API Reference Guide
75| Performance Monitoring Resource
Details of display:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1209
75| Performance Monitoring Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/performancemonitoring
Payload
1210 McAfee Network Security Platform 10.1.x Manager API Reference Guide
75| Performance Monitoring Resource
{
"inheritSettings": false,
"enableMetricCollection": true,
"enableThresholdAnalysis": true,
"visibleToChildAdminDomain": true,
"enableCPUUtilizationMetricCollection": true,
"enablePortThroughputUtilizationMetricCollection": true,
"thresholds": [{
"metric": "CPU Usage",
"thresholds": [{
"thresholdName": "High Utilization",
"direction": "Rising",
"thresholdValue": 92,
"resetThresholdValue": 72,
"enableAlarm": true
},
{
"thresholdName": "Medium Utilization",
"direction": "Rising",
"thresholdValue": 72,
"resetThresholdValue": 52,
"enableAlarm": true
}]
},
{
"metric": "Sensor Throughput Usage",
"thresholds": [{
"thresholdName": "High Utilization",
"direction": "Rising",
"thresholdValue": 91,
"resetThresholdValue": 71,
"enableAlarm": false
},
{
"thresholdName": "Medium Utilization",
"direction": "Rising",
"thresholdValue": 71,
"resetThresholdValue": 51,
"enableAlarm": true
},
{
"thresholdName": "Under Utilization",
"direction": "Falling",
"thresholdValue": 6,
"resetThresholdValue": 11,
"enableAlarm": true
}]
},
{
"metric": "L2 Error Drop",
"thresholds": [{
"thresholdName": "Too Many L2 Errors",
"direction": "Rising",
"thresholdValue": 99,
"resetThresholdValue": 51,
"enableAlarm": true
}]
},
{
"metric": "L3/L4 Error Drop",
"thresholds": [{
"thresholdName": "Too Many L3/L4 Errors",
"direction": "Rising",
"thresholdValue": 1001,
"resetThresholdValue": 101,
"enableAlarm": true
}]
},
{
"metric": "Memory Usage",
"thresholds": [{
"thresholdName": "High Utilization",
"direction": "Rising",
"thresholdValue": 91,
"resetThresholdValue": 71,
"enableAlarm": false
},
{
"thresholdName": "Medium Utilization",
"direction": "Rising",
"thresholdValue": 71,
"resetThresholdValue": 51,
"enableAlarm": false
}]
}],
McAfee Network Security
"display": { Platform 10.1.x Manager API Reference Guide 1211
"mediumMemoryUsage": 76,
"highMemoryUsage": 91,
75| Performance Monitoring Resource
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
HTTP Error
No Code SDK API errorId SDK API errorMessage
5 400 1111 Medium usage parameter should be greater that high usage parameter
8 400 1111 In case of rising, the reset threshold value should be less than threshold
value
9 400 1111 In case of falling, the threshold value should be less than reset threshold
value
1212 McAfee Network Security Platform 10.1.x Manager API Reference Guide
75| Performance Monitoring Resource
Resource URL
GET /sensor/<sensorId>/performancemonitoring
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1213
75| Performance Monitoring Resource
Details of display:
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/performancemonitoring
Response
1214 McAfee Network Security Platform 10.1.x Manager API Reference Guide
75| Performance Monitoring Resource
{
"inheritSettings": false,
"enableMetricCollection": true,
"enableThresholdAnalysis": true,
"visibleToChildAdminDomain": true,
"enableCPUUtilizationMetricCollection": true,
"enablePortThroughputUtilizationMetricCollection": true,
"thresholds": [{
"metric": "CPU Usage",
"thresholds": [{
"thresholdName": "High Utilization",
"direction": "Rising",
"thresholdValue": 92,
"resetThresholdValue": 72,
"enableAlarm": true
},
{
"thresholdName": "Medium Utilization",
"direction": "Rising",
"thresholdValue": 72,
"resetThresholdValue": 52,
"enableAlarm": true
}]
},
{
"metric": "Sensor Throughput Usage",
"thresholds": [{
"thresholdName": "High Utilization",
"direction": "Rising",
"thresholdValue": 91,
"resetThresholdValue": 71,
"enableAlarm": false
},
{
"thresholdName": "Medium Utilization",
"direction": "Rising",
"thresholdValue": 71,
"resetThresholdValue": 51,
"enableAlarm": true
},
{
"thresholdName": "Under Utilization",
"direction": "Falling",
"thresholdValue": 6,
"resetThresholdValue": 11,
"enableAlarm": true
}]
},
{
"metric": "L2 Error Drop",
"thresholds": [{
"thresholdName": "Too Many L2 Errors",
"direction": "Rising",
"thresholdValue": 99,
"resetThresholdValue": 51,
"enableAlarm": true
}]
},
{
"metric": "L3/L4 Error Drop",
"thresholds": [{
"thresholdName": "Too Many L3/L4 Errors",
"direction": "Rising",
"thresholdValue": 1001,
"resetThresholdValue": 101,
"enableAlarm": true
}]
},
{
"metric": "Memory Usage",
"thresholds": [{
"thresholdName": "High Utilization",
"direction": "Rising",
"thresholdValue": 91,
"resetThresholdValue": 71,
"enableAlarm": false
},
{
"thresholdName": "Medium Utilization",
"direction": "Rising",
"thresholdValue": 71,
"resetThresholdValue": 51,
"enableAlarm": false
}]
}],
McAfee Network Security
"display": { Platform 10.1.x Manager API Reference Guide 1215
"mediumMemoryUsage": 76,
"highMemoryUsage": 91,
75| Performance Monitoring Resource
Error Information
Following error codes are returned by this URL:
Resource URL
PUT /sensor/<sensorId>/performancemonitoring
Request Parameters
URL Parameters:
Payload Parameters:
1216 McAfee Network Security Platform 10.1.x Manager API Reference Guide
75| Performance Monitoring Resource
Details of display:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1217
75| Performance Monitoring Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUThttps://<NSM_IP>/sdkapi/sensor/1001/performancemonitoring
Payload
1218 McAfee Network Security Platform 10.1.x Manager API Reference Guide
75| Performance Monitoring Resource
{
"inheritSettings": false,
"enableMetricCollection": true,
"enableThresholdAnalysis": true,
"visibleToChildAdminDomain": true,
"enableCPUUtilizationMetricCollection": true,
"enablePortThroughputUtilizationMetricCollection": true,
"thresholds": [{
"metric": "CPU Usage",
"thresholds": [{
"thresholdName": "High Utilization",
"thresholdValue": 92,
"resetThresholdValue": 72,
"enableAlarm": true
},
{
"thresholdName": "Medium Utilization",
"thresholdValue": 72,
"resetThresholdValue": 52,
"enableAlarm": true
}]
},
{
"metric": "Sensor Throughput Usage",
"thresholds": [{
"thresholdName": "High Utilization",
"thresholdValue": 91,
"resetThresholdValue": 71,
"enableAlarm": false
},
{
"thresholdName": "Medium Utilization",
"thresholdValue": 71,
"resetThresholdValue": 51,
"enableAlarm": true
},
{
"thresholdName": "Under Utilization",
"thresholdValue": 6,
"resetThresholdValue": 11,
"enableAlarm": true
}]
},
{
"metric": "L2 Error Drop",
"thresholds": [{
"thresholdName": "Too Many L2 Errors",
"thresholdValue": 99,
"resetThresholdValue": 51,
"enableAlarm": true
}]
},
{
"metric": "L3/L4 Error Drop",
"thresholds": [{
"thresholdName": "Too Many L3/L4 Errors",
"thresholdValue": 1001,
"resetThresholdValue": 101,
"enableAlarm": true
}]
},
{
"metric": "Memory Usage",
"thresholds": [{
"thresholdName": "High Utilization",
"thresholdValue": 91,
"resetThresholdValue": 71,
"enableAlarm": false
},
{
"thresholdName": "Medium Utilization",
"thresholdValue": 71,
"resetThresholdValue": 51,
"enableAlarm": false
}]
}],
"display": {
"mediumMemoryUsage": 76,
"highMemoryUsage": 91,
"mediumDeviceThroughputUsage": 76,
"highDeviceThroughputUsage": 91
}
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1219
75| Performance Monitoring Resource
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
HTTP Error
No Code SDK API errorId SDK API errorMessage
5 400 1111 Medium usage parameter should be greater than high usage parameter
8 400 1111 In case of rising, the reset threshold value should be less than threshold
value
9 400 1111 In case of falling, the threshold value should be less than reset threshold
value
1220 McAfee Network Security Platform 10.1.x Manager API Reference Guide
76| Attack Set Profile
Resource URL
GET /domain/<domainId>/attacksetprofile/getallrules
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1221
76| Attack Set Profile
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/attacksetprofile/getallrules
Response
1222 McAfee Network Security Platform 10.1.x Manager API Reference Guide
76| Attack Set Profile
{
"AttackSetProfileList": [
{
"policyName": "Master Attack Repository",
"domainId": 0,
"domainName": "My Company",
"policyId": -1,
"description": "Default settings for all attack definitions",
"lastModifiedTime": "2017-06-20 10:47:29",
"lastModifiedUser": "admin",
"enableRfSBExpoit": false,
"enableRfSBMalware": false,
"enableRfSBRecon": false,
"enableRfSBPolicy": false,
"isEditable": false,
"rules": [],
},
{
"policyName": "Default Detection",
"domainId": 0,
"domainName": "My Company",
"policyId": 0,
"description": "The standard attack set (blocking disabled)",
"lastModifiedTime": "2017-06-20 10:45:57",
"lastModifiedUser": "admin",
"enableRfSBExpoit": false,
"enableRfSBMalware": false,
"enableRfSBRecon": false,
"enableRfSBPolicy": false,
"isEditable": false,
"rules": [],
},
{
"policyName": "Outside Firewall",
"domainId": 0,
"domainName": "My Company",
"policyId": 1,
"description": "Include all except for the RECONNAISSANCE category, and excluding known noisy signatures. ",
"lastModifiedTime": "2017-06-20 10:46:04",
"lastModifiedUser": "admin",
"enableRfSBExpoit": false,
"enableRfSBMalware": false,
"enableRfSBRecon": false,
"enableRfSBPolicy": false,
"isEditable": false,
"rules": [],
},
],
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1223
76| Attack Set Profile
This URL retrieves the rule set configuration details at domain level.
Resource URL
GET /domain/<domainId>/ attacksetprofile/rulesetdetails/<policyId>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the operation was successful, otherwise error details are returned.
1224 McAfee Network Security Platform 10.1.x Manager API Reference Guide
76| Attack Set Profile
Details of rules:
Example
Request
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1225
76| Attack Set Profile
GET https://<NSM_IP>/sdkapi/domain/<domainId>/attacksetprofile/rulesetdetails/<policyId>
Response
{
"policyName": "Outside Firewall",
"domainId": 0,
"domainName": "My Company",
"policyId": 1,
"description": "Include all except for the RECONNAISSANCE category, and excluding known noisy signatures. ",
"lastModifiedTime": "2017-06-20 10:46:04",
"lastModifiedUser": "1",
"enableRfSBExpoit": false,
"enableRfSBMalware": false,
"enableRfSBRecon": false,
"enableRfSBPolicy": false,
"isEditable": false,
"rules": [
{
"action": "INCLUDE",
"comment": null,
"isSpecificAttack": false,
"AttackList": [],
"minSeverity": "LOW(2)",
"maxBTP": "MEDIUM(4)",
"attackType": "ANY",
"attackCategory": [
null
],
"application": [
null
],
"protocol": [
null
],
"operatingsystem": [
null
],
},
{
"action": "EXCLUDE",
"comment": null,
"isSpecificAttack": false,
"AttackList": [],
"minSeverity": null,
"maxBTP": null,
"attackType": "ANY",
"attackCategory": [
"Reconnaissance"
],
"application": [
null
],
"protocol": [
null
],
"operatingsystem": [
null
],
}
],
}
Error Information
Following error codes are returned by this URL:
1226 McAfee Network Security Platform 10.1.x Manager API Reference Guide
76| Attack Set Profile
Resource URL
POST /domain/<domainId>/attacksetprofile/createruleset
Request Parameters
URL Parameters:
Payload Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1227
76| Attack Set Profile
• INCLUDE
• EXCLUDE
• NONE
• HIGH_1
• HIGH_8
• HIGH_7
• MEDIUM_6
• MEDIUM_5
• MEDIUM_4
• LOW_3
• LOW_2
• LOW_1
• INFORMATIONAL_0
• NONE_0
• HIGH_7
• HIGH_6
• MEDIUM_5
• MEDIUM_4
• MEDIUM_3
• LOW_2
• LOW_1
• ANY
1228 McAfee Network Security Platform 10.1.x Manager API Reference Guide
76| Attack Set Profile
• RF_SB_ONLY
Response Parameters
Following fields are returned.
Example
Request
POST https://<NSM_IP>/sdkapi/domain/<domainId>/attacksetprofile/createruleset
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1229
76| Attack Set Profile
{
"policyName": "New Attackset_API",
"description": "Test creation ",
"enableRfSBExpoit": false,
"enableRfSBMalware": false,
"enableRfSBRecon": false,
"enableRfSBPolicy": false,
"rules": [
{
"action": "INCLUDE",
"comment": null,
"isSpecificAttack": false,
"AttackList": [],
"minSeverity": "LOW(2)",
"maxBTP": "MEDIUM(4)",
"attackType": "ANY",
"attackCategory": [
null
],
"application": [
null
],
"protocol": [
null
],
"operatingsystem": [
null
],
},
{
"action": "EXCLUDE",
"comment": null,
"isSpecificAttack": false,
"AttackList": [],
"minSeverity": null,
"maxBTP": null,
"attackType": "ANY",
"attackCategory": [
"Reconnaissance"
],
"application": [
null
],
"protocol": [
null
],
"operatingsystem": [
null
],
}
],
}
Response
{
createdResourceId :1
}
Error Information
Following error codes are returned by this URL:
1230 McAfee Network Security Platform 10.1.x Manager API Reference Guide
76| Attack Set Profile
6 7001 A rule cannot contain multiple items of multiple categories at the same time
Resource URL
PUT /domain/<domainId>/ attacksetprofile/updateruleset/<policyId>
Request Parameters
URL Parameters:
Payload parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1231
76| Attack Set Profile
• INCLUDE
• EXCLUDE
• NONE
• HIGH_9
• HIGH_8
• HIGH_7
• MEDIUM_6
• MEDIUM_5
• MEDIUM_4
• LOW_3
• LOW_2
• LOW_1
• INFORMATIONAL_0
• NONE
• HIGH_7
1232 McAfee Network Security Platform 10.1.x Manager API Reference Guide
76| Attack Set Profile
• HIGH_6
• MEDIUM_5
• MEDIUM_4
• MEDIUM_3
• LOW_2
• LOW_1
• ANY
• RF_SB_ONLY
Response Parameters
Following fields are returned if the operation was successful, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/<domainId>/attacksetprofile/updateruleset/<policyId>
Payload
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1233
76| Attack Set Profile
Response
{
status:1
}
Error Information
Following error codes are returned by this URL:
6 7001 A rule cannot contain multiple items of multiple categories at the same time
Resource URL
DELETE /domain/<domainId>/ attacksetprofile/deleteruleset/<policyId>
Request Parameters
URL Parameters:
1234 McAfee Network Security Platform 10.1.x Manager API Reference Guide
76| Attack Set Profile
Payload Parameters
None
Response Parameters
Following fields are returned if the operation was successful, otherwise error details are returned.
Example
Request
DELETE https://<NSM_IP>/sdkapi/domain/<domainId>/attacksetprofile/deletruleset/<policyId>
Payload
None
Response
{
status:1
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1235
76| Attack Set Profile
1236 McAfee Network Security Platform 10.1.x Manager API Reference Guide
77| Proxy Server
Proxy Server
Get the Proxy Server Configuration at Domain Level
This URL gets the proxy server configuration at domain level.
Resource URL
GET /domain/<domainId>/proxyserver
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
Example
Request
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1237
77| Proxy Server
GET https://<NSM_IP>/sdkapi/domain/0/proxyserver
Response
{
"useDeviceListSettings": false,
"useProxyserver": false,
"proxyServerNameOrIPAddr": 1.1.1.1,
"proxyPort": 8443,
"userName": null,
"password": null
}
Error Information
Following error code is returned by this URL:
Resource URL
PUT /domain/<domainId>/proxyserver
Request Parameters
URL Parameters:
Payload parameters:
1238 McAfee Network Security Platform 10.1.x Manager API Reference Guide
77| Proxy Server
Response Parameters
Following fields are returned if the operation was successful, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/<domainId>/proxyserver
Payload
{
"useDeviceListSettings": false,
"useProxyserver": false,
"proxyServerNameOrIPAddr": 1.1.1.1,
"proxyPort": 8443,
"userName": null,
"password": null
}
Response
{
"status": 1
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1239
77| Proxy Server
Error Information
Following error codes are returned by this URL:
Resource URL
GET /device/<device_id>/proxyserver
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
1240 McAfee Network Security Platform 10.1.x Manager API Reference Guide
77| Proxy Server
Example
Request
GET https://<NSM_IP>/sdkapi/device/1001/proxyserver
Response
{
"useDeviceListSettings": false,
"useProxyserver": true,
"proxyServerNameOrIPAddr": 1.1.1.1,
"proxyPort": 8443,
"userName": null,
"password": null
}
Error Information
Following error code is returned by this URL:
Resource URL
PUT /device/<device_id>/proxyserver
Request Parameters
URL Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1241
77| Proxy Server
Payload parameters:
Response Parameters
Following fields are returned if the operation was successful, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/device/1001/proxyserver
Payload
{
"useDeviceListSettings": true,
"useProxyserver": false,
"proxyServerNameOrIPAddr": null,
"proxyPort": 0,
"userName": null,
"password": null
}
Response
1242 McAfee Network Security Platform 10.1.x Manager API Reference Guide
77| Proxy Server
{
"status": 1
}
Error Information
Following error code is returned by the URL:
Resource URL
GET /domain/proxyserver
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1243
77| Proxy Server
Example
Request
GET https://<NSM_IP>/sdkapi/domain/proxyserver
Response
{
"useProxyserver": false,
"proxyServerNameOrIPAddr": 1.1.1.1,
"proxyPort": 8443,
"userName": null,
"password": null
}
Error Information
Following error codes are returned by this URL:
Resource URL
PUT /domain/proxyserver
Request Parameters
URL Parameters: None
Payload parameters:
1244 McAfee Network Security Platform 10.1.x Manager API Reference Guide
77| Proxy Server
Response Parameters
Following fields are returned if the operation was successful, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/proxyserver
Payload
{
"useProxyserver": true,
"proxyServerNameOrIPAddr": 1.1.1.1,
"proxyPort": 8443,
"userName": null,
"password": null
}
Response
{
"status": 1
}
Error Information
Following error code is returned by the URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1245
77| Proxy Server
1246 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
Cloud Resource
Get the Cluster ID Based on Name
This URL retrieves the vNSP cluster id based on name.
Resource URL
POST /cloud/getclusterid
Request Parameters
URL Parameters
None
Response Parameters
Following fields are returned:
Example
Request
POST https://<NSM_IP>/sdkapi/cloud/getclusterid
Payload
{
‘name’ : ‘clusterName’
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1247
78| Cloud Resource
Response
{
‘createdResourceId’ : 101
}
Error Information
None
Resource URL
POST /cloud/getcontrollerid
Request Parameters
URL Parameters
None
Response Parameters
Following fields are returned:
Example
Request
POST https://<NSM_IP>/sdkapi/cloud/getcontrollerid
1248 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
Payload
{
‘name’ : ‘controllerName’
}
Response
{
‘createdResourceId’ : 101
}
Error Information
None
Resource URL
GET cloud/checkprobestatus/<ip_address>
Request Parameters
URL Parameters
None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1249
78| Cloud Resource
probeRunningSince Time since the probe agent has been running String
Example
Request
GET https://<NSM_IP>/sdkapi/cloud/checkprobestatus/<ip_address>
Payload
None
Response
{
"workloadVMIP": "10.15.2.113",
"privateIP": "10.15.2.113",
"publicIP": "10.15.2.113",
"hostName": "ip-10-15-2-113",
"workloadOS": "Amazon Linux AMI release 2016.09",
"probeInstalled": true,
"probeRunning": true,
"probeVersion": "3.5.3-8(64-bit)",
"probeRunningSince": "Fri Mar 24 05:24:30 UTC 2017
}
Error Information
Following error codes are returned by this URL:
1250 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
Resource URL
GET /cloud/<domain_id>/connector
Request Parameters
URL Parameters
None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1251
78| Cloud Resource
id Controller id Number
1252 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
probeSoftware Virtual probe agent version associated with the controller String
• Amazon
• Azure
useIAMRole Specifies if the IAM roles in Manager machines are used to access the AWS cloud or not Boolean
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1253
78| Cloud Resource
Example
Request
GET https://<NSM_IP>/sdkapi/cloud/<domain_id>/connector
Response
1254 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
{
"cloudConnector": [
{
"id": 101,
"domain": "My Company ( 0 )",
"name": "Cont8_4",
"isHA": true,
"serviceIp": "34.210.121.120",
"haTimeout": 5,
"sharedSecret": "********",
"privateCommunicationSubnet": "1.1.12.0/24",
"lastUpdated": "2017-06-14 09:03:39.0 ( null )",
"description": "controller in 8.4",
"members": [
{
"status": "ONLINE",
"localIP": "10.40.10.17",
"controllerSoftware": "3.6.1 (060717a)",
"probeSoftware": "3.6.1-5"
},
{
"status": "ONLINE",
"localIP": "10.40.10.98",
"controllerSoftware": "3.6.1 (060717a)",
"probeSoftware": "3.6.1-5"
}
],
"cloud": {
"type": "AMAZON",
“awsDetails”: {
“useIAMRole”: false,
"region": "US West (Oregon)",
"accessKey": "AKIAJOKGKIFNHOWISXOA",
"secretKey": "****************************************"
},
“azureDetails”: null
}
},
{
"id": 103,
"domain": "My Company ( 0 )",
"name": "StAl",
"isHA": false,
"serviceIp": null,
"haTimeout": 5,
"sharedSecret": "********",
"privateCommunicationSubnet": "1.14.7.0/24",
"lastUpdated": "2017-06-14 09:34:29.0 ( null )",
"description": "standalone controller",
"members": [
{
"status": "ONLINE",
"localIP": "10.40.10.210",
"controllerSoftware": "3.6.1 (060717a)",
"probeSoftware": "3.6.1-5"
}
],
"cloud": {
"type": "AMAZON",
“awsDetails”: {
“useIAMRole”: false,
"region": "US West (Oregon)",
"accessKey": "AKIAJOKGKIFNHOWISXOA",
"secretKey": "****************************************"
},
“azureDetails”: null
}
}
]
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1255
78| Cloud Resource
Resource URL
POST /cloud/<domain_id>/connector
Request Parameters
URL Parameters
Payload Parameters
sharedSecret Shared secret between the Manager and Controller String Yes
1256 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
• Amazon
• Azure
useIAMRole Specifies if the IAM roles in Manager machines are used to access the Boolean Yes
AWS cloud or not
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1257
78| Cloud Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned:
Example
Request
POST https://<NSM_IP>/sdkapi/cloud/0/connector
Payload
{
'privateCommunicationSubnet': '1.1.1.0/24',
'sharedSecret': 'ControllerSharedSecretKey',
'name': 'Controller1',
‘isHA’: false,
"cloud":{
"azureDetails": {
"directoryId": "directoryId",
"applicationKey": "appKey",
"applicationId": "appId",
"subscription": "subscription"
},
"type": "AZURE",
"awsDetails": null
},
'description': 'Demo Controller'
}
Response
1258 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
{
"createdResourceId" : 103
}
Error Information
Following error codes are returned by this URL:
HTTP Error
No Code SDK API errorId SDK API errorMessage
4 400 11001 Controller name can have alphanumeric characters and [ _, -, . ] special
characters
7 400 11001 Cloud type should be one of: <list of allowed values>
8 400 11001 Cloud region should be one of: <list of allowed regions>
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1259
78| Cloud Resource
Resource URL
GET /cloud/connector/<id>
Request Parameters
URL Parameters
None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned:
id Controller id Number
1260 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
probeSoftware Virtual probe agent version associated with the controller String
• Amazon
• Azure
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1261
78| Cloud Resource
useIAMRole Specifies if the IAM roles in Manager machines are used to access the AWS cloud or not Boolean
Example
Request
GET https://<NSM_IP>/sdkapi/cloud/conenctor/101
Response
1262 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
{
"id": 101,
"domain": "My Company ( 0 )",
"name": "Cont8_4",
"isHA": true,
"serviceIp": "34.210.121.120",
"haTimeout": 5,
"sharedSecret": "********",
"privateCommunicationSubnet": "1.1.12.0/24",
"lastUpdated": "2017-06-14 09:03:39.0 ( null )",
"description": "controller in 8.4",
"members": [
{
"status": "ONLINE",
"localIP": "10.40.10.17",
"controllerSoftware": "3.6.1 (060717a)",
"probeSoftware": "3.6.1-5"
},
{
"status": "ONLINE",
"localIP": "10.40.10.98",
"controllerSoftware": "3.6.1 (060717a)",
"probeSoftware": "3.6.1-5"
}
],
"cloud": {
"type": "AMAZON",
“awsDetails”: {
“useIAMRole”: false,
"region": "US West (Oregon)",
"accessKey": "AKIAJOKGKIFNHOWISXOA",
"secretKey": "****************************************"
},
“azureDetails”: null
}
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /cloud/connector/<id>/testcontrollerconnection
Request Parameters
URL Parameters
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1263
78| Cloud Resource
None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned:
Example
Request
GET https://<NSM_IP>/sdkapi/cloud/connector/103/testcontrollerconnection
Payload
None
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
1264 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
Resource URL
GET /cloud/connector/<id>/testcloudconnection
Request Parameters
URL Parameters
None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned:
Example
Request
GET https://<NSM_IP>/sdkapi/cloud/connector/103/testcloudconnection
Payload
None
Response
{
"status": 1
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1265
78| Cloud Resource
Error Information
Following error codes are returned by this URL:
Resource URL
PUT /cloud/connector/<id>
Request Parameters
URL Parameters
1266 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
sharedSecret Shared secret between the Manager and controller String Yes
• Amazon
• Azure
useIAMRole Specifies if the IAM roles in Manager machines are used to access the Boolean Yes
AWS cloud or not
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1267
78| Cloud Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned:
Example
Request
PUT https://<NSM_IP>/sdkapi/cloud/connector/103
Payload
{
'privateCommunicationSubnet': '1.1.1.0/24',
'sharedSecret': 'ControllerSharedSecretKey',
'cloud':
{
'type': 'AMAZON',
'awsDetails': {
'secretKey': 'ControllerCloudSecretKey',
'region': 'US_WEST_2',
'accessKey': 'ControllerCloudAccessKey'
}
},
Response
1268 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
5 400 11001 Cloud type should be one of: <list of allowed values>
6 400 11001 Cloud region should be one of: <list of allowed regions>
Resource URL
DELETE /cloud/connector/<id>
Request Parameters
URL Parameters
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1269
78| Cloud Resource
Payload Parameters
None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned:
Example
Request
DELETE https://<NSM_IP>/sdkapi/cloud/connector/103
Payload
None
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
1270 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
Resource URL
PUT /cloud/connector/<id>/upgrade
Request Parameters
URL Parameters
Details of BodyPart[0]:
Details of BodyPart[1]:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1271
78| Cloud Resource
File Software file input stream Byte array input stream Yes
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned:
Example
Request
PUT https://<NSM_IP>/sdkapi/cloud/connector/101/upgrade
Response
{
" status ": 1
}
Error Information
Following error codes are returned by this URL:
HTTP Error
No Code SDK API errorId SDK API errorMessage
1272 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
HTTP Error
No Code SDK API errorId SDK API errorMessage
2 400 5301 Invalid file type given for import: the file name does not have any
extension
3 400 5301 Invalid file type given for import expected is .tar.gz while <filetype> was
provided.
Resource URL
GET /cloud/<domain_id>/cluster
Request Parameters
URL Parameters
None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1273
78| Cloud Resource
id Cluster id Number
Example
Request
GET https://<NSM_IP>/sdkapi/cloud/<domain_id>/connector
Response
1274 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
{
"cloudCluster":
[
{
"id": 101,
"domain": "My Company ( 0 )",
"name": "test",
"description": "",
"cloudConnector": "Cloud_Controller",
"sharedSecret": "********",
"memberSensors": 0,
"lastUpdated": "2017-03-23 10:25:42.0 ( admin )"
“subscription”: “subscription”
},
{
"id": 102,
"domain": "My Company ( 0 )",
"name": "Cloud_Cluster",
"description": "api updated",
"cloudConnector": "Cloud_Controller",
"sharedSecret": "********",
"memberSensors": 0,
"lastUpdated": "2017-03-23 10:38:29.0 ( admin )"
}
]
}
Error Information
Following error codes are returned by this URL:
Resource URL
POST /cloud/<domain_id>/cluster
Request Parameters
URL Parameters
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1275
78| Cloud Resource
Payload Parameters
sharedSecret Shared secret between the Manager and Cluster String Yes
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned:
Example
Request
POST https://<NSM_IP>/sdkapi/cloud/0/cluster
Payload
{
"name": "Cloud_Cluster",
"description": "api updated",
"cloudConnector": "Cloud_Controller",
Response
1276 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
{
" createdResourceId ": 101
}
Error Information
Following error codes are returned by this URL:
4 400 11001 Cluster name can have alphanumeric characters and [ _, -, . ] special
characters
Resource URL
GET /cloud/cluster/<id>
Request Parameters
URL Parameters
None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1277
78| Cloud Resource
id Cluster id Number
Example
Request
GET https://<NSM_IP>/sdkapi/cloud/cluster/101
Response
{
"id": 101,
"domain": "My Company ( 0 )",
"name": "test",
"description": "",
"cloudConnector": "Cloud_Controller",
"subscription": null,
"sharedSecret": "********",
"memberSensors": 0,
"lastUpdated": "2017-03-23 10:25:42.0 ( admin )"
}
Error Information
Following error codes are returned by this URL:
1278 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
Resource URL
PUT /cloud/cluster/<id>
Request Parameters
URL Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1279
78| Cloud Resource
Example
Request
PUT https://<NSM_IP>/sdkapi/cloud/cluster/101
Payload
{
'description': Updated
}
Response
{
" status ": 1
}
Error Information
Following error codes are returned by this URL:
Resource URL
DELETE /cloud/cluster/<id>
Request Parameters
URL Parameters
1280 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
Payload Parameters
None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned:
Example
Request
DELETE https://<NSM_IP>/sdkapi/cloud/cluster/101
Payload
None
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1281
78| Cloud Resource
Resource URL
GET /cloud/cluster/<id>/vmgroups
Request Parameters
URL Parameters
None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned:
vpc VPC where the protected VM group has been created Array
1282 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
• Ingress
• Egress
• Ingress & Egress
• IPS
• IDS
Example
Request
GET https://<NSM_IP>/sdkapi/cloud/cluster/101/vmgroups
Response
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1283
78| Cloud Resource
{
"vmgroups":
[
{
"oldName": null,
"name": "Protected_VMGroup",
"description": "api update",
"cloudCluster": "Cloud_Cluster",
"cloudConnector": "Cloud_Controller",
"vpc": ["vpc-06b3ce61(Protected_test)"],
"resourceGroup": [],
"advancedAgentSettings":
{
"trafficProcessing": "Ingress & Egress",
"inspectionMode": "ips"
},
"protectedObjects":
[
"subnet-bde05df4(Secure_subnet)"
],
"lastUpdated": "2017-03-23 11:02:50.0 (admin)"
}
]
}
Error Information
Following error codes are returned by this URL:
Resource URL
POST /cloud/cluster/<id>/vmgroup
Request Parameters
URL Parameters
1284 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
vpc VPC where the protected VM group has been created Array Yes
• Ingress
• Egress
• Ingress & Egress
• IPS
• IDS
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1285
78| Cloud Resource
Example
Request
POST https://<NSM_IP>/sdkapi/cloud/cluster/101/vmgroup
Payload
{
"name": "Protected_VMGroup",
"description": "api",
"vpc": ["vpc-06b3ce61(Protected_test)"],
"advancedAgentSettings":
{
"trafficProcessing": "Ingress & Egress",
"inspectionMode": "ips"
},
"protectedObjects":
[
"subnet-bde05df4(Secure_subnet)"
]
}
Response
{
" createdResourceId ": 101
}
Error Information
Following error codes are returned by this URL:
4 400 11001 Invalid inspection mode, it should be one of: <valid list>
1286 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
Resource URL
PUT /cloud/cluster/<id>/getvmgroup
Request Parameters
URL Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned:
vpc VPC where the protected VM proup has been created Array
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1287
78| Cloud Resource
• Ingress
• Egress
• Ingress & Egress
• IPS
• IDS
Example
Request
PUT https://<NSM_IP>/sdkapi/cloud/cluster/101/getvmgroup
Payload
{
“name”: “Protected_VMGroup”
}
Response
1288 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
{
"oldName": null,
"name": "Protected_VMGroup",
"description": "api update",
"cloudCluster": "Cloud_Cluster",
"cloudConnector": "Cloud_Controller",
"vpc": ["vpc-06b3ce61(Cloud_test)"],
"advancedAgentSettings":
{
"trafficProcessing": "Ingress & Egress",
"inspectionMode": "ips"
},
"protectedObjects":
[
"subnet-bde05df4(Secure_subnet)"
],
"lastUpdated": "2017-03-23 11:02:50.0 ( admin)"
}
Error Information
Following error codes are returned by this URL:
Resource URL
PUT /cloud/cluster/<id>/vmgroup
Request Parameters
URL Parameters
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1289
78| Cloud Resource
vpc VPC where the protected VM group has been created Array Yes
• Ingress
• Egress
• Ingress & Egress
• IPS
• IDS
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned:
1290 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
Example
Request
PUT https://<NSM_IP>/sdkapi/cloud/cluster/101/vmgroup
Payload
{
"oldName": “Protected_VMGroup”,
"name": "Protected_VMGroup",
"description": "api",
"vpc": ["vpc-06b3ce61(Protected_test)"],
"advancedAgentSettings":
{
"trafficProcessing": "Ingress & Egress",
"inspectionMode": "ips"
},
"protectedObjects":
[
"subnet-bde05df4(Protected_subnet)"
]
}
Response
{
" status ": 1
}
Error Information
Following error codes are returned by this URL:
4 400 11001 Invalid Inspection mode, it should be one of: <valid list>
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1291
78| Cloud Resource
Resource URL
DELETE /cloud/cluster/<id>/vmgroup
Request Parameters
URL Parameters
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned:
1292 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
Example
Request
DELETE https://<NSM_IP>/sdkapi/cloud/cluster/101/vmgroup
Payload
{
“name”: “Protected_VMGroup”
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /cloud/cluster/<id>/downloadagent
Request Parameters
URL Parameters
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1293
78| Cloud Resource
Query Parameter
• Windows (default)
• Linux
None
Response Parameters
Cluster virtual probe file data is returned if the request parameters are correct, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/cloud/cluster/101/downloadagent?ostype=linux
Response
Error Information
Following error codes are returned by this URL:
1294 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
Resource URL
GET /cloud/cluster/downloadprobeagent
Request Parameters
URL Parameters
None
Query Parameter
• Windows (default)
• Linux
name Cluster name for which probe needs to be downloaded String Yes
None
Response Parameters
Cluster Virtual Probe file data is returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/cloud/cluster/downloadprobeagent?ostype=linux
Response
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1295
78| Cloud Resource
Resource URL
PUT /cloud/cluster/<id>/upgradeagents
Request Parameters
URL Parameters
None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned:
Example
Request
PUT https://<NSM_IP>/sdkapi/cloud/cluster/101/upgradeagents
Payload
1296 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
None
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /cloud/cluster/<id>/getProtectedVMHosts
Request Parameters
URL Parameters
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1297
78| Cloud Resource
Response Parameters
Following fields are returned:
probeActiveSince Time stamp from which the protected VM host is online. If NULL it implies VM host String
is offline (probe_status= false)
clusterName Cluster name under which this protected VM host is added. String
1298 McAfee Network Security Platform 10.1.x Manager API Reference Guide
78| Cloud Resource
Example
Request
POST https://<NSM_IP>/sdkapi/cloud/cluster/101/getProtectedVMHosts
Payload
None
Response
{
"protectedVMHosts": [{
"hostname": "WIN-IPMU0PRS727",
"privateIP": "10.40.20.252",
"publicIP": "52.89.154.236",
"operatingSystem": "Windows Server 2012 R2 (build 9600), 64-bit",
"probeServiceStatus": true,
"probeActiveSince": "2017-04-13 14:04:27",
"probeVersion": "3.5.3-8(64-bit)",
"clusterName": "ClusterTwo",
"controllerIP": "35.166.195.169",
"domainName": "MyDomainOne",
“awsInstanceId”:”amazonGeneratedID1”
},
{
"hostname": "WIN-IPMU0PRS728",
"privateIP": "11.40.20.252",
"publicIP": "62.89.154.236",
"operatingSystem": "CentOSrelease6.8(Final)",
"probeServiceStatus": true,
"probeActiveSince": "8-04-1314: 04: 27",
"probeVersion": "4.5.3-8(64-bit)",
"clusterName": "ClusterOne",
"controllerIP": "45.166.195.169",
"domainName": "MyDomainTwo",
“awsInstanceId”:” amazonGeneratedID2”
}
]
}
Error Information
None
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1299
79| Quarantine Zone Resource
Resource URL
GET /domain/<domainId>/quarantineZone/<quarantineZoneID>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned.
1300 McAfee Network Security Platform 10.1.x Manager API Reference Guide
79| Quarantine Zone Resource
Details of rules:
action Action to be performed if the traffic matches this rule, can be "PERMIT"/ "DROP" String
Details of destObjList:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1301
79| Quarantine Zone Resource
Details of serviceObjList:
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/quarantineZone/220
Response
1302 McAfee Network Security Platform 10.1.x Manager API Reference Guide
79| Quarantine Zone Resource
{
"quarantineZoneId": 220,
"quarantineZoneName": "Quarantine20",
"quarantineZoneDescription": "Desc:Adds a new Quarantine Zone",
"ownerId": 0,
"visibleToChild": true,
"isEditable": true,
"quarantineZoneVersion": 0,
"lastModifiedTime": "2017-06-21 11:13:38",
"lastModifiedUser": "admin",
"rules": [
{
"uuid": 125,
"state": true,
"ruleDescription": "create a new rule",
"destObjList": [],
"serviceObjList": [],
"action": "PERMIT",
"islogging": true
},
{
"uuid": 126,
"state": true,
"ruleDescription": "create a new rule",
"destObjList": [
{
"ruleObjectId": "12",
"ruleObjectName": "The 172.16.0.0/12 network",
"ruleObjectType": "IPV4_NETWORK"
}
],
"serviceObjList": [
{
"ruleObjectId": "130",
"ruleObjectName": "ssl",
"ruleObjectType": "SERVICE",
"applicationType": "DEFAULT"
}
],
"action": "PERMIT",
"islogging": true
}
]
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1303
79| Quarantine Zone Resource
Resource URL
GET /domain/<domainId>/quarantineZone
Request Parameters
URL Parameters:
None
Response Parameters
Following fields are returned if the operation was successful, otherwise error details are returned.
Details of quarantineZoneList:
1304 McAfee Network Security Platform 10.1.x Manager API Reference Guide
79| Quarantine Zone Resource
Details of rules:
action Action to be performed if the traffic matches this rule, can be "PERMIT"/ "DROP" String
Details of destObjList:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1305
79| Quarantine Zone Resource
Details of serviceObjList:
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/quarantineZone
Payload
None
Response
1306 McAfee Network Security Platform 10.1.x Manager API Reference Guide
79| Quarantine Zone Resource
{
"quarantineZoneList": [
{
"quarantineZoneId": 201,
"quarantineZoneName": "Quarantine1",
"quarantineZoneDescription": "Desc:Adds a new Quarantine Zone1",
"ownerId": 0,
"visibleToChild": true,
"isEditable": false,
"quarantineZoneVersion": 0,
"lastModifiedTime": "2017-06-21 11:13:29",
"lastModifiedUser": "admin",
"rules": [
{
"uuid": 101,
"state": true,
"ruleDescription": "create a new rule",
"destObjList": [],
"serviceObjList": [],
"action": "PERMIT",
"islogging": true
},
{
"uuid": 102,
"state": true,
"ruleDescription": "create a new rule",
"destObjList": [],
"serviceObjList": [],
"action": "DROP",
"islogging": true
},
{
"uuid": 103,
"state": true,
"ruleDescription": "create a new rule",
"destObjList": [],
"serviceObjList": [],
"action": "PERMIT",
"islogging": false
}
]
},
{
"quarantineZoneId": 51,
"quarantineZoneName": "Allow Full Access",
"quarantineZoneDescription": "Default zone that provides full network access.",
"ownerId": 0,
"visibleToChild": true,
"isEditable": false,
"quarantineZoneVersion": 0,
"lastModifiedTime": "2017-06-21 10:29:54",
"lastModifiedUser": "admin",
"rules": [
{
"uuid": 31,
"state": true,
"ruleDescription": "Full Access",
"destObjList": [],
"serviceObjList": [],
"action": "PERMIT",
"islogging": false
}
]
}
]
}
Error Information
Following error code is returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1307
79| Quarantine Zone Resource
Resource URL
PUT /domain/<domainId>/quarantineZone/<quarantineZoneID>
Request Parameters
URL Parameters:
Payload parameters:
Details of rules:
1308 McAfee Network Security Platform 10.1.x Manager API Reference Guide
79| Quarantine Zone Resource
action Action to be performed if the traffic matches this rule, can be String Yes
"PERMIT"/ "DROP"
Details of destObjList:
Details of serviceObjList:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1309
79| Quarantine Zone Resource
Response Parameters
Following fields are returned if the operation was successful, otherwise error details are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/quarantineZone/220
Payload
1310 McAfee Network Security Platform 10.1.x Manager API Reference Guide
79| Quarantine Zone Resource
{
"quarantineZoneName": "Quarantine20",
"quarantineZoneDescription": "Desc:Adds a new Quarantine Zone",
"visibleToChild": true,
"rules":
[
{
"state": true,
"ruleDescription": "create a new rule",
"destObjList":
[
],
"serviceObjList":
[
],
"action": "PERMIT",
"islogging": true
},
{
"state": true,
"ruleDescription": "create a new rule",
"destObjList":
[
{
"ruleObjectId": "12",
"ruleObjectName": "The 172.16.0.0/12 network",
"ruleObjectType": "IPV4_NETWORK"
}
],
"serviceObjList":
[
{
"ruleObjectId": "130",
"ruleObjectName": "ssl",
"ruleObjectType": "SERVICE",
"applicationType": "DEFAULT"
}
],
"action": "DROP",
"islogging": false
}
]
}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
HTTP Error
No Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1311
79| Quarantine Zone Resource
HTTP Error
No Code SDK API errorId SDK API errorMessage
4 404 1720 Invalid rule object id/ rule object not visible to this domain.
7 500 1001 Quarantine zone name: The maximum length for the field is 64
8 500 1001 Quarantine zone description: The maximum length for the field is 150
10 500 1001 Name must contain only letters, numerical, spaces, commas, periods,
hyphens or underscores
Resource URL
POST /domain/<domainId>/quarantineZone
Request Parameters
URL Parameters:
1312 McAfee Network Security Platform 10.1.x Manager API Reference Guide
79| Quarantine Zone Resource
Details of rules:
action Action to be performed if the traffic matches this rule, can be String Yes
"PERMIT"/ "DROP"
Details of destObjList:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1313
79| Quarantine Zone Resource
Details of serviceObjList:
Response Parameters
Following fields are returned.
Example
Request
POST https://<NSM_IP>/sdkapi/domain/0/quarantineZone
Payload
1314 McAfee Network Security Platform 10.1.x Manager API Reference Guide
79| Quarantine Zone Resource
{
"quarantineZoneName": "Quarantine1",
"quarantineZoneDescription": "Desc:Adds a new Quarantine Zone",
"visibleToChild": true,
"rules":
[
{
"state": true,
"ruleDescription": "create a new rule",
"destObjList":
[
],
"serviceObjList":
[
],
"action": "PERMIT",
"islogging": true
},
{
"state": true,
"ruleDescription": "create a new rule",
"destObjList":
[
{
"ruleObjectId": "12",
"ruleObjectName": "The 172.16.0.0/12 network",
"ruleObjectType": "IPV4_NETWORK"
}
],
"serviceObjList":
[
{
"ruleObjectId": "130",
"ruleObjectName": "ssl",
"ruleObjectType": "SERVICE",
"applicationType": "DEFAULT"
}
],
"action": "DROP",
"islogging": false
}
]
}
Response
{
"createdResourceId": 243
}
Error Information
Following error codes are returned by this URL:
1 500 1001 Internal error - Failed to add NAZ definition. A NAZ with the same name
already exists.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1315
79| Quarantine Zone Resource
3 404 1720 Invalid rule object id/ rule object not visible to this domain
6 500 1001 Quarantine zone name: The maximum length for the field is 64
7 500 1001 Quarantine zone description: The maximum length for the field is 150
9 500 1001 Name must contain only letters, numerical, spaces, commas, periods,
hyphens or underscores
Resource URL
DELETE /domain/<domainId>/quarantineZone
Request Parameters
URL Parameters:
Payload Parameters:
1316 McAfee Network Security Platform 10.1.x Manager API Reference Guide
79| Quarantine Zone Resource
Response Parameters
Following fields are returned if the operation was successful, otherwise error details are returned.
Example
Request
DELETE https://<NSM_IP>/sdkapi/domain/0/quarantineZone
Payload
{“quarantineZoneIdsList”: [216]}
Response
{
"status": 1
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1317
79| Quarantine Zone Resource
1318 McAfee Network Security Platform 10.1.x Manager API Reference Guide
80| GTI and Telemetry Resource
Resource URL
GET /gticonfiguration/private
Request Parameters
URL Parameters: None
Response Parameters
Returns the following fields.
Example
Request
GET https://<NSM_IP>/sdkapi/gticonfiguration/private
Payload
None
Response
{
"enabled":false,"server":null,"certificateStatus":false
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1319
80| GTI and Telemetry Resource
Error Information
Following error codes are returned by this URL:
Resource URL
PUT /gticonfiguration/private
Request Parameters
URL Parameters: None
Response Parameters
Returns the following fields.
Example
Request
PUT https://<NSM_IP>/sdkapi/gticonfiguration/private
1320 McAfee Network Security Platform 10.1.x Manager API Reference Guide
80| GTI and Telemetry Resource
Payload
{
"enabled":false,"server":null,"certificateStatus":false
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
Resource URL
PUT /gticonfiguration/private/importcert
Request Parameters
URL Parameters: None
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1321
80| GTI and Telemetry Resource
Details of BodyPart[0]:
Details of FileFormat:
Details of BodyPart[1]:
Response Parameters
Returns the following fields:
1322 McAfee Network Security Platform 10.1.x Manager API Reference Guide
80| GTI and Telemetry Resource
Example
Request
PUT https://<NSM_IP>/sdkapi/gticonfiguration/private/importcert
Payload
--Boundary_1_17241377_1362484380857
Content-Type: application/json
{"fileName":"certificate.zip"}
--Boundary_1_17241377_1362484380857
Content-Type: application/octet-stream
File data
--Boundary_1_17241377_1362484380857--
Response
{
‘status’ : 1
}
Error Information
Following error codes are returned by this URL:
HTTP Error
No Code SDK API errorId SDK API errorMessage
2 400 5301 Invalid file type given for import: The file name does not have any
extension
3 400 5301 Invalid file type given for import expected is .zip while <filetype> was
provided
Resource URL
GET /gticonfiguration/private/{ip_address}/testconnection
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1323
80| GTI and Telemetry Resource
Request Parameters
URL Parameters:
Response Parameters
Returns the following fields.
country Country of the IP. If information about the country is not available, returns an empty string String
as the value.
Example
Request
GET https://<NSM_IP>/sdkapi/gticonfiguration/private/1.1.1.1/testconnection
Payload
None
Response
{
"status":"High","country":""
}
Error Information
Following error code is returned by this URL:
1324 McAfee Network Security Platform 10.1.x Manager API Reference Guide
80| GTI and Telemetry Resource
Resource URL
GET /gticonfiguration
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned.
alertDataSummary Should the alert data summary be included in data send to telemetry Boolean
generalSetup Should the general setup data be included in data send to telemetry Boolean
featureUsage Should the feature usage data be included in data send to telemetry Boolean
systemFaults Should the system faults data be included in data send to telemetry Boolean
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1325
80| GTI and Telemetry Resource
1326 McAfee Network Security Platform 10.1.x Manager API Reference Guide
80| GTI and Telemetry Resource
Example
Request
GET https://<NSM_IP>/sdkapi/gticonfiguration
Payload
None
Response
{
"alertDataDetails":{"AlertDataDetailsEnabled":true,"excludedIpList":
["1.1.1.1/32"],"alertDetaDetailsFilterLevel":
{"high":true,"low":true,"medium":true,"informational":true}},"alertDataSummary":true,
"generalSetup":true,"featureUsage":true,"systemFaults":true,"technicalContactInformation":
{"sendContactInfo":true,"firstName":"Mcafee","lastName":"Mcafee","address":"MIC","phone":"1234567890","email"
:"[email protected]"}
}
Error Information
Following error codes are returned by this URL:
Resource URL
PUT /gticonfiguration
Request Parameters
URL Parameters: None
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1327
80| GTI and Telemetry Resource
alertDataSummary Should the alert data summary be included in data Boolean Yes
send to telemetry
generalSetup Should the general setup data be included in data Boolean Yes
send to telemetry
featureUsage Should the feature usage data be included in data Boolean Yes
send to telemetry
systemFaults Should the system faults data be included in data Boolean Yes
send to telemetry
1328 McAfee Network Security Platform 10.1.x Manager API Reference Guide
80| GTI and Telemetry Resource
Response Parameters
Returns the following fields:
Example
Request
PUT https://<NSM_IP>/sdkapi/gticonfiguration
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1329
80| GTI and Telemetry Resource
Payload
{
"alertDataDetails":{"AlertDataDetailsEnabled":true,"excludedIpList":["1.1.1.1/32"],
"alertDetaDetailsFilterLevel":{"high":true,"low":true,"medium":true,"informational":true}},
"alertDataSummary":true,"generalSetup":true,"featureUsage":true,"systemFaults":true,
"technicalContactInformation":{"sendContactInfo":true,"firstName":"Mcafee",
"lastName":"Mcafee","address":"MIC","phone":"1234567890","email":"[email protected]"}
}
Response
{
"status":1
}
Error Information
Following error code is returned by this URL:
1330 McAfee Network Security Platform 10.1.x Manager API Reference Guide
81| License Resource
License Resource
Get the vIPS Licenses Present on the Manager
This URL gets the vIPS licenses present on the Manager.
Resource URL
GET /license/vmips
Request Parameters
URL Parameters: None
Response Parameters
Returns the following fields.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1331
81| License Resource
Example
Request
GET https://<NSM_IP>/sdkapi/license/vmips
Payload
None
Response
{
"compliant": True,
"additionalLicensesRequired": 0,
"virtualSensors": "0 (of 10 allowed) in use",
"virtualProbes": "0 in use",
"licenses": [
{"comment": None, "licenseCustomer": "Ingram Micro Inc.", "addedBy": "admin", "key": "0007010100-
NAI-000010", "allowed": 10, "addedTime": "Oct 23 05:11:25 2019", "licenseGrantID": "0007010100-NAI",
"licenseExpiration": "12-31-2043"}
]
}
Error Information
Following error code is returned by this URL:
1332 McAfee Network Security Platform 10.1.x Manager API Reference Guide
81| License Resource
Resource URL
GET /license/proxy
Request Parameters
URL Parameters: None
Response Parameters
Returns the following fields.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1333
81| License Resource
Example
Request
GET https://<NSM_IP>/sdkapi/license/proxy
Payload
None
Response
{
"licenses": [
"comment": None, "targetType": "SENSOR", "licenseCustomer": "McAfee Inc. - for Eval Purposes Only",
"capacity": "30 Gbps", "deviceName": "/My Company/Test Child Domain 1/denali-1", "allowanceModel": "IPS-
NS9500", "addedBy": "admin", "targetIdAssociated": "1006", "key": "80002-1", “licenseId”: ”80002”,
“grantIndex”: 1, "addedTime": "Oct 22 12:20:09 2019", "licenseGrantID": "0010080", "licenseExpiration":
"09-12-2020"]
}
Error Information
Following error code is returned by this URL:
1334 McAfee Network Security Platform 10.1.x Manager API Reference Guide
81| License Resource
Resource URL
GET /license/capacity
Request Parameters
URL Parameters: None
Response Parameters
Returns the following fields.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1335
81| License Resource
Example
Request
GET https://<NSM_IP>/sdkapi/license/capacity
Payload
None
Response
{
"licenses": [
"comment": None, "targetType": "SENSOR", "licenseCustomer": "McAfee Inc. - for Eval Purposes Only",
"capacity": "20 Gbps", "deviceName": "/My Company/Test Child Domain 1/denali-1", "allowanceModel": "IPS-
NS9500", "addedBy": "admin", "targetIdAssociated": "1006", "key": "50002-1", “licenseId”: ”50002”,
“grantIndex”: 1, "addedTime": "Oct 22 12:20:09 2019", "licenseGrantID": "0030080", "licenseExpiration":
"09-12-2020"]
}
Error Information
Following error code is returned by this URL:
1336 McAfee Network Security Platform 10.1.x Manager API Reference Guide
81| License Resource
Resource URL
PUT /license
Request Parameters
URL Parameters: None
Details of BodyPart[0]:
Details of oldLicense:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1337
81| License Resource
grantIndex Grant Index of the license which needs to be upgraded String Yes
Details of BodyPart[1]:
Response Parameters
Following field is returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/license
Payload
1338 McAfee Network Security Platform 10.1.x Manager API Reference Guide
81| License Resource
NSM-SDK-API: QjUzNDQzMjNCNUQ2NkEzQjc4Mzc5REMxRjMxMDg0OTE6MQ==
Accept: application/vnd.nsm.v1.0+json
Content-Type: multipart/form-data; boundary=Boundary_1_17241377_1362484380857
MIME-Version: 1.0
User-Agent: Java/1.6.0_25
Host: localhost:8888
Connection: keep-alive
Content-Length: 15956464
--Boundary_1_17241377_1362484380857
Content-Type: application/json
{"fileName":"VMIPSLICENCE_sdkapi.jar"}
--Boundary_1_17241377_1362484380857
Content-Type: application/octet-stream
File data
--Boundary_1_17241377_1362484380857--
Response
{
'status' : 1
}
Error Information
Following error codes are returned by this URL
Assign a License
This URL assigns a license to the device.
Resource URL
PUT /license/assignlicense
Request Parameters
URL Parameters: None
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1339
81| License Resource
Response Parameters
Following fields are returned.
Example
Request
PUT https://<NSM_IP>/sdkapi/assignlicense
Payload
{
“licenseId”: “50002”,
“grantIndex”: “3”,
“grantId”: “0030080”,
“sensorId”: “1006”
}
Response
{
'status' : 1
}
Error Information
Following error codes are returned by this URL:
1340 McAfee Network Security Platform 10.1.x Manager API Reference Guide
81| License Resource
Unassign a License
This URL unassign's a license associated with the device.
Resource URL
PUT /license/unassignlicense
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1341
81| License Resource
Example
Request
PUT https://<NSM_IP>/sdkapi/unassignlicense
Payload
{
“licenseId”: “50002”,
“grantIndex”: “3”,
“grantId”: “0030080”,
}
Response
{
'status' : 1
}
Error Information
Following error codes are returned by this URL:
Delete Licenses
This URL deletes licenses.
Resource URL
DELETE /license/delete/<licensetype>
Request Parameters
URL Parameters:
1. Proxy
2. Capacity
1342 McAfee Network Security Platform 10.1.x Manager API Reference Guide
81| License Resource
3. vIPS
Response Parameters
Returns the following fields.
Example
Request
DELETE https://<NSM_IP>/sdkapi/license/delete/proxy
Payload
{
'licenseId': ['10004']
}
Response
{
"status": 1
}
Error Information
Following error code is returned by this URL
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1343
81| License Resource
Resource URL
GET /license/getSensorsforassociation
Request Parameters
URL Parameters:
Response Parameters
Returns the following fields.
sensorDetailsList List of Sensor details that can be associated with license Object
1344 McAfee Network Security Platform 10.1.x Manager API Reference Guide
81| License Resource
Example
Request
GET https://<NSM_IP>/license//getSensorsforassociation?model=IPS-NS9500&licenseId=00001
Payload
None
Response
{
"sensorDetailsList": [
{"sensorId": 1002, "peerSensor": None, "deviceName": "/My Company/Test Child Domain 1/NS9500_2"},
{"sensorId": 1006, "peerSensor": "denali-2", "deviceName": "/My Company/Test Child Domain 1/denali-1"},
{"sensorId": 1007, "peerSensor": "denail-1", "deviceName": "/My Company/Test Child Domain 1/denali-2"}]}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1345
82| IPS Inspection Allowlist Resource
Resource URL
GET /domainnameexceptions/ipsinspectionallowlist
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of dneDetail :
lastUpdated Details of the time and username under which the domain name exception was added String
1346 McAfee Network Security Platform 10.1.x Manager API Reference Guide
82| IPS Inspection Allowlist Resource
Example
Request
GET https://<NSM_IP>/sdkapi/domainnameexceptions/ipsinspectionallowlist
Response
{
'dneDetail': [{
'id': 10118,
‘state’: ‘E’,
'domainName':'www.google.com', ‘comment’: ‘Google’
‘domainType’: ‘C’,
'lastUpdated': 'Jan 13 6:35 (admin)'
},
{
'id': 10119,
‘state’: ‘E’,
'domainName':'www.abc.com', ‘comment’: ‘abc domain’
‘domainType’: ‘C’,
'lastUpdated': 'Jan 13 6:39 (admin)'
},
{
'id': 10120,
‘state’: ‘D’,
'domainName':'www.yahoo.com', ‘comment’: ‘ ’
‘domainType’: ‘C’,
'lastUpdated': 'Jan 13 6:45 (admin)'
}]
}
Error Information
None
Resource URL
GET /domainnameexceptions/ipsinspectionallowlist/IPSDNEDetail/<domainName>
Request Parameters
URL Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1347
82| IPS Inspection Allowlist Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Details of dneDetail :
lastUpdated Details of the time and username under which the domain name exception was added String
Example
Request
GET https://<NSM_IP>/domainnameexceptions/ipsinspectionallowlist/IPSDNEDetail/www.google.com
Response
{
'dneDetail': [{
'id': 10118,
‘state’: ‘E’,
'domainName':'www.google.com', ‘comment’: ‘Google’
‘domainType’: ‘C’,
'lastUpdated': 'Jan 13 6:35 (admin)'
},
1348 McAfee Network Security Platform 10.1.x Manager API Reference Guide
82| IPS Inspection Allowlist Resource
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
POST /domainnameexceptions/ipsinspectionallowlist
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1349
82| IPS Inspection Allowlist Resource
Example
Request
POST https://%3CNSM_IP%3E/sdkapi/domainnameexceptions/ipsinspectionallowlist
Payload
“state”: “E”,
"domainName": "www.google1.com",
"comment": "updated domain"
}
Error Information
Response
{
"createdResourceId": 10010
}
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
POST /domainnameexceptions/ipsinspectionallowlist/import
1350 McAfee Network Security Platform 10.1.x Manager API Reference Guide
82| IPS Inspection Allowlist Resource
Request Parameters
URL Parameters: None
Details of BodyPart[0]:
BodyPart[0] Holds the DNE file element object Application/json object Yes
Details of DNEFileElement:
Details of BodyPart[1]:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1351
82| IPS Inspection Allowlist Resource
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Request
POST https://%3CNSM_IP%3E/sdkapi/domainnameexceptions/ipsinspectionallowlist/import
Payload
----Boundary_1_12424925_1353496814940
Content-Type: application/json
----Boundary_1_12424925_1353496814940
Content-Type: application/octet-stream
Error Information
Response
{
“status”:1
}
1352 McAfee Network Security Platform 10.1.x Manager API Reference Guide
82| IPS Inspection Allowlist Resource
S.No HTTP Error Code SDK API errorId SDK API errorMessage
2 500 1001 Invalid file format. Import supported for CSV files only
Resource URL
GET /domainnameexceptions/ipsinspectionallowlist/export
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/domainnameexceptions/ipsinspectionallowlist/export
Response
{
byteStream":
"www.google.com,\nwww.yahoo.com,\nwww.abc.com,\nwww.test1.com,\nwww.test2.com"
}
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1353
82| IPS Inspection Allowlist Resource
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
PUT /domainnameexceptions/ipsinspectionallowlist
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
1354 McAfee Network Security Platform 10.1.x Manager API Reference Guide
82| IPS Inspection Allowlist Resource
Example
Request
PUT https://%3CNSM_IP%3E/sdkapi/domainnameexceptions/ipsinspectionallowlist
Payload
{
"state": "E",
"oldDomainName": "www.google2.com",
"domainName": "www.google3.com",
"comment": "updated domain"
}
Response
{
“status”:1
}
Error Information
Following error codes are returned by this URL:
HTTP Error
S.No Code SDK API errorId SDK API errorMessage
2 500 1001 Internal error message: Domain name is not found <domainName>
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1355
82| IPS Inspection Allowlist Resource
Resource URL
DELETE /domainnameexceptions/ipsinspectionallowlist
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://%3CNSM_IP%3E/sdkapi/domainnameexceptions/ipsinspectionallowlist
Payload
{
"domainName": ["www.google.com",
"www.abc.com",
"www.test.com"]
}
Response
{
“status”:1
}
Error Information
Following error codes are returned by this URL:
1356 McAfee Network Security Platform 10.1.x Manager API Reference Guide
82| IPS Inspection Allowlist Resource
HTTP Error
S.No Code SDK API errorId SDK API errorMessage
3 500 1001 Deletion failed: Domain name <domainName> does not exist.
4 500 1001 One or more of the selected domain name is a default domain, which
cannot be deleted.
Resource URL
DELETE /domainnameexceptions/ipsinspectionallowlist/all
Request Parameters
URL Parameters: None
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://%3CNSM_IP%3E/sdkapi/domainnameexceptions/ipsinspectionallowlist/all
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1357
82| IPS Inspection Allowlist Resource
Payload
None
Response
{
“status”:1
}
Error Information
Following error code is returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
PUT /domainnameexceptions/ipsinspectionallowlist/bulkUpdate
Request Parameters
URL Parameters: None
state State of the domain names. Either "E" or "D". String Yes
Following fields are returned if the request parameters are correct, otherwise error details are returned.
1358 McAfee Network Security Platform 10.1.x Manager API Reference Guide
82| IPS Inspection Allowlist Resource
Example
Request
PUT https://<NSM_IP>/sdkapi/domainnameexceptions/ipsinspectionallowlist/bulkUpdate
Payload
{
"state": “D”
“entryIDs”: [10118,10119]
}
Response
{
“status”:1
}
S.No HTTP Error Code SDK API errorId SDK API errorMessage
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1359
83| SSL Exception Rules
Resource URL
GET /domain/<domainId>/outboundsslexceptions
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
1360 McAfee Network Security Platform 10.1.x Manager API Reference Guide
83| SSL Exception Rules
targetHostName List of the objects in the target host names rule Array
resourceType Indicates the type of interface on which the Ignore Rule is created. The possible values Number
include:
• 0: The resource type is domain (for rules defined at the domain level)
• 1: The resource type is Sensor (for rules defined that the Sensor level)
• 2: The resource type is Vids (for rules defined at the interface and the sub-interface
level)
• 3: The resource type is NTBA_ZONE (for rules defined at NTBA inside and outside
zones)
• 4: The resource type is NTBA_SENSOR (for rules defined at NTBA level)
• 5: The resource type is NTBA_DOMAIN
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1361
83| SSL Exception Rules
AttackerEndPoint Attacker rule objects on which the ignore rules will be applied. Array of string
TargetEndPoint Target rule objects on which the ignore rules will be applied. Array of string
Request
GET https://<NSM_IP>/sdkapi/domain/0/outboundsslexceptions
Response
{
"rules":[{"id":176,"state":"ENABLED","name":"test","attack":null,"resource":[],"attacker":
{"AttackerEndPoint":["FireWall_IPv4_Dst_15_1_7_251"],
"AttackerPort":"ANY","AttackerPortNumber":null},"target":{"TargetEndPoint":
["FireWall_IPv4_Dst_15_1_7_251"],"TargetPort":"ANY",
"TargetPortNumber":null},"targetHostName":[],"targetUrlCategories":["Entertainment"],"lastUpdatedByTime":
1519627703000,
"lastUpdatedByUserName":"admin","comment":"test","ownerDomain":"My Company"}]
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
1362 McAfee Network Security Platform 10.1.x Manager API Reference Guide
83| SSL Exception Rules
S.No HTTP Error Code SDK API errorId SDK API errorMessage
Resource URL
GET /domain/<domainId>/outboundsslexceptions/<ruleId>
Request Parameters
URL Parameters:
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1363
83| SSL Exception Rules
targetHostName List of the objects in the target host names rule Array
resourceType Indicates the type of interface on which the Ignore Rule is created. The possible values Number
include:
• 0: The resource type is domain (for rules defined at the domain level)
• 1: The resource type is Sensor (for rules defined that the Sensor level)
• 2: The resource type is Vids (for rules defined at the interface and the sub-interface
level)
• 3: The resource type is NTBA_ZONE (for rules defined at NTBA inside and outside
zones)
• 4: The resource type is NTBA_SENSOR (for rules defined at NTBA level)
• 5: The resource type is NTBA_DOMAIN
1364 McAfee Network Security Platform 10.1.x Manager API Reference Guide
83| SSL Exception Rules
AttackerEndPoint Attacker rule objects on which the ignore rules will be applied. Array of string
TargetEndPoint Target rule objects on which the ignore rules will be applied. Array of string
Payload
None
Request
GET https://%3CNSM_IP%3E/sdkapi/domain/0/outboundsslexceptons/101
Response
{
"id":101,"state":"ENABLED","name":"test","attack":null,"resource":[],"attacker":{"AttackerEndPoint":
["FireWall_IPv4_Dst_15_1_7_251"],
"AttackerPort":"ANY","AttackerPortNumber":""},"target":{"TargetEndPoint":
["FireWall_IPv4_Dst_15_1_7_251"],"TargetPort":"ANY",
"TargetPortNumber":""},"targetHostName":[],"targetUrlCategories":["Entertainment"],"lastUpdatedByTime":
1519627703000,
"lastUpdatedByUserName":"admin","comment":"test","ownerDomain":"My Company"
}
Error Information
Following error codes are returned by this URL:
S.No HTTP Error Code SDK API errorId SDK API errorMessage
2 404 1408 Invalid rule id or provided rule id is not visible to this domain
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1365
83| SSL Exception Rules
Resource URL
POST /domain/<domainId>/outboundsslexceptions
Request Parameters
URL Parameters:
Following fields are returned if the request parameters are correct, otherwise error details are returned.
attacker List of the objects in the source network rule Object Yes
target List of the objects in the destination network rule Object Yes
targetHostName List of the objects in the target host names rule Array Yes
1366 McAfee Network Security Platform 10.1.x Manager API Reference Guide
83| SSL Exception Rules
AttackerEndPoint Attacker rule objects on which the ignore rules will be applied. Array of string Yes
TargetEndPoint Target rule objects on which the ignore rules will be applied. Array of string Yes
Following fields are returned if the request parameters are correct, otherwise error details are returned.
createdResourceId Set to the ID of the rule if the operation was successful Number
Example
Request
POST https://%3CNSM_IP%3E/sdkapi/domain/0/outboundsslexceptions
Payload
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1367
83| SSL Exception Rules
{
"state": "ENABLED",
"name": "test1",
"attack": null,
"resource": [],
"attacker": {
"AttackerEndPoint": [
"FireWall_IPv4_Dst_15_1_7_251"
]
},
"target": {
"TargetEndPoint": [
"FireWall_IPv4_Dst_15_1_7_251"
]
},
"targetHostName": [],
"targetUrlCategories": [
"Entertainment"
],
"comment": "test"
}
Response
{
"createdResourceId": 101
}
Error Information
Following error codes are returned by this URL:
2 400 1720 Invalid rule object/rule object is not visible in this domain
3 400 2513 Name must only contain letters, numerical, spaces, commas, periods,
hyphen, or an underscore
5 400 1433 This rule is invalid because it matches all alerts. Please specify at least one
alert criterion.
7 400 1001 Ignore Rule with the same name already exists
1368 McAfee Network Security Platform 10.1.x Manager API Reference Guide
83| SSL Exception Rules
8 400 1435 The same combination of IPv4 and IPv6 should be used in the attacker
and the target endpoints.
Resource URL
PUT /domain/<domainId>/outboundsslexceptions/<ruleId>
Request Parameters
URL Parameters:
Following fields are returned if the request parameters are correct, otherwise error details are returned.
attacker List of the objects in the source network rule Object Yes
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1369
83| SSL Exception Rules
target List of the objects in the destination network rule Object Yes
targetHostName List of the objects in the target host names rule Array Yes
AttackerEndPoint Attacker rule objects on which the ignore rules will be applied. Array of string Yes
TargetEndPoint Target rule objects on which the ignore rules will be applied. Array of string Yes
Following fields are returned if the request parameters are correct, otherwise error details are returned.
1370 McAfee Network Security Platform 10.1.x Manager API Reference Guide
83| SSL Exception Rules
Request
PUT https://%3CNSM_IP%3E/sdkapi/domain/0/outboundsslexceptions/101
Payload
{
"state": "ENABLED",
"name": "test2",
"attack": null,
"resource": [],
"attacker": {
"AttackerEndPoint": [
"FireWall_IPv4_Dst_15_1_7_251"
]
},
"target": {
"TargetEndPoint": [
"FireWall_IPv4_Dst_15_1_7_251"
]
},
"targetHostName": [],
"targetUrlCategories": [
"Entertainment"
],
"comment": "test"
}
Response
{
“status”:1
}
Error Information
Following error codes are returned by this URL:
2 400 1720 Invalid rule object/rule object is not visible in this domain
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1371
83| SSL Exception Rules
3 400 2513 Name must only contain letters, numerical, spaces, commas, periods,
hyphen, or an underscore
5 400 1433 This rule is invalid because it matches all alerts. Please specify at least one
alert criterion.
7 400 1001 Ignore Rule with the same name already exists
8 400 1435 The same combination of IPv4 and IPv6 should be used in the attacker
and the target endpoints.
Resource URL
DELETE /domain/<domainId>/outboundsslexceptions/<ruleId>
Request Parameters
URL Parameters:
1372 McAfee Network Security Platform 10.1.x Manager API Reference Guide
83| SSL Exception Rules
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Example
Request
DELETE https://%3CNSM_IP%3E/sdkapi/domain/0/outboundsslexceptions/101
Error Information
Response
{
"status": 1
}
S.No HTTP Error Code SDK API errorId SDK API errorMessage
2 404 1408 Invalid rule id or provided rule id is not visible to this domain
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1373
84| Dashboard Monitors
Dashboard Monitors
Get Top Active Botnets
This URL retrieves the top active botnets.
Resource URL
GET /alerts/TopN/active_botnets >
Request Parameters
URL Parameters: None
Query Parameters:
Data
Field Name Description Type Mandatory
duration Indicates the start time for the alerts. The default value is LAST_14_DAYS. String No
Duration can be:
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
• LAST_12_HOURS
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
Response Parameters
Following fields are returned.
1374 McAfee Network Security Platform 10.1.x Manager API Reference Guide
84| Dashboard Monitors
Example
Request
GET https://<NSM_IP>/sdkapi/alerts/TopN/active_botnets?duration=LAST_14_DAYS
Payload
None
Response
{
"TopActiveBotnetsList": [{
"botnet": "Carberp",
"eventCount": 0
},
{
"botnet": "Darkness",
"eventCount": 0
},
{
"botnet": "Yzf",
"eventCount": 0
}]
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1375
84| Dashboard Monitors
Resource URL
GET /alerts/TopN/attack_applications
Request Parameters
URL Parameters: None
Query Parameters:
Data
Field Name Description Type Mandatory
duration Indicates the start time for the alerts. The default value is LAST_14_DAYS. String No
Duration can be:
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
• LAST_12_HOURS
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
Response Parameters
Following fields are returned.
1376 McAfee Network Security Platform 10.1.x Manager API Reference Guide
84| Dashboard Monitors
Example
Request
GET https://<NSM_IP>/sdkapi/alerts/TopN/attack_applications?duration=LAST_14_DAYS
Payload
None
Response
{
"TopAttackApplicationsList": [{
"applicationName": "PostgreSQL",
"attackCount": 2
}]
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /alerts/TopN/attack_subcategories
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1377
84| Dashboard Monitors
Request Parameters
URL Parameters: None
Query Parameters:
Data
Field Name Description Type Mandatory
duration Indicates the start time for the alerts. The default value is LAST_14_DAYS. String No
Duration can be:
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
• LAST_12_HOURS
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
Response Parameters
Following fields are returned.
TopAttackSubCategoriesList Array
List of top attack subcategories
1378 McAfee Network Security Platform 10.1.x Manager API Reference Guide
84| Dashboard Monitors
Example
Request
GET https://<NSM_IP>/sdkapi/alerts/TopN/attack_subcategories?duration=LAST_14_DAYS
Payload
None
Response
{
"TopAttackSubCategoriesList":
[{
"attackSubcategory":"restricted-application","attackCount":214910},
{"attackSubcategory":"protocol-violation","attackCount":151135},
{"attackSubcategory":"dos","attackCount":99870},
{"attackSubcategory":"audit","attackCount":62959},
{"attackSubcategory":"write-exposure","attackCount":40540},
{"attackSubcategory":"pup","attackCount":37059},
{"attackSubcategory":"botnet","attackCount":35194},
{"attackSubcategory":"privileged-access","attackCount":30411},
{"attackSubcategory":"code-execution","attackCount":30263},
{"attackSubcategory":"buffer-overflow","attackCount":24166
}]
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /alerts/TopN/attacker_countries
Request Parameters
URL Parameters: None
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1379
84| Dashboard Monitors
Query Parameters:
Data
Field Name Description Type Mandatory
duration Indicates the start time for the alerts. The default value is LAST_14_DAYS. String No
Duration can be:
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
• LAST_12_HOURS
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
Response Parameters
Following fields are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/alerts/TopN/attacker_countries?duration=LAST_14_DAYS
1380 McAfee Network Security Platform 10.1.x Manager API Reference Guide
84| Dashboard Monitors
Payload
None
Response
{
"TopAttackerCountriesList":
[{
"countryName":"Japan","attackCount":231486.0},
{"countryName":"United States","attackCount":126461.0},
{"countryName":"France","attackCount":48914.0},
{"countryName":"China","attackCount":29678.0},
{"countryName":"Australia","attackCount":25757.0},
{"countryName":"Bosnia and Herzegovina","attackCount":6395.0},
{"countryName":"Spain","attackCount":6276.0},
{"countryName":"Taiwan","attackCount":6107.0},
{"countryName":"Canada","attackCount":3204.0
}]
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /alerts/TopN/attackers
Request Parameters
URL Parameters: None
Query Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1381
84| Dashboard Monitors
Data
Field Name Description Type Mandatory
duration Indicates the start time for the alerts. The default value is LAST_14_DAYS. String No
Duration can be:
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
• LAST_12_HOURS
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
Response Parameters
Following fields are returned.
TopAttackersList Array
List of top attackers
Example
Request
1382 McAfee Network Security Platform 10.1.x Manager API Reference Guide
84| Dashboard Monitors
GET https://<NSM_IP>/sdkapi/alerts/TopN/attackers?duration=LAST_14_DAYS
Payload
None
Response
{
{"TopAttackersList":
[{"attackerIP":"88.174.38.117","DNSName":"loy01-1-88-174-38-117.fbx.proxad.net.",
"attackCount":35176},
{"attackerIP":"172.16.230.71","DNSName":"---","attackCount":25852},
{"attackerIP":"1.1.1.9","DNSName":"---","attackCount":18876},
{"attackerIP":"172.16.195.37","DNSName":"---","attackCount":
18354},
{"attackerIP":"133.35.136.9","DNSName":"nu-133-35-136-9.niigata-u.ac.jp.",
"attackCount":14345},
{"attackerIP":"192.168.1.92","DNSName":"---","attackCount":12860},
{"attackerIP":"114.149.38.168","DNSName":"---","attackCount":
11817},
{"attackerIP":"133.35.72.14","DNSName":"nu-133-35-072.14.niigata-u.ac.jp.",
"attackCount":11065},
{"attackerIP":"2.2.88.8","DNSName":"---","attackCount":10337},
{"attackerIP":"134.154.168.205","DNSName":"---","attackCount":10105}]}
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /alerts/TopN/attacks
Request Parameters
URL Parameters: None
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1383
84| Dashboard Monitors
Query Parameters:
Data
Field Name Description Type Mandatory
duration Indicates the start time for the alerts. The default value is LAST_14_DAYS. String No
Duration can be:
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
• LAST_12_HOURS
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
Response Parameters
Following fields are returned.
TopAttacksList Array
List of top attacks
Example
Request
GET https://<NSM_IP>/sdkapi/alerts/TopN/attacks?duration=LAST_14_DAYS
1384 McAfee Network Security Platform 10.1.x Manager API Reference Guide
84| Dashboard Monitors
Payload
None
Response
{
"TopAttacksList":[{"attackName":"NETBIOS-SS:
Microsoft Windows SMB Client Race Condition
Vulnerability","attackCount":84637.0},
{"attackName":"HTTP: KeepAlive Request
Detected","attackCount":62959.0},
{"attackName":"SSL: Client-Initiated Key Renegotiation
Detected","attackCount":56981.0},
{"attackName":"P2P: BitTorrent Meta-Info
Retrieving","attackCount":52976.0},
{"attackName":"P2P: Ares/Warez-Gnutella Traffic
Detected","attackCount":52540.0},
{"attackName":"SSL: Server-Initiated Key Renegotiation
Detected","attackCount":41306.0},
{"attackName":"IPv4: TCP Session Hijacking Attempt
Detected","attackCount":40540.0},
{"attackName":"HTTP: Carberp Trojan Traffic
Detected","attackCount":32008.0},
{"attackName":"P2P: BitTorrent File Transfer
HandShaking","attackCount":21072.0},
{"attackName":"HTTP: IIS root.exe Execute
Command","attackCount":20739.0}]
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /alerts/TopN/highrisk_hosts
Request Parameters
URL Parameters: None
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1385
84| Dashboard Monitors
Query Parameters:
Data
Field Name Description Type Mandatory
duration Indicates the start time for the alerts. The default value is LAST_14_DAYS. String No
Duration can be:
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
• LAST_12_HOURS
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
Response Parameters
Following fields are returned.
TopHighRiskHostsList Array
List of top highrisk hosts
1386 McAfee Network Security Platform 10.1.x Manager API Reference Guide
84| Dashboard Monitors
Example
Request
GET https://<NSM_IP>/sdkapi/alerts/TopN/highrisk_hosts?duration=LAST_14_DAYS
Payload
None
Response
{
"TopHighRiskHostsList":[]
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /alerts/TopN/malware_downloads
Request Parameters
URL Parameters: None
Query Parameters:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1387
84| Dashboard Monitors
Data
Field Name Description Type Mandatory
duration Indicates the start time for the alerts. The default value is LAST_14_DAYS. String No
Duration can be:
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
• LAST_12_HOURS
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
Response Parameters
Following fields are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/alerts/TopN/malware_downloads?duration=LAST_14_DAYS
Payload
1388 McAfee Network Security Platform 10.1.x Manager API Reference Guide
84| Dashboard Monitors
None
Response
{
"TopMalwareDownloadsList":[]
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /alerts/TopN/target_countries
Request Parameters
URL Parameters: None
Query Parameters:
Data
Field Name Description Type Mandatory
duration Indicates the start time for the alerts. The default value is LAST_14_DAYS. String No
Duration can be:
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
• LAST_12_HOURS
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1389
84| Dashboard Monitors
Data
Field Name Description Type Mandatory
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
Response Parameters
Following fields are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/alerts/TopN/target_countries?duration=LAST_14_DAYS
Response
1390 McAfee Network Security Platform 10.1.x Manager API Reference Guide
84| Dashboard Monitors
{
"TopTargetCountriesList":
[{
"countryName":"Japan","attackCount":174039},
{"countryName":"United States","attackCount":168318},
{"countryName":"China","attackCount":37652},
{"countryName":"Australia","attackCount":25651},
{"countryName":"India","attackCount":22705},
{"countryName":"Germany","attackCount":9211},
{"countryName":"Venezuela","attackCount":6884},
{"countryName":"Russia","attackCount":6720},
{"countryName":"Bosnia and Herzegovina","attackCount":6478},
{"countryName":"Netherlands","attackCount":6109
}]
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /alerts/TopN/targets
Request Parameters
URL Parameters: None
Query Parameters:
Data
Field Name Description Type Mandatory
duration Indicates the start time for the alerts. The default value is LAST_14_DAYS. String No
Duration can be:
• LAST_5_MINUTES
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1391
84| Dashboard Monitors
Data
Field Name Description Type Mandatory
• LAST_1_HOUR
• LAST_6_HOURS
• LAST_12_HOURS
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
Response Parameters
Following fields are returned.
Example
Request
GET https://<NSM_IP>/sdkapi/alerts/TopN/targets?duration=LAST_14_DAYS
Response
1392 McAfee Network Security Platform 10.1.x Manager API Reference Guide
84| Dashboard Monitors
{
"TopTargetsList":
[{"targetIP":"203.191.225.34","DNSName":"---","attackCount":36187},
{"targetIP":"192.168.3.2","DNSName":"---","attackCount":35780},
{"targetIP":"203.191.225.54",
"DNSName":"---","attackCount":27252},{"targetIP":"203.191.225.56",
"DNSName":"---","attackCount":24170},
{"targetIP":"203.191.225.50","DNSName":"---",
"attackCount":18491},
{"targetIP":"1.1.1.10","DNSName":"---","attackCount":16578},
{"targetIP":"203.191.225.59","DNSName":"---","attackCount":15097},
{"targetIP":"172.16.195.24",
"DNSName":"---","attackCount":14687},
{"targetIP":"134.154.170.251","DNSName":"---",
"attackCount":14556},
{"targetIP":"1.1.55.79","DNSName":"---","attackCount":13238}]
}
Error Information
Following error codes are returned by this URL:
Resource URL
GET /alerts/TopN/unblocked_malware_downloads
Request Parameters
URL Parameters:
Data
Field Name Description Type Mandatory
duration Indicates the start time for the alerts. The default value is LAST_14_DAYS. String No
Duration can be:
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
• LAST_12_HOURS
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1393
84| Dashboard Monitors
Data
Field Name Description Type Mandatory
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
Response Parameters
Following fields are returned.
TopUnblockedMalwareDownloadsList Array
List of top unblocked malware downloads
Example
Request
GET https://<NSM_IP>/sdkapi/alerts/TopN/unblocked_malware_downloads?duration=LAST_14_DAYS
Payload
None
Response
{
"TopUnblockedMalwareDownloadsList":[]
}
1394 McAfee Network Security Platform 10.1.x Manager API Reference Guide
84| Dashboard Monitors
Error Information
Following error codes are returned by this URL:
Resource URL
GET /alerts/TopN/endpoint_executables
Request Parameters
URL Parameters: None
Query Parameters:
Data
Field Name Description Type Mandatory
duration Indicates the start time for the alerts. The default value is String No
LAST_14_DAYS. Duration can be:
• LAST_5_MINUTES
• LAST_1_HOUR
• LAST_6_HOURS
• LAST_12_HOURS
• LAST_24_HOURS
• LAST_48_HOURS
• LAST_7_DAYS
• LAST_14_DAYS
• attackCount
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1395
84| Dashboard Monitors
Data
Field Name Description Type Mandatory
• endpointcount
• malwareConfAny
• malwareConfHigh
• any
• block
• allow
• unclassified
Response Parameters
Following fields are returned.
1396 McAfee Network Security Platform 10.1.x Manager API Reference Guide
84| Dashboard Monitors
Example
Request
GET https://<NSM_IP>/sdkapi/alerts/TopN/endpoint_executables?duration=LAST_14_DAYS
Response
None
Response
{
"TopEndpointExecutablesList":[]
}
Error Information
Following error codes are returned by this URL:
McAfee Network Security Platform 10.1.x Manager API Reference Guide 1397
85| HTTP Error Codes Reference
3 409 Conflict
1398 McAfee Network Security Platform 10.1.x Manager API Reference Guide
COPYRIGHT
Copyright © 2022 Musarubra US LLC.
McAfee and the McAfee logo are trademarks or registered trademarks of McAfee, LLC or its subsidiaries in the US and other countries. Other
marks and brands may be claimed as the property of others.