state property

String? state
getter/setter pair

The state to be applied to the device.

This field can be modified by a patch request. Note that when calling enterprises.devices.patch, ACTIVE and DISABLED are the only allowable values. To enter the device into a DELETED state, call enterprises.devices.delete. Possible string values are:

  • "DEVICE_STATE_UNSPECIFIED" : This value is disallowed.
  • "ACTIVE" : The device is active.
  • "DISABLED" : The device is disabled.
  • "DELETED" : The device was deleted. This state is never returned by an API call, but is used in the final status report when the device acknowledges the deletion. If the device is deleted via the API call, this state is published to Pub/Sub. If the user deletes the work profile or resets the device, the device state will remain unknown to the server.
  • "PROVISIONING" : The device is being provisioned. Newly enrolled devices are in this state until they have a policy applied.
  • "LOST" : The device is lost. This state is only possible on organization-owned devices.
  • "PREPARING_FOR_MIGRATION" : The device is preparing for migrating to Android Management API. No further action is needed for the migration to continue.
  • "DEACTIVATED_BY_DEVICE_FINANCE" : This is a financed device that has been "locked" by the financing agent. This means certain policy settings have been applied which limit device functionality until the device has been "unlocked" by the financing agent. The device will continue to apply policy settings excluding those overridden by the financing agent. When the device is "locked", the state is reported in appliedState as DEACTIVATED_BY_DEVICE_FINANCE.

Implementation

core.String? state;