ConoHaNet.OpenStackMember.GetNetworkSecurityGroup C# (CSharp) Method

GetNetworkSecurityGroup() public method

public GetNetworkSecurityGroup ( string groupId ) : NetworkSecurityGroup
groupId string
return NetworkSecurityGroup
        public NetworkSecurityGroup GetNetworkSecurityGroup(string groupId)
        {
            return NetworksProvider.GetSecurityGroup(groupId, this.DefaultRegion, this.Identity);
        }

Usage Example

 public void GetNetworkSecurityGroupTest()
 {
     var os = new OpenStackMember(UserName, Password, TenantName, TenantId);
     var groups = os.ListNetworkSecurityGroups();
     Assert.IsNotNull(groups);
     foreach (var g in groups)
     {
         var group = os.GetNetworkSecurityGroup(g.Id);
         Assert.IsNotNull(group);
     }
 }
OpenStackMember