Suspending/Restoring an API
Scenarios
To edit or debug a published API, you must suspend the API first. After the API is suspended, its original authorization information is retained. You can edit and debug the API.
You can restore the API so that it can continue to provide services.
![](https://support.huaweicloud.com/eu/usermanual-dataartsstudio/public_sys-resources/note_3.0-en-us.png)
The suspended API cannot be accessed in the specified time, which may affect the applications or users who are using the API. Ensure that users have been notified of this consequence.
Prerequisites
- An API has been created.
- An API has been published in the environment.
Suspending an API
- On the DataArts Studio console, locate an instance and click Access. On the displayed page, locate a workspace and click DataArts DataService.
- In the left navigation pane, choose an edition, for example, Exclusive Edition. The Overview page is displayed.
- Choose .
- Locate the row that contains the API to be suspended, click More in the Operation column, and select Suspend.
- In the displayed dialog box, select the time period when the API needs to be suspended and click OK.
The API suspension time must be later than its minimum retention period. Authorized users will be notified of the suspension. If all authorized users process the notifications in the review center or unbind the API from their apps, the API will be directly suspended. Otherwise, the API will be forcibly suspended when the minimum retention period ends.
Restoring an API
- On the DataArts Studio console, locate an instance and click Access. On the displayed page, locate a workspace and click DataArts DataService.
- In the left navigation pane, choose an edition, for example, Exclusive Edition. The Overview page is displayed.
- Locate the row that contains the API to be restored, click More in the Operation column, and select Restore.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.