Can anybody send me a access entity policy implemented proxy for testing purpose

I am not able to understand this policy. An access entity policy implemented policy will help.

Any basic use case will do..I am not able to understand this policy from the docs..

0 6 587
6 REPLIES 6

The doc pages for policies include policy configuration samples.

The Access Control policy page includes examples of of using this policy for allowing and denying consumers of your proxy by IP

https://docs.apigee.com/api-platform/reference/policies/access-control-policy#samples

Hi @HIMADRI BHATTACHARJEE,

here you go with sample which loads the custom attribute of the api product, in the same way you can utilize the access entity for loading the access the information from entity types -

  • App
  • API product
  • Company
  • Company developer
  • Consumer key
  • Developer

you should also explore the document and 4mv https://docs.apigee.com/api-platform/reference/policies/access-entity-policy#Entities

access-entity-demo-rev2-2019-07-22.zip

there is another sample on github - https://github.com/apigee/api-platform-samples/tree/master/sample-proxies/access-entity

@Ravindra Singh I tried ur proxy...But it is getting me error.. {"fault":{"faultstring":"AccessEntity.AE-Product-Detail message is not available for ExtractVariable: EV-producrtdetail","detail":{"errorcode":"steps.extractvariables.SourceMessageNotAvailable"}}}

8897-access-entity.png

you need to follow

create a product - access-entity-test-product

add sample proxy to that product

add custom attribute - custom_attr_product with some dummy value to that.

deploy the proxy and trace it.

It works..

Suggest me how I can learn javascript for apigee?

If you already know the Javascript, you just need few additional things to know in apigee. this the is reference document - https://docs.apigee.com/api-platform/reference/javascript-object-model