CentraSite 10.7 | CentraSite User’s Guide | Runtime Governance | Consumer Management | Run-Time Consumer Registration Scenarios | Scenario C: Virtual Service with API Consumption Settings and without Evaluate Policy Action
 
Scenario C: Virtual Service with API Consumption Settings and without Evaluate Policy Action
Pre-requisites for scenario C:
*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 not configured for the asset.
*An Evaluate * policy action is not included in the asset's run-time configuration.
*To register as a consumer of an asset for Scenario C:
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 displayed virtual service.
6. On the actions bar of the Virtual Service Details page, click Consume.
7. In the Consume API dialog box, you can do one of the following:
*Generate access tokens for an existing Consumer Application asset to make API calls on the Virtual Service asset as follows:
1. Select the type of authentication token that you want to use to allow the consumer to access the Virtual Service asset.
*API Key - CentraSite generates an API key (a base64-encoded string of the consumer-key:consumer-secret combination) to access and test the Virtual Service asset.
*OAuth2 Token - CentraSite generates the OAuth2 client credentials (a client_id and client_secret) to further request an OAuth2 token to access and test the Virtual Service asset.
2. Type the name of the Consumer Application asset in the Consumer Application Name field.
3. Select Email me to automatically generate an email notification about the usage of access token to the user at the email address provided at registration.
4. In the Reason for Request field, type the reason for requesting consumption of the Virtual Service asset.
This comment is visible to all designated approvers who review the consumer registration request for the Virtual Service asset.
5. Click Consume .
*Register an 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 asset in CentraSite and then register the newly created asset as consumer of the Virtual Service asset.