A set of API functions allows you to manage cards (USB tokens, smart cards) by means of client applications.
Access to API functions is implemented through the icmapi web application, which is part of the Indeed Certificate Manager server. To interact with Indeed CM through the API, in the Roles section of the Indeed CM configuration, you will need to create a service role, include the account on whose behalf the API will be accessed, and define privileges for the role:
1. Cards - get the list of cards added to the system.
Request type:
Parameters:
Return values (CardInfo object list):
http://localhost/icmapi/Cards - output of all cards |
2. Cards/{id}/Revoke - withdraw user card.
Request type:
Parameters:
reason - card revocation reason:
– 0 - None
– 1 - CardBroken
– 2 - CardLost
– 3 - CardUpgrade
– 4 - CardExpired
– 5 - CardWithdraw
– 6 - UserRemoved
– 7 - CardCompromised
Return values:
http://localhost/icmapi/Cards/1/Revoke |
Request body:
3. Cards/{id}/Disable - temporarily disable the user's card.
Request type:
Parameter:
Return values:
http://localhost/icmapi/Cards/1/Disable |
4. Cards/{id}/Enable - enable the user's card.
Request type:
Parameter:
Return values:
http://localhost/icmapi/Cards/1/Enable |
5. Cards/{id}/PreUpdate - revoke irrelevant user certificate.
The Preupdate method is required when changing smart card usage policy. If the issued certificate is not supported in the new policy and the option "Revoke certificate at card revoking/disabling" is enabled in the certificate template in the old policy, then it will be revoked. The Preupdate method cannot be performed on a smart card that is disabled, assigned, revoked, and pending issue or update. |
Request type:
Parameter:
Return values:
http://localhost/icmapi/Cards/1/PreUpdate |