Show Table of Contents
2.5. リソースの取得
Java ソフトウェア開発キットでは、リソースは
name および UUID の 2 つの属性で参照することができます。そのオブジェクトが存在している場合には、いずれも指定した属性のオブジェクトが返されます。
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.