Currently i am leaning Huawei rest API to get details in USG-9520 and USG-9560 firewalls, in the rest API docuement shows below steps required to access the API:
Initiate TCP connection to the API.
If TCP connection success case before 5sec time do authentication.
If authentication success case execute required API methods and get data.
Please clarify my doubts:
How to initiate TCP connection to API? For example Huawei firewall running in https://192.168.10.10:8777 case, can i initate TCP connection to "ipaddress" 192.168.10.10 and Port "8777" ?
If connection success case how to execute authentication http/https request?
Access URL: https://192.168.10.10:8777/username=***&password=*******
with required headers, is this correct?
Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
Politically sensitive content
Content concerning pornography, gambling, and drug abuse
Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."