Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to make a get call to chef server from postman

I tried making a get call to my chef server from post man with basic auth

get call url: https://10.XXX.XXX.195:443/organizations/XXX/

Header: X-Ops-Timestamp: 2014-12-12T17:13:28Z X-Ops-Content-Hash: 2jmj7l5rgtrrgtrgfasfgSw0ygaVb/vlWAggghYkK/YBtwk= X-Ops-Authorization-1: BE3NnBritishaf3ifuwLSPCgCYaXaRN5oZbtrg4c6hbW0aefI X-Ops-Authorization-2: sL4j1qtEZzi/2WeF67Uuytdttsdgb5CjgECQwqrym9gCUON X-Ops-Authorization-3: yf0p7PrLRCNasdfaHhQ2LWStea+kTcdkasdfvaTghfCDC57 X-Ops-Authorization-4: 155i+ZlthfasfasdffukusbIUGBKggUYhbvcds3k0i0gqs+V X-Ops-Authorization-5: /sLcR7JjQky7sdafIHNfsBQrISktNer1236hbFIayFBx3 X-Ops-Authorization-6: nodilAGMb166@haC/fttwlWggN1LasdqqGomRedtyhSqXA== Host: api.opscode.com:443 X-Ops-Server-API-Info: 1 X-Chef-Version: 12.0.2 User-Agent: Chef Knife/12.0.2 (ruby-2.1.1-p320; ohai-8.0.0; x86_64-darwin12.0.2; +http://chef.io) Authorization: Basic c3RldmVkYgtgtgWhYhmMxMjM=

how to make a get call to chef server from postman

I tried making a get call to my chef server from post man with basic auth

get call url: https://10.XXX.XXX.195:443/organizations/XXX/url:

https://10.XXX.XXX.195:443/organizations/XXX/

Header: Header:

X-Ops-Timestamp: 2014-12-12T17:13:28Z
X-Ops-Content-Hash: 2jmj7l5rgtrrgtrgfasfgSw0ygaVb/vlWAggghYkK/YBtwk=
X-Ops-Authorization-1: BE3NnBritishaf3ifuwLSPCgCYaXaRN5oZbtrg4c6hbW0aefI
X-Ops-Authorization-2: sL4j1qtEZzi/2WeF67Uuytdttsdgb5CjgECQwqrym9gCUON
X-Ops-Authorization-3: yf0p7PrLRCNasdfaHhQ2LWStea+kTcdkasdfvaTghfCDC57
X-Ops-Authorization-4: 155i+ZlthfasfasdffukusbIUGBKggUYhbvcds3k0i0gqs+V
X-Ops-Authorization-5: /sLcR7JjQky7sdafIHNfsBQrISktNer1236hbFIayFBx3
X-Ops-Authorization-6: nodilAGMb166@haC/fttwlWggN1LasdqqGomRedtyhSqXA==
Host: api.opscode.com:443
X-Ops-Server-API-Info: 1
X-Chef-Version: 12.0.2
User-Agent: Chef Knife/12.0.2 (ruby-2.1.1-p320; ohai-8.0.0; x86_64-darwin12.0.2; +http://chef.io)
Authorization: Basic c3RldmVkYgtgtgWhYhmMxMjM=

c3RldmVkYgtgtgWhYhmMxMjM=

how to make a get call to chef server from postman

I tried making a get call to my chef server from post man with basic auth

get call url:

https://10.XXX.XXX.195:443/organizations/XXX/

Header:

X-Ops-Timestamp: 2014-12-12T17:13:28Z
X-Ops-Content-Hash: 2jmj7l5rgtrrgtrgfasfgSw0ygaVb/vlWAggghYkK/YBtwk=
X-Ops-Authorization-1: BE3NnBritishaf3ifuwLSPCgCYaXaRN5oZbtrg4c6hbW0aefI
X-Ops-Authorization-2: sL4j1qtEZzi/2WeF67Uuytdttsdgb5CjgECQwqrym9gCUON
X-Ops-Authorization-3: yf0p7PrLRCNasdfaHhQ2LWStea+kTcdkasdfvaTghfCDC57
X-Ops-Authorization-4: 155i+ZlthfasfasdffukusbIUGBKggUYhbvcds3k0i0gqs+V
X-Ops-Authorization-5: /sLcR7JjQky7sdafIHNfsBQrISktNer1236hbFIayFBx3
X-Ops-Authorization-6: nodilAGMb166@haC/fttwlWggN1LasdqqGomRedtyhSqXA==
Host: api.opscode.com:443
X-Ops-Server-API-Info: 1
X-Chef-Version: 12.0.2
User-Agent: Chef Knife/12.0.2 (ruby-2.1.1-p320; ohai-8.0.0; x86_64-darwin12.0.2; +http://chef.io)
Authorization: Basic c3RldmVkYgtgtgWhYhmMxMjM=

the call is unsuccessful with a 401 error-- {"error":["Invalid signature for user or client 'jason'"]}