이 콘텐츠는 선택한 언어로 제공되지 않습니다.
2.5. Getting a Resource
In the Java Software Development Kit, resources can be referred to via two attributes:
name
, and UUID
. Both return an object with the specified attribute if that object exists.
To get a resource using the value of the
name
attribute:
VM vm = api.getVMs().get("test");
To get a resource using the value of the
UUID
attribute:
VM vm = api.getVMs().get(UUID.fromString("5a89a1d2-32be-33f7-a0d1-f8b5bc974ff6"));