Was this helpful?


API Platform Base Path: https://api.enterprise.apigee.com/v1/o/{org_name}

API Resource Path:


Description: Modifies the configuration of an existing TargetServer

Verb: PUT
Auth: Basic Auth
Media types:

Overview: Use this method to modify the configuration of an existing TargetServer. The example below toggles a TargetServer configuration from enabled to disabled. This is useful when TargetServers are used in load balancing configurations, and one or more TargetServers need to taken out of rotation periodically. You could also use this API to modify the hostname of an enabled target server.

Sample Request:
$ curl -X PUT -H content-type:application/json \
  -u username:password \
  https://api.enterprise.apigee.com/v1/o/org1/e/prod/targetservers/target1 \
  -d '{
    "host" : "1.mybackendservice.com",
    "isEnabled" : false,
    "port" : 80
Sample Response:
  "host" : "1.mybackendservice.com",
  "isEnabled" : false,
  "name" : "target1",
  "port" : 80

Help or comments?

  • Something's not working: See Apigee Support
  • Something's wrong with the docs: Click Send Feedback in the lower right.
    (Incorrect? Unclear? Broken link? Typo?)