GET /api/compute_resources
すべてのコンピュートリソースを一覧表示

GET /api/compute_resources
200
{
  "total": 9,
  "subtotal": 9,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "description": "yourcompute",
      "url": "eu-west-1",
      "created_at": "2019-11-07 08:49:02 UTC",
      "updated_at": "2019-11-07 08:49:02 UTC",
      "id": 928692541,
      "name": "amazon123",
      "provider": "EC2",
      "provider_friendly_name": "EC2",
      "access_key": "MyString",
      "region": "eu-west-1"
    },
    {
      "description": "yourcompute",
      "url": "eu-west-1",
      "created_at": "2019-11-07 08:49:02 UTC",
      "updated_at": "2019-11-07 08:49:02 UTC",
      "id": 304431216,
      "name": "another-ec2",
      "provider": "EC2",
      "provider_friendly_name": "EC2",
      "access_key": "MyString",
      "region": "eu-west-1"
    },
    {
      "description": "MyString",
      "url": "qemu://stam/system",
      "created_at": "2019-11-07 08:49:02 UTC",
      "updated_at": "2019-11-07 08:49:02 UTC",
      "id": 980190962,
      "name": "bigcompute",
      "provider": "Libvirt",
      "provider_friendly_name": "Libvirt",
      "display_type": "vnc",
      "set_console_password": true
    },
    {
      "description": "yourcompute",
      "url": "us-central1-a",
      "created_at": "2019-11-07 08:49:02 UTC",
      "updated_at": "2019-11-07 08:49:02 UTC",
      "id": 30517511,
      "name": "gce123",
      "provider": "GCE",
      "provider_friendly_name": "Google",
      "email": null,
      "zone": "us-central1-a",
      "project": "foo",
      "key_path": null
    },
    {
      "description": "mycompute",
      "url": "test:///default",
      "created_at": "2019-11-07 08:49:02 UTC",
      "updated_at": "2019-11-07 08:49:02 UTC",
      "id": 367690737,
      "name": "mycompute",
      "provider": "Libvirt",
      "provider_friendly_name": "Libvirt",
      "display_type": "vnc",
      "set_console_password": true
    },
    {
      "description": "computeresource",
      "url": "test:///default/v2.0",
      "created_at": "2019-11-07 08:49:02 UTC",
      "updated_at": "2019-11-07 08:49:02 UTC",
      "id": 628705878,
      "name": "openstackcr",
      "provider": "Openstack",
      "provider_friendly_name": "OpenStack",
      "user": "MyString",
      "tenant": null,
      "domain": null,
      "project_domain_name": null,
      "project_domain_id": null
    },
    {
      "description": "ovirt resource",
      "url": "https://myovirt/api",
      "created_at": "2019-11-07 08:49:02 UTC",
      "updated_at": "2019-11-07 08:49:02 UTC",
      "id": 510899777,
      "name": "Ovirt",
      "provider": "Ovirt",
      "provider_friendly_name": "oVirt",
      "user": "MyString",
      "datacenter": "1234567891011",
      "use_v4": false,
      "ovirt_quota": null,
      "display_type": "vnc",
      "keyboard_layout": "en-us"
    },
    {
      "description": "vmware resource",
      "url": "https://myvmware/api",
      "created_at": "2019-11-07 08:49:02 UTC",
      "updated_at": "2019-11-07 08:49:02 UTC",
      "id": 305613588,
      "name": "Vmware",
      "provider": "Vmware",
      "provider_friendly_name": "VMware",
      "user": "MyString",
      "datacenter": "1234567891011",
      "server": "https://myvmware/api",
      "set_console_password": true,
      "caching_enabled": true,
      "display_type": "vmrc"
    },
    {
      "description": "yourcompute",
      "url": "test:///default",
      "created_at": "2019-11-07 08:49:02 UTC",
      "updated_at": "2019-11-07 08:49:02 UTC",
      "id": 932571420,
      "name": "yourcompute",
      "provider": "Libvirt",
      "provider_friendly_name": "Libvirt",
      "display_type": "vnc",
      "set_console_password": true
    }
  ]
}

パラメーター

