Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get bundle certificates subcollection #1546

Open
mbreton1 opened this issue Dec 6, 2019 · 0 comments
Open

How to get bundle certificates subcollection #1546

mbreton1 opened this issue Dec 6, 2019 · 0 comments

Comments

@mbreton1
Copy link

mbreton1 commented Dec 6, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant