2022-08-23 12:42:19 -04:00
---
layout: default
title: Get Snapshot Repository
parent: Snapshot APIs
nav_order: 2
---
2023-10-23 10:53:52 -04:00
# Get snapshot repository.
**Introduced 1.0**
{: .label .label-purple }
2022-08-23 12:42:19 -04:00
Retrieves information about a snapshot repository.
To learn more about repositories, see [Register repository ]({{site.url}}{{site.baseurl}}/opensearch/snapshots/snapshot-restore#register-repository ).
2022-10-27 12:50:39 -04:00
You can also get details about a snapshot during and after snapshot creation. See [Get snapshot status ]({{site.url}}{{site.baseurl}}/api-reference/snapshots/get-snapshot-status/ ).
2022-08-23 12:42:19 -04:00
{: .note}
2023-10-23 10:53:52 -04:00
## Path parameters
2022-08-23 12:42:19 -04:00
2022-11-18 15:25:06 -05:00
| Parameter | Data type | Description |
2022-08-23 12:42:19 -04:00
| :--- | :--- | :--- |
| repository | String | A comma-separated list of snapshot repository names to retrieve. Wildcard (`*`) expressions are supported including combining wildcards with exclude patterns starting with `-` . |
2023-10-23 10:53:52 -04:00
## Query parameters
2022-08-23 12:42:19 -04:00
2022-11-18 15:25:06 -05:00
| Parameter | Data type | Description |
2022-08-23 12:42:19 -04:00
:--- | :--- | :---
| local | Boolean | Whether to get information from the local node. Optional, defaults to `false` .|
| cluster_manager_timeout | Time | Amount of time to wait for a connection to the master node. Optional, defaults to 30 seconds. |
2023-02-20 11:34:20 -05:00
#### Example request
2022-08-23 12:42:19 -04:00
The following request retrieves information for the `my-opensearch-repo` repository:
````json
GET /_snapshot/my-opensearch-repo
````
2023-01-30 17:09:38 -05:00
{% include copy-curl.html %}
2022-08-23 12:42:19 -04:00
2023-02-20 11:34:20 -05:00
#### Example response
2022-08-23 12:42:19 -04:00
Upon success, the response returns repositry information. This sample is for an `s3` repository type.
````json
{
"my-opensearch-repo" : {
"type" : "s3",
"settings" : {
"bucket" : "my-open-search-bucket",
"base_path" : "snapshots"
}
}
}
````
2023-10-23 10:53:52 -04:00
## Response fields
2022-08-23 12:42:19 -04:00
2022-11-18 15:25:06 -05:00
| Field | Data type | Description |
2022-08-23 12:42:19 -04:00
| :--- | :--- | :--- |
| type | string | Bucket type: `fs` (file system) or `s3` (s3 bucket) |
| bucket | string | S3 bucket name. |
| base_path | string | Folder within the bucket where snapshots are stored. |