Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: validbest

Exam H12-891_V1.0 All Questions
Exam H12-891_V1.0 All Questions

View all questions & answers for the H12-891_V1.0 exam

Huawei HCIE-Datacom H12-891_V1.0 Question # 49 Topic 5 Discussion

H12-891_V1.0 Exam Topic 5 Question 49 Discussion:
Question #: 49
Topic #: 5

To obtain the token ID of iMaster NCE, you need to send an HTTP request message that includes the following Python code to invoke an iMaster NCE RESTful API.

Which of the following statements is incorrect?

import requests

nbi_name = "demo13@north.com"

nbi_pwd = "CgocVcVe1@"

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=False)


A.

You can run the print(r.json()) command 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 request body is in JSON format.


D.

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


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.