Huawei HCIE-Datacom V1.0 H12-891_V1.0 Question # 31 Topic 4 Discussion

Huawei HCIE-Datacom V1.0 H12-891_V1.0 Question # 31 Topic 4 Discussion

H12-891_V1.0 Exam Topic 4 Question 31 Discussion:
Question #: 31
Topic #: 4

A network administrator needs to retrieve atoken IDfromiMaster NCEusing the following Python code:

import requests

nbi_name = "demol3@north.com"

nbi_pwd = "qqcOVcVel@"

host = "139.9.213.72"

port = "18002"

URI = "/controller/v2/tokens"

post_token_url = "https:// " + host + ":" + port + URI

headers_post = {'Content-Type': 'application/json', 'Accept': 'application/json'}

r = requests.post(post_token_url, headers=headers_post, json={"userName": nbi_name, "password": nbi_pwd}, verify=incorrect)

Which of the following statements is incorrect?


A.

You can run print(r.json()) to display the response message sent from the server.


B.

Token resources are located at https://139.9.213.72:18002/controller/v2/tokens.


C.

The HTTP request uses the GET method to query the token value.


D.

The request body is inJSON format.


Get Premium H12-891_V1.0 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.