パラメーター名 記述
location_id
任意

ロケーション別のスコープ

Validations:

  • Must be a Integer

organization_id
任意

組織別のスコープ

Validations:

  • Must be a Integer

search
任意

結果のフィルター

Validations:

  • Must be a String

order
任意

フィールドと順序のソート (例: ‘id DESC’)

Validations:

  • Must be a String

page
任意

1 から始まるページ番号

Validations:

  • Must be a number.

per_page
任意

戻されるページごとの結果数

Validations:

  • Must be a number.

検索フィールド

フィールド名 タイプ 設定可能な値
id integer
location string
location_id integer
name string
organization string
organization_id integer
type string

GET /api/compute_resources/:id
コンピュートリソースの表示

GET /api/compute_resources/980190962-bigcompute
200
{
  "description": "MyString",
  "url": "qemu://stam/system",
  "created_at": "2019-11-07 08:49:02 UTC",
  "updated_at": "2019-11-07 08:49:02 UTC",
  "id": 980190962,
  "name": "bigcompute",
  "provider": "Libvirt",
  "provider_friendly_name": "Libvirt",
  "display_type": "vnc",
  "set_console_password": true,
  "images": [
    {
      "id": 980190962,
      "name": "centos-1"
    },
    {
      "id": 298486374,
      "name": "centos-2"
    }
  ],
  "compute_attributes": [
    {
      "id": 394428105,
      "name": null,
      "compute_resource_id": 980190962,
      "compute_resource_name": "bigcompute",
      "provider_friendly_name": "Libvirt",
      "compute_profile_id": 281110143,
      "compute_profile_name": "4-Networking",
      "vm_attrs": {
        "nics_attributes": {
          "1": {
            "attr": 1
          },
          "2": {
            "attr": 2
          }
        }
      },
      "attributes": {
        "cpus": null,
        "memory": null,
        "image_id": null,
        "image_name": null,
        "volumes_attributes": {},
        "interfaces_attributes": {
          "1": {
            "type": null,
            "model": null,
            "bridge": null
          },
          "2": {
            "type": null,
            "model": null,
            "bridge": null
          }
        }
      }
    },
    {
      "id": 281110143,
      "name": null,
      "compute_resource_id": 980190962,
      "compute_resource_name": "bigcompute",
      "provider_friendly_name": "Libvirt",
      "compute_profile_id": 298486374,
      "compute_profile_name": "2-Medium",
      "vm_attrs": {
        "cpus": 4,
        "memory": 4294967296
      },
      "attributes": {
        "cpus": 4,
        "memory": 4294967296,
        "image_id": null,
        "image_name": null,
        "volumes_attributes": {},
        "interfaces_attributes": {}
      }
    },
    {
      "id": 298486374,
      "name": null,
      "compute_resource_id": 980190962,
      "compute_resource_name": "bigcompute",
      "provider_friendly_name": "Libvirt",
      "compute_profile_id": 980190962,
      "compute_profile_name": "1-Small",
      "vm_attrs": {
        "cpus": 2,
        "memory": 536870912
      },
      "attributes": {
        "cpus": 2,
        "memory": 536870912,
        "image_id": null,
        "image_name": null,
        "volumes_attributes": {},
        "interfaces_attributes": {}
      }
    }
  ],
  "locations": [
    {
      "id": 255093256,
      "name": "Location 1",
      "title": "Location 1",
      "description": null
    }
  ],
  "organizations": [
    {
      "id": 447626438,
      "name": "Organization 1",
      "title": "Organization 1",
      "description": null
    }
  ]
}

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/compute_resources
コンピュートリソースの作成

