A helper client to interact with F5 iControl APIs.
See F5 iControl REST API documentation for more details
https://devcentral.f5.com/d/icontrol-rest-user-guide
const iControl = require('node-icontrol-client').IControlUtil;
let iControlClient = new iControl({
host: '127.0.0.1',
proto: 'https',
port: 443,
token: 'token value', //Authorization Token for Basic Auth
output: false //Set to true if you want to see output
});
iControlClient.list('/mgmt/tm/net/bwc/policy').then(function(res) {
//Do Something
})
.catch((err) => {
//Do Something
})
- host : F5's hostname
- proto : (Optional) Protocol, either https or http. It will be default to https if not specify
- port: (Optional) TCP/IP port. Default to 443 if not indicated
- ca : CA file content, required if strict mode is set on.
- token: F5 generated basic token. Please refer here on how you can generate a basic auth token.
- output : Set it true to print out console logs
Refer to the examples shared within repository.
Please ensure you have access to a test or development F5 Proxy. You can specify your own testing environment A sample.json has been included to help you kick start the testing
Running the example file
cd example/
node filename.js
Run the following to start unit test
npm test
Run the following to check out the code coverage
npm run testCoverage
Release under GNU GENERAL PUBLIC LICENSE