Table
VCL tables are created using the table declaration. Table declarations can also be generated automatically using dictionaries, which are writable via the Fastly API. The content of the dictionary is transformed into a table declaration and prepended to your service's VCL.
These functions provide the ability to consult a table and look up items in it at runtime from within a VCL service.
- table.contains — True if a table contains an item with the given key
- table.lookup — Find an item from a table of
STRINGvalues - table.lookup_acl — Find an item from a table of
ACLvalues - table.lookup_backend — Find an item from a table of
BACKENDvalues - table.lookup_bool — Find an item from a table of
BOOLvalues - table.lookup_float — Find an item from a table of
FLOATvalues - table.lookup_integer — Find an item from a table of
INTEGERvalues - table.lookup_ip — Find an item from a table of
IPvalues - table.lookup_regex — Find an item from a table of
REGEXvalues - table.lookup_rtime — Find an item from a table of
RTIMEvalues