I have sibling like this "RAtqxEhJvwUGkv54TmRlUaOXwEk" in riak. Now I want to retrive key of this sibling using curl GET request. Is their any way to find out key
Asked
Active
Viewed 229 times
1 Answers
0
The key is the same for all siblings of an object, that's why they are called siblings. If you want to retrieve a particular sibling, use vtag
request parameter. For example, curl http://127.0.0.1:8098/buckets/MY_BUCKET/keys/MY_KEY?vtag=RAtqxEhJvwUGkv54TmRlUaOXwEk
. See https://docs.basho.com/riak/kv/latest/developing/api/http/fetch-object/#siblings-examples

vempo
- 3,093
- 1
- 14
- 16
-
yes. But I have only sibling with me, can I get corresponding key from sibling – achan1989 Apr 19 '16 at 09:46
-
@anilbc Can you describe your use-case? I can't think of a situation when you have just a sibling ID without any context such as key and a bucket type and name. – vempo Apr 19 '16 at 10:23
-
I have bucket type, bucket name , sibling only. On that basis, I need to retrieve key or record for particular siblings. – achan1989 Apr 19 '16 at 13:02
-
@anilbc Yes, but how come you don't have a key? Which Riak command can return a bucket and a sibling, but not a key? – vempo Apr 19 '16 at 14:31