QuestionQ34

Verified网络自动化

Huawei Open Programmability System (OPS) uses HTTP methods to access managed objects and manage network devices. To simplify script compilation, Huawei OPS supplies a Python script template. Which of the following OPSConnection-class methods in the OPS script template are incorrect?

Choose two
Explanation

In the Huawei OPS script template, create() sends a POST request and set() sends a PUT request. Therefore, an implementation that uses PUT for resource creation or POST for resource modification is incorrect. delete() correctly uses DELETE, and get() correctly uses GET.

Learn more

Community Discussion

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