Skip to content

Commit

Permalink
Created "How to get keys by prefix" page (etcd-io#514)
Browse files Browse the repository at this point in the history
* Added new page on getting keys by prefix under Tutorials section

* Added weight
  • Loading branch information
Somoshree authored Oct 21, 2021
1 parent 91726d0 commit 3e8321a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
13 changes: 0 additions & 13 deletions content/en/docs/v3.5/demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,19 +110,6 @@ etcdctl --endpoints=$ENDPOINTS member list
```


## Get by prefix

![03_etcdctl_get_by_prefix_2016050501](https://storage.googleapis.com/etcd/demo/03_etcdctl_get_by_prefix_2016050501.gif)

```shell
etcdctl --endpoints=$ENDPOINTS put web1 value1
etcdctl --endpoints=$ENDPOINTS put web2 value2
etcdctl --endpoints=$ENDPOINTS put web3 value3

etcdctl --endpoints=$ENDPOINTS get web --prefix
```


## Auth

`auth`,`user`,`role` for authentication:
Expand Down
15 changes: 15 additions & 0 deletions content/en/docs/v3.5/tutorials/how-to-get-key-by-prefix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: How to get keys by prefix
description: Guide to extracting etcd keys by their prefix
weight: 300
---

![03_etcdctl_get_by_prefix_2016050501](https://storage.googleapis.com/etcd/demo/03_etcdctl_get_by_prefix_2016050501.gif)

```shell
etcdctl --endpoints=$ENDPOINTS put web1 value1
etcdctl --endpoints=$ENDPOINTS put web2 value2
etcdctl --endpoints=$ENDPOINTS put web3 value3

etcdctl --endpoints=$ENDPOINTS get web --prefix
```

0 comments on commit 3e8321a

Please sign in to comment.