Class EnterprisesResource.CreateEnrollmentTokenRequest
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.
Inheritance
Inherited Members
Namespace: Google.Apis.AndroidEnterprise.v1
Assembly: Google.Apis.AndroidEnterprise.v1.dll
Syntax
public class EnterprisesResource.CreateEnrollmentTokenRequest : AndroidEnterpriseBaseServiceRequest<CreateEnrollmentTokenResponse>, IClientServiceRequest<CreateEnrollmentTokenResponse>, IClientServiceRequest
Constructors
CreateEnrollmentTokenRequest(IClientService, string)
Constructs a new CreateEnrollmentToken request.
Declaration
public CreateEnrollmentTokenRequest(IClientService service, string enterpriseId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | enterpriseId |
Properties
DeviceType
Deprecated: Use enrollment_token instead. this field will be removed in the future.
Declaration
[RequestParameter("deviceType", RequestParameterType.Query)]
public virtual EnterprisesResource.CreateEnrollmentTokenRequest.DeviceTypeEnum? DeviceType { get; set; }
Property Value
Type | Description |
---|---|
EnterprisesResource.CreateEnrollmentTokenRequest.DeviceTypeEnum? |
EnrollmentTokenDuration
[Optional] The length of time the enrollment token is valid, ranging from 1 minute to
Durations.MAX_VALUE
,
approximately 10,000 years. If not specified, the default duration is 1 hour.
Declaration
[RequestParameter("enrollmentToken.duration", RequestParameterType.Query)]
public virtual object EnrollmentTokenDuration { get; set; }
Property Value
Type | Description |
---|---|
object |
EnrollmentTokenEnrollmentTokenType
[Required] The type of the enrollment token.
Declaration
[RequestParameter("enrollmentToken.enrollmentTokenType", RequestParameterType.Query)]
public virtual EnterprisesResource.CreateEnrollmentTokenRequest.EnrollmentTokenEnrollmentTokenTypeEnum? EnrollmentTokenEnrollmentTokenType { get; set; }
Property Value
Type | Description |
---|---|
EnterprisesResource.CreateEnrollmentTokenRequest.EnrollmentTokenEnrollmentTokenTypeEnum? |
EnrollmentTokenToken
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.
Declaration
[RequestParameter("enrollmentToken.token", RequestParameterType.Query)]
public virtual string EnrollmentTokenToken { get; set; }
Property Value
Type | Description |
---|---|
string |
EnterpriseId
Required. The ID of the enterprise.
Declaration
[RequestParameter("enterpriseId", RequestParameterType.Path)]
public virtual string EnterpriseId { get; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
InitParameters()
Initializes CreateEnrollmentToken parameter list.
Declaration
protected override void InitParameters()