Hey 👋
Yeah, this is a known limitation. On the Cisco Catalyst 9300, the REST interfaces (like RESTCONF / NETCONF) are mainly designed for structured config changes, not full CLI-style operations like configure replace.
👉 That command is more of a CLI-driven workflow, so you usually won’t find a direct REST endpoint for it.
What you can do instead:
1. Use CLI via API (best workaround)
- Use SSH automation with tools like Ansible or Python Paramiko
- Run configure replace just like you would manually
✔ This is the most reliable approach
2. Use NETCONF for config management
- With NETCONF, you can:
- Push full configs
- Use candidate + commit model
✔ More “API-like” but still structured (not exact replace behavior)
3. EEM Script workaround
- Create an Embedded Event Manager (EEM) script on the switch
- Trigger it remotely (via API or CLI)
✔ Useful if you want semi-automation inside the device
Reality check
If your goal is full config replace, REST alone isn’t enough here. Most engineers still mix:
- REST/NETCONF → for small changes
- SSH/CLI → for full replacements
Simple takeaway
👉 REST = structured changes
👉 CLI = full control (like configure replace)