Hi, you need to POST your new rule to /mgmt/tm/ltm/policy/policy_https_pool_selector/rules
your need to increment the rule ordinal parameter.
here is a payload example which complement a policy created with your command line :
{
"name" : "foo2",
"ordinal" : 1,
"actionsReference" : {
"items" : [{
"name" : "0",
"code" : 0,
"forward" : true,
"pool" : "/Common/pool_foo",
"port" : 0,
"request" : true,
"select" : true,
"status" : 0,
"vlanId" : 0
}, {
"name" : "1",
"generation" : 4532,
"code" : 0,
"disable" : true,
"port" : 0,
"request" : true,
"serverSsl" : true,
"status" : 0,
"vlanId" : 0
}
]
},
"conditionsReference" : {
"items" : [{
"name" : "0",
"caseInsensitive" : true,
"external" : true,
"httpUri" : true,
"index" : 0,
"path" : true,
"present" : true,
"remote" : true,
"request" : true,
"startsWith" : true,
"values" : ["/foo"]
}
]
}
}