POST /api/compute_resources
{
  "compute_resource": {
    "name": "Ovirt-create-test",
    "url": "https://myovirt/api",
    "provider": "ovirt",
    "datacenter": "af69fae6-5f77-441a-969d-15a42144e0f5",
    "user": "user@example.com",
    "password": "secret"
  }
}
201
{
  "description": null,
  "url": "https://myovirt/api",
  "created_at": "2019-11-07 08:49:09 UTC",
  "updated_at": "2019-11-07 08:49:09 UTC",
  "id": 980190964,
  "name": "Ovirt-create-test",
  "provider": "Ovirt",
  "provider_friendly_name": "oVirt",
  "user": "user@example.com",
  "datacenter": "af69fae6-5f77-441a-969d-15a42144e0f5",
  "use_v4": false,
  "ovirt_quota": null,
  "display_type": "vnc",
  "keyboard_layout": "en-us",
  "images": [],
  "compute_attributes": [],
  "locations": [],
  "organizations": []
}

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

compute_resource
必須

Validations:

  • Must be a Hash

compute_resource[name]
必須

Validations:

  • Must be a String

compute_resource[provider]
任意 , nil可

プロバイダーに Libvirt, Ovirt, EC2, Vmware, Openstack, Rackspace, GCE が含まれます

Validations:

  • Must be a String

compute_resource[url]
任意 , nil可

Libvirt、oVirt、OpenStack および Rackspace の URL

Validations:

  • Must be a String

compute_resource[description]
任意 , nil可

Validations:

  • Must be a String

compute_resource[user]
任意 , nil可

oVirt、EC2、VMware、OpenStack のユーザー名。EC2 のアクセスキー。

Validations:

  • Must be a String

compute_resource[password]
任意 , nil可

oVirt、EC2、VMware、OpenStack のパスワード。EC2 のシークレットキー

Validations:

  • Must be a String

compute_resource[uuid]
任意 , nil可

非推奨です。データセンターを使用してください。

Validations:

  • Must be a String

compute_resource[datacenter]
任意 , nil可

oVirt、VMware Datacenter の場合

Validations:

  • Must be a String

compute_resource[use_v4]
任意 , nil可

oVirt の場合のみ

Validations:

  • Must be one of: true, false, 1, 0.

compute_resource[ovirt_quota]
任意 , nil可

for oVirt only, ID of quota to use

Validations:

  • Must be a String

compute_resource[public_key]
任意 , nil可

oVirt の場合のみ

Validations:

  • Must be a String

compute_resource[region]
任意 , nil可

for EC2 only, use ‘us-gov-west-1’ for GovCloud region

Validations:

  • Must be a String

compute_resource[tenant]
任意 , nil可

for OpenStack and AzureRM only

Validations:

  • Must be a String

compute_resource[domain]
任意 , nil可

for OpenStack (v3) only

Validations:

  • Must be a String

compute_resource[project_domain_name]
任意 , nil可

for OpenStack (v3) only

Validations:

  • Must be a String

compute_resource[project_domain_id]
任意 , nil可

for OpenStack (v3) only

Validations:

  • Must be a String

compute_resource[server]
任意 , nil可

VMware の場合

Validations:

  • Must be a String

compute_resource[set_console_password]
任意 , nil可

Libvirt および VMware の場合のみ

Validations:

  • Must be one of: true, false, 1, 0.

compute_resource[display_type]
任意 , nil可

for Libvirt and oVirt only

Validations:

  • Must be one of: VNC, SPICE.

compute_resource[keyboard]
任意 , nil可

oVirt の場合のみ

Validations:

  • Must be one of: ar, de-ch, es, fo, fr-ca, hu, ja, mk, no, pt-br, sv, da, en-gb, et, fr, fr-ch, is, lt, nl, pl, ru, th, de, en-us, fi, fr-be, hr, it, lv, nl-be, pt, sl, tr.

compute_resource[caching_enabled]
任意 , nil可

VMware 専用キャッシュの有効化

Validations:

  • Must be one of: true, false, 1, 0.

compute_resource[project]
任意 , nil可

Project id for GCE only

Validations:

  • Must be a String

compute_resource[email]
任意 , nil可

Email for GCE only

Validations:

  • Must be a String

compute_resource[key_path]
任意 , nil可

Certificate path for GCE only

Validations:

  • Must be a String

compute_resource[zone]
任意 , nil可

for GCE only

Validations:

  • Must be a String

compute_resource[location_ids]
任意 , nil可

ロケーションを指定された ID に置き換えます

Validations:

  • Must be an array of any type

compute_resource[organization_ids]
任意 , nil可

