OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Profile of elg0ch0 »
  • Show Posts »
  • Messages
  • Profile Info
    • Summary
    • Show Stats
    • Show Posts...
      • Messages
      • Topics
      • Attachments

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

  • Messages
  • Topics
  • Attachments

Messages - elg0ch0

Pages: [1]
1
Tutorials and FAQs / Re: Sample bash script for backups using the API
« on: June 01, 2020, 10:54:46 pm »
It worked.

Thanks!

2
Tutorials and FAQs / Re: Sample bash script for backups using the API
« on: May 29, 2020, 09:58:37 pm »
 Hi,

 I'm trying to back up my OPNSense instance using the REST API but when trying:

Code: [Select]
curl -s -k -u "$key":"$secret" https://$FW/api/backup/backup/download
it returns:

Code: [Select]
{"message":"controller OPNsense\\Core\\Api\\IndexController not found","status":400}
As a test, I tried

Code: [Select]
curl -k -u "$key":"$secret"  https://$FW/api/core/firmware/status
and it works as expected

Currently running on OPNsense 20.1.4-amd64

Any idea what might wrong?

Thanks!

Pages: [1]
OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2