Last modified October 31, 2024

listAssignableAccounts

This function returns the list of Assignable IDs for a given username.
Parameters
Parameter name Type Description Possible values Examples
accounts String REQUIRED: Username of the account you wish to reassign.   account=username
Returns
Parameter name Type Description Possible values Examples
accounts List [] The list of assignable accounts to the given username.    
total Integer Total number of assignable accounts for the given username.   3

Example Call JETAPI

jetbackup5api -F listAssignableAccounts -D "account={$USERNAME}"
success: 1
message:
system:
version: 5.3.3
version_panel: 5.3.3
tier: EDGE
type: cPanel
retry_ms: 0
disableui:
dr:
agreement_panel:
agreement:
licenseIssue:
data:
accounts:
data:
accounts:
        0:
        _id: 6503d48bfc45b1addf0a9634
        uuid: 0d04a5eaa0253ec3c2f6f3c09593a326ff4cc468
        active:
        last_active: 2023-09-15T05:02:30+00:00
        created: 2023-09-15T03:50:35+00:00
        total_backups: 0

Example Call HTTP

https://hostname.example.com:2087/cpsess##########/cgi/addons/jetbackup5/api.cgi?function=listAssignableAccounts&account=username