You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/operate/rs/databases/import-export/import-data.md
+135Lines changed: 135 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,8 @@ Importing data erases all existing content in the database.
23
23
24
24
## Import data into a database
25
25
26
+
### Cluster Manager UI method
27
+
26
28
To import data into a database using the Cluster Manager UI:
27
29
28
30
1. On the **Databases** screen, select the database from the list, then select **Configuration**.
@@ -33,6 +35,41 @@ To import data into a database using the Cluster Manager UI:
33
35
See [Supported storage locations](#supported-storage-locations) for more information about each storage location type.
34
36
1. Select **Import**.
35
37
38
+
### REST API method
39
+
40
+
To import data into a database using the REST API, send an [import database request]({{<relref "/operate/rs/references/rest-api/requests/bdbs/actions/import">}}):
41
+
42
+
```sh
43
+
POST /v1/bdbs/<database-id>/actions/import
44
+
{
45
+
"dataset_import_sources": [
46
+
{
47
+
"type": "<location-type>",
48
+
// additional fields, depending on location_type
49
+
},
50
+
{
51
+
"type": "<location-type>",
52
+
// additional fields, depending on location_type
53
+
}
54
+
]
55
+
}
56
+
```
57
+
58
+
- Replace `<database-id>` with the destination database's ID.
59
+
60
+
- Replace the data source's `<location-type>` with the relevant value from the following options:
61
+
62
+
| Location type | "type" value |
63
+
|---------------|--------------|
64
+
| FTPS | "url" |
65
+
| SFTP | "sftp" |
66
+
| Amazon S3 | "s3" |
67
+
| Google Cloud Storage | "gs" |
68
+
| Microsoft Azure Storage | "abs" |
69
+
| NAS/Local Storage | "mount_point" |
70
+
71
+
See the following storage location sections for REST API request examples for each location type.
Data can be imported from a local mount point, transferred to [a URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier) using FTP/SFTP, or stored on cloud provider storage.
0 commit comments