Grant API access

Updated at:

Granting API access authorizes other applications to use a published API. This topic describes how to grant API access to an application.

Prerequisites

Procedure

  1. Log on to the Data Resource Platform console.

  2. In the upper-left corner of the page, click the 菜单 icon and select Collaboration.

  3. In the top menu bar, click the 选择工作组 icon, select the target workspace, and click Asset Processing.

  4. In the navigation pane on the left, click the API icon and choose API Management > API List.

  5. Based on your requirements, you can authorize your application individually or in batches.

    • Single authorization: In the Actions column for the desired API, click Authorize.

    • Multiple APIs: Select the APIs to which you want to grant access. At the bottom of the page, choose Batch Operations > Grant Access.

  6. In the dialog box that appears, select the application, set the authorization duration, and configure application throttling.

    Note
    • You cannot grant access to the application that owns the API.

    • You can grant access to multiple applications.

  7. (Optional) To restrict access to specific API parameters, set the Value for the authorization filter.

    Note
    • Parameter filtering is available only for DataService Studio APIs. To use this feature, you must set Filter When Authorizing to Yes when you create the DataService Studio API.

    • Value: The values that are authorized for the application. Separate multiple values with a comma.

    • Enter the value codes for the parameters that you want to filter. You can obtain the value codes from the database.

  8. After you configure the parameters, click OK.

  9. After access is granted, you can find the API on the APIs Granted to Me or APIs Granted by Me tab. Click Authorization Details to view the authorization information.

    Note
    • In this context, Authorized APIs are the Authorized APIs for the account that is granted authorization.

    • The Outbound Authorized APIs are the Outbound Authorized APIs in the grantor account.

Related operations

View API operation logs: In the Actions column, click Log to view the API operation log details.