Skip to main content

TokensApi

MethodHTTP requestDescription
AssignTokenByIdUsingPUTPUT /api/web/v1/tokens/{tokenid}/assignAssign token to user
AssignTokenBySerialNumberUsingPUTPUT /api/web/v1/users/{id}/tokens/assignAssign user to token
AssignedTokenPageUsingPOSTPOST /api/web/v1/tokenspaged/assignedLists a page of assigned tokens
ChangeTokenStateUsingPUTPUT /api/web/v1/tokens/{tokenid}/changestateChange token state
CompleteActivateTokenUsingPUTPUT /api/web/v1/tokens/{tokenid}/activationComplete token activation
CreateTokenUsingPOSTPOST /api/web/v1/users/{userid}/tokens/{type}Create a token
DeleteTokenUsingDELETEDELETE /api/web/v1/tokens/{tokenid}Delete a token
GetTokenBySerialNumberUsingGETGET /api/web/v1/tokens/sernum/{sernum}Get a token by serial number
GetTokenUsingGETGET /api/web/v1/tokens/{tokenid}Get a token
ModifyAssignedTokenUsingPUTPUT /api/web/v1/tokens/{tokenid}/assignedModify an assigned token
ModifyTokenUsingPUTPUT /api/web/v1/tokens/{tokenid}Modify a token
ResetTokenUsingPUTPUT /api/web/v1/tokens/{tokenid}/resetReset a token
StartActivateTokenUsingPOSTPOST /api/web/v1/tokens/{tokenid}/activationStart token activation
UnassignTokenUsingPUTPUT /api/web/v1/tokens/{tokenid}/unassignUnassign a token
UnassignedTokenPageUsingPOSTPOST /api/web/v1/tokenspaged/unassignedLists a page of unassigned hardware tokens
UnlockTokenUsingPUTPUT /api/web/v1/tokens/{tokenid}/unlockUnlock a token

AssignTokenByIdUsingPUT

void AssignTokenByIdUsingPUT (string tokenid, AssignParms assignParms)

Assign token to user

Given a hardware token, assign it to a user. Caller requires the TOKENS:EDIT permission.

Using the AssignTokenByIdUsingPUTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
tokenidstringThe UUID of the token to be assigned to a user.
assignParmsAssignParms

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

AssignTokenBySerialNumberUsingPUT

void AssignTokenBySerialNumberUsingPUT (string id, AssignParms assignParms)

Assign user to token

Given a user assign a hardware token. Caller requires the TOKENS:EDIT permission.

Example

Using the AssignTokenBySerialNumberUsingPUTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
idstringThe UUID of the user to which the token is to be assigned.
assignParmsAssignParms

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

AssignedTokenPageUsingPOST

TokensPage AssignedTokenPageUsingPOST (SearchParms searchParms)

Lists a page of assigned tokens

Returns assigned tokens for the provided search parameters. Caller requires the TOKENS:VIEW permission.The following searchByAttributes are supported:

  • state: NEW, ACTIVE, ACTIVATING or INACTIVE. Allowed operator: EQUALS.
  • serialNumber: a String up to 100 characters. Allowed operators are: EQUALS, CONTAINS, STARTS_WITH.
  • type: ENTRUST_SOFT_TOKEN, GOOGLE_AUTHENTICATOR, OATH_PHYSICAL_TOKEN or ENTRUST_LEGACY_TOKEN. Allowed operator: EQUALS.
  • loadDate: a String value representing an ISO-8601 date in UTC time (e.g., 2018-08-04T18:15:30). Allowed operators are: GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL.
  • lastUsedDate: a String value representing an ISO-8601 date in UTC time (e.g., 2018-08-04T18:15:30). Allowed operators are: GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL.
  • groupId: a String value should be a UUID of an existing group. Allowed operator: EQUALS.
  • label: a String up to 100 characters. Allowed operator: CONTAINS.

The orderByAttribute supports these attribute names: serialNumber, state, loadDate or lastUsedDate.Sorting by attributes containing Null values such as lastUsedDate is not possible. Therefore, any record containing Null in the orderByAttribute will be filtered out before doing the sorting.

Example

Using the AssignedTokenPageUsingPOSTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
searchParmsSearchParms

Return type

TokensPage

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

ChangeTokenStateUsingPUT

void ChangeTokenStateUsingPUT (string tokenid, ChangeStateParms changeStateParms)

Change token state

Change the state of a token. Caller requires the TOKENS:EDIT permission.

Example

Using the ChangeTokenStateUsingPUTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
tokenidstringThe UUID of the token that will have its state changed.
changeStateParmsChangeStateParms

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

CompleteActivateTokenUsingPUT

void CompleteActivateTokenUsingPUT (string tokenid, ActivateCompleteParms activateCompleteParms)

Complete token activation

Complete activation of the given token. Caller requires the TOKENS:ADD permission.

Example

Using the CompleteActivateTokenUsingPUTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
tokenidstringThe UUID of the token for which activation is to be completed.
activateCompleteParmsActivateCompleteParms

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

CreateTokenUsingPOST

Token CreateTokenUsingPOST (string userid, string type, TokenCreateParms tokenCreateParms = null)

Create a token

Create a token of the given type for the given user. Caller requires the TOKENS:ADD permission.

Example

Using the CreateTokenUsingPOSTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
useridstringThe UUID of the user for which a token is to be created.
typestringThe type of the token to be created. Only soft tokens can be created so this value must be one of ENTRUST_SOFT_TOKEN or GOOGLE_AUTHENTICATOR.
tokenCreateParmsTokenCreateParms[optional]

Return type

Token

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

DeleteTokenUsingDELETE

void DeleteTokenUsingDELETE (string tokenid)

Delete a token

Delete the specified token. Caller requires the TOKENS:REMOVE permission.

Example

Using the DeleteTokenUsingDELETEWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
tokenidstringThe UUID of the token to be deleted.

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

GetTokenBySerialNumberUsingGET

Token GetTokenBySerialNumberUsingGET (string sernum)

Get a token by serial number

Get the token for the specified serial number. Caller requires the TOKENS:VIEW permission.

Example

Using the GetTokenBySerialNumberUsingGETWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
sernumstringThe serial number of the token to be retrieved.

Return type

Token

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

GetTokenUsingGET

Token GetTokenUsingGET (string tokenid)

Get a token

Get the token for the specified UUID. Caller requires the TOKENS:VIEW permission.

Example

Using the GetTokenUsingGETWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
tokenidstringThe UUID of the token to be retrieved.

Return type

Token

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

ModifyAssignedTokenUsingPUT

void ModifyAssignedTokenUsingPUT (string tokenid, AssignedTokenParms assignedTokenParms)

Modify an assigned token

Modify an assigned token. Caller requires the TOKENS:EDIT permission.

Example

Using the ModifyAssignedTokenUsingPUTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
tokenidstringThe UUID of the assigned token to be modified.
assignedTokenParmsAssignedTokenParms

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

ModifyTokenUsingPUT

void ModifyTokenUsingPUT (string tokenid, TokenParms tokenParms)

Modify a token

Modify the specified token. Caller requires the TOKENS:EDIT permission.

Example

Using the ModifyTokenUsingPUTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
tokenidstringThe UUID of the token to be modified.
tokenParmsTokenParms

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

ResetTokenUsingPUT

void ResetTokenUsingPUT (string tokenid, ResetParms resetParms)

Reset a token

Reset a token. Caller requires the TOKENS:EDIT permission.

Example

Using the ResetTokenUsingPUTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
tokenidstringThe UUID of the token to be reset.
resetParmsResetParms

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

StartActivateTokenUsingPOST

ActivateResult StartActivateTokenUsingPOST (string tokenid, ActivateParms activateParms = null)

Start token activation

Start activation of the given token. Caller requires the TOKENS:ADD permission.

Example

Using the StartActivateTokenUsingPOSTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
tokenidstringThe UUID of the token to be activated.
activateParmsActivateParms[optional]

Return type

ActivateResult

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

UnassignTokenUsingPUT

void UnassignTokenUsingPUT (string tokenid)

Unassign a token

Unassign a token from a user. Caller requires the TOKENS:EDIT permission.

Example

Using the UnassignTokenUsingPUTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
tokenidstringThe UUID of the token to be unassigned.

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

UnassignedTokenPageUsingPOST

TokensPage UnassignedTokenPageUsingPOST (SearchParms searchParms)

Lists a page of unassigned hardware tokens

Returns unassigned hardware tokens for the provided search parameters. Caller requires the TOKENS:VIEW permission.The following searchByAttributes are supported:

  • serialNumber: a String up to 100 characters. Allowed operators are: EQUALS, CONTAINS, STARTS_WITH.
  • type: OATH_PHYSICAL_TOKEN or ENTRUST_LEGACY_TOKEN. Allowed operator: EQUALS.
  • loadDate: a String value representing an ISO-8601 date in UTC time (e.g., 2018-08-04T18:15:30). Allowed operators are: GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL.
  • groupId: a String value should be a UUID of an existing group. Allowed operator: EQUALS.

The orderByAttribute supports these attribute names: serialNumber.

Example

Using the UnassignedTokenPageUsingPOSTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
searchParmsSearchParms

Return type

TokensPage

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

UnlockTokenUsingPUT

UnlockResult UnlockTokenUsingPUT (string tokenid, UnlockParms unlockParms)

Unlock a token

Unlock a token. Caller requires the TOKENS:EDIT permission.

Example

Using the UnlockTokenUsingPUTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
tokenidstringThe UUID of the token that will be unlocked.
unlockParmsUnlockParms

Return type

UnlockResult

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-