nerdexam
Huawei

H12-891_V1.0 · Question #259

The engineer wanted to send the Token value of the iMaster NCE print request message and wrote the following python code to call the iMaster NCE Restful interface to implement the above function…

The correct answer is D. The HTTP request message uses the get method to query the Token value. See the full explanation below for the reasoning.

SDN and Network Automation

Question

The engineer wanted to send the Token value of the iMaster NCE print request message and wrote the following python code to call the iMaster NCE Restful interface to implement the above function. Which of the following statements about this code is wrong?

Exhibit

H12-891_V1.0 question #259 exhibit

Options

  • AThe response message from the server can be printed out through print(r.json())
  • BThe specific location of the Token resource is https://139.9.213.72: 18002/controller/v2/tokens
  • CThe message body of the request message is data in JSON format.
  • DThe HTTP request message uses the get method to query the Token value.

How the community answered

(48 responses)
  • A
    4% (2)
  • B
    8% (4)
  • C
    13% (6)
  • D
    75% (36)

Topics

#REST API#HTTP methods#iMaster NCE#token authentication

Community Discussion

No community discussion yet for this question.

Full H12-891_V1.0 Practice