[solved] CMDB Search

Moderator: crythias

Post Reply
jbogarin
Znuny newbie
Posts: 4
Joined: 03 Mar 2023, 03:37
Znuny Version: 6.4.5
Real Name: Jose Bogarin

[solved] CMDB Search

Post by jbogarin »

Is it possible to search within a CMDB ConfigItem using the REST API?
I have a custom field named CustomerEndDate, this search works:

Code: Select all

"ConfigItem":{
	"Class": "Services",
		"CIXMLData": {
			"CustomerEndDate": "2023-12-31"
		}
	}
 }
But I haven't figure out a syntax to get items with a Customer End Date greater than X date or lesser than X date. Is that possible?
Last edited by jbogarin on 22 Sep 2023, 02:31, edited 1 time in total.
skullz
Znuny superhero
Posts: 624
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: CMD Search

Post by skullz »

i dint think it has that greater or lower..only exact value..
however you can send multi value to the parameter using array.

Code: Select all

CustomerEndDate     => [ "2023-04-12", "2023-04-11" ]
jbogarin
Znuny newbie
Posts: 4
Joined: 03 Mar 2023, 03:37
Znuny Version: 6.4.5
Real Name: Jose Bogarin

Re: CMDB Search

Post by jbogarin »

That worked, thanks for the quick response.
Post Reply