H12-891 Web TestEngine demo

Exit VCEDump H12-891 HCIE-Datacom V1.0
Question 18 of 100
0% complete
Q18 Single choice

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:

import requests
nbi_name = "[email protected]"
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)

Which of the following statements is incorrect?

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in