MABreton
Sep 15, 2019Nimbostratus
How to get bundle certificates subcollection using f5-sdk
Hi,
I'm trying to get the content of my certificate bundles using F5-sdk but I cannot find the way to load the subcollection.
certificates = b.tm.sys.file.ssl_certs.get_collection()
for cert in certificates:
if cert.isBundle == 'true':
cert_bundle = cert.bundlecertificates_s.get_collection()
I get the following error
AttributeError: '<class 'f5.bigip.tm.sys.file.Ssl_Cert'>' object has no attribute 'bundlecertificates_s'
If I copy the link I get from the attribute bundleCertificatesReference.link of the 'cert' object and access directly the link in a browser, it works.
Not sure what I'm doing wrong and would need help.
Thanks,
Marc