Updated on 2022-09-23 GMT+08:00

Exporting All/Exporting/Importing APIs

Operation Scenario

DataArts DataService allows you to import and export (including exporting all) APIs to quickly copy or migrate existing APIs.

Prerequisites

  • An API has been created.
  • To export all APIs, you must have the DAYU Administrator or Tenant Administrator permission.
  • Only one task for exporting all APIs can be executed at a time.
  • All the APIs of a workspace can be exported only once every minute.

Exporting All APIs

  1. On the DataArts Studio console, locate an instance and click Access. On the displayed page, locate a workspace and click DataArts DataService.
  1. In the left navigation pane, choose an edition, for example, Exclusive Edition. The Overview page is displayed.
  2. Choose API Development > APIs.
  3. Above the API list, choose More > Export All.
    • To export all APIs, you must have the DAYU Administrator or Tenant Administrator permission.
    • Only one task for exporting all APIs can be executed at a time.
    • All the APIs of a workspace can be exported only once every minute.

    In the displayed dialog box, click Yes to export all the APIs to an Excel file.

    Figure 1 Exporting all APIs
  4. Open the downloaded Excel file to view the exported APIs. APIs of different types are exported to different sheets.
    Figure 2 Exported Excel file

Exporting APIs

  1. On the DataArts Studio console, locate an instance and click Access. On the displayed page, locate a workspace and click DataArts DataService.
  1. In the left navigation pane, choose an edition, for example, Exclusive Edition. The Overview page is displayed.
  2. Choose API Development > APIs.
  3. Select the target APIs, click More above the API list, and select Export.
  4. In the displayed dialog box, confirm the APIs to export and click Yes to export the APIs to an Excel file.
    Figure 3 Exporting APIs
  5. Open the downloaded Excel file to view the exported APIs. APIs of different types are exported to different sheets.
    Figure 4 Exported Excel file

Importing APIs

  1. On the DataArts Studio console, locate an instance and click Access. On the displayed page, locate a workspace and click DataArts DataService.
  1. In the left navigation pane, choose an edition, for example, Exclusive Edition. The Overview page is displayed.
  2. Choose API Development > APIs.
  3. Click More above the API list and select Import.
  4. On the displayed page, click Select, select an API file, and click Import. The import status is displayed in the Import Result area.

    The API file can be one exported from another project or an Excel file edited based on the template specifications.

    Figure 5 Importing APIs
  5. After the APIs are imported successfully, you can view them in the API list.