-
Notifications
You must be signed in to change notification settings - Fork 12
Home
The -QueryParameters
Parameter is used when appending filters,sorting,paging limits and more to a GET method API call. When used effectively, these can be a powerful way to return only the data you want.
As a best practice, consider the type of information you want to receive and include it as a shaping parameter. If all you need is a computer name and/or ID, include the query parameter
?shaping=machine limited
. You can still filter on additional criteria, but performance is improved by not retrieving useless fields.
Visit our FAQ page for common questions and tips.
Located in the /docs
folder 😄
Get-SmaMachineInventory
get machines that have fully encrypted bitlocker volumes:
"?shaping=machine limited&filtering=machine_bitlocker_volume.conversion_status eq fully encrypted"
get machines with the software title 'arduino' installed:
"?filtering=software.name eq arduino"
get machines belonging to the smart label D - SmartLabel - Test
"?shaping=machine all&paging=limit ALL&filtering=label.name eq D - SmartLabel - Test"
get the registry uninstall strings for all Software Inventory products whose name contains 'vmware'
"?paging=limit ALL&shaping=software ALL&filtering=software.name co vmware"
Get-SmaServiceDeskTicket
return additional ticket information
"?shaping= hd_ticket all,status limited,owner limited,submitter limited,category limited"