Files
mukul975 c21af3347e Complete folder anatomy for all 649 cybersecurity skills + update LICENSE to Mahipal
- 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
2026-03-11 00:22:12 +01:00

43 lines
1.1 KiB
Markdown

# 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
```bash
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 |