Is the Nx Cloud up? Visit our Status Page for the current health and performance of the Nx Cloud.

Status Page

Backup & Restore Database via API

Answered

Comments

7 comments

  • Official comment
    Andrey Terentyev
    • Network Optix team

    Hello Baris,

    1. Yes.

    2. Yes.

    There is a pair of methods.

    /ec2/dumpDatabase

    /ec2/restoreDatabase

    Here is a curl example how to use them:

    curl -v "http://admin:password@localhost:7001/ec2/dumpDatabase?format=json" > file.db
    curl -v -X POST http://admin:password@localhost:7001/ec2/restoreDatabase -H "Content-Type: application/json" -d @file.db

    So, backup file has to be passed as data parameter.

  • Permanently deleted user

    Thank you Andrey. I could not find these methods in the API document. Where could I find documents of these methods (and more) .

    0
  • Andrey Terentyev
    • Network Optix team

    These are not documented, yet.

    For now, if you can't find any API you need, you could ask in Developer forum. We'll try to resolve case by case and reveal if necessary additional methods.

     

    0
  • Daiki Kato

    Hi,

    If I want to Restore Nx Witness after a clean install, do I need to configure New Server first?
    If so, is it possible to configure New Server via API?

    0
  • Andrey Terentyev
    • Network Optix team

    Hi Daiki,

    Yes, you need to configure New Server first.

    Yes, it's possible to configure New Server via API.

    Default credentials are admin/admin

    curl -s -X POST --digest "http://admin:admin@localhost:7001/api/setupLocalSystem" -H "Content-Type: application/json" --data-binary @system_settings.json

    Here is the system_settings.json

    {
    "password":"<new password>",
    "systemName":"<your system name>"
    }

    For more details see built in documentation on /api/setupLocalSystem and /api/systemSettings API functions.

    0
  • Daiki Kato

    Hi Andrey,

    Thank you very much. It worked fine.

    PS: The last "," in system_settings.json is unnecessary, so I deleted it.

    0
  • Andrey Terentyev
    • Network Optix team

    Hi Daiki,

    Thanks, I fixed the comma in my post.

     

    0

Please sign in to leave a comment.