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