組織を指定された ID に置き換えます。

Validations:

  • Must be an array of any type


PUT /api/compute_resources/:id
コンピュートリソースの更新

PUT /api/compute_resources/980190963
{
  "compute_resource": {
    "name": "mycompute"
  }
}
422
{
  "error": {
    "id": 980190963,
    "errors": {
      "name": [
        "has already been taken"
      ]
    },
    "full_messages": [
      "Name has already been taken"
    ]
  }
}

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be a String

compute_resource
必須

Validations:

  • Must be a Hash

compute_resource[name]
任意

Validations:

  • Must be a String

compute_resource[provider]
任意 , nil可

プロバイダーに Libvirt, Ovirt, EC2, Vmware, Openstack, Rackspace, GCE が含まれます

Validations:

  • Must be a String

compute_resource[url]
任意 , nil可

Libvirt、oVirt、OpenStack および Rackspace の URL

Validations:

  • Must be a String

compute_resource[description]
任意 , nil可

Validations:

  • Must be a String

compute_resource[user]
任意 , nil可

oVirt、EC2、VMware、OpenStack のユーザー名。EC2 のアクセスキー。

Validations:

  • Must be a String

compute_resource[password]
任意 , nil可

oVirt、EC2、VMware、OpenStack のパスワード。EC2 のシークレットキー

Validations:

  • Must be a String

compute_resource[uuid]
任意 , nil可

非推奨です。データセンターを使用してください。

Validations:

  • Must be a String

compute_resource[datacenter]
任意 , nil可

oVirt、VMware Datacenter の場合

Validations:

  • Must be a String

compute_resource[use_v4]
任意 , nil可

oVirt の場合のみ

Validations:

  • Must be one of: true, false, 1, 0.

compute_resource[ovirt_quota]
任意 , nil可

for oVirt only, ID of quota to use

Validations:

  • Must be a String

compute_resource[public_key]
任意 , nil可

oVirt の場合のみ

Validations:

  • Must be a String

compute_resource[region]
任意 , nil可

for EC2 only, use ‘us-gov-west-1’ for GovCloud region

Validations:

  • Must be a String

compute_resource[tenant]
任意 , nil可

for OpenStack and AzureRM only

Validations:

  • Must be a String

compute_resource[domain]
任意 , nil可

for OpenStack (v3) only

Validations:

  • Must be a String

compute_resource[project_domain_name]
任意 , nil可

for OpenStack (v3) only

Validations:

  • Must be a String

compute_resource[project_domain_id]
任意 , nil可

for OpenStack (v3) only

Validations:

  • Must be a String

compute_resource[server]
任意 , nil可

VMware の場合

Validations:

  • Must be a String

compute_resource[set_console_password]
任意 , nil可

Libvirt および VMware の場合のみ

Validations:

  • Must be one of: true, false, 1, 0.

compute_resource[display_type]
任意 , nil可

for Libvirt and oVirt only

Validations:

  • Must be one of: VNC, SPICE.

compute_resource[keyboard]
任意 , nil可

oVirt の場合のみ

Validations:

  • Must be one of: ar, de-ch, es, fo, fr-ca, hu, ja, mk, no, pt-br, sv, da, en-gb, et, fr, fr-ch, is, lt, nl, pl, ru, th, de, en-us, fi, fr-be, hr, it, lv, nl-be, pt, sl, tr.

compute_resource[caching_enabled]
任意 , nil可

VMware 専用キャッシュの有効化

Validations:

  • Must be one of: true, false, 1, 0.

compute_resource[project]
任意 , nil可

Project id for GCE only

Validations:

  • Must be a String

compute_resource[email]
任意 , nil可

Email for GCE only

Validations:

  • Must be a String

compute_resource[key_path]
任意 , nil可

Certificate path for GCE only

Validations:

  • Must be a String

compute_resource[zone]
任意 , nil可

for GCE only

Validations:

  • Must be a String

compute_resource[location_ids]
任意 , nil可

ロケーションを指定された ID に置き換えます

Validations:

  • Must be an array of any type

compute_resource[organization_ids]
任意 , nil可

