Show Table of Contents
2.9. サブリソースの取得
以下の例では、リソースのサブリソースを参照する方法について説明します。この例では、「test」という名前の仮想マシンに属する「my disk」という名前のディスクを参照します。
手順2.5 リソースのサブリソースの取得
- 参照するサブリソースが含まれているリソースのインスタンスを宣言します。
VM vm = api.getVMs().get("test"); - 参照するサブリソースのインスタンスを宣言します。
VMDisk disk = vm.getDisks().get("my disk");

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.