get_collection
Description
The get_collection module can pull data regarding a single collection or recover all configured collections from the site server. Each query is demonstrated in the example below.Usage
Example
get_collectionmembers
Description
Query for all members of a collection. This command can return large amounts of data for collections with many members.Usage
get_device
Description
The get_device command will query the site server for a provided hostname. If the request is the first time the host has been queried, the data is pulled from the API. Otherwise, the results are stored in a local database to avoid unnecessary queries.Usage
Example
get_lastlogon
Description
The get_lastlogon command will query the site for every client the provided user account was the last logged on user.Usage
Example
get_puser
Description
Query SCCM for any enrolled client where the supplied user account is configured as the primary user.Usage
Example
get_user
Description
Query SCCM for details for a provided username. If the request is the first time the user has been queried, the data is pulled from the API. Otherwise, the results are stored in a local database to avoid unnecessary queries.Usage
Example
Database queries are cached locally to avoid unnecessary API calls. The first query for a specific resource will pull fresh data from the API, while subsequent queries will use cached results.