Set remote clusters
开发环境
http://127.0.0.1
开发环境
http://127.0.0.1
PUT
/deployments/{deployment_id}/elasticsearch/{ref_id}/remote-clusters
Deployments
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://127.0.0.1/deployments//elasticsearch//remote-clusters' \
--header 'Authorization: ApiKey {{EC_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"resources": [
{
"info": {
"healthy": true,
"compatible": true,
"connected": true,
"trusted": true,
"trusted_back": true
},
"elasticsearch_ref_id": "string",
"deployment_id": "string",
"skip_unavailable": true,
"alias": "string"
}
]
}'
响应示例响应示例
202 - 示例 1
{}
请求参数
Path 参数
deployment_id
必需
ref_id
必需
Header 参数
Authorization
string
可选
默认值:
ApiKey {{EC_API_KEY}}
Body 参数application/json