Thank you for the fast reply.  Unfortunately, it doesn't resolve the 
problem.  Same response if I try using v1:

curl "$GOCD_URI/go/api/admin/templates/node_pr_001/authorization" -u 
"${GOCD_USER}:${GOCD_PASS}"  -H 'Accept:application/vnd.go.cd.v1+json'
<html><body><h2>404 Not found</h2></body></html>



On Tuesday, August 6, 2019 at 1:56:12 PM UTC-4, Varsha Varadarajan wrote:
>
> Hi,
>
> The template authorization API is v1, not v4 as specified in 
> https://api.gocd.org/19.6.0/#get-template-authorization
> May be try using v1 and check if that works?
>
> Thanks,
> Varsha
>
> On Tuesday, 6 August 2019 13:37:35 UTC-4, 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 go-cd+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/c1c924c0-e0b7-44d8-a0a3-d72a1dd409a0%40googlegroups.com.

Reply via email to