Retrieving ACL

To retrieve the ACL of your name server, use the get_acl operation. This operation is available on Linux only.

In this chapter:

Request Packet Structure

Response Packet Structure

Sample

 
Request Packet Structure

The get_acl operation in a request packet has the following graphics presentation:

Data type: none.

 
Response Packet Structure

The get_acl operation in a response packet has the following graphics presentation:

  • The result node is optional. It is required in case when the get_acl operation has succeeded, or when an error (if it occurred) was not of a system type. Data type: resultType (common.xsd).
  • The status node is required. It specifies the execution status of the get_acl operation. Data type: string. Allowed values: ok | error.
  • The errcode node is optional. It is used to return the error code when the get_acl operation fails. Data type: unsignedInt.
  • The errtext node is optional. It is used to return the error message if the get_acl operation fails. Data type: string.
  • The host node is optional. It is required if the del_acl operation has succeeded. Returns the IP address or name of hosts from ACL. Data type: string.

 

 
Sample

The request sample may be the following:

<packet version="1.4.2.0">
<dns>
   <get_acl/>
</dns>
</packet>

Response:

<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.4.2.0">
  <dns>
    <get_acl>
      <result>
        <status>ok</status>
      </result>
    </get_acl>
  </dns>
</packet>
 

Leave your comments on this page

Leave your feedback or question on this documentation topic below. For technical assistance, contact your hosting service provider or submit a request to Plesk support. Suggest new features for Plesk here. Discuss general questions on the Plesk forum. All offtopic comments will be removed.