Menu

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.

Show posts Menu

Messages - mije

#1
24.1, 24.4 Legacy Series / toggleRule api
June 27, 2024, 04:32:39 PM
hello, I have read the different articles on the subject but still I can't figure it out. I simply want to disable / enable a rule with the API.
ex :

curl -XPOST -k -u "mykey":"mysecret" https://myfirewall:4443/api/firewall/filter/toggleRule/86833879d5f092ffefd6c7ea13224c43/1

result :

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>411 Length Required</title>
</head>
<body>
  <h1>411 Length Required</h1>
</body>
</html>


with postman :

{
    "result": "failed"
}


I tried several syntax found on the forum, docs, tutorials, but no positive results. However when I make API requests on the aliases it works.
thank you in advance for your help