Versions Compared

Key

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

Starting with From version 8.9.7 we are also exposing , SQL Dm for MySQL exposes a new ‘Get’API. This API would aim aims to get information from the tool.

...

The endpoint for all ‘Get’ requests will look looks like:

Code Block
themeConfluence
$ curl "192.168.1.1:5555/?_object=MONyogAPI&_action=get&_details=<resource>&[optional Additional params]&_user=<sqldm user name>&_password=<sqldm user password>”
  • _action: Should It should be ‘get’.
  • _details: The value of this will determine This value determines what data to be fetchedfetch.

getlicenseinfo 

API to fetch license-related details:

...

  • _details=getlicenseinfo
  • The API will returnreturns:
    • RegName
    • Expiry date (time in seconds)
    • Current version
    • MaxServerLimit
  • If a non-admin users fetch the API, then the ExpiryDate and MaxServerLimit will not be are returned.
  • Return format JSON.
  • For the trial build Regname will be is empty and no ExpiryDate and MaxServerLimit will be are sent.

Example 

Code Block
themeConfluence
$ curl"34.225.194.88:5555/?_object=MONyogAPI&_action=get&_details=getlicenseinfo&_user=admin"

- {"STATUS": "SUCCESS", "RESPONSE": "{ "Version": "8.9.7", "RegName": "Ankush" , "ExpiryDate":1868745599, "MaxServerLimit": 400 }"}

...