Pangolin icon

Pangolin

Interact with the Pangolin API

Actions142

Site → Create a resource for a site.

AI-generated

Summary

Create a new resource within a specific site of an organization by sending a JSON-formatted request body with details such as name, protocol, ports, destination IP, and enabled status.

Inputs

  • orgId (required) — The unique identifier of the organization under which the site exists.
  • siteId (required) — The unique identifier of the site under which the resource will be created.
  • body (required) — A JSON object containing the resource details to create. It must include required fields such as name (string), protocol (tcp or udp), proxyPort (integer), destinationPort (integer), destinationIp (string), and enabled (boolean).
  • options — Optional collection to specify additional request options, such as returning the raw full response instead of splitting arrays into individual items.

Output shape

a single JSON object representing the created resource

The output is the JSON response from the API after creating the resource. If the 'Raw Response' option is set to true, the full response data is returned directly; otherwise, arrays are split into individual items.

Discussion