@paraic.oceallaigh I am looking for someone who could help me to get this information using the Octopus Client library in C#. Could you please ask someone from the Octopus Client library team to assist?
I wanted to let you know that earlier this year Octopus changed its policies around providing API scripts for customers. In the past, we’d get a request such as this, maybe ask a few clarification questions, write up an example script for you to modify, and send it over. Then a few days would go by as you attempted to modify it to fit your needs, but you’d find an error or some additional use case that wasn’t mentioned in earlier conversations, slowing down progress. It wasn’t a great experience for anyone.
Our new policy gives you two choices:
We point you in a general direction and provide some pseudo-code and endpoints to consider, but you’d write the script.
We now offer professional services where for a fee we’d write API script(s) for you. We’d meet with you, discuss your use case, conditions of satisfaction, any gotchas specific for your instance, and write something specifically for you.
If you opt for general direction, then I’d recommend taking a look at our OctopusDeploy-Api repository, as it contains many examples of API scripts, in different languages. A particular script that might interest you is this one - OctopusDeploy-Api/PackagesDeployedToEnvironmentFromVariables.cs at master · OctopusDeploy/OctopusDeploy-Api · GitHub which looks for information about packages that have been deployed using the variables associated with the deployment of a release. One other thing to note is that it’s unfortunately not possible to retrieve files (that have been deployed through Octopus) via the Octopus Client to preview them.
Alternatively, if you’d like to discuss professional services, I’d be happy to schedule a discovery call.