Forum Discussion
Apr 24, 2019
This one works for me:
POST https://{{bigip_a_mgmt}}/mgmt/tm/ltm/virtual
And the body:
{
"source": "0.0.0.0/0",
"ipProtocol": "tcp",
"description": "autocreated sitename_vs",
"rateLimit": "disabled",
"destination": "10.23.98.222:443",
"mask": "255.255.255.255",
"rules": [
"_sys_https_redirect"
],
"name": "sitename_vs",
"sourceAddressTranslation": {
"type": "automap"
},
"profiles" : [ {
"kind" : "ltm:virtual:profile",
"name" : "http"
}],
"pool": "pool_test",
"partition": "Common"
}
I had to correct "Name" to "name", the mask from "255.255.255.0" to "255.255.255.255" and add the http profile. This is needed when using the _sys_https_redirect iRule.