Forum Discussion
Steve_Brown_882
Jul 13, 2009Historic F5 Account
more pyControl questions
I am on to a new script and I just can't seem to get the code to work. I am trying to use
Management_KeyCertificate.certificate_request_import_from_file(
mode = 0, I...
Steve_Brown_882
Jul 14, 2009Historic F5 Account
Ok Matt I think I can probably get this with one last question.
I started looking at System_ConfigSync.upload_file and it seems like exactly what I need, but I can't figure out for the life of me how to pass the file_context paramaters. I think this is just a case of me being so new to python, but any help you can give me would be really appreciated. I think I need to define an object that has the opened file in it and the chunking info etc in it but I am not sure.
c = open("c:\\Cert\\test.crt")
>>> mycert = c.read()
b.System_ConfigSync.upload_file(
file_name = ['/config/ssl/ssl.key/test.crt'],
file_context = ????? )
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