Get Virtualizor

Delete Administrator ACL

Use the Delete Administrator ACL to delete an administrator ACL or multiple administrator ACLs present on the Virtualizor panel, by passing the ACL ID. The IDs can be obtained by the List Administrator ACL API. The API response will contain "done" as an array of the deleted IDs on success.

HTTP Request

https://hostname:4085/index.php?act=admin_acl

Parameters

NameMethodValueDescriptionRequired
actGETadmin_aclThe action required to perform the operation and will return "done" as the array of the deleted IDsYes
deletePOSTIntThe ID of the ACL. For deleting multiple ACLs, pass in the IDs as comma separated valuesYes

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['delete'] = 2;
    $post['delete'] = '4,3'; // for deleting multiple acls

    $output = $admin->admin_acl($post);

    print_r(json_encode($output));

?>

Output

{
    "title": "Administrator Access Control List",
    "done": [
        3,
        4
    ],
    "acls": null,
    "timenow": 1536007725,
    "time_taken": "0.256"
}
    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list