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 > Publications > Show Publications

Show Publications

Table of Contents

Show information about a single Publication. Note that only non-HEAD revisions are shown.

Table of Contents

Curl

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

Example Call

#!/bin/sh -e
PUBLICATION="45"
curl -i -H X_API_VERSION:1.5 -b mycookie -X GET https://my.rightscale.com/api/publications/$PUBLICATIONS.xml

Sample Output

Note:  Truncated XML output without headers included (to save space).

<?xml version="1.0" encoding="UTF-8"?>
<publication>
  <links>
    <link rel="self" href="/api/publications/45"/>
    <link rel="lineage" href="/api/publication_lineages/2335"/>
  </links>
  <publisher>RightScale</publisher>
  <created_at>2009/10/28 04:13:24 +0000</created_at>
  <commit_message>
    <text>Initial version</text>
    <time>2008/10/02 04:05:47 +0000</time>
    <user></user>
  </commit_message>
  <actions>
    <action rel="import"/>
  </actions>
  <content_type>ServerTemplate</content_type>
  <description>Combined Load Balancer and Rails application in one box.&#13;
The site is configured for HTTP traffic only (not SSL) and with mongrel_cluster.</description>
  <name>Rails FrontEnd v1</name>
  <updated_at>2010/04/15 04:39:28 +0000</updated_at>
  <revision>1</revision>
  <revision_notes>Initial version</revision_notes>
</publication>

You must to post a comment.
Last modified
23:18, 16 May 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.