hornet icon

hornet

Interact with hornet API

Actions452

Restrictions → Restrictions Ip Post

AI-generated

Summary

Adds an IP address or IP range to the restrictions list for a specified object (user, customer, or partner) in the Hornet security platform.

Inputs

  • object_id (required) — The ID of the object (user, customer, or partner) to which the restriction applies. Sent as a query parameter named object_id. Defaults to 0 if not provided but is required by the node UI.
  • APP-ID (required) — Your application identifier issued by Hornet. Sent as a request header APP-ID.
  • ip (required) — The IP address or CIDR range to restrict. Sent in the request body as a JSON property ip.
  • requestOptions — Advanced HTTP options: batching, proxy, SSL verification, and timeout. These are passed through to the underlying request maker.

Output shape

JSON object returned by the Hornet API after creating the restriction (typically includes the created restriction details or a success status).

The exact structure depends on the Hornet API; the node simply forwards the HTTP response.

Examples

Example 1: Restrict a single IP for a user

Set object_id to the user's numeric ID, provide your APP‑ID, and set ip to e.g. 203.0.113.45. Leave requestOptions at defaults unless you need a proxy or custom timeout.

Links

Discussion