Creates a recall management table that supports multiple data sources and configuration options.
Operation description
Request
The InstanceId, Name, Description, Type, and DataSource parameters are required.
The RecallType parameter is optional. If provided, it must be a valid enum value.
For each field in the Fields parameter, you must define its name, type, and attributes. You must mark at least one field as Primary.
If you use MaxCompute as the data source, you must specify the MaxcomputeProjectName and MaxcomputeTableName parameters. The MaxcomputeSchema parameter is optional.
For vector fields, the values of the VectorDimension and VectorMetricType parameters must match the actual data.
Use the Config field to provide additional configuration as a JSON string.
Use fluctuation threshold parameters, such as EnableRowCountFluctuationThreshold, to monitor changes in row count or table size. Enable these parameters and set appropriate thresholds as needed.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pairec:CreateRecallManagementTable |
create |
*All Resource
|
None | None |
Request syntax
POST /api/v1/recallmanagementtables HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| InstanceId |
string |
Yes |
The instance ID. |
pairec-cn-test123 |
| Name |
string |
No |
The name of the table. |
table-123 |
| Description |
string |
No |
The description of the table. |
this is a test table |
| Type |
string |
No |
The table type. |
Recall |
| RecallType |
string |
No |
The recall type of the table. |
X2I |
| DataSource |
string |
No |
The data source. |
MaxcomputeAndApiApi |
| MaxcomputeProjectName |
string |
No |
The MaxCompute project. |
test |
| MaxcomputeTableName |
string |
No |
The name of the table in MaxCompute. |
table-1 |
| Fields |
array<object> |
No |
The list of fields. |
|
|
object |
No |
The details of a field. |
||
| Name |
string |
No |
The name of the field. |
age |
| Type |
string |
No |
The data type of the field. |
STRING(全大写) |
| Attributes |
array |
No |
The attributes of the field. Valid values:
|
|
|
string |
No |
An attribute of the field. |
Primary |
|
| VectorDimension |
integer |
No |
The vector dimension. |
32 |
| VectorMetricType |
string |
No |
The vector metric type. |
L2 |
| Config |
string |
No |
Additional settings for the table. |
{"":""} |
| EnableRowCountFluctuationThreshold |
boolean |
No |
Whether to enable the row count fluctuation threshold. |
true |
| MinRowCountFluctuationThreshold |
integer |
No |
The minimum row count fluctuation threshold. |
10 |
| MaxRowCountFluctuationThreshold |
integer |
No |
The maximum row count fluctuation threshold. |
100 |
| EnableDataSizeFluctuationThreshold |
boolean |
No |
Whether to enable the data size fluctuation threshold. |
true |
| MinDataSizeFluctuationThreshold |
integer |
No |
The minimum data size fluctuation threshold. |
10 |
| MaxDataSizeFluctuationThreshold |
integer |
No |
The maximum data size fluctuation threshold. |
100 |
| MaxcomputeSchema |
string |
No |
The schema in MaxCompute. |
default |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response schema |
||
| RequestId |
string |
The ID of the request. |
728C5E01-ABF6-5AA8-B9FC-B3BA05DECC77 |
| RecallManagementTableId |
string |
The ID of the recall management table. |
3 |
Examples
Success response
JSON format
{
"RequestId": "728C5E01-ABF6-5AA8-B9FC-B3BA05DECC77",
"RecallManagementTableId": "3"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.