示例

POST /api/architectures
{
  "architecture": {
    "name": "i386"
  }
}
201
{
  "created_at": "2019-09-11 14:40:35 UTC",
  "updated_at": "2019-09-11 14:40:35 UTC",
  "name": "i386",
  "id": 578327784,
  "operatingsystems": [],
  "images": []
}

參數

參數名字 描述
location_id
選填

位置範圍

Validations:

  • Must be a Integer

organization_id
選填

組織範圍

Validations:

  • Must be a Integer

architecture
必填

Validations:

  • Must be a Hash

architecture[name]
必填

Validations:

  • Must be a String

architecture[operatingsystem_ids]
選填 , 允許空值

作業系統 ID

Validations:

  • Must be an array of any type