Google Play EMM API . enrollmentTokens

Instance Methods

close()

Close httplib2 connections.

create(enterpriseId, body=None, x__xgafv=None)

Returns a token for device enrollment. The DPC can encode this token within the QR/NFC/zero-touch enrollment payload or fetch it before calling the on-device API to authenticate the user. The token can be generated for each device or reused across multiple devices.

Method Details

close()
Close httplib2 connections.
create(enterpriseId, body=None, x__xgafv=None)
Returns a token for device enrollment. The DPC can encode this token within the QR/NFC/zero-touch enrollment payload or fetch it before calling the on-device API to authenticate the user. The token can be generated for each device or reused across multiple devices.

Args:
  enterpriseId: string, Required. The ID of the enterprise. (required)
  body: object, The request body.
    The object takes the form of:

{ # A token used to enroll a device.
  "duration": "A String", # [Optional] The length of time the enrollment token is valid, ranging from 1 minute to [`Durations.MAX_VALUE`](https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately 10,000 years. If not specified, the default duration is 1 hour.
  "enrollmentTokenType": "A String", # [Required] The type of the enrollment token.
  "token": "A String", # The token value that's passed to the device and authorizes the device to enroll. This is a read-only field generated by the server.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A token used to enroll a device.
  "duration": "A String", # [Optional] The length of time the enrollment token is valid, ranging from 1 minute to [`Durations.MAX_VALUE`](https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately 10,000 years. If not specified, the default duration is 1 hour.
  "enrollmentTokenType": "A String", # [Required] The type of the enrollment token.
  "token": "A String", # The token value that's passed to the device and authorizes the device to enroll. This is a read-only field generated by the server.
}