Show Table of Contents
3.4. コレクションからの特定のリソースの取得
これらの例では、特定のリソースは
get メソッドを使用してコレクションから取得されます。
例3.1 名前による特定のリソースの取得
get メソッドの name パラメーターを使用して、datacenters コレクションから Default データセンターを取得します。
dc = api.datacenters.get("Default")
以下の構文と同等です。
dc = api.datacenters.get(name="Default")
get 要求に関する追加の情報は、all_content ヘッダーを使用して取得することができます。
例3.2 特定のリソースの追加情報の取得
vm = api.vms.get(name="VM01", all_content=True)

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.