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
- 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.
- Click Data Lake Mall of the corresponding workspace.
The Data Lake Mall page is displayed.
- Authorize the API to the application in either of the following ways: Giving API authorization:
- In the navigation pane, choose API Development > API Management.
- Locate the row that contains the API to be bound, and click View Authorization.
On the Complete Information tab page, click Assign Authorization.
- Set an expiry time, select an application, and click OK.
Applying for authorization:
- Choose > .
- Click the name of the API to be bound to an application. The API information page is displayed.
- On the displayed page, click Permission Application.
- Set an expiry, select an application, and click OK.
- After the application is submitted, the authorization takes effect only after it is approved in the review center.
- 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.
Last Article: Debugging APIs
Next Article: Publishing APIs
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.