Exporting ASM Policies in C#?

I am exploring the .NET API, and as a test case I’d like to use the export_policy_xml method to export a policy and save the output file to my desktop. I’ve looked at code samples and read through the API documentation but I haven’t found anything that will get me going in the right direction. I am able to connect to our f5 and return bits of information here and there, but I’ve hit a roadblock trying to export the policy. Thoughts, comments, or suggestions?

Thanks!

I have no full experience with iControl SOAP.

But, I think you need to export a policy first then download file created.

export_policy_xml( in String policy_name, in String filename );

FileTransferContext download_policy( in String policy_name, in long chunk_size, inout long file_offset );

DevCentral DevCentral

Consider move to iControlREST and get more functionalities.

Regards.