---
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/4371/api/doc/cloud-enterprise/v4/operation/operation-get-snapshot-repository
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/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}`

- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/v4/authentication#basicauth)
- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/v4/authentication#apikey)

#### Path Parameters

- `repository_name` (string)
  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

#### Console

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

#### curl

```curl
curl -X GET "/platform/configuration/snapshots/repositories/{repository_name}"
```

