ListServerSecurityGroups() 공개 메소드

public ListServerSecurityGroups ( string serverId ) : IEnumerable
serverId string
리턴 IEnumerable
        public void ListServerSecurityGroupTest_InvalidId()
        {
            var os = new OpenStackMember(UserName, Password, TenantName, TenantId);

            // expect ItemNotFoundException
            IEnumerable<ServerSecurityGroup> groups = os.ListServerSecurityGroups(InvalidId);
        }
 public void ListServerSecurityGroupTest()
 {
     var osm = new OpenStackMember(UserName, Password, TenantName, TenantId);
     SimpleServer ss = osm.ListServers().FirstOrDefault(s => s.GetDetails().Status == ServerState.Active);
     IEnumerable<ServerSecurityGroup> groups = osm.ListServerSecurityGroups(ss.Id);
     Assert.IsNotNull(groups);
 }