---
type: api
title: Get snapshot repository
description: Retrieves the snapshot repository configuration. To access the configuration contents, you must have privileged permissions.
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/cloud-enterprise/v3/operation/operation-get-snapshot-repository
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/cloud-enterprise/v3/operation/operation-get-snapshot-repository
products:
  - Elastic Cloud Enterprise
---

# Get snapshot repository

Authentication: required

## Paths

- `GET` `/platform/configuration/snapshots/repositories/{repository_name}`

#### Path parameters

- `repository_name` (string) — required
  The name of the snapshot repository configuration.

## Description

Retrieves the snapshot repository configuration. To access the configuration contents, you must have privileged permissions.

## Response

Retrieve snapshot repository config

`application/octet-stream`

- `repository_name` (string)
  Elasticsearch snapshot repository name
- `config` (object)
  Elasticsearch configuration JSON for a snapshot repository
## Code examples

#### curl

```curl
curl -X GET "${API_URL}/platform/configuration/snapshots/repositories/${REPOSITORY_NAME}" \
  -u "${USERNAME}:${PASSWORD}"
```

## Response examples

#### 200

`application/octet-stream`

