Notifications
Clear all
Topic starter
The OPS (Open Progranmrability System) function of Huawei network equipment uses the HTTP protocol method to access the management objects of network equipment. To facilitate users to write scripts, Huawei provides Python script templates for the OPS function.
The following is the internal call method rest_call of the OPSCornection class in the OPS script template. Which of the following descriptions is correct?
- A . The response.status in the rest_call method is the status code
B. The response.reason in the rest_call method is the reason phrase used to interpret the status code
C. The parameter method in rest_call (self, method, uri, req_data), the value can be DELETE, GET, SET, CREATE
D. The values of self.host and self.port in the rest_call method are "localhost".80 respectively
Suggested Answer: C
Posted : 09/01/2023 8:32 pm