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 > Security Groups > Show Security Group

Show Security Group

Table of Contents

Show information about a single security group.

Table of Contents

Curl

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

Example Call

#!/bin/sh -e
CLOUD="2112"
SG="1ISPSV2CHITVV"
curl -i -H X_API_VERSION:1.5 -b mycookie -X GET \
https://my.rightscale.com/api/clouds/$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"?>
<security_group>
  <links>
    <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"/>
  </links>
  <resource_uid>e375de13-a08f-4432-9fff-d52ce40c3f2d</resource_uid>
  <name>Port_8000</name>
  <actions></actions>
</security_group>
You must to post a comment.
Last modified
23:18, 16 May 2013

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.