DevNet Associate (DEVASC) v1.0Infrastructure and AutomationEasy

A developer is integrating a custom application with network devices using RESTCONF. The application needs to retrieve a list of all active interfaces from a device. Which HTTP method is typically used in RESTCONF for retrieving resources?

  1. ADELETE
  2. BGET
  3. CPOST
  4. DPUT
Show answer & explanation

Correct answer: B. GET

RESTCONF leverages standard HTTP methods for its operations. To retrieve or read resources (like a list of active interfaces), the HTTP GET method is used. POST is for creating, PUT for updating/replacing, and DELETE for removing resources.

Why the other options are wrong

  • A. DELETE is used to remove resources.
  • C. POST is used to create new resources.
  • D. PUT is used to update or replace existing resources.

RESTCONF GET

In RESTCONF, the HTTP GET method is used to retrieve configuration data, operational state data, or specific resources from a network device.

  • Uses standard HTTP GET method.
  • Retrieves data from the device.
  • Non-modifying operation.
  • Part of RESTCONF's CRUD operations.

Memory trick: RESTCONF maps CRUD to HTTP verbs.

More Infrastructure and Automation questions