CreateDBExportTask
Creates a database export task.
Operation description
After you successfully create an export task, you can call the QueryDBExportTaskStatus operation to query the status of the export task. After the data is exported, a URL is returned for you to download the exported file.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mpserverless:CreateDBExportTask |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SpaceId |
string |
Yes |
The ID of the workspace. |
0e16bb12-14af-4635-b24c-5ac1a9a***** |
| Collection |
string |
Yes |
The name of the collection. |
article |
| FileType |
string |
Yes |
The type of the exported file. Valid values:
|
CSV |
| Fields |
string |
No |
The list of fields to export, separated by commas (,). This parameter is required when the file type is CSV. |
name,content |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The unique ID of the request. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| TaskId |
string |
The ID of the task. |
0150006d-ab93-4920-a63e-c011dea1e089 |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"TaskId": "0150006d-ab93-4920-a63e-c011dea1e089"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | AccessDenied | You are not authorized to access this space. | You are not authorized to access the specified workspace. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.