Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

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 586
3 REPLIES 3