We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i wana get only the ip address of node " server 1 "
im sending a request like this
Code :
chef.partialSearch("node", "name:server1",{"ip":"ipaddress"} ,function(err, res){
if (err){console.log(error);}
else{console.log(res);}
}); Or chef.partialSearch("node", { q: "name:server1"} ,{"ip":"ipaddress"} ,function(err, res){ .... });
=> Response :
received status code 400 invalid value 'ipaddress' for no_key
function in code source : partialSearch: function(index, qs, data, fn) { ... }
Can you please give a valid syntax with example . Thanks
The text was updated successfully, but these errors were encountered:
Correct Syntax For Search Methods
Simple Search : Exemple
chef.search("node", {q: "name:server1" }, function(err, res){ if (err){console.log(error);} else{console.log(res);} });
Partial Search : Exemple
chef.partialSearch("node", {q: "role:web"}, { name: ['name'] , 'ipaddress': ['ipaddress'] }, function(err, res){ if (err){console.log(error);} else{console.log(res);} });
Sorry, something went wrong.
No branches or pull requests
i wana get only the ip address of node " server 1 "
im sending a request like this
Code :
chef.partialSearch("node", "name:server1",{"ip":"ipaddress"} ,function(err, res){
if (err){console.log(error);}
else{console.log(res);}
});
Or
chef.partialSearch("node", { q: "name:server1"} ,{"ip":"ipaddress"} ,function(err, res){
....
});
=> Response :
received status code 400 invalid value 'ipaddress' for no_key
function in code source : partialSearch: function(index, qs, data, fn) { ... }
Can you please give a valid syntax with example .
Thanks
The text was updated successfully, but these errors were encountered: