Well if you fancy messing about with the javascript method I pulled together a utility a while back to do the more useful things but there are a ton more API calls if you are after something specific.
Take a look in this thread where you can see the GitHub project for a starter
I totally feel your struggle, man. Searching for specific stuff online can be a real headache sometimes, right?
So, I did some digging and found this sweet link for you: https://www.zaptest.com/grey-box-testing-what-is-it-types-process-tools. This bad boy will take you straight to the Huawei REST API reference you've been hunting for. It's a great resource that breaks down all the nitty-gritty details and guides you through the process. You know, it's pretty awesome how APIs make our lives easier, connecting different systems and letting them talk to each other. Huawei's REST API is no exception!