Skip to content

Instantly share code, notes, and snippets.

@lpichler
Created August 15, 2016 20:31
Show Gist options
  • Save lpichler/f0f335c17faa25a305db5e5e15d91467 to your computer and use it in GitHub Desktop.
Save lpichler/f0f335c17faa25a305db5e5e15d91467 to your computer and use it in GitHub Desktop.
Example MiqExpression
```
{
"or" => [
[0] {
"=" => {
"field" => "Vm-virtual_custom_attribute_ATTR_Name_1_5",
"value" => "XXXX"
}
},
[1] {
"and" => [
[0] {
"=" => {
"field" => "Vm-virtual_custom_attribute_ATTR_Name_1_6",
"value" => "Some string you want to add"
}
},
[1] {
"or" => [
[0] {
"=" => {
"count" => "Vm.advanced_settings",
"value" => "0"
}
},
[1] {
"CONTAINS" => {
"tag" => "Vm.managed-prov_max_cpu",
"value" => "1"
}
},
[2] {
"and" => [
[0] {
"IS EMPTY" => {
"field" => "Vm-virtual_custom_attribute_ATTR_Name_1_5",
"value" => ""
}
},
[1] {
"FIND" => {
"search" => {
"IS" => {
"field" => "Vm.advanced_settings-created_on",
"value" => "4 Years Ago"
}
},
"checkany" => {
"IS" => {
"field" => "Vm.advanced_settings-updated_on",
"value" => "4 Years Ago"
}
}
}
},
[2] {
"IS NOT EMPTY" => {
"field" => "Vm-virtual_custom_attribute_ATTR_Name_2_5",
"value" => ""
}
}
]
}
]
}
]
}
]
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment