Show the information of a single cookbook that has been imported into an account.
Table of Contents
Prerequisite: Example assumes you have previously authenticated, and your valid session cookie is in 'mycookie'.
The following example will show a cookbook in your account. To get a cookbook ID, List Cookbooks and locate the cookbook you would like to display.
#!/bin/sh -e curl -i -H X_API_VERSION:1.5 -b mycookie -X GET https://my.rightscale.com/api/cookbooks/7370041.xml
Note: Truncated XML output without headers included (to save space).
<?xml version="1.0" encoding="UTF-8"?> <cookbook> <links> <link rel="self" href="/api/cookbooks/7350001"/> <link rel="repository" href="/api/repositories/1211"/> </links> <updated_at>2010/11/11 21:20:55 +0000</updated_at> <version>0.3.14</version> <created_at>2010/11/11 21:20:55 +0000</created_at> <source_info_summary>GitHub - rightscale/cookbooks_public_windows - 4a2b6f7e9b</source_info_summary> <state>normal</state> <name>blog_engine</name> <namespace>alternate</namespace> <id>7350001</id> <actions> <action rel="freeze"/> <action rel="follow"/> <action rel="obsolete"/> </actions> </cookbook>
© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.