Introduced : BIG-IP_v11.6.0
Adds the specified response policy zone for a set of DNS caches. A DNS Cache configured with a response policy zone checks the query name in a DNS request as well as information in the response against the data in the configured zones. If a match is found, the DNS response is modified according to the configured action. For example, if the action is NXDOMAIN, the request is modified to give an NXDOMAIN result.


    in String [] caches,
    in String [] [] zones,
    in RPZActionType [] [] actions,
    in String [] [] walled_gardens


Parameter Type Description
caches String [] Names of the caches to modify.
zones String [] [] Response policy zones to add. Only the first zone is recorded.
actions RPZActionType [] [] The action to take if a match is found. Only the first action is recorded.
walled_gardens String [] [] If Action is Walled Garden, the local zone that contains the DNS records to use as the walled garden redirect. Only the first entry is recorded.

Return Type

Type Description


Exception Description
Common::AccessDenied Raised if the client credentials are not valid.
Common::InvalidArgument Raised if one of the arguments is invalid.
Common::OperationFailed Raised if an operation error occurs.

See Also


The links to the sample code below are remnants of the old DevCentral wiki and will result in a 404 error. For best results, please copy the link text and search the codeshare directly on DevCentral.

Sample Code


The BIG-IP API Reference documentation contains community-contributed content. F5 does not monitor or control community code contributions. We make no guarantees or warranties regarding the available code, and it may contain errors, defects, bugs, inaccuracies, or security vulnerabilities. Your access to and use of any code available in the BIG-IP API reference guides is solely at your own risk.