Sorry, I accidentally posted early.
We would like to add the ability to whitelist by requestor IP. We have done this before using the Access Control policy, but this time we would like to load a list of them from Custom Attributes per Developer App so that we don't have to re-deploy or manually change in the gateway if these change. So we wouldn't know at deployment what the values are nor how many there are.
Is this even possible? Would we need to do this using javascript to access the object associated with access control?
Solved! Go to Solution.
IP whitelisting details are here, http://apigee.com/docs/api-services/reference/access-control-policy
You need to provide concrete IPs for this work, so you cannot use variables, to resolve at runtime.
So back to your question, you could update [only] this policy at runtime using the API
PUT /v1/o/{orgname}/apis/{apiname}/revisions/{revision}/policies/{access_control_policy}
.. new payload with updated IPs..
Thanks,