Skip to content
Snippets Groups Projects
Commit 9d535ecb authored by Seblu's avatar Seblu
Browse files

TQL spec update

parent a20be402
No related branches found
No related tags found
No related merge requests found
......@@ -3,31 +3,41 @@ Tag Query Language
==================
== by examples ==
# list accounts
> list a
sluttrin> list a
# list hypervisor
> list hv
sluttrin> list hv
# list vm
> list vm
sluttrin> list vm
# list vm of hypervisor toto
> list hv=toto&vm
sluttrin> list hv=toto&vm
# list vm chiche of hypervisor toto
> list hv=toto&vm=chiche
sluttrin> list hv=toto&vm=chiche
#list vm with 2 cpu
> list vm&cpu=2
sluttrin> list vm&cpu=2
#list vm with 2 cpu and mem > 10g
> list vm&cpu=2&mem>10g
sluttrin> list vm&cpu=2&mem>10g
#list hypervistor with 2cpu and vm with 2cpu
> list hv&cpu=2&vm&cpu=2
sluttrin> list hv&cpu=2&vm&cpu=2
#list hypervistor at least 2cpu and show tags pop and alloc
> list hv&cpu>=2$pop$alloc
sluttrin> list hv&cpu>=2$pop$alloc
#list first 10 vm
sluttrin> list vm^10
#list last 10 vm
sluttrin> list vm^:10
#list vm
sluttrin> list vm^5:10
== Basics ==
- TQL build a list of objects from left to right
......@@ -38,7 +48,7 @@ Tag Query Language
== separators of tags ==
& and between tags
$ show a tag
# limit output
^ limit output
== operators on tags ==
= strict equality
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment