Public Resource
Resource Target

Create a target for a resource.

put/public-resource/{resourceId}/target

Request

  • Base URL: https://api.pangolin.net/v1
  • URL: https://api.pangolin.net/v1/public-resource/{resourceId}/target
  • Auth: HTTP bearer

Path parameters

resourceIdinteger required

Request body

siteIdinteger required
ipstring required
mode'http' | 'tcp' | 'udp' | 'ssh' | 'rdp' | 'vnc'
methodstring nullable
portinteger required
enabledboolean
hcEnabledboolean
hcPathstring nullable
hcSchemestring nullable
hcModestring nullable
hcHostnamestring nullable
hcPortinteger nullable
hcIntervalinteger nullable
hcUnhealthyIntervalinteger nullable
hcTimeoutinteger nullable
hcFollowRedirectsboolean nullable
hcMethodstring nullable
hcStatusinteger nullable
hcTlsServerNamestring nullable
hcHealthyThresholdinteger nullable
hcUnhealthyThresholdinteger nullable
pathstring nullable
pathMatchType'exact' | 'prefix' | 'regex' | 'null' nullable
rewritePathstring nullable
rewritePathType'exact' | 'prefix' | 'regex' | 'stripPrefix' | 'null' nullable
priorityinteger nullable

Response

Successful response

dataobject nullable required
successboolean required
errorboolean required
messagestring required
statusnumber required

Changes

No recorded changes to this operation across all 1 revision of this API.