v1
Double column
API
CLI
JS Client

Addons /

Update addon security rules

Updates the security rules for the addon.

Required permission

Project > Addons > General > Update

Path parameters

    • projectId

      string required
      ID of the project
    • addonId

      string required
      ID of the addon

Request body

  • {object}
    • ipPolicies

      [array] required
      An array of IP policy rules.
      • {object}
        Data about an IP policy rule.
        • address

          string required
          An IP address used by this rule.
        • action

          string
          The action for this rule.
          one of
          ALLOW, DENY

Response body

  • {object}
    Response object.
    • data

      {object} required
      Result data.
    API
    CLI
    JS Client

    POST /v1/projects/{projectId}/addons/{addonId}/security

    Example request

    Request body
    curl
    curl --header "Content-Type: application/json" \
      --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
      --request POST \
      --data '{"ipPolicies":[{"address":"127.0.0.1","action":"ALLOW"}]}' \
      https://api.northflank.com/v1/projects/{projectId}/addons/{addonId}/security

    Example response

    200 OK

    The operation was performed successfully.

    JSON

    {
      "data": {}
    }

    © 2024 Northflank Ltd. All rights reserved.