Layer7 API Management

Finding references to cluster-wide properties in published service policies 

Jun 11, 2015 10:51 AM

Background

 

The attached file provides an example implementation that queries the local API Gateway using the RESTMAN API. This query will provide a table of cluster-wide properties that are referred to in the policies for published services and fragments. This can be valuable for determining what services or policies will be impacted when a cluster-wide property is changed.

 

This service will accept HTTP parameters in an HTTP GET. It requires the use of the REST Management API and a custom published service.

 

Implementation

  1. Log in to the Policy Manager as a user able to publish services or policies
  2. Deploy the REST Management API: REST Management API - CA API Gateway - 8.3 - CA Wiki
  3. Publish a new Web API
  4. Specify a custom resolution path (for example, find)
  5. Import the attached service to the new service
  6. Consume the service in a browser or other HTTP(S) client: https://gateway.domain.com:8443/find?key=<property>

 

Example Response

 

ServiceProperty Name
Multiple Destinations Response Aggregatedvoonairrest
content based routing - Header value for the cityvoonairrest
Voonairvoonairrest
headervoonairrest

Statistics
0 Favorited
8 Views
1 Files
0 Shares
5 Downloads
Attachment(s)
zip file
find cwp usage.xml.zip   3 KB   1 version
Uploaded - May 29, 2019

Related Entries and Links

No Related Resource entered.