示例

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