Ask Your Question
0

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

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

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 https://puppet.com/docs/pe/2018.1/cod...

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.

Thanks

edit retag flag offensive close merge delete

Comments

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

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

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

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

1 Answer

Sort by ยป oldest newest most voted
0

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

reesek gravatar image

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

I setup an alias as follows:

deploy_status='curl -sk https://prdpemaster01.mycompany.com:8140/status/v1/services/file-sync-client-service\?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

Stats

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

Seen: 82 times

Last updated: Jun 21