ltm rule command CLASSIFY urlcatΒΆ

iRule(1)		      BIG-IP TMSH Manual		      iRule(1)



CLASSIFY::urlcat
       Allows to set or add an url category to the classification.

SYNOPSIS
       CLASSIFY::urlcat ('set' | 'add') CLASSIFY_URL_CATEGORY_NAME

DESCRIPTION
       This command allows you to set or add an url category to the
       classification.

       * Note: APM / AFM / PEM license is required for functionality to work.

       CLASSIFY::urlcat set 

	    * will immediately classify flow as URL_category.

       CLASSIFY::application add 

	    * adds an URL Category to the URL classification token to the final
	      classification result issued by the classification engine. This can
	      be issued multiple times in order to add multiple tokens to the classification result.

	  Note: set/add commands will have no effect if fired after the flow has
	  been classified.

RETURN VALUE
VALID DURING
       HTTP_REQUEST, HTTP_RESPONSE

EXAMPLES
	root@(vbigip01)(cfg-sync Standalone)(Active)(/Common)(tmos)# create ltm classification url-category customCategory { urlcat-id 28673 }
	root@(vbigip01)(cfg-sync Standalone)(Active)(/Common)(tmos)# list ltm classification url-category customCategory
	ltm classification url-category customCategory {
	    urlcat-id 28673
	}
	root@(vbigip01)(cfg-sync Standalone)(Active)(/Common)(tmos)# quit

	iRULE for set:
	--------------
	when HTTP_REQUEST
	{
	    if { [HTTP::host] contains "google"} {
		CLASSIFY::urlcat set customCategory
	    }
	}

	iRule for add:
	-------------
	when HTTP_REQUEST
	{
	    if { [HTTP::host] contains "google"} {
		CLASSIFY::urlcat add customCategory
	    }
	}

HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-11.5.0 --First introduced the command.



BIG-IP				  2017-01-31			      iRule(1)