Important: This API is currently in Tech Preview. While available for use, it is subject to change. Creates a snapshot dependency, allowing this cluster to access snapshots from the source deployment.
Path parameters
-
Identifier for the Deployment
-
User-specified RefId for the Resource (or '_main' if there is only one)
Responses
-
The request was accepted and the configuration change will be processed asynchronously
-
- Cannot create a snapshot dependency from a deployment to itself. (code:
deployments.snapshot_dependency_cannot_link_to_self) - The request failed validation. (code:
clusters.cluster_invalid_plan)
- Cannot create a snapshot dependency from a deployment to itself. (code:
-
- The Resource specified by {ref_id} cannot be found. (code:
deployments.deployment_resource_not_found) - The source deployment cannot be found. (code:
deployments.snapshot_dependency_source_not_found)
- The Resource specified by {ref_id} cannot be found. (code:
-
Failed to create snapshot dependency. (code:
deployments.snapshot_dependency_internal_error)
POST
/deployments/{deployment_id}/elasticsearch/{ref_id}/snapshot/repository
curl \
--request POST 'https://api.elastic-cloud.com/api/v1/deployments/{deployment_id}/elasticsearch/{ref_id}/snapshot/repository' \
--header "Content-Type: application/json" \
--data '{"source_deployment_id":"string"}'