Pangolin icon

Pangolin

Interact with the Pangolin API

Actions142

Resource → Create a target.

AI-generated

Summary

Create a new target associated with a specified resource by sending a PUT request to /resource/{resourceId}/target with the target details in the request body.

Inputs

  • Resource ID (required) — The ID of the resource for which the target is being created.
  • Body (required) — A JSON object containing the target properties such as siteId (required), ip (required), port (required), method, enabled, health check settings (hcEnabled, hcPath, hcScheme, hcMode, hcHostname, hcPort, hcInterval, hcUnhealthyInterval, hcTimeout, hcHeaders, hcFollowRedirects, hcMethod, hcStatus), path, pathMatchType, rewritePath, rewritePathType, and priority.
  • Options — Additional options including 'Raw Response' to return the full response data instead of splitting arrays into individual items.

Output shape

a single record representing the created target object

The response is a single JSON object of the created target. If 'Raw Response' option is enabled, the full response data is returned as is.

Discussion