LocalLB::ContentPolicy::set_action_expiry

Introduced : BIG-IP_v12.0.0
Sets the expiry for a connection in conjunction with a PolicyAction of POLICY_ACTION_PERSIST_COOKIE_INSERT or POLICY_ACTION_COOKIE_REWRITE. The expiry determines how long a persistence cookie is valid for a connection. The format of arguments can take two forms: <NN> - For an expiry of NN seconds. [<NN>d][<HH>:<MM>:<SS>] - For an expiry of NN days, HH hours, MM minutes, SS seconds. For example, an expiry of 9d09:09:09 would set a cookie expiration 9 days, 9 hours, 9 minutes, and 9 seconds, into the future.

Prototype

 set_action_expiry(
    in String [] policies,
    in String [] [] rules,
    in long [] [] [] action_ids,
    in String [] [] [] expiries
);

Parameters

Parameter Type Description
policies String [] A list of Content Policies.
rules String [] [] A list of Content Policy Rules for the specified Content Policies.
action_ids long [] [] [] A list of Action IDs for the given Content Policy Rules.
expiries String [] [] [] A list of expiries for the given Content Policy Actions.

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.