Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Anchor
_Toc341972467
_Toc341972467
Attributes

Attribute

type

values

default

mandate

comment

serial

string

 

 

true

 

Identifier

String

 

 

true

 

Status

String

ACTIVE,
DISABLED,
DECEASED

 

 

 

description

string

 

 

false

 

users

coll

 

 

 

 

assignedUsers

coll

 

 

 

 

sharedUsers

coll

 

 

 

 

product

object

 

 

true

 

repository

object

 

 

false

 


Anchor
_Toc341972468
_Toc341972468
/token/create

Wiki Markup
+Examples 1:+
Method:/token/create
Parameters: 
\{
 "attrs":
\[
 "product.id":pid,
 "user.id":userid,
"pin":tokenpin
\]
\}
Response: 
\{
 "error":0,
"result":\{"id":1\}
\}
\\
+Examples 2:+
Method:/token/create
Parameters: 
\{
 "attrs":
\[
 "product":
 \{
  "manufacturerCode":"DN",
  "productCode":"MT"
\},
 "user":
 \{
  "domain.name":"domain.com",
  "loginNam":"john.smith"
\}
"pin":tokenpin
\]
\}
Response: 
\{
 "error":0,
"result":\{"id":1\}
\}
\\
\\

Anchor
_Toc341972469
_Toc341972469
/token/get

Anchor
_Toc341972470
_Toc341972470
/token/set

Anchor
_Toc341972471
_Toc341972471
/token/delete

Examples:
Method:/token/delete
Parameters:
{
"id":"token id"
"user":
{
"id":1,
"domain.id":domainId,
"loginName":loginName
}
// if user block is given, system will unassign the token from the user instead of delete the token itself
}
Response:
{
"error":0
}

Anchor
_Toc341972472
_Toc341972472
/token/reset

Examples:
Method:/token/reset
Parameters:
{
"token":
{
"serial":"10000000"
},
"attrs"://optional
{
"counter":0
}
}
Response:
{
"error":0
}

Anchor
_Toc341972473
_Toc341972473
/token/confine

Examples:
Method:/token/confine
Parameters:
{
"token":
{
"serial":"10000000"
}
}
Response:
{
"error":0
}

Anchor
_Toc341972474
_Toc341972474
/token/release

Examples:
Method:/token/release
Parameters:
{
"token":
{
"serial":"10000000"
}
}
Response:
{
"error":0
}

Anchor
_Toc341972475
_Toc341972475
/token/import

Wiki Markup
+Examples:+
Method:/token/create
Parameters: 
\{
 "attrs":
\{
 "product.id":pid,
 "repository.id":repoid,
 "data":"text of import file"
\}
"return":\["id","serial"\]
\}
Response: 
\{
 "error":0,
"result":
\{
 "total":3,
 "rows":
\[
 \{"id":"xxx","serial":"1001"\},
\{"id":"yyy","serial":"1002"\},
\{"id":"zzz","serial":"1003"\}
\]
\}
\}
\\

Anchor
_Toc341972476
_Toc341972476
/token/getDownloadUrl

Examples:
Method:/token/getDownloadUrl
Parameters:
{
}
Response:
{
"error":0,
"result":"http://dual.parkoffice.com:8072/das5/service"
}

Anchor
_Toc341972477
_Toc341972477
/token/ getActivateUrl

Examples:
Method:/token/getActivateUrl
Parameters:
{
}
Response:
{
"error":0,
"result":"http://dual.parkoffice.com:8072/das5/ac"
}

Anchor
_Toc341972478
_Toc341972478
/token/syncToken

Examples:
Method:/token/syncToken
Parameters:
{
"user":
{
"id":userid
},
"token":
{
"serial":"10000000"
},
"credential":"otp1,otp2"
}
Response:
{
"error":0
}

Anchor
_Toc341972479
_Toc341972479
/token/ retrieveCredential

Examples:
Method:/token/retrieveCredential
Parameters:
{
"token":
{
"serial":"123456"
},
"recoveryId":"1234567890"
}
Response:
{
"error":0,
"result":
{
"recoveryKey":"xxxxxxx"
}
}

Anchor
_Toc341972480
_Toc341972480
/token/batchAssignTokens

Examples:
Method:/token/batchAssignTokens
Parameters:
{
"attrs":
{
"csv":xxx,
"charset":"UTF-8"
}
}
Response:
{
"error":0,
}