Last modified November 7, 2024
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 used from. | ip=127.0.0.1 |
|
username | String | The account name that the token can be used for. Can be root. | username=account123 |
Example Call JETAPI
jetbackup5api -F panelAPI -D "call=manageToken&action=create&description=My Description&ip=127.0.0.1&username={$ACCOUNT_NAME}"
jetbackup5api -F panelAPI -D "call=manageToken&action=modify&_id={$TOKEN_ID}&description=My Description&ip=127.0.0.1&username={$ACCOUNT_NAME}"
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: example
token: gsDmPhATP5B52W6XkTCjXwHrNRxkL5ku
Example Call HTTP
https://HOST_NAME:3035/?api=1&function=panelAPI&call=manageToken&action=create&description=My Description&ip=127.0.0.1&username={$ACCOUNT_NAME}
https://HOST_NAME:3035/?api=1&function=panelAPI&call=manageToken&action=modify&_id={$TOKEN_ID}&description=My Description&ip=127.0.0.1&username={$ACCOUNT_NAME}
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.