Modifies the deployment information of a data source.
Operation description
Method
PUT
URI
/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/deploys/{deployName}
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
searchengine:ModifyDataSourceDeploy |
update |
*Instance
|
None | None |
Request syntax
PUT /openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/deploys/{deployName} HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The instance ID. |
ha-cn-pl32rf0**** |
| deployName |
string |
Yes |
The data center. |
vpc_hz_domain_1 |
| dataSourceName |
string |
Yes |
The name of the data source. |
ha-cn-pl32rf0****_test_api |
| generationId |
integer |
No |
The full index version. |
1708674867 |
| dryRun |
boolean |
No |
Specifies whether to perform a dry run. A dry run checks the validity of the request parameters without performing the actual operation. Valid values: `true` and `false`. |
true |
| body |
object |
No |
The request body. |
|
| storage |
object |
No |
The information about the data source. |
|
| endpoint |
string |
No |
The endpoint of the MaxCompute data source. |
http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api |
| accessKey |
string |
No |
The AccessKey ID for the MaxCompute data source. |
L***p |
| accessSecret |
string |
No |
The AccessKey secret for the MaxCompute data source. |
5**9a6 |
| project |
string |
No |
The name of the MaxCompute project. |
kubenest |
| partition |
string |
No |
The partition information. |
ds=20220713 |
| table |
string |
No |
The name of the table. This parameter applies to saro and MaxCompute data sources. |
item |
| namespace |
string |
No |
The namespace. This parameter applies to saro data sources. |
dp-dev |
| path |
string |
No |
The path. This parameter applies to HDFS data sources. |
/ude_jobs/iflow_offline_data_access |
| ossPath |
string |
No |
The path of the data in the OSS bucket. This parameter applies to OSS data sources. |
/opensearch |
| bucket |
string |
No |
The name of the bucket. |
test-bucket |
| catalog |
string |
No |
The name of the data catalog. This parameter applies to Data Lake Formation (DLF) data sources. |
test-catalog |
| database |
string |
No |
The database name. This parameter applies to DLF data sources. |
test-database |
| tag |
string |
No |
The tag. This parameter applies to DLF data sources. |
test |
| tableFormat |
string |
No |
The table format. This parameter applies to DLF data sources. |
paimon lance object |
| autoBuildIndex |
boolean |
No |
Specifies whether to automatically trigger a full indexing task. |
true |
| processor |
object |
No |
The parameters for the process. |
|
| args |
string |
No |
The startup arguments for the process. |
{ "processInfos": [], "groupId": "opensearch", "containerConfigs": [], "priority": { "minor_priority": 0, "major_priority": 64 } } |
| resource |
string |
No |
The resource information. |
[{ "_bs_role": "processor.*.inc", "priority": { "major_priority": 32, "minor_priority": 0 }, "slotResources": [{ "slotResources": [{ "amount": 200, "name": "cpu" }, { "amount": 8192, "name": "mem" }, { "amount": 0, "name": "T4" }, { "amount": 10, "type": "SCALAR", "name": "disk_ratio_9999" }, { "amount": 20480, "type": "SCALAR", "name": "disk_size_9999" }] }] }] |
| extend |
object |
No |
The extended information. |
|
| saro |
object |
No |
The information about the saro data source. |
|
| path |
string |
No |
The path. |
/ |
| version |
string |
No |
The version number. |
1 |
| hdfs |
object |
No |
The information about the HDFS data source. |
|
| path |
string |
No |
The path of the HDFS data source. |
ymsh-service/src/main/java/cn/ymsh/util/jd |
| odps |
object |
No |
The information about the MaxCompute data source. |
|
| partitions |
object |
No |
The partition information of the data source. |
|
|
string |
No |
A key-value pair that represents a partition. The key is the partition key, and the value is the partition value. |
ds=20230824 |
|
| oss |
object |
No |
The information about the OSS data source. |
|
| path |
string |
No |
The path of the OSS data source. |
oss://test |
| swift |
object |
No |
The information about incremental data from Swift. |
|
| zk |
string |
No |
The ZooKeeper path. |
zk |
| topic |
string |
No |
The topic name. |
ha-cn-pl32rf0****_test_api |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The ID of the request. |
93A9E542-8CF8-5BA6-99AB-94C0FE520429 |
| result |
object |
The result of the request. |
{} |
Examples
Success response
JSON format
{
"requestId": "93A9E542-8CF8-5BA6-99AB-94C0FE520429",
"result": {}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.