---
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/4493/api/doc/cloud-enterprise/v4/operation/operation-get-snapshot-repository
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/cloud-enterprise/v4/operation/operation-get-snapshot-repository
products:
  - Elastic Cloud Enterprise
---

# Get snapshot repository

## 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.

## Authentication

- Basic: `Authorization: Basic <credentials>`
- Api key: `Authorization: <value>`

## 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}"
```

