Created
April 16, 2015 18:56
-
-
Save Dalmirog-zz/01c29dfa2c585a731033 to your computer and use it in GitHub Desktop.
Add step template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$OctopusAPIKey = "YourApiKey" | |
$OctopusURL = "YourOctopusURL" | |
$header = @{ "X-Octopus-ApiKey" = $OctopusAPIKey } | |
$steptemplateJson = Get-Content .\StepTemplate.txt #This file should contain the full Json of the step template | |
Invoke-RestMethod $OctopusURL/api/actiontemplates -Method Post -Headers $header -Body $steptemplateJson |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment