skydive icon indicating copy to clipboard operation
skydive copied to clipboard

Best practice for get TID by use skydive client query

Open patsevanton opened this issue 4 years ago • 4 comments

Hello! Thanks for skydive! I try write install skydive-agent and skydive-analyzer to puppet. I try to get TID by use skydive client query.

 skydive client query "G.V().Has('IPV4', '10.233.47.193/24')" | grep TID
			"TID": "2e06d794-c73d-51af-67e6-bce1615c1b78",

What is best practice for get TID by use skydive client query? May by have better query?

patsevanton avatar Jun 08 '20 06:06 patsevanton

G.V().Has(...).Values('TID') should work

safchain avatar Jul 11 '20 21:07 safchain

@safchain thanks. This is a userfull addition to get rid from lot of JSON fields in output :)

anton85bk avatar Jul 13 '20 10:07 anton85bk

Can we close it ?

safchain avatar Jul 21 '20 09:07 safchain

Yes, I think so. Thanks for your help.

anton85bk avatar Jul 21 '20 10:07 anton85bk