Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cc-cli
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
cc-cli
Commits
9d535ecb
Commit
9d535ecb
authored
14 years ago
by
Seblu
Browse files
Options
Downloads
Patches
Plain Diff
TQL spec update
parent
a20be402
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
TQL
+20
-10
20 additions, 10 deletions
TQL
with
20 additions
and
10 deletions
TQL
+
20
−
10
View file @
9d535ecb
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment