Forum Discussion
R_Marc
Nov 12, 2015Nimbostratus
I can't speak for PS or snapins (whatever that is) but this worked for me:
cat test_fqdn.json | python -m json.tool; curl -sk -u admin:$PASS -H "Content-Type: application/json" -X POST https://bigip1/mgmt/tm/ltm/pool/ -d@test_fqdn.json | python -m json.tool
JSON file:
{
"members": [
{
"fqdn": {
"autopopulate": "enabled",
"tmName": "KSCUCPL01.mydomain.com"
},
"name": "KSCUCPL01.mydomain.com:4443",
"priorityGroup": 100
}
],
"name": "test-fqdn-pool"
}
Result:
{
"allowNat": "yes",
"allowSnat": "yes",
"fullPath": "test-fqdn-pool",
"generation": 43,
"ignorePersistedWeight": "disabled",
"ipTosToClient": "pass-through",
"ipTosToServer": "pass-through",
"kind": "tm:ltm:pool:poolstate",
"linkQosToClient": "pass-through",
"linkQosToServer": "pass-through",
"loadBalancingMode": "round-robin",
"membersReference": {
"isSubcollection": true,
"link": "https://localhost/mgmt/tm/ltm/pool/~Common~test-fqdn-pool/members?ver=11.6.0"
},
"minActiveMembers": 0,
"minUpMembers": 0,
"minUpMembersAction": "failover",
"minUpMembersChecking": "disabled",
"name": "test-fqdn-pool",
"queueDepthLimit": 0,
"queueOnConnectionLimit": "disabled",
"queueTimeLimit": 0,
"reselectTries": 0,
"selfLink": "https://localhost/mgmt/tm/ltm/pool/test-fqdn-pool?ver=11.6.0",
"serviceDownAction": "none",
"slowRampTime": 10
}