Is there a way to output/export a file to a secondary windows location?

Is there a way to export/output a file to a secondary windows server location, either through a policy or a script (javascript, python...)?

0 4 271
4 REPLIES 4

Not applicable

Hola Jony,

Apigee API proxies can't write to local nor remote file systems directly; You could, tough, issue a POST through a JavaScript callout to said secondary windows server, and save it there.

Of course, this approach will need an HTTP API listening on secondary windows server.

Which is your use case? May be Apigee log policies will fit well.

Most of the use case is around logging but we also thought about creating a file that would contain request information for successes. not sure if a csv or just a txt file with in the form of a list. That information would be in the log but looking for a cleaner way, easy way, from Apigee

As Mauricio said , the best way to achieve this is Message logging policy . You can find more details on documentation

http://docs.apigee.com/api-services/reference/message-logging-policy

Does it have to be a Window Server?

If you want a request log, you may want to look into a logging service, like Loggly, Stackdriver, Splunk, Azure Logging, something like that.

An Apigee proxy can write request logs into any of those kinds of services.