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'.
#!/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).
<?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>
© 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.