Note: Please go to docs.rightscale.com to access the current RightScale documentation set. Also, feel free to Chat with us!
Home > Guides > RightScale API 1.5 > Examples > Cookbooks > Show Cookbook

Show Cookbook

Show the information of a single cookbook that has been imported into an account.

icon_curl_v1.png    

Table of Contents

Curl

Prerequisite:  Example assumes you have previously authenticated, and your valid session cookie is in 'mycookie'.

Example Call

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

Sample Output

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>
You must to post a comment.
Last modified
12:14, 6 Sep 2013

Tags

This page has no custom tags.

Classifications

This page has no classifications.

Announcements

None


© 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.