Update target server via management api

Not applicable

The docs

http://docs.apigee.com/management/apis/put/organizations/%7Borg_name%7D/environments/%7Benv_name%7D/...

say that the attribute 'IsEnabled' is optional with default "false".

I think the api does not use the correct default value.

We created a target server with the following document:

{ host: 'google.com',
  isEnabled: false,
  name: 'edge_cli_test',
  port: 80 
}

Reading this entity back confirms that isEnabled is set correctly to false.

Now we are sending the document

{ host: 'google.com',
  name: 'edge_cli_test',
  port: 80 
}

to update the target server.

Reading this entity back delivers

{ host: 'google.com',
  isEnabled: true,
  name: 'edge_cli_test',
  port: 80 }

So, it seems as if the default is "true" instead of "false".

Is it a bug? If yes, either the documentation or the implementation has to be fixed.

Best regards

Achim

0 3 531
3 REPLIES 3

Hello @aabeling

I just checked http://docs.apigee.com/api-services/content/load-balancing-across-backend-servers and it displays that the default value for isEnabled is true.

4570-screen-shot-2017-03-31-at-40542-pm.png

I also checked the link that you provided and I did not see the default value listed on that page. Maybe you pasted in the incorrect link? If you provide the link to the page that has the default value of isEnabled:false, then we will make the correction. Thanks for the feedback.

Hi @swilliams,

If you check the management API documentation for updating a target server, in the request body payload descriptions it is mentioned that the default value for isEnabled is false. If it is wrongly documented then please correct. Ideally if you are adding a new target server then it should be enabled by default.

4571-isenabled-false.png

Thanks!

Thanks, @Mohammed Zuber

I submitted a bug against the docs so we should update it soon.