This function provides the necessary flexbility to make any API call to ANYthing
Highlight text, right-click, select: Make HTTPS Request
This assumes the request is intented for the currently connected device, of which host details are already known.
K13225405: Common iControl REST API command examples
/mgmt/tm/sys/clock
url: /mgmt/tm/sys/clock
{
"url": "/mgmt/tm/sys/clock"
}
/mgmt/tm/net/vlan/
url: /mgmt/shared/authn/login
method: POST
body:
username: user1
password: dobgispet
url: /mgmt/tm/sys/config
method: POST
body:
command: save
/mgmt/tm/sys/
/mgmt/tm/sys/ucs/
{
"url": "/mgmt/shared/authn/login",
"method": "POST",
"body": {
"username": "todai",
"password": "dobgispet"
}
}
The command will detect if the url has "http", if found, it considers it a fully qualified request destined for something outside of a device defined within the extension
Default HTTP method = GET
data, or body, must also include 'POST' HTTP method
https://api.chucknorris.io/jokes/random
url: https://api.chucknorris.io/jokes/random
url: https://broken.extra.io/whah
url: https://postman-echo.com/post
method: POST
data: 'hi'
{
"url": "https://postman-echo.com/post",
"method": "POST",
"data": "hi"
}