Last modified October 31, 2024

listTokens

This function will list all access tokens on the server.
Parameters
Parameter name Type Description Possible values Example
filter String Filter generated access tokens by description, IP, or username.   filter=Description
Returns
Parameter name Type Description Possible values Example
items List [] Returns a list of access token items. To view the parameters returned by this function, click on Token Object.  
total Integer The total number of access token items.    

Example Call JETAPI

jetbackup5api -F panelAPI -D "call=listTokens"
success: 1
message:
system:
  version: 5.3.3
  version_panel: 5.3.3
  tier: EDGE
  type: Linux
  retry_ms: 0
  disableui:
  dr:
  agreement_panel:
  agreement:
  licenseIssue:
data:
  tokens:
    0:
      _id: 650a11a2b7a6c72020078ae2
      created: 2023-09-19T21:24:50+00:00
      last_access:
      last_access_ip:
      expiry:
      description: My New Description
      ip: 127.1.1.1
      username: example2
    1:
      _id: 650a1b3ed69d9443ac1eec62
      created: 2023-09-19T22:05:50+00:00
      last_access:
      last_access_ip:
      expiry:
      description: My Description
      ip: 127.0.0.1
      username: example
  total: 2

Example Call HTTP

https://HOST_NAME:3035/?api=1&function=panelAPI&call=listTokens