Version 9.6
 —  Virtualizing APIs Using the CentraSite Business UI  —

Registering as Consumers of an API

Clients that need to call (consume) APIs must register with CentraSite as consumers of the API.

Clients can register as consumers of APIs as a:

The API provider (owner of the API) enforces the type of authentication (API key or OAuth2 token) required for consuming an API. Based on the authentication enforced for the API, an API consumer will request the API key or the OAuth2 token in order to call (consume) that API.

This section covers the following topics:


Registering Users as Consumers

Users can register themselves as consumers of specified APIs, using the Consume action. That is, users can request permission to access specified APIs in the registry. The owners of the APIs may approve or reject such requests. The Consume action applies only to proxy APIs.

Note:
To enable CentraSite to issue email messages, an administrator must first configure CentraSite's email server settings. For procedures, see the section Configuring the Email Server in the document Basic Operations.

Start of instruction setTo register a user as a consumer for an API

  1. In CentraSite Business UI, display the details page for the API that you want to consume. For procedures, see the section Viewing Details for an API Proxy.

  2. On the API details page, click Consume (graphics/consume.png). This opens the Consume API dialog.

  3. Depending on the type of user account you have in CentraSite, you must complete one of the following procedures:

    Authorized Centrasite User Accessing API as a Logged-On User

    - OR -

    Authorized CentraSite User Accessing API as a Guest

    - OR -

    Unauthorized User Accessing API as a Guest

Authorized Centrasite User Accessing API as Logged-On User

You must at least have the instance-level View permission for the specified API. If your user account belongs to a role that has either the "Manage Assets", "Create Assets", "Modify Assets" or "View Assets" permission for an organization, you automatically have permission to register as consumer for all APIs in that particular organization.

  1. Specify the API Key or OAuth2 client credentials.

  2. In the Consumer Name field, specify your CentraSite username.

  3. Select the Email me checkbox in order to receive auto-generated workflow notifications, and then specify your email address.

  4. Enter a reason to request the API for consumption.

  5. If the API's policy governance rule includes one or more "Evalaute" actions, you will see the Consumer Identifier field. Enter your consumer identifier, by which the provider will recognize your messages at run time. For details, see Configuring the Consumer Identification Profile.

  6. Click Consume.

    A request is sent to the designated approvers. Upon approval, a request for consumption of the selected API will be sent to the provider of the API, who will then generate the API key / OAuth2 client credentials.

    Once approved, the API consumption request will be processed and a notification will be sent to you at the specified email address.

    If an approval workflow is not defined for the API, the API key / OAuth2 credentials is generated immediately.

    To get your generated API keys or OAuth access tokens for consumption, refer to the section Obtaining Your API Keys and Access Tokens for Consumption.

Authorized CentraSite User Accessing API as a Guest

  1. In the Login page, enter your username and password and click Next.

  2. Specify the API Key or OAuth2 client credentials.

  3. In the Consumer Name field, specify your CentraSite username.

  4. Select the Email me checkbox in order to receive auto-generated workflow notifications, and then specify your email address.

  5. Enter a reason to request the API for consumption.

  6. If the API's policy governance rule includes one or more "Evalaute" actions, you will see the Consumer Identifier field. Enter your consumer identifier, by which the provider will recognize your messages at run time. For details, see Configuring the Consumer Identification Profile.

  7. Click Consume.

    A request is sent to the designated approvers. Upon approval, a request for consumption of the selected API will be sent to the provider of the API, who will then generate the API key / OAuth2 credentials.

    Once approved, the API consumption request will be processed and a notification will be sent to you at the specified email address.

    If an approval workflow is not defined for the API, the API key / OAuth2 credentials is generated.

    To get your generated API keys or OAuth access tokens for consumption, refer to the section Obtaining Your API Keys and Access Tokens for Consumption.

Unauthorized User Accessing API as a Guest

If you are a guest user without a valid CentraSite user account, CentraSite internally executes a consumer onboarding workflow. This workflow helps you to onboard in an organization of interest within the CentraSite registry/repository. An onboarding request is sent to the organization’s administrator for approval. On successful onboarding of the user, a request for consumption of the selected API will be sent to the provider of the API who will generate the API key or OAuth2 client credentials.

  1. In the Request an Account page, specify the following:

    1. Enter your First Name and Last Name.

    2. Type in your password in the Password field.

    3. Retype the password in the Confirm Password field.

    4. Enter the Email address which you will use as username when signing into CentraSite Business UI.

    5. Enter the Organization you want to join.

      If the Organization field is left blank, CentraSite will automatically register the user as a consumer in the organization that was configured in the Global Onboarding Policy.

    6. Click Next.

  2. Specify the API Key or OAuth2 client credentials.

  3. In the Consumer Name field, specify your CentraSite user name.

  4. Select the Email me checkbox in order to receive auto-generated workflow notifications, and then specify your email address.

  5. Enter a reason to request the API for consumption.

  6. If the API's policy governance rule includes one or more "Evalaute" actions, you will see the Consumer Identifier field. Enter your consumer identifier, by which the provider will recognize your messages at run time. For details, see Configuring the Consumer Identification Profile.

  7. Click the Consume button.

    A consumer registration request is sent to the organization’s administrator for approval. Upon successful registration of the consumer, a request for consumption of the selected API will be sent to the provider of the API, who will then generate the API key / OAuth2 credentials.

    If an approval workflow is not defined for the API, the API key / OAuth2 credentials is generated immediately.

    To get your generated API keys or OAuth access tokens for consumption, refer to the section Obtaining Your API Keys and Access Tokens for Consumption.

Top of page

Registering Application Assets as Consumers

If you have permissions to view an API, and you belong to a role that includes the "Register as Consumer" permission, the Consume action is enabled in the API details page. This action opens a dialog that lets you request the right to be a consumer of the specified API. You can request the right for any consumer application owned by any organization.

The request must be subsequently approved or rejected by the owner of the API.

Start of instruction setTo register an application asset as a consumer for an API

  1. Display the details page for the API you want to consume. If you need procedures for this step, see the section Viewing Details for an API Proxy.

  2. On the API's actions menu, click the Consume graphics/consume.png icon. This opens the Consume API dialog.

  3. In the Application textbox, type the keyword(s) to search for. CentraSite applies the filter to the application asset's name. Choose an application asset from the selection list.

  4. If you want to specify additional application assets, use the plus button beside the Application field to create a new Application input field, and choose another application asset.

  5. When you have specified all required applications, click Consume. Requests to register the applications are sent to the owner of the specified API.

  6. The owner of an API can either accept or decline a "Register as Consumer" request as follows:

Top of page

Viewing Consumer Registration Requests

To view a summary of all "Register as Consumer" requests, go to the API details page:

Note:
If an API has a pending state change approval request and a pending consumer registration request, then the pending state change approval takes priority over the pending consumer registration request.

Top of page

Monitoring Consumer Count for an API

CentraSite Business UI has extensive support for consumer-provider tracking that allows you to monitor the number of consumers for an API.

The number of users who consume an API is displayed in brackets with icons (representing the Consumers) in the description area of the Basic Information profile in the API details page, for example, "(5) Consumers". If no consumers are registered for the API, this is displayed as "(0) Consumers".

Clicking on this consumer count displays the consumers' information.

Top of page