Show Table of Contents
2.5. 创建资源
在 Java 软件开发套件中,资源可以通过两个属性 -
name 和 UUID 来代表。
使用
name 属性获得一个资源:
VM vm = api.getVMs().get("test");
使用
UUID 属性获得一个资源:
VM vm = api.getVMs().get(UUID.fromString("5a89a1d2-32be-33f7-a0d1-f8b5bc974ff6"));
Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.