All Products
Search
Document Center

OpenSearch:ModifyDataSourceDeploy

Last Updated:Oct 16, 2024

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
searchengine:ModifyDataSourceDeployupdate
  • Instance
    acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId}
    none
none

Request syntax

PUT /openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/deploys/{deployName} HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
instanceIdstringYes

The cluster ID.

ha-cn-0ju2rps6c08
deployNamestringYes

The name of the data center.

vpc_hz_domain_1
dataSourceNamestringYes

The name of the data source.

ha-cn-0ju2rps6c08_api_test
generationIdlongNo

The ID of the full index version.

1708674867
dryRunbooleanNo

Specifies whether to perform only a dry run, without performing the actual request. The system only checks the validity of the data source. Valid values: true and false.

true
bodyobjectNo

The request body.

storageobjectNo

The information about the data source.

endpointstringNo

The endpoint of the MaxCompute data source.

http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api
accessKeystringNo

The AccessKey ID of the MaxCompute data source.

ak
accessSecretstringNo

The AccessKey secret of the MaxCompute data source.

as
projectstringNo

The name of the MaxCompute project that is used as the data source.

kubenest
partitionstringNo

The partition in the MaxCompute table.

ds=20220713
tablestringNo

The name of the MaxCompute table that is used as the data source.

item
namespacestringNo

The namespace. This parameter is applicable to the SARO data source used in the intranet of Alibaba Group.

dp-dev
pathstringNo

The file path in the Apsara File Storage for HDFS file system.

/ude_jobs/iflow_offline_data_access
ossPathstringNo

The Object Storage Service (OSS) path.

/opensearch
bucketstringNo

The name of the OSS bucket.

test-bucket
autoBuildIndexbooleanNo

Specifies whether to enable the automatic full indexing feature.

true
processorobjectNo

The parameters of the process.

argsstringNo

The startup parameters of the process.

{}
resourcestringNo

The resource information.

{}
extendobjectNo

The extended information.

saroobjectNo

The information about the SARO data source. This parameter is applicable to the SARO data source used in the intranet of Alibaba Group.

pathstringNo

The path of the SARO data source.

/
versionstringNo

The version number of the SARO data source.

1
hdfsobjectNo

The information about the Apsara File Storage for HDFS data source.

pathstringNo

The path of the Apsara File Storage for HDFS data source.

ymsh-service/src/main/java/cn/ymsh/util/jd
odpsobjectNo

The information about the MaxCompute data source.

partitionsobjectNo

The partitions in the MaxCompute table.

stringNo

The partition in the MaxCompute table.

ds=20230824
ossobjectNo

The information about the OSS data source.

pathstringNo

The path of the OSS data source.

oss://test
swiftobjectNo

The information about the incremental data source Swift.

zkstringNo

zk

zk
topicstringNo

The topic.

ha-cn-0ju2rps6c08_api

Response parameters

ParameterTypeDescriptionExample
object
requestIdstring

The request ID.

93A9E542-8CF8-5BA6-99AB-94C0FE520429
resultobject

The result.

{}

Examples

Sample success responses

JSONformat

{
  "requestId": "93A9E542-8CF8-5BA6-99AB-94C0FE520429",
  "result": {}
}

Error codes

For a list of error codes, visit the Service error codes.