Use the List Administrator ACL to list the all the ACLs present on the Virtualizor panel. The list contains the information of the ACLs containing the details of the virtualizor features that are enabled or disabled, which are listed according to the ID of the ACLs. To limit the size of the list, you can specify page and reslen parameters.
For more information, you can refer this Administrator ACL guide.
HTTP Request
https://hostname:4085/index.php?act=admin_acl
Parameters
Name | Method | Value | Description | Required |
---|---|---|---|---|
act | GET | admin_acl | The action will return a list of the admin ACL | Yes |
page | POST | Int | The page number for the list default is 1 | No |
reslen | POST | Int | Specifies length of the result to be returned | No |
Sample Code
<?php
require_once('/usr/local/virtualizor/sdk/admin.php');
$key = 'your_api_key';
$pass = 'your_api_pass';
$ip = 'your_server_ip';
$admin = new Virtualizor_Admin_API($ip, $key, $pass);
$post = array();
$post['page'] = 1;
$post['reslen'] = 2;
$output = $admin->admin_acl($post);
print_r(json_encode($output));
?>
Output
{
"title": "Administrator Access Control List",
"acls": {
"1": {
"aclid": "1",
"acl_name": "all allowed",
"act_cluster_statistics": "1",
"act_cluster_resources": "0",
"act_statistics": "0",
"act_server_statistics": "1",
"act_vs": "1",
"act_vsresources": "1",
"act_editvs": "1",
"act_suspendvs": "1",
"act_unsuspendvs": "1",
"act_deletevs": "1",
"act_startvs": "0",
"act_stopvs": "0",
"act_restartvs": "0",
"act_poweroffvs": "0",
"act_addvs": "1",
"act_rebuildvs": "1",
"act_vnc": "1",
"act_migrate": "1",
"act_ippool": "1",
"act_editippool": "1",
"act_deleteippool": "1",
"act_addippool": "1",
"act_ips": "1",
"act_editips": "1",
"act_deleteips": "1",
"act_addips": "1",
"act_servers": "1",
"act_addserver": "1",
"act_editserver": "1",
"act_deleteserver": "1",
"act_rebootserver": "1",
"act_sg": "1",
"act_addsg": "1",
"act_editsg": "1",
"act_deletesg": "1",
"act_vpsbackupsettings": "1",
"act_restorevpsbackup": "1",
"act_deletevpsbackup": "1",
"act_vpsbackups": "1",
"act_backupservers": "1",
"act_editbackupservsers": "1",
"act_addbackupserver": "1",
"act_deletebackupserver": "1",
"act_plans": "1",
"act_addplan": "1",
"act_editplan": "1",
"act_deleteplan": "1",
"act_dnsplans": "1",
"act_adddnsplan": "1",
"act_editdnsplan": "1",
"act_deletednsplan": "1",
"act_users": "1",
"act_adduser": "1",
"act_edituser": "1",
"act_deleteuser": "1",
"act_ostemplates": "1",
"act_edittemplate": "1",
"act_deletetemplate": "1",
"act_os": "1",
"act_addtemplate": "1",
"act_createtemplate": "1",
"act_iso": "1",
"act_addiso": "1",
"act_editiso": "1",
"act_deleteiso": "1",
"act_mg": "1",
"act_addmg": "1",
"act_editmg": "1",
"act_deletemg": "1",
"act_config": "1",
"act_emailsettings": "1",
"act_databackup": "1",
"act_performdatabackup": "1",
"act_dldatabackup": "1",
"act_deletedatabackup": "1",
"act_adminacl": "1",
"act_add_admin_acl": "1",
"act_edit_admin_acl": "1",
"act_delete_admin_acl": "1",
"act_serverinfo": "1",
"act_licenseinfo": "1",
"act_hostname": "1",
"act_changehostname": "1",
"act_maintenance": "1",
"act_kernconfig": "1",
"act_defaultvsconf": "1",
"act_updates": "1",
"act_emailtemps": "1",
"act_editemailtemps": "1",
"act_phpmyadmin": "1",
"act_pdns": "1",
"act_addpdns": "1",
"act_editpdns": "1",
"act_deletepdns": "1",
"act_rdns": "1",
"act_managepdns": "1",
"act_importvs": "1",
"act_ssl": "1",
"act_editssl": "1",
"act_createssl": "1",
"act_firewall": "1",
"act_procs": "1",
"act_services": "1",
"act_webserver": "1",
"act_network": "1",
"act_sendmail": "1",
"act_mysqld": "1",
"act_iptables": "1",
"act_filemanager": "1",
"act_ssh": "1",
"act_logs": "1",
"act_userlogs": "1",
"act_loginlogs": "1",
"act_deletelogs": "1",
"act_deleteloginlogs": "1",
"act_deleteuserlogs": "1",
"act_recipes": "1",
"act_addrecipe": "1",
"act_editrecipe": "1",
"act_iplogs": "1",
"act_deliplogs": "1",
"act_list_distros": "1",
"act_add_distro": "1",
"act_suspend_user": "1",
"act_unsuspend_user": "1",
"act_backup_plans": "1",
"act_addbackup_plan": "1",
"act_editbackup_plan": "1",
"act_deletebackup_plan": "1",
"act_haproxy": "1",
"act_twofactauth": "1",
"act_euiso": "1",
"act_orphaneddisk": "1",
"act_deleteorphaneddisk": "1"
},
"2": {
"aclid": "2",
"acl_name": "test_api",
"act_cluster_statistics": "0",
"act_cluster_resources": "0",
"act_statistics": "0",
"act_server_statistics": "0",
"act_vs": "0",
"act_vsresources": "0",
"act_editvs": "0",
"act_suspendvs": "0",
"act_unsuspendvs": "0",
"act_deletevs": "0",
"act_startvs": "0",
"act_stopvs": "0",
"act_restartvs": "0",
"act_poweroffvs": "0",
"act_addvs": "0",
"act_rebuildvs": "0",
"act_vnc": "0",
"act_migrate": "0",
"act_ippool": "0",
"act_editippool": "0",
"act_deleteippool": "0",
"act_addippool": "0",
"act_ips": "0",
"act_editips": "0",
"act_deleteips": "0",
"act_addips": "0",
"act_servers": "0",
"act_addserver": "0",
"act_editserver": "0",
"act_deleteserver": "0",
"act_rebootserver": "0",
"act_sg": "0",
"act_addsg": "0",
"act_editsg": "0",
"act_deletesg": "0",
"act_vpsbackupsettings": "0",
"act_restorevpsbackup": "0",
"act_deletevpsbackup": "0",
"act_vpsbackups": "0",
"act_backupservers": "0",
"act_editbackupservsers": "0",
"act_addbackupserver": "0",
"act_deletebackupserver": "0",
"act_plans": "0",
"act_addplan": "0",
"act_editplan": "0",
"act_deleteplan": "0",
"act_dnsplans": "0",
"act_adddnsplan": "0",
"act_editdnsplan": "0",
"act_deletednsplan": "0",
"act_users": "0",
"act_adduser": "0",
"act_edituser": "0",
"act_deleteuser": "0",
"act_ostemplates": "0",
"act_edittemplate": "0",
"act_deletetemplate": "0",
"act_os": "0",
"act_addtemplate": "0",
"act_createtemplate": "0",
"act_iso": "0",
"act_addiso": "0",
"act_editiso": "0",
"act_deleteiso": "0",
"act_mg": "0",
"act_addmg": "0",
"act_editmg": "0",
"act_deletemg": "0",
"act_config": "0",
"act_emailsettings": "0",
"act_databackup": "0",
"act_performdatabackup": "0",
"act_dldatabackup": "0",
"act_deletedatabackup": "0",
"act_adminacl": "0",
"act_add_admin_acl": "0",
"act_edit_admin_acl": "0",
"act_delete_admin_acl": "0",
"act_serverinfo": "0",
"act_licenseinfo": "0",
"act_hostname": "0",
"act_changehostname": "0",
"act_maintenance": "0",
"act_kernconfig": "0",
"act_defaultvsconf": "0",
"act_updates": "0",
"act_emailtemps": "0",
"act_editemailtemps": "0",
"act_phpmyadmin": "0",
"act_pdns": "0",
"act_addpdns": "0",
"act_editpdns": "0",
"act_deletepdns": "0",
"act_rdns": "0",
"act_managepdns": "0",
"act_importvs": "0",
"act_ssl": "0",
"act_editssl": "0",
"act_createssl": "0",
"act_firewall": "0",
"act_procs": "0",
"act_services": "0",
"act_webserver": "0",
"act_network": "0",
"act_sendmail": "0",
"act_mysqld": "0",
"act_iptables": "0",
"act_filemanager": "0",
"act_ssh": "0",
"act_logs": "0",
"act_userlogs": "0",
"act_loginlogs": "0",
"act_deletelogs": "0",
"act_deleteloginlogs": "0",
"act_deleteuserlogs": "0",
"act_recipes": "0",
"act_addrecipe": "0",
"act_editrecipe": "0",
"act_iplogs": "0",
"act_deliplogs": "0",
"act_list_distros": "0",
"act_add_distro": "0",
"act_suspend_user": "0",
"act_unsuspend_user": "0",
"act_backup_plans": "0",
"act_addbackup_plan": "0",
"act_editbackup_plan": "0",
"act_deletebackup_plan": "0",
"act_haproxy": "0",
"act_twofactauth": "0",
"act_euiso": "0",
"act_orphaneddisk": "0",
"act_deleteorphaneddisk": "0"
}
},
"timenow": 1536007413,
"time_taken": "0.225"
}