Pangolin icon

Pangolin

Interact with the Pangolin API

Actions142

Organization → Create a resource for a site.

AI-generated

Summary

Create a new resource associated with a specific site within an organization by sending a PUT request including the resource details in the request body.

Inputs

  • Org ID (required) — The unique identifier of the organization to which the site belongs.
  • Site ID (required) — The unique identifier of the site for which the resource is being created.
  • Body (required) — A JSON object containing the details of the resource to create (e.g., name, protocol, ports, destination IP, enabled status).
  • Options — Optional settings such as 'Raw Response' to return the full response data as received.

Output shape

a single JSON object representing the created resource or the full raw response if Raw Response option is enabled.

The output contains the API response JSON; if the 'Raw Response' option is enabled, the complete API response is returned without splitting arrays into separate items.

Examples

Example 1: Create a resource named 'Example Resource' on site with ID 'site123' for organization 'org456'.

Set Org ID to 'org456', Site ID to 'site123', and provide a JSON body with resource properties such as name, protocol, proxyPort, destinationPort, destinationIp, and enabled flag.

Discussion