Forum Discussion
F5 Python SDK - list certificates on device results in error
To clarify this is an error returned as part of the REST request, not really related to the SDK. I am able to get the other subcollections, such as a list of the keys, fine. Only the certs subcollection results in this error.
API guide indicates possible reasons for a 400 error are a malformed request or incorrect name in request. I confirmed the name with the parent collection (crypto), and requesting in the same manner as done for the keys subcollection. Not sure what is going wrong with listing the cert subcollection.
>>> crypto = session.get('https:///mgmt/tm/sys/crypto')
>>> print(crypto.text)
{"kind":"tm:sys:crypto:cryptocollectionstate","selfLink":";:[{"reference":{"link":";}},{"reference":{"link":";}},{"reference":{"link":";}},{"reference":{"link":";}},{"reference":{"link":";}},{"reference":{"link":";}},{"reference":{"link":";}}]}
>>> cert = session.get("https:///mgmt/tm/sys/crypto/cert?ver=12.1.1")
>>> print(cert.text)
{"code":400,"message":"Key management library returned bad status: -4, Invalid Parameter","errorStack":[],"apiError":26214401}
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