cmdb_key_value table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2024 06:06 AM - edited 07-19-2024 07:19 AM
Hi Team,
When I try to hit the cmdb_key_value table by forming a query it doesnt give me the filtered response, seems like its giving the default response. I didnt face this issue for the other tables. Can anyone help me with the reason and other alternatives. I need this to validate the response in my automation.
https://<base uri>/cmdb_key_value?sysparm_query%3DvalueSTARTSWITHxxxxxxxxx
https://<base uri>/cmdb_key_value?sysparm_query=configuration_item.sys_id%3Dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2024 01:24 PM - edited 07-19-2024 01:26 PM
Here is the correct syntax:
https://<base_uri>/cmdb_key_value_list.do?sysparm_query=valueSTARTSWITHxxxxxxxxx
https://<base_uri>/cmdb_key_value_list.do?sysparm_query=configuration_item.sys_id%3Dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2024 05:28 AM
Actually , I had tried with this /cmdb_key_value_list.do - received 400 bad request.
Removing encoding helped me that is %3D to =
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2024 03:43 PM
I am glad to hear your problem is now solved. Would you please mark my answer as correct in order to close this thread?
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/