Authorizing APIs

Scenarios

After an API is created, you can authorize specified applications to invoke it.

  • An API can be invoked only after it has been published in an environment.
  • An application can be associated with an API only when the API uses App authentication.

Prerequisites

  • An API has been created.
  • An application has been created.

Procedure

  1. Log in to the DGC console, select a DGC instance, and click Access.

    On the displayed page, click the Workspaces tab. In the workspace list, locate the required workspace.

  1. Click Data Lake Mall of the corresponding workspace.

    The Data Lake Mall page is displayed.

  1. Authorize the API to the application in either of the following ways:
    Giving API authorization:
    1. In the navigation pane, choose API Development > API Management.
    2. Locate the row that contains the API to be bound, and click View Authorization.

      On the Complete Information tab page, click Assign Authorization.

    3. Set an expiry time, select an application, and click OK.

    Applying for authorization:

    1. Choose API Calls > Service Catalogs.
    2. Click the name of the API to be bound to an application. The API information page is displayed.
    3. On the displayed page, click Permission Application.
    4. Set an expiry, select an application, and click OK.
    5. After the application is submitted, the authorization takes effect only after it is approved in the review center.
  2. After the authorization is complete, you can view the bound APIs on the application details page.
    • In the API list, if you no longer access an API through the application, click Unbind in the Operation column.
    • To commission an API to which the application is bound, choose More > Commission in the Operation column
    • To extend the authorization period for the bound API, click Renew.