mirror of
https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git
synced 2026-07-14 03:15:16 +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
43 lines
1.1 KiB
Markdown
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 |
|