nerdexam
Huawei

H12-891_V1.0 · Question #172

The management objects of Huawei network equipment OPS (Open Programmability System) are accessed through standard HTTP methods. If you want to request a network device to modify the value of a…

The correct answer is B. PUT. PUT is correct because in RESTful API conventions (which Huawei OPS follows), PUT is used to replace or fully update a resource/managed object at a known URI - making it the standard method for modifying an existing object's value. A (POST) is for creating new resources or…

SDN and Network Automation

Question

The management objects of Huawei network equipment OPS (Open Programmability System) are accessed through standard HTTP methods. If you want to request a network device to modify the value of a managed object, which of the following HTTP methods should be used?

Options

  • APOST
  • BPUT
  • CPATCH
  • DGET

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    85% (22)
  • C
    4% (1)
  • D
    8% (2)

Explanation

PUT is correct because in RESTful API conventions (which Huawei OPS follows), PUT is used to replace or fully update a resource/managed object at a known URI - making it the standard method for modifying an existing object's value.

  • A (POST) is for creating new resources or triggering actions, not modifying an existing managed object's value.
  • C (PATCH) partially updates a resource, but Huawei OPS uses PUT for object value modification; PATCH is a less universal method not always implemented in OPS contexts.
  • D (GET) is read-only - it retrieves data without making any changes, so it cannot modify a value.

Memory tip: Think of the CRUD mapping - PUT = Update (the "U" in PUT matches "Update"). When you want to set a managed object to a specific value, PUT puts that value in place.

Topics

#HTTP Methods#REST API#Network Management#OPS

Community Discussion

No community discussion yet for this question.

Full H12-891_V1.0 Practice