mirror of
https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git
synced 2026-07-11 10:03:42 +03:00
c21af3347e
- Add scripts/agent.py and references/api-reference.md to all remaining skills - Update all 648 LICENSE files: copyright now reads 'Mahipal' - Add implementing-security-monitoring-with-datadog (new skill with full anatomy) - All 649 skills now have: SKILL.md, LICENSE, scripts/agent.py, references/api-reference.md
1.1 KiB
1.1 KiB
API Reference: Palo Alto Networks NGFW (PAN-OS)
PAN-OS XML API
| Endpoint | Method | Description |
|---|---|---|
/api/?type=keygen |
GET | Generate API key |
/api/?type=config&action=get |
GET | Get configuration |
/api/?type=config&action=set |
GET | Set configuration |
/api/?type=op |
POST | Operational commands |
Authentication
GET https://<fw>/api/?type=keygen&user=admin&password=admin
Configuration XPaths
| XPath | Description |
|---|---|
/config/devices/.../vsys/.../rulebase/security/rules |
Security rules |
/config/devices/.../vsys/.../profiles |
Security profiles |
/config/devices/.../deviceconfig/system |
System config |
pan-python Library
pip install pan-python
| Method | Description |
|---|---|
pan.xapi.PanXapi(hostname, api_key) |
Create API client |
xapi.get(xpath) |
Get config element |
xapi.set(xpath, element) |
Set config element |
Key Libraries
| Library | Use |
|---|---|
requests |
REST API calls |
pan-python |
PAN-OS SDK |
xml.etree |
XML response parsing |