Pangolin icon

Pangolin

Interact with the Pangolin API

Actions142

Resource → Create a resource for a site.

AI-generated

Summary

Create a new resource for a specified site within an organization by sending a PUT request with the resource details in the body.

Inputs

  • orgId (required) — The ID of the organization under which the site exists.
  • siteId (required) — The ID of the site where the resource will be created.
  • body (required) — A JSON object containing the properties defining the resource. Required fields typically include 'name' (string), 'protocol' (tcp or udp), 'proxyPort' (number), 'destinationPort' (number), 'destinationIp' (string), and 'enabled' (boolean).
  • options — Optional settings including 'Raw Response' to return the full API response instead of processing the data into individual items.

Output shape

a single JSON object representing the newly created resource or the full raw response if requested.

If 'Raw Response' option is enabled, the entire response from the Pangolin API is returned as-is. Otherwise, the response is structured as a JSON object representing the created resource. Errors during execution are returned as error messages if 'Continue On Fail' is enabled.

Discussion