title: How can I limit Icinga2 API permissions to only allow changing a single check result?
body: <p>I've got a backup script that, upon successful completion, calls the Icinga2 REST API via curl (command is below).</p>
  
  <p>This works perfectly well, but I'd like to secure the API user so that it can only change this one check result. I'm not sure what the correct syntax is for the lambda function I need to set for my filter to only allow changing the "backupninja" check result. </p>
  
  <pre><code>object ApiUser "backupninja" {
    password = "&lt;redacted&gt;"
    permissions = [ "actions/process-check-result" ]
    filter = {{ }}
  }
  </code></pre>
  
  <p>My command, if it matters:</p>
  
  <pre><code>curl -s -u $ICINGA2_API_USER:$ICINGA2_API_PASSWORD -H 'Accept: application/json' -X POST "https://$ICINGA2_HOST:$ICINGA2_API_PORT/v1/actions/process-check-result?service=$HOSTNAME\!backupninja" -d '{ "exit_status": 0, "plugin_output": "backupninja completed successfully" }'
  </code></pre>