QuestionQ280

Understanding and Using APIs

Refer to the exhibit.

Question Image

The exhibit shows the definition of a YANG module and a RESTCONF query sent to a Cisco IOS XE device. Why does the RESTCONF interface return a 204 status code?

  • A The query retrieved the logging severity level.
  • B The query updated the logging severity level or created it if not present on the device.
  • C The query failed at retrieving the logging severity level.
  • D The query failed to set the logging severity level due to an invalid path.
Explanation

A RESTCONF PATCH request applies a merge edit to the target configuration data. The payload sets the logging/monitor/severity leaf to alerts, updating that value or creating it when absent. A successful PATCH operation with no response content returns HTTP 204 No Content.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!