Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Other documents in the Knowlede Base showing how to produce equivalent results have been written for PHP 7 (which produces HTML output), PowerShell and for Python

The REST API allows users to query the iQSonar results directly using the web client protocol. The results are returned in JSON format.

...

Step-by-step guide

Prerequisites:

PERL - this is installed as part of almost all Unix distributions. A free version called Strawberry Perl, and a commercial implementation from Active State called ActivePerl are available for Windows.

  • You need to know the URL for you iQSonar install - in this example our host is vm-mike-2k12a
  • You need credentials for the iQSonar install - in this example we use the default login admin / password
  • PERL - this is installed as part of almost all Unix distributions. A free version called Strawberry Perl, and a commercial implementation from Active State called ActivePerl are available for Windows.
  • CPAN Modules used: LWP, JSON::XS


Step One: Connect to the REST API on our iQSonar instance.

...

  • The URL of the iQSonar host (in this example we use a host called vm-mike-2k12a )
  • The “realm” for the security credentials (iQSonar uses iQSonar RestAPI Realm )
  • The username and password (in this example we’re using the installation default credentials username “admin” password “password”; in a real world deployment you should always change your passwords!)

...