Workspace Resource Export¶
POST /api/v1/workspace/resource/export/task/create
Overview¶
Initiate a workspace resource export task.
Additional Parameter Notes¶
1. Interface Purpose
Initiate a resource export task for the current workspace.
This is an asynchronous task interface. Upon successful invocation, only the taskId is returned, not the compressed package content immediately.
The recommended invocation flow is as follows:
- Call this interface to obtain the
taskId. - Poll the task status by calling
GET /api/v1/workspace/resource/query_action_status. - Once the status changes to
ok, retrieve the export file information from the result returned by the status interface.
2. Request Description
This interface does not require a request body. It exports data from the workspace associated with the DF-API-KEY by default.
3. Response Description
Example of a successful response:
Notes:
- The
taskIdis returned as long as the task creation is successful. - Any subsequent export execution failures or partial resource export failures need to be checked via the task status interface.
4. Current Resource Boundary Description
The current workspace resource import/export has the following boundaries:
- Environment variables do not include those with
scope=rum. - Log indices do not include external indices and the
defaultindex. - Field management only handles workspace custom fields.
- Data access is currently not supported for workspace import/export.
5. Export Result Supplementary Notes
If the export of a single object within a resource fails, it will not interrupt the entire export task.
Relevant failure details will be recorded in the import_info.exportFailedInfo returned by the task status interface.
Request Example¶
curl 'https://openapi.truewatch.com/api/v1/workspace/resource/export/task/create' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--compressed