PUT /api/compute_resources/367690737
{
  "compute_resource": {
    "organization_ids": [
      114267492,
      447626438,
      61304186
    ]
  }
}
200
{
  "description": "mycompute",
  "url": "test:///default",
  "created_at": "2019-09-11 14:37:23 UTC",
  "updated_at": "2019-09-11 14:37:23 UTC",
  "id": 367690737,
  "name": "mycompute",
  "provider": "Libvirt",
  "provider_friendly_name": "Libvirt",
  "display_type": "vnc",
  "set_console_password": true,
  "images": [],
  "compute_attributes": [],
  "locations": [
    {
      "id": 255093256,
      "name": "Location 1",
      "title": "Location 1",
      "description": null
    }
  ],
  "organizations": [
    {
      "id": 447626438,
      "name": "Organization 1",
      "title": "Organization 1",
      "description": null
    },
    {
      "id": 114267492,
      "name": "Empty Organization",
      "title": "Empty Organization",
      "description": null
    },
    {
      "id": 61304186,
      "name": "Organization 2",
      "title": "Organization 2",
      "description": null
    }
  ]
}

パラメーター

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

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

Validations:

  • Must be a Integer

organization_id
任意

組織別のスコープ

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可

OpenStack の場合のみ

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