OpenSearch/docs/reference/cat/repositories.asciidoc
Nik Everett 44c3b04bef Convert more docs to // CONSOLE
Converts docs for `_cat/segments`, `_cat/plugins` and `_cat/repositories`
from `curl` to `// CONSOLE` so they are tested as part of the build and
are cleaner to use in Console. They should work fine with `curl` with
the `COPY AS CURL` link.

Also swaps the `source` type of the response from `js` to `txt` because
that is more correct. The syntax highlighter doesn't care. It looks at
the text to figure out the language. So it looks a little funny for `_cat`
responses regardless.

Relates to #18160
2016-10-25 11:17:24 -04:00

25 lines
661 B
Plaintext

[[cat-repositories]]
== cat repositories
The `repositories` command shows the snapshot repositories registered in the
cluster. For example:
[source,js]
--------------------------------------------------
GET /_cat/repositories?v
--------------------------------------------------
// CONSOLE
// TEST[s/^/PUT \/_snapshot\/repo1\n{"type": "fs", "settings": {"location": "repo\/1"}}\n/]
might looks like:
[source,txt]
--------------------------------------------------
id type
repo1 fs
repo2 s3
--------------------------------------------------
// TESTRESPONSE[s/\nrepo2 s3// _cat]
We can quickly see which repositories are registered and their type.