Show Table of Contents
3.7. コレクション内のリソースの更新
リソースを更新するには、リソースが存在するコレクションからリソースを取得し、必要なパラメーターを変更し、リソースに対して
update メソッドを呼び出して変更を保存する必要があります。パラメーターの変更は、取得されたリソースの set_* メソッドを使用して実行されます。
例3.7 リソースの更新
以下の例では、
DemoDataCenter という名前のデータセンターの説明が更新されます。
dc = api.datacenters.get("DemoDataCenter")
dc.set_description("This data center description provided using the Python SDK")
dc.update()

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.