3.3. 클러스터 나열
이 Ruby 예제에서는 클러스터를 나열합니다.
# Get the reference to the root of the services tree: system_service = connection.system_service # Get the reference to the service that manages the # collection of clusters: cls_service = system_service.clusters_service # Retrieve the list of clusters and for each one # print its name: cls = cls_service.list cls.each do |cl| puts cl.name end
Default 클러스터만 있는 환경에서는 예제 출력입니다.
Default
자세한 내용은 http://www.rubydoc.info/gems/ovirt-engine-sdk/OvirtSDK4/ClustersService:list 을 참조하십시오.