Was this helpful?

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

API Resource Path:

/environments/{env_name}/targetservers/{targetserver_name}

Description: Modifies the configuration of an existing TargetServer

Verb: PUT
Auth: Basic Auth
Media types:
application/json
text/xml

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

Sample Request:
$ curl -H "Content-Type:text/xml" -X PUT -d \
'1.mybackendservice.com80false' \
https://api.enterprise.apigee.com/v1/o/{org_name}/environments/test/targetservers/target1 \
-u myname:mypass
Sample Response:
{
  "host" : "1.mybackendservice.com",
  "isEnabled" : false,
  "name" : "target1",
  "port" : 80
}

Add new comment

Provide your email address if you wish to be contacted offline about your comment.
We will not display your email address as part of your comment.

We'd love your feedback and perspective! Please be as specific as possible.
Type the characters you see in this picture. (verify using audio)

Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.