Asynchronously uploads vector data from a local file or a publicly accessible URL. Maximum supported data size: 200 MB.
Operation description
This is the asynchronous version of UpsertCollectionData. UpsertCollectionData supports up to 10 MB of data per request, whereas this operation supports up to 200 MB.
Related operations:
-
Call the GetUpsertCollectionDataJob operation to query the progress and result of an upload job.
-
Call the CancelUpsertCollectionDataJob operation to cancel an upload job.
Data can only be uploaded to the same collection serially.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gpdb:UpsertCollectionDataAsync |
create |
*Collection
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the instance. |
cn-hangzhou |
| DBInstanceId |
string |
No |
The instance ID. Note
You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs. |
gp-xxxxxxxxx |
| Namespace |
string |
No |
The name of the namespace. Default value: public. Note
You can call the CreateNamespace operation to create a namespace and call the ListNamespaces operation to query a list of namespaces. |
mynamespace |
| Collection |
string |
Yes |
The name of the collection. Note
You can call the ListCollections operation to query a list of collections. |
document |
| NamespacePassword |
string |
Yes |
The password of the namespace. Note
This value is set when you call the CreateNamespace operation. |
testpassword |
| FileUrl |
string |
Yes |
The publicly accessible URL of the vector data file. Note
|
https://xx/vectors.jsonl |
| WorkspaceId |
string |
No |
The workspace ID. A workspace consists of multiple database instances. You must specify either this parameter or DBInstanceId. If both are specified, this parameter takes precedence. |
gp-ws-***** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
ABB39CC3-4488-4857-905D-2E4A051D0521 |
| Message |
string |
The returned message. |
success |
| Status |
string |
The status of the operation. Valid values:
|
success |
| JobId |
string |
The job ID, which you can use to query job status or cancel the job. |
231460f8-75dc-405e-a669-0c5204887e91 |
Examples
Success response
JSON format
{
"RequestId": "ABB39CC3-4488-4857-905D-2E4A051D0521",
"Message": "success",
"Status": "success",
"JobId": "231460f8-75dc-405e-a669-0c5204887e91"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.