Note: Please go to to access the current RightScale documentation set. Also, feel free to Chat with us!
Home > Guides > RightScale API 1.5 > Examples > Security Groups > Show Security Group

Show Security Group

Table of Contents

Show information about a single security group.

Table of Contents


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

Example Call

#!/bin/sh -e
curl -i -H X_API_VERSION:1.5 -b mycookie -X GET \$CLOUD/security_groups/$SG.xml

Note:  Although the Cloud ID can be retrieved by navigating to the correct cloud in the Dashboard, the security group ID must be retrieved from the API (as is the case with all cloud resources).

Sample Output

<?xml version="1.0" encoding="UTF-8"?>
    <link href="/api/clouds/2112/security_groups/1ISPTV2CHIRVV" rel="self"/>
    <link href="/api/clouds/2112" rel="cloud"/>
    <link href="/api/clouds/2112/security_groups/1ISPTV2CHIRVV/security_group_rules" rel="security_group_rules"/>
You must to post a comment.
Last modified
23:18, 16 May 2013



This page has no classifications.



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