v1beta
Double column
curl
API
CLI
API
CLI

POST /v1beta/projects/{project}/services/{service}/security

Example request

request body

curl

curl --header "Content-Type: application/json" \
  --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
  --request POST \
  --data '{"credentials":[{"username":"admin","password":"password123","ports":["port-1"],"type":"basic-auth"}],"policies":[{"addresses":["127.0.0.1"],"action":"DENY","ports":["port-1"]}]}' \
  https://api.northflank.com/v1beta/projects/{project}/services/{service}/security

Example response

200 OK

success

Example response

404 Not Found

The security rules reference a port that does not exist on this service.

© 2021 Northflank Ltd. All rights reserved.

TermsPrivacy

contact@northflank.com