Targets
Upsert a Target associated with an Upstream
Create or Update a Target associated with an Upstream using ID or target.
put/v2/control-planes/{controlPlaneId}/core-entities/upstreams/{UpstreamIdForTarget}/targets/{TargetId}
Path parameters
UpstreamIdForTargetstring required
ID or target of the Target to lookup
TargetIdstring required
ID of the Target to lookup
Request body
Example request
{
"id": "089292a7-ba3d-4d88-acf0-97b4b2e2621a",
"target": "203.0.113.42",
"weight": 100
}Response
Successfully upserted Target
Example response
{
"id": "089292a7-ba3d-4d88-acf0-97b4b2e2621a",
"target": "203.0.113.42",
"upstream": {
"id": "5f1d7e76-2fed-4806-a6af-869984f025cb"
},
"weight": 100
}