Last modified February 12, 2025
ManageToken
This function allows you to create/modify an API Access Token.
Parameter name | Type | Description | Possible Values | Example |
---|---|---|---|---|
_id | String | REQUIRED on action modify. The ID of the Token. | _id=5f890a19e55cf262863522f2 |
|
action | String | REQUIRED The action you want to perform. |
|
action=create |
description | String | REQUIRED on action create. The description for the access token. | description=My Description |
|
ip | Integer | The IP address that the token can be accessed from. | ip=127.0.0.1 |
|
username | String | The account name that the token can be accessed from. Can be root. | username=linuxUsername |
Example Call JETAPI
jetbackup5api -F Panel/ManageToken -D "action=create&description={$DESCRIPTION}&ip={$IP}&username={$USERNAME}"
jetbackup5api -F Panel/ManageToken -D "&action=modify&_id={$TOKEN_ID}&description={$DESCRIPTION}&ip={$IP}&username={$USERNAME}"
success: 1
message: Access Token Created/Updated Successfully
system:
version: 5.3.3
version_panel: 5.3.3
tier: EDGE
type: Linux
retry_ms: 0
disableui:
dr:
agreement_panel:
agreement:
licenseIssue:
data:
_id: 650a11a2b7a6c72020078ae2
created: 2023-09-19T21:24:50+00:00
last_access:
last_access_ip:
expiry:
description: My Description
ip: 127.0.0.1
username: {$USERNAME}
token: gsDmPhATP5B52W6XkTCjXwHrNRxkL5ku
Example Call HTTP
https://HOST_NAME:3035/?api=1&function=Panel/ManageToken&action=create&description={$DESCRIPTION}&ip={$IP}&username={$USERNAME}
https://HOST_NAME:3035/?api=1&function=Panel/ManageToken&action=modify&_id={$TOKEN_ID}&description={$DESCRIPTION}&ip={$IP}&username={$USERNAME}
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.