- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- "and.1.not.in.1"
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"and.1.not.in.1"
what does "and.1.not.in.1" means in this example? It´s not documented?
/Mats
show objects limit 10 offset 0 order.1.ASC "name" and.1.not.in.1 "name" and.1.not.in.2 "ABC" and.2.in.1 "color" and.2.in.2 "BLACK" type "object" --format json • "--format json" is optional. By default the output is presented in plain text.
- Labels:
-
Object Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Mats,
and.1.not.in.1 is a JSON path in a plain form that is required by mgmt_cli tool.
For example mgmt_cli arguments a.1.b.c.1 "test" equal to web payload {"a":[{"b":{"c":["test"]}}]}
In the original example
and.1.not.in.1 "name" and.1.not.in.2 "ABC" and.2.in.1 "color" and.2.in.2 "BLACK"
equals to
{
"and": [
{
"not": {
"in": ["name", "ABC"]
}
},
{
"in": ["color", "BLACK"]
}
]
}
equals to
name != "ABC" and color = "BLACK"
