Câu 70: H12-891: HCIE-Datacom
Huawei Open Programmability System (OPS) provides openness and programmability capabilities for network devices and enables users to perform secondary development. To facilitate script compilation, Huawei OPS provides the Python script template. Which of the following statements about the Python script template are co…
Nội dung câu hỏi
Huawei Open Programmability System (OPS) provides openness and programmability capabilities for network devices and enables users to perform secondary development. To facilitate script compilation, Huawei OPS provides the Python script template. Which of the following statements about the Python script template are correct? (Choose three.)
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. The OPSConnection class is used to invoke RESTful APIs. This class defines methods for establishing HTTP connections. You do not need to modify the methods. — đáp án hiện tại
- B. The initialization method of the OPSConnection class is def__init__(self, host, port=80). When the OPSConnection class is initialized in the main() function, the host parameter needs to be set to the IP address of the management interface of the network device to be managed. — đáp án hiện tại
- C. Users need to search for the corresponding URI and the XML content of the HTTP packet body in the RESTful API Reference based on the managed object to be accessed, and modify the Python script template accordingly. — đáp án hiện tại
- D. The OPSConnection class has four methods: create, delete, set, and get, which encapsulate the PUT, DELETE, POST and GET methods of HTTP.
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.