組織を指定された ID に置き換えます。

Validations:

  • Must be an array of any type


DELETE /api/compute_resources/:id
コンピュートリソースの削除

DELETE /api/compute_resources/932571420
{
  "compute_resource": {}
}
404
{
  "error": {
    "message": "Resource compute_resource not found by id '932571420'"
  }
}

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


GET /api/compute_resources/:id/available_images
コンピュートリソースに利用可能なイメージを一覧表示

GET /api/compute_resources/928692541-amazon123/available_images
200
[
  {
    "name": "some_image",
    "uuid": "123"
  }
]

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


GET /api/compute_resources/:id/available_clusters
コンピュートリソースに利用可能なクラスターを一覧表示

GET /api/compute_resources/510899777-Ovirt/available_clusters
200
{
  "total": 1,
  "subtotal": 1,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "name": "test_cluster",
      "id": "my11-test35-uuid99"
    }
  ]
}

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


GET /api/compute_resources/:id/available_flavors
コンピュートリソースに利用可能なフレーバーを一覧表示

GET /api/compute_resources/928692541-amazon123/available_flavors
200
{
  "total": 1,
  "subtotal": 1,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "name": "test_ec2_object",
      "id": "123"
    }
  ]
}

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


GET /api/compute_resources/:id/available_folders
コンピュートリソースに利用可能なフォルダーを一覧表示

GET /api/compute_resources/305613588-Vmware/available_folders
200
{
  "total": 1,
  "subtotal": 1,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "name": "test_vmware_object",
      "id": "my11-test35-uuid99"
    }
  ]
}

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


GET /api/compute_resources/:id/available_zones
コンピュートリソースに利用可能なゾーンを一覧表示

GET /api/compute_resources/928692541-amazon123/available_zones
200
{
  "total": 1,
  "subtotal": 1,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "name": "test_ec2_object"
    }
  ]
}

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


GET /api/compute_resources/:id/available_networks
コンピュートリソースに利用可能なネットワークを一覧表示

GET /api/compute_resources/:id/available_clusters/:cluster_id/available_networks
コンピュートリソースクラスターに利用可能なネットワークを一覧表示

GET /api/compute_resources/510899777-Ovirt/available_clusters/123-456-789/available_networks
200
{
  "total": 1,
  "subtotal": 1,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "name": "test_network",
      "id": "my11-test35-uuid99"
    }
  ]
}

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

cluster_id
任意

Validations:

  • Must be a String


GET /api/compute_resources/:id/available_clusters/:cluster_id/available_resource_pools
コンピュートリソースクラスターのリソースプールを一覧表示

GET /api/compute_resources/305613588-Vmware/available_clusters/123-456-789/available_resource_pools
200
{
  "total": 1,
  "subtotal": 1,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "name": "test_vmware_object",
      "id": "my11-test35-uuid99"
    }
  ]
}

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

cluster_id
必須

Validations:

  • Must be a String


GET /api/compute_resources/:id/storage_domains/:storage_domain_id
指定されたストレージドメインの属性を一覧表示

GET /api/compute_resources/305613588-Vmware/storage_domains/test_vmware_datastore
200
{
  "name": "test_vmware_datastore",
  "id": "my11-test35-uuid99"
}

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

storage_domain_id
必須

Validations:

  • Must be a String


GET /api/compute_resources/:id/available_storage_domains
コンピュートリソースのストレージドメインを一覧表示

GET /api/compute_resources/:id/available_storage_domains/:storage_domain
指定されたストレージドメインの属性を一覧表示

GET /api/compute_resources/:id/available_clusters/:cluster_id/available_storage_domains
コンピュートリソースのストレージドメインを一覧表示

GET /api/compute_resources/510899777-Ovirt/available_storage_domains
200
{
  "total": 1,
  "subtotal": 1,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "name": "test_cluster",
      "id": "my11-test35-uuid99"
    }
  ]
}

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

cluster_id
任意

Validations:

  • Must be a String

storage_domain
任意

Validations:

  • Must be a String


GET /api/compute_resources/:id/storage_pods/:storage_pod_id
指定されたストレージポッドの属性を一覧表示

