Skip to main content
PUT
/
deployments
/
{deployment_id}
/
elasticsearch
/
{ref_id}
/
remote-clusters
Set certificate based remote clusters
curl --request PUT \
  --url https://api.elastic-cloud.com/api/v1/deployments/{deployment_id}/elasticsearch/{ref_id}/remote-clusters \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "resources": [
    {
      "alias": "<string>",
      "deployment_id": "<string>",
      "elasticsearch_ref_id": "<string>",
      "info": {
        "compatible": "<boolean>",
        "connected": "<boolean>",
        "healthy": "<boolean>",
        "trusted": "<boolean>",
        "trusted_back": "<boolean>"
      },
      "skip_unavailable": "<boolean>"
    },
    {
      "alias": "<string>",
      "deployment_id": "<string>",
      "elasticsearch_ref_id": "<string>",
      "info": {
        "compatible": "<boolean>",
        "connected": "<boolean>",
        "healthy": "<boolean>",
        "trusted": "<boolean>",
        "trusted_back": "<boolean>"
      },
      "skip_unavailable": "<boolean>"
    }
  ]
}'
{}

Authorizations

Authorization
string
header
required

Path Parameters

deployment_id
string
required

(Required) Identifier for the Deployment.

Example:

"<string>"

ref_id
string
required

(Required) User-specified RefId for the Resource (or '_main' if there is only one).

Example:

"<string>"

Body

application/json
resources
object[]
Example:
[
{
"alias": "<string>",
"deployment_id": "<string>",
"elasticsearch_ref_id": "<string>",
"info": {
"compatible": "<boolean>",
"connected": "<boolean>",
"healthy": "<boolean>",
"trusted": "<boolean>",
"trusted_back": "<boolean>"
},
"skip_unavailable": "<boolean>"
},
{
"alias": "<string>",
"deployment_id": "<string>",
"elasticsearch_ref_id": "<string>",
"info": {
"compatible": "<boolean>",
"connected": "<boolean>",
"healthy": "<boolean>",
"trusted": "<boolean>",
"trusted_back": "<boolean>"
},
"skip_unavailable": "<boolean>"
}
]

Response

The Remote Clusters were updated

The response is of type object.

I