Great, thanks. I was trying to use this endpoint within a simple script we 
are writing to clone templates. Something that would be helpful to have in 
the UI.

I see there is already already a feature request for this -- #336 
<https://github.com/gocd/gocd/issues/336>

Cheers.


On Wednesday, August 7, 2019 at 3:11:39 AM UTC-4, Ganesh Patil wrote:
>
>
> Hello Doug,
>
> The Template Authorization API is broken in v19.6.0 version of GoCD. The 
> API endpoint returns 404 (Not Found).
>
> We've created a GitHub issue <https://github.com/gocd/gocd/issues/6727> 
> to track this bug. And a fix for the same has been merged as part of this 
> pull request <https://github.com/gocd/gocd/pull/6728>, which will be 
> available as part of upcoming GoCD release v19.8.0
>
>
> Thanks,
> Ganesh
>
>
>
>
>
>
>
> On Tuesday, August 6, 2019 at 11:07:35 PM UTC+5:30, Doug Lethin wrote:
>>
>> Hello.
>>
>> While I'm successful using the API to get a template configuration, I'm 
>> unable to retrieve a templates authorization configuration.
>>
>> Works:
>>
>> curl "$GOCD_URI/go/api/admin/templates/node_pr_001" -u 
>> "${GOCD_USER}:${GOCD_PASS}"  -H 'Accept:application/vnd.go.cd.v4+json'
>>
>> Does not work:
>>
>> curl "$GOCD_URI/go/api/admin/templates/node_pr_001/authorization" -u 
>> "${GOCD_USER}:${GOCD_PASS}"  -H 'Accept:application/vnd.go.cd.v4+json'
>> <html><body><h2>404 Not found</h2></body></html>
>>
>> I'm using this with the credentials of a user marked as "system-admin" in 
>> GoCD.  This seems to have regardless of whether I use the original 
>> credentials, or if I use a personal access token.
>>
>> I'm using GoCD 19.6.  Shouldn't a system-admin be able to do anything?  
>> Is there something else I'm missing?  The template name is correct and 
>> exists.
>>
>> Thanks.
>>
>> Doug
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/cdad266a-0a55-42c2-b9c2-ed61194a33a8%40googlegroups.com.

Reply via email to