Got it

USG 6000 Enable and using API

Latest reply: Jan 3, 2020 08:27:15 572 4 0 0 0

hello everyone, I am working on a system that needs to get information from usg using RestAPI, Actually, I read the documentation about this point but I did not understand how can I use it in my application.

I want to send GET request to the firewall using Http request from my browser directly, but every time  I get error  404 this page not found  


Hello there,
You can refer to https://support.huawei.com/enterprise/en/doc/EDOC1000179526



View more
  • x
  • convention:

Muhanned
Muhanned Created Dec 27, 2019 09:16:59 (0) (0)
thank you for your reply , Actually I applied what I find in this document but I get 404 object not found error , are there any things that I have to do in USG to enable restapi, or it is already enabled by default  
@user_3683044 hello,
you might need to complete basic NGFW function configuration before using the APIs provided by the NGFW. And you can find the guidelines at chapter 6.1 Constructing a Development Environment.
View more
  • x
  • convention:

@chenhui thank you for your reply, I enabled API following the guide which you mentioned on, but still, I can not understand how to send get or post URL, I have USG and I can access its web portal by writing this URL in a browser
https://10.10.0.254:10443.
I enabled API on port 9000
so if I want to send get Request I am using this address
https://10.10.0.254:9000/restconf/data/huawei-smart-link:smart-link/smart-link-profile
but nothings coming and gave me 404 error
so please tell me how can I do that
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

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."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.