forked from etcd-io/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created "How to get keys by prefix" page (etcd-io#514)
* Added new page on getting keys by prefix under Tutorials section * Added weight
- Loading branch information
Showing
2 changed files
with
15 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
content/en/docs/v3.5/tutorials/how-to-get-key-by-prefix.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |