Hi Alex,

Currently there is no way to get a single attribute of a node, as it
is not supported neither in the Chef Server Search API [1] nor in the
Node API [2]. You will need to get the list of the nodes, and find the
desired attribute in the returned attribute map.

You can also search nodes based on their attribute, though. This was
discussed a couple months ago in the mailing list [3] and it might
help.


HTH,

Ignasi



P.S. Consider subscribing to the jclouds user list to get a better
feedback! [email protected]



[1] http://docs.opscode.com/api_chef_server_search_index.html
[2] http://docs.opscode.com/api_chef_server_nodes_name.html
[3] http://markmail.org/message/pwm4fkwl7ksjkky5

On 16 July 2013 06:53, Alex Tang <[email protected]> wrote:
> When I used jclouds-chef  (1.5.5) API searchNode(SearchOptions), it returns
> a list of Nodes with all attributes.  How do I formulate a search which
> only returns a particular attribute of a node?  Does jclouds-chef support
> such query?
>
> Thanks,
> Alex

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to