示例

GET /api/operatingsystems
200
{
  "total": 8,
  "subtotal": 8,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "description": null,
      "major": "5",
      "minor": "3",
      "family": "Redhat",
      "release_name": null,
      "password_hash": "SHA256",
      "created_at": "2019-09-11 14:55:21 UTC",
      "updated_at": "2019-09-11 14:55:21 UTC",
      "id": 309172073,
      "name": "centos",
      "title": "centos 5.3"
    },
    {
      "description": null,
      "major": "5",
      "minor": "17",
      "family": "VRP",
      "release_name": null,
      "password_hash": "SHA256",
      "created_at": "2019-09-11 14:55:21 UTC",
      "updated_at": "2019-09-11 14:55:21 UTC",
      "id": 32055736,
      "name": "Huawei_VRP",
      "title": "Huawei VRP 5"
    },
    {
      "description": null,
      "major": "1",
      "minor": "1",
      "family": "Redhat",
      "release_name": null,
      "password_hash": "SHA256",
      "created_at": "2019-09-11 14:55:21 UTC",
      "updated_at": "2019-09-11 14:55:21 UTC",
      "id": 775246587,
      "name": "NoHosts",
      "title": "NoHosts 1.1"
    },
    {
      "description": null,
      "major": "12",
      "minor": "3",
      "family": "Suse",
      "release_name": null,
      "password_hash": "SHA256",
      "created_at": "2019-09-11 14:55:21 UTC",
      "updated_at": "2019-09-11 14:55:21 UTC",
      "id": 750842046,
      "name": "OpenSuse",
      "title": "OpenSuSE 12.3"
    },
    {
      "description": "RHEL 6.1",
      "major": "6",
      "minor": "1",
      "family": "Redhat",
      "release_name": null,
      "password_hash": "SHA256",
      "created_at": "2019-09-11 14:55:21 UTC",
      "updated_at": "2019-09-11 14:55:21 UTC",
      "id": 1073012828,
      "name": "Redhat",
      "title": "RHEL 6.1"
    },
    {
      "description": null,
      "major": "5",
      "minor": "10",
      "family": "Solaris",
      "release_name": "hw0910",
      "password_hash": "SHA256",
      "created_at": "2019-09-11 14:55:21 UTC",
      "updated_at": "2019-09-11 14:55:21 UTC",
      "id": 442321401,
      "name": "Solaris",
      "title": "Solaris 5.10"
    },
    {
      "description": null,
      "major": "10",
      "minor": "10",
      "family": "Debian",
      "release_name": "rn10",
      "password_hash": "SHA256",
      "created_at": "2019-09-11 14:55:21 UTC",
      "updated_at": "2019-09-11 14:55:21 UTC",
      "id": 331303656,
      "name": "Ubuntu",
      "title": "Ubuntu 10.10"
    },
    {
      "description": null,
      "major": "12",
      "minor": "10",
      "family": "Debian",
      "release_name": "rn10",
      "password_hash": "SHA256",
      "created_at": "2019-09-11 14:55:21 UTC",
      "updated_at": "2019-09-11 14:55:21 UTC",
      "id": 272342666,
      "name": "Ubuntu",
      "title": "Ubuntu 12.10"
    }
  ]
}

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Must be a Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Must be a Integer

architecture_id
选填

架构 ID

Validations:

  • Must be a String

medium_id
选填

媒体 ID

Validations:

  • Must be a String

ptable_id
选填

分区表 ID

Validations:

  • Must be a String

config_template_id
选填

模板 ID

Validations:

  • Must be a String

provisioning_template_id
选填

模板 ID

Validations:

  • Must be a String

os_parameters_attributes
选填

参数阵列

Validations:

  • Must be an Array of nested elements

os_parameters_attributes[name]
必填

参数名称

Validations:

  • Must be a String

os_parameters_attributes[value]
必填

参数值

Validations:

  • Must be a String

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.

搜索字段

字段名 类型 可能的值
architecture string
description string
family string
major string
medium string
minor string
name string
params text
template string
title string