Forum Discussion
F5 SDK Python - Assign HTTP Profile to VIP
Hi Rodrigo, thank you for responding. Creating profile works for me with not issues, but I do not know how to update the VIP and assign that same profile to it. For example this particular VIP has two profiles assigned via GUI: Protocol Profile (client): tcp, and HTTP Profile: http_profile_1. Her is the output when using SDK and no signs of http profile assigned:
vip1:
kind tm:ltm:virtual:virtualstate
name vip1
partition Common
fullPath /Common/vip1
generation 209
selfLink https://localhost/mgmt/tm/ltm/virtual/~Common~vip1?ver=13.1.3.5
addressStatus yes
autoLasthop default
cmpEnabled yes
connectionLimit 0
destination /Common/10.3.44.72:443
enabled True
gtmScore 0
ipProtocol tcp
mask 255.255.255.255
mirror disabled
mobileAppTunnel disabled
nat64 disabled
pool /Common/test_pool_1
poolReference {'link': 'https://localhost/mgmt/tm/ltm/pool/~Common~test_pool_1?ver=13.1.3.5'}
rateLimit disabled
rateLimitDstMask 0
rateLimitMode object
rateLimitSrcMask 0
serviceDownImmediateAction none
source 0.0.0.0/0
sourceAddressTranslation {'type': 'none'}
sourcePort preserve
synCookieStatus not-activated
translateAddress enabled
translatePort enabled
vlansDisabled True
vsIndex 32
policiesReference {'link': 'https://localhost/mgmt/tm/ltm/virtual/~Common~vip1/policies?ver=13.1.3.5', 'isSubcollection': True}
profilesReference {'link': 'https://localhost/mgmt/tm/ltm/virtual/~Common~vip1/profiles?ver=13.1.3.5', 'isSubcollection': True}
_meta_data {'container': <f5.bigip.tm.ltm.virtual.Virtuals object at 0x7fe96a6da8b0>, 'bigip': <f5.bigip.ManagementRoot object at 0x7fe96a742c40>, 'icr_session': <icontrol.session.iControlRESTSession object at 0x7fe96a742c70>, 'icontrol_version': '', 'minimum_version': '11.5.0', 'allowed_commands': [], 'required_command_parameters': set(), 'exclusive_attributes': [('enabled', 'disabled'), ('vlansEnabled', 'vlansDisabled')], 'object_has_stats': True, 'minimum_additional_parameters': set(), 'required_creation_parameters': {'name'}, 'required_load_parameters': {'name'}, 'read_only_attributes': [], 'reduction_forcing_pairs': [('enabled', 'disabled'), ('online', 'offline'), ('vlansEnabled', 'vlansDisabled')], 'allowed_lazy_attributes': [<class 'f5.bigip.tm.ltm.virtual.Profiles_s'>, <class 'f5.bigip.tm.ltm.virtual.Policies_s'>, <class 'f5.bigip.resource.Stats'>], 'required_json_kind': 'tm:ltm:virtual:virtualstate', 'attribute_registry': {'tm:ltm:virtual:profiles:profilescollectionstate': <class 'f5.bigip.tm.ltm.virtual.Profiles_s'>, 'tm:ltm:virtual:policies:policiescollectionstate': <class 'f5.bigip.tm.ltm.virtual.Policies_s'>}, 'uri': 'https://ch3-lab-lb01.csfunds.org:443/mgmt/tm/ltm/virtual/~Common~vip1/', 'creation_uri_qargs': {'ver': ['13.1.3.5']}, 'creation_uri_frag': ''}
###############################################
Recent Discussions
Related Content
* 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