When using the .NET API in the Octopus nuget we can’t seem to run a published runbook with only ‘runbook consumer’ permissions. This results in getting a 404 when following the example given in the Octopus documentation (C# version).
It appears, compared to testing with direct REST API calls, that the example given above assumes the ability to get the Runbook template. But that appears to require ‘Runbook producer’ permissions, in order to edit/publish the runbook. But there does not appear to be any other way to get a ‘DeploymentPromotionTarget’. That, only comes from ‘PromotTo’ in the template.
Is there a way to create an appropriate ‘DeploymentPromotionTarget’ object to use to run the published runbook, without getting a template object first.