Previous topic

MDM Blueprint

Next topic

MDM Types

This Page

MDM Command Response Handlers

commandment.mdm.handlers.ack_available_os_updates(request: commandment.mdm.commands.AvailableOSUpdates, device: commandment.models.Device, response: dict)[source]

Acknowledge a response to AvailableOSUpdates

commandment.mdm.handlers.ack_device_information(request: commandment.mdm.commands.DeviceInformation, device: commandment.models.Device, response: dict)[source]

Acknowledge a DeviceInformation response.

Parameters:
  • request (DeviceInformation) – The command instance that generated this response.
  • device (Device) – The device responding to the command.
  • response (dict) – The raw response dictionary, de-serialized from plist.
Returns:

Reserved for future use

Return type:

void

commandment.mdm.handlers.ack_install_application(request: commandment.mdm.commands.InstallApplication, device: commandment.models.Device, response: dict)[source]

Acknowledge a response to InstallApplication. Usually just contains Queued: True/False

commandment.mdm.handlers.ack_install_profile(request: commandment.mdm.commands.InstallProfile, device: commandment.models.Device, response: dict)[source]

Acknowledge a response to InstallProfile.

commandment.mdm.handlers.ack_installed_app_list(request: commandment.mdm.commands.InstalledApplicationList, device: commandment.models.Device, response: dict)[source]

Acknowledge a response to InstalledApplicationList.

Note

There is no composite key which can uniquely identify an item in the installed applications list. Some applications may not contain any version information at all. For this reason, the entire list of installed applications is cleared before inserting a new list.

Parameters:
  • request (InstalledApplicationList) – An instance of the command that generated this response from the managed device.
  • device (Device) – The device responding
  • response (dict) – The dictionary containing the parsed plist response from the device.
Returns:

Nothing is returned but this behaviour is subject to change.

Return type:

void

commandment.mdm.handlers.ack_profile_list(request: commandment.mdm.commands.ProfileList, device: commandment.models.Device, response: dict)[source]

Acknowledge a ProfileList response.

Parameters:
  • request (ProfileList) – The command instance that generated this response.
  • device (Device) – The device responding to the command.
  • response (dict) – The raw response dictionary, de-serialized from plist.
Returns:

Reserved for future use

Return type:

void