A network administrator is developing an automation script to interact with a Cisco DNA Center REST API. The script needs to completely replace an existing network device interface configuration resource with a newly provided configuration payload. Which HTTP verb must the administrator use to perform this complete replacement operation?
- HTTP PUTCevap
- BHTTP POST
- CHTTP GET
- DHTTP PATCH
Cevap
HTTP PUT is the correct HTTP verb used to replace an existing REST API resource entirely with a new representation payload.
In REST-based network management APIs, HTTP PUT maps to the Update action in CRUD specifically for overwriting or completely replacing an existing target resource with the provided payload.
Adım Adım Çözüm
Anahtar Kavram
RESTful API HTTP Verb to CRUD Mapping (PUT vs POST/PATCH)