GET /api/compute_resources/305613588-Vmware/storage_pods/test_vmware_pod
200
{
  "name": "test_vmware_pod",
  "id": "group-p123456"
}

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

storage_pod_id
必須

Validations:

  • Must be a String


GET /api/compute_resources/:id/available_storage_pods
コンピュートリソースのストレージポッドを一覧表示

GET /api/compute_resources/:id/available_storage_pods/:storage_pod
指定されたストレージポッドの属性を一覧表示

GET /api/compute_resources/:id/available_clusters/:cluster_id/available_storage_pods
コンピュートリソースのストレージポッドを一覧表示

GET /api/compute_resources/305613588-Vmware/available_storage_pods/test_vmware_pod
200
{
  "total": 1,
  "subtotal": 1,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "name": "test_vmware_pod",
      "id": "group-p123456"
    }
  ]
}

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

cluster_id
任意

Validations:

  • Must be a String

storage_pod
任意

Validations:

  • Must be a String


GET /api/compute_resources/:id/available_security_groups
コンピュートリソースに利用可能なセキュリティーグループを一覧表示

GET /api/compute_resources/928692541-amazon123/available_security_groups
200
{
  "total": 1,
  "subtotal": 1,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "name": "test_ec2_object",
      "group_id": "123"
    }
  ]
}

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


PUT /api/compute_resources/:id/associate
VM のホストへの関連付け

PUT /api/compute_resources/980190969-compute_resource301/associate
{
  "compute_resource": {}
}
200
{
  "total": 10,
  "subtotal": 10,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "ip": null,
      "ip6": null,
      "environment_id": null,
      "environment_name": null,
      "last_report": null,
      "mac": null,
      "realm_id": null,
      "realm_name": null,
      "sp_mac": null,
      "sp_ip": null,
      "sp_name": null,
      "domain_id": null,
      "domain_name": null,
      "architecture_id": null,
      "architecture_name": null,
      "operatingsystem_id": null,
      "operatingsystem_name": null,
      "subnet_id": null,
      "subnet_name": null,
      "subnet6_id": null,
      "subnet6_name": null,
      "sp_subnet_id": null,
      "ptable_id": null,
      "ptable_name": null,
      "medium_id": null,
      "medium_name": null,
      "pxe_loader": null,
      "build": false,
      "comment": null,
      "disk": null,
      "installed_at": null,
      "model_id": null,
      "hostgroup_id": null,
      "owner_id": 135138680,
      "owner_name": "Admin User",
      "owner_type": "User",
      "enabled": true,
      "managed": false,
      "use_image": null,
      "image_file": "",
      "uuid": "945f0f44-f53a-442d-b83d-5c98f9433daa",
      "compute_resource_id": 980190969,
      "compute_resource_name": "compute_resource301",
      "compute_profile_id": null,
      "compute_profile_name": null,
      "capabilities": [
        "image",
        "key_pair"
      ],
      "provision_method": "image",
      "certname": "host1368",
      "image_id": null,
      "image_name": null,
      "created_at": "2019-11-07 08:49:11 UTC",
      "updated_at": "2019-11-07 08:49:11 UTC",
      "last_compile": null,
      "global_status": 0,
      "global_status_label": "OK",
      "uptime_seconds": null,
      "organization_id": 447626438,
      "organization_name": "Organization 1",
      "location_id": 255093256,
      "location_name": "Location 1",
      "puppet_status": 0,
      "model_name": null,
      "name": "host1368",
      "id": 27,
      "puppet_proxy_id": null,
      "puppet_proxy_name": null,
      "puppet_ca_proxy_id": null,
      "puppet_ca_proxy_name": null,
      "puppet_proxy": null,
      "puppet_ca_proxy": null,
      "hostgroup_name": null,
      "hostgroup_title": null
    }
  ]
}

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


PUT /api/compute_resources/:id/refresh_cache
コンピュートリソースキャッシュの更新

PUT /api/compute_resources/305613588-Vmware/refresh_cache
{
  "compute_resource": {}
}
200
{
  "message": "Successfully refreshed the cache."
}

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.