BOTDEFENSE::device_id

Description

Returns a number, representing the Device ID of the client, as retrieved from the request. If the Device ID is unknown, 0 is returned. By default, the Device ID is collected from the client, if it is enabled in the configuration. However, this can be overridden using the BOTDEFENSE::cs_attribute command.

Warning

Deprecated in BIG-IP Next v20.0.1


Syntax

BOTDEFENSE::device_id

BOTDEFENSE::device_id

Return Value

Returns the Device ID of the client, or 0 if the Device ID is unknown.

Valid During

BOTDEFENSE_REQUEST, BOTDEFENSE_ACTION

Examples

# EXAMPLE: Log the Device ID of the client, upon each request, if it is known.
 when BOTDEFENSE_REQUEST {
     if {[BOTDEFENSE::device_id] != 0} {
         set log "botdefense device_id of client IP [IP::client_addr] is"
         append log " [BOTDEFENSE::device_id]"
         HSL::send $hsl $log
     }
 }

Change Log

  • Introduced: BIGIP-12.1
  • Deprecated: BIGIP-20.0.1

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.