Ask Your Question

Puppet Control Manager API Error "kind":"not-found","msg":"The requested code-manager resource was not found"

asked 2018-06-20 14:19:41 -0600

rarra gravatar image

Hi, I am attempting to write an API call to the Puppet Code Manager API in order to GET the status of my deploys. Following the documentation

My call looks like this

curl -k -X GET -H 'Content-Type: application/json' -H "X-Authentication: $TOKEN " https://localhost:8170/code-manager/v...

With the FQDN of my Puppet master as my local host and the access token created as my $TOKEN value. I am receiving the following error with my API call.

"kind":"not-found","msg":"The requested code-manager resource was not found"

Has anyone had issues writing a GET API call to the puppet code manager API before.


edit retag flag offensive close merge delete


Just making sure - you are using Puppet Enterprise, right?

DarylW gravatar imageDarylW ( 2018-06-21 08:15:18 -0600 )edit

Hi Daryl, Yes we are using puppet enterprise v2018.1.0

rarra gravatar imagerarra ( 2018-06-21 09:57:04 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-06-21 12:58:54 -0600

reesek gravatar image

updated 2018-06-21 13:01:20 -0600

I setup an alias as follows:

deploy_status='curl -sk\?level\=debug | python -m json.tool'

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2018-06-20 14:19:41 -0600

Seen: 96 times

Last updated: Jun 21