Software AG Products 10.5 | Using CentraSite | Runtime Governance | Consumer Management | Run-Time Consumer Registration Scenarios | Scenario D: Virtual Service with API Consumption Settings and Evaluate Policy Action
 
Scenario D: Virtual Service with API Consumption Settings and Evaluate Policy Action
Pre-requisites for scenario D:
*The asset is an instance of the virtual type - Virtual Service, Virtual REST Service, Virtual XML Service.
*Make sure that the API consumption settings is configured for the asset.
*An Evaluate * policy action is included in the asset's run-time configuration.
*To register as a consumer of an asset for Scenario D:
1. In CentraSite Business UI, access the Advanced Search panel in one of the following ways:
*Click the Browse link that is located in the upper-left corner of the menu bar.
*Click the Search icon that is located next to the Scope list. The default search scope is Assets.
2. In the Additional Search Criteria list, select Asset Types.
3. To search for the list of asset types, click Choose.
4. In the Choose Asset Types dialog box, follow these steps:
a. Click the chevron next to Everything option button.
b. In the list of asset types, select any of the Virtual Service type for whose instance you want to register the consumers.
c. Click OK.
This displays a list of the Virtual Service assets that were defined using the selected types, and that are available to you in the Search Results page.
5. Click a Virtual Service asset you want to consume.
This opens the Virtual Service Details page. Also, the actions bar displays a set of actions that are available for working with the virtual service.
6. On the actions bar of the Virtual Service Details page, click Consume.
7. In the Consume Asset dialog box, you can do one of the following:
*Generate access tokens to make API calls on the Virtual Service asset.
1. Provide the required information. The fields displayed are the same as for Scenario C, so for a description of the fields, follow the instructions provided for Virtual Service with API Consumption Settings and without Evaluate Policy Action.
2. Type the appropriate information for each of the displayed consumer identifier fields. CentraSite automatically populates the list of identifiers depending on the set of Evaluate policy actions that are defined for the Virtual Service asset.
*Register a Consumer Application asset or any asset as consumer of the Virtual Service asset as follows:
1. Click Consume using other assets.
2. In the Consume Asset dialog box, you can do one of the following:
*Register an existing asset as consumer of the Virtual Service asset.
*Create a new Application asset and register the newly created Application asset as consumer of the Virtual Service asset.