GlobalLB::PoolV2::set_returned_answers_count

Introduced : BIG-IP_v12.0.0
Sets the maximum number of answers to return for a given query answered from the specified pools. The default value is 1 and the maximum value is 16. Any answers returned beyond the first one are put in the additional records section of the response. For example, for an A or AAAA type query answered from a pool that is set to return 2 answers, an IP address is added to the response in the answer section and a second IP address is added to the additional record section of the response. The types of answers returned will vary with the type of the request. Note that for a CNAME type pool, setting the number of answers to return to a value greater than 1 is not allowed and will result in an error.

Prototype

 set_returned_answers_count(
    in GlobalLB__PoolID [] pools,
    in long [] answers
);

Parameters

Parameter Type Description
pools PoolID [] The list of pools.
answers long [] The number of answers to return for the specified pools.

Return Type

Type Description
void  

Exceptions

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

Warning

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.