18.3. メソッド
18.3.1. 新規仮想マシンプールの作成
新規のプールには
name
、cluster
、template
の各要素が必要です。cluster
および template
は id
属性または name
要素で特定します。
例18.2 仮想マシンプールの作成
POST /api/vmpools HTTP/1.1 Accept: application/xml Content-type: application/xml <vmpool> <name>VM_Pool_A</name> <cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95"/> id="99408929-82cf-4dc7-a532-9d998063fa95" <template href="/api/templates/00000000-0000-0000-0000-000000000000"/> id="00000000-0000-0000-0000-000000000000" </vmpool>
18.3.2. 仮想マシンプールの更新
name
、description
、 size
、prestarted_vms
、および max_user_vms
は、仮想マシンの作成後に更新することができます。
例18.3 仮想マシンプールの更新
PUT /api/vmpools/2d2d5e26-1b6e-11e1-8cda-001320f76e8e HTTP/1.1 Accept: application/xml Content-type: application/xml <vmpool> <name>VM_Pool_B</name> <description>Virtual Machine Pool B</description> <size>3</size> <prestarted_vms>1</size> <max_user_vms>2</size> </vmpool>
18.3.3. 仮想マシンプールの削除
仮想マシンを削除するには
DELETE
要求を実行する必要があります。
例18.4 仮想マシンの削除
DELETE /api/vmpools/2d2d5e26-1b6e-11e1-8cda-001320f76e8e HTTP/1.1 HTTP/1.1 204 No Content