or Create a profile
06 Dec, 2017 08:43 PM
I need to create Step in some determined DeploymentProcess through the API. I was wondering if Is it possible to do it avoid using the Octopus.Client. Do i need to create an ActionTemplate before?? I tried this and it did not work.
$deploymentProcess = (Invoke-WebRequest "$uri" -Method Get -Headers $header) | ConvertFrom-Json
$JsonStep = $newStep |ConvertFrom-Json
$deploymentProcess.Steps += ($JsonStep)
$body = $deploymentProcess | ConvertTo-Json
Invoke-WebRequest "$uri" -Method Put -Headers $header -Body -$body
on 07 Dec, 2017 01:15 AM
Thanks for getting in touch.
We have some examples of how to use the Ocotpus API in our API Repository.
This example in particular shows how you can add a script step to a deployment process. This would make a good starting point for your own script.
Formatting help /
(switch to plain text)
(switch to Markdown)
You can attach files up to 10MB
If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.
A conversation has been started with the Octopus Deploy staff to resolve this discussion.
This discussion is private.
Only Octopus Deploy support staff and members of
can see and reply to it.
This discussion is public. Everyone can see and reply to it.
You can use Command ⌘ instead of Control ^ on Mac
Powered by Tender™.