You can’t specify a custom persistence profile. Though you can specify all the attributes of a custom persistence profile in an iRule using the persist command (Click here
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/a/" } {
pool pool01
Specify cookie insert persistence using name COOKIE_NAME with a timeout of 600 seconds
persist cookie insert COOKIE_NAME 600
} else {
pool pool02
}
}