Class EnterprisesResource.EnrollmentTokensResource
The "enrollmentTokens" collection of methods.
Inherited Members
Namespace: Google.Apis.AndroidManagement.v1
Assembly: Google.Apis.AndroidManagement.v1.dll
Syntax
public class EnterprisesResource.EnrollmentTokensResource
Constructors
EnrollmentTokensResource(IClientService)
Constructs a new resource.
Declaration
public EnrollmentTokensResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(EnrollmentToken, string)
Creates an enrollment token for a given enterprise. It's up to the caller's responsibility to manage the lifecycle of newly created tokens and deleting them when they're not intended to be used anymore. Once an enrollment token has been created, it's not possible to retrieve the token's content anymore using AM API. It is recommended for EMMs to securely store the token if it's intended to be reused.
Declaration
public virtual EnterprisesResource.EnrollmentTokensResource.CreateRequest Create(EnrollmentToken body, string parent)
Parameters
Type | Name | Description |
---|---|---|
EnrollmentToken | body | The body of the request. |
string | parent | The name of the enterprise in the form enterprises/{enterpriseId}. |
Returns
Type | Description |
---|---|
EnterprisesResource.EnrollmentTokensResource.CreateRequest |
Delete(string)
Deletes an enrollment token. This operation invalidates the token, preventing its future use.
Declaration
public virtual EnterprisesResource.EnrollmentTokensResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the enrollment token in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}. |
Returns
Type | Description |
---|---|
EnterprisesResource.EnrollmentTokensResource.DeleteRequest |
Get(string)
Gets an active, unexpired enrollment token. Only a partial view of EnrollmentToken is returned: all the fields but name and expiration_timestamp are empty. This method is meant to help manage active enrollment tokens lifecycle. For security reasons, it's recommended to delete active enrollment tokens as soon as they're not intended to be used anymore.
Declaration
public virtual EnterprisesResource.EnrollmentTokensResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the enrollment token in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}. |
Returns
Type | Description |
---|---|
EnterprisesResource.EnrollmentTokensResource.GetRequest |
List(string)
Lists active, unexpired enrollment tokens for a given enterprise. The list items contain only a partial view of EnrollmentToken: all the fields but name and expiration_timestamp are empty. This method is meant to help manage active enrollment tokens lifecycle. For security reasons, it's recommended to delete active enrollment tokens as soon as they're not intended to be used anymore.
Declaration
public virtual EnterprisesResource.EnrollmentTokensResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The name of the enterprise in the form enterprises/{enterpriseId}. |
Returns
Type | Description |
---|---|
EnterprisesResource.EnrollmentTokensResource.ListRequest |