Generating a Lifecyle with the api

leon.quiding's Avatar

leon.quiding

09 Nov, 2017 06:37 PM

Hi

I am trying to create a life cycle with the api .
I look at the request generated
{"Name":"a","Phases":[{"Name":"1","MinimumEnvironmentsBeforePromotion":0,"AutomaticDeploymentTargets":[],"OptionalDeploymentTargets":["Environments-552"],"$$hashKey":"object:9776"}],"ReleaseRetentionPolicy":{"ShouldKeepForever":true,"QuantityToKeep":0,"Unit":"Items"},"TentacleRetentionPolicy":{"ShouldKeepForever":true,"QuantityToKeep":0,"Unit":"Items"}}

And it has these hashKey's and when i try to replicate the request without the hashkey I get a 500 error what am I doing wrong?

thanks

  1. Support Staff 1 Posted by Kenneth Bates on 13 Nov, 2017 01:55 AM

    Kenneth Bates's Avatar

    Hi Leon,

    Thanks for getting in touch! I'm sorry you're hitting this issue. Currently I'm not sure exactly what could be causing this hashkey addition. It may be something in our UI logic that's adding it. What's the specific error you're getting?

    If it helps for the time being, I was able to create a lifecycle via the Octopus.Client using the example script shown here: https://github.com/OctopusDeploy/OctopusDeploy-Api/blob/master/Octo...

    I look forward to hearing back!

    Best regards,

    Kenny

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

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.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac