Forum Discussion
Rajesh_JVLN_179
Nimbostratus
Jan 03, 2015Use Poolmember hostname instead of Ipaddress
I am using f5-icontrol to manage bigip I am able to add/delete/modify and remove members by Ipaddress as Poolmember, I want to use hostname as a poolmember instead of Ipaddress.
Please advise.
R_Marc
Nimbostratus
Jan 06, 2015This feature was added in 11.6 I think (maybe 11.5...but I don't have anything still on 11.5).
curl -sk -u admin:admin -H "Content-Type: application/json" -X PUT https://bip1/mgmt/tm/ltm/pool/rmarc-test-pool -d '{"name":"rmarc-test-pool","members":[{"name":"www.google.com:443","fqdn":{"autopopulate":"enabled"}}]}'| python -m json.tool
Then it'll populate:
curl -sk -u admin:admin -H "Content-Type: application/json" -X GET https://bip1/mgmt/tm/ltm/pool/rmarc-test-pool/members | python -m json.tool
{
"items": [
{
"address": "any6",
"connectionLimit": 0,
"dynamicRatio": 1,
"ephemeral": "false",
"fqdn": {
"autopopulate": "enabled",
"tmName": "www.google.com"
},
"fullPath": "/Common/www.google.com:443",
"generation": 150,
"inheritProfile": "enabled",
"kind": "tm:ltm:pool:members:membersstate",
"logging": "disabled",
"monitor": "default",
"name": "www.google.com:443",
"partition": "Common",
"priorityGroup": 0,
"rateLimit": "disabled",
"ratio": 1,
"selfLink": "https://localhost/mgmt/tm/ltm/pool/rmarc-test-pool/members/~Common~www.google.com:443?ver=11.6.0",
"session": "user-enabled",
"state": "fqdn-up"
},
{
"address": "173.194.123.80",
"connectionLimit": 0,
"dynamicRatio": 1,
"ephemeral": "true",
"fqdn": {
"autopopulate": "disabled",
"tmName": "www.google.com"
},
"fullPath": "/Common/www.google.com-173.194.123.80:443",
"generation": 150,
"inheritProfile": "enabled",
"kind": "tm:ltm:pool:members:membersstate",
"logging": "disabled",
"monitor": "default",
"name": "www.google.com-173.194.123.80:443",
"partition": "Common",
"priorityGroup": 0,
"rateLimit": "disabled",
"ratio": 1,
"selfLink": "https://localhost/mgmt/tm/ltm/pool/rmarc-test-pool/members/~Common~www.google.com-173.194.123.80:443?ver=11.6.0",
"session": "user-enabled",
"state": "up"
},
{
"address": "173.194.123.81",
"connectionLimit": 0,
"dynamicRatio": 1,
"ephemeral": "true",
"fqdn": {
"autopopulate": "disabled",
"tmName": "www.google.com"
},
"fullPath": "/Common/www.google.com-173.194.123.81:443",
"generation": 150,
"inheritProfile": "enabled",
"kind": "tm:ltm:pool:members:membersstate",
"logging": "disabled",
"monitor": "default",
"name": "www.google.com-173.194.123.81:443",
"partition": "Common",
"priorityGroup": 0,
"rateLimit": "disabled",
"ratio": 1,
"selfLink": "https://localhost/mgmt/tm/ltm/pool/rmarc-test-pool/members/~Common~www.google.com-173.194.123.81:443?ver=11.6.0",
"session": "user-enabled",
"state": "up"
},
{
"address": "173.194.123.82",
"connectionLimit": 0,
"dynamicRatio": 1,
"ephemeral": "true",
"fqdn": {
"autopopulate": "disabled",
"tmName": "www.google.com"
},
"fullPath": "/Common/www.google.com-173.194.123.82:443",
"generation": 150,
"inheritProfile": "enabled",
"kind": "tm:ltm:pool:members:membersstate",
"logging": "disabled",
"monitor": "default",
"name": "www.google.com-173.194.123.82:443",
"partition": "Common",
"priorityGroup": 0,
"rateLimit": "disabled",
"ratio": 1,
"selfLink": "https://localhost/mgmt/tm/ltm/pool/rmarc-test-pool/members/~Common~www.google.com-173.194.123.82:443?ver=11.6.0",
"session": "user-enabled",
"state": "up"
},
{
"address": "173.194.123.83",
"connectionLimit": 0,
"dynamicRatio": 1,
"ephemeral": "true",
"fqdn": {
"autopopulate": "disabled",
"tmName": "www.google.com"
},
"fullPath": "/Common/www.google.com-173.194.123.83:443",
"generation": 150,
"inheritProfile": "enabled",
"kind": "tm:ltm:pool:members:membersstate",
"logging": "disabled",
"monitor": "default",
"name": "www.google.com-173.194.123.83:443",
"partition": "Common",
"priorityGroup": 0,
"rateLimit": "disabled",
"ratio": 1,
"selfLink": "https://localhost/mgmt/tm/ltm/pool/rmarc-test-pool/members/~Common~www.google.com-173.194.123.83:443?ver=11.6.0",
"session": "user-enabled",
"state": "up"
},
{
"address": "173.194.123.84",
"connectionLimit": 0,
"dynamicRatio": 1,
"ephemeral": "true",
"fqdn": {
"autopopulate": "disabled",
"tmName": "www.google.com"
},
"fullPath": "/Common/www.google.com-173.194.123.84:443",
"generation": 150,
"inheritProfile": "enabled",
"kind": "tm:ltm:pool:members:membersstate",
"logging": "disabled",
"monitor": "default",
"name": "www.google.com-173.194.123.84:443",
"partition": "Common",
"priorityGroup": 0,
"rateLimit": "disabled",
"ratio": 1,
"selfLink": "https://localhost/mgmt/tm/ltm/pool/rmarc-test-pool/members/~Common~www.google.com-173.194.123.84:443?ver=11.6.0",
"session": "user-enabled",
"state": "up"
}
],
"kind": "tm:ltm:pool:members:memberscollectionstate",
"selfLink": "https://localhost/mgmt/tm/ltm/pool/rmarc-test-pool/members?ver=11.6.0"
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects