ListServerVolumes() public méthode

public ListServerVolumes ( string serverId ) : IEnumerable
serverId string
Résultat IEnumerable
        public void GetServerVolumeTest()
        {
            var osm = new OpenStackMember(UserName, Password, TenantName, TenantId);
            SimpleServer ss = osm.ListServers().FirstOrDefault(s => s.GetDetails().Status == ServerState.Active);
            IEnumerable<ServerVolume> servervolumes = osm.ListServerVolumes(ss.Id);
            //if (s.Status.Name != "SHUTOFF")
            //    os.StopServer(s.Id);

            Assert.IsNotNull(servervolumes);
            Trace.WriteLine(String.Format("servervolumes count : {0}", servervolumes.Count()));
            foreach (var v in servervolumes)
            {
                Trace.WriteLine(String.Format("server volume id : {0}", v.Id));
                ServerVolume volume = osm.GetServerVolume(ss.Id, v.Id);
                Assert.IsNotNull(volume);
            }
        }