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": "2021-11-26 09:26:45 UTC",
"updated_at": "2021-11-26 09:26:45 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": "2021-11-26 09:26:45 UTC",
"updated_at": "2021-11-26 09:26:45 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": "2021-11-26 09:26:45 UTC",
"updated_at": "2021-11-26 09:26:45 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": "2021-11-26 09:26:45 UTC",
"updated_at": "2021-11-26 09:26:45 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": "2021-11-26 09:26:45 UTC",
"updated_at": "2021-11-26 09:26:45 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": "2021-11-26 09:26:45 UTC",
"updated_at": "2021-11-26 09:26:45 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": "2021-11-26 09:26:45 UTC",
"updated_at": "2021-11-26 09:26:45 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": "2021-11-26 09:26:45 UTC",
"updated_at": "2021-11-26 09:26:45 UTC",
"id": 272342666,
"name": "Ubuntu",
"title": "Ubuntu 12.10"
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
architecture_id optional |
ID of architecture Validations:
|
|
medium_id optional |
ID of medium Validations:
|
|
ptable_id optional |
ID of partition table Validations:
|
|
provisioning_template_id optional |
ID of template Validations:
|
|
os_parameters_attributes optional |
Array of parameters Validations:
|
|
os_parameters_attributes[name] required |
Name of the parameter Validations:
|
|
os_parameters_attributes[value] required |
Parameter value Validations:
|
|
search optional |
filter results Validations:
|
|
order optional |
Sort and order by a searchable field, e.g. ‘id DESC’ Validations:
|
|
page optional |
Page number, starting at 1 Validations:
|
|
per_page optional |
Number of results per page to return, ‘all’ to return all results Validations:
|
| Field name | Type | Possible values |
|---|---|---|
| architecture | string | |
| description | string | |
| family | string | |
| major | string | |
| medium | string | |
| minor | string | |
| name | string | |
| params | string | |
| template | string | |
| title | string |
GET /api/operatingsystems/1073012899
200
{
"description": null,
"major": "388",
"minor": "",
"family": null,
"release_name": null,
"password_hash": "SHA256",
"created_at": "2021-11-26 08:50:36 UTC",
"updated_at": "2021-11-26 08:50:36 UTC",
"id": 1073012899,
"name": "operatingsystem383",
"title": "operatingsystem383 388",
"media": [],
"architectures": [],
"ptables": [],
"provisioning_templates": [
{
"id": 508279162,
"name": "Linux host initial configuration",
"template_kind_id": 508279162,
"template_kind_name": "host_init_config"
}
],
"os_default_templates": [
{
"id": 1018350866,
"provisioning_template_id": 508279162,
"provisioning_template_name": "Linux host initial configuration",
"template_kind_id": 508279162,
"template_kind_name": "host_init_config",
"operatingsystem_id": 1073012899,
"operatingsystem_name": "operatingsystem383 388"
}
],
"images": [],
"parameters": [
{
"priority": 50,
"created_at": "2021-11-26 08:50:36 UTC",
"updated_at": "2021-11-26 08:50:36 UTC",
"id": 767575249,
"name": "foo",
"parameter_type": "string",
"value": "*****"
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
|
show_hidden_parameters optional |
Display hidden parameter values Validations:
|
POST /api/operatingsystems
{
"operatingsystem": {
"name": "orFRsLemYF",
"major": "130",
"family": "Redhat"
}
}
201
{
"description": null,
"major": "130",
"minor": "",
"family": "Redhat",
"release_name": null,
"password_hash": "SHA256",
"created_at": "2021-11-26 08:51:18 UTC",
"updated_at": "2021-11-26 08:51:18 UTC",
"id": 1073012839,
"name": "orFRsLemYF",
"title": "orFRsLemYF 130",
"media": [],
"architectures": [],
"ptables": [],
"provisioning_templates": [
{
"id": 508279162,
"name": "Linux host initial configuration",
"template_kind_id": 508279162,
"template_kind_name": "host_init_config"
}
],
"os_default_templates": [
{
"id": 1018350806,
"provisioning_template_id": 508279162,
"provisioning_template_name": "Linux host initial configuration",
"template_kind_id": 508279162,
"template_kind_name": "host_init_config",
"operatingsystem_id": 1073012839,
"operatingsystem_name": "orFRsLemYF 130"
}
],
"images": [],
"parameters": []
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
operatingsystem required |
Validations:
|
|
operatingsystem[name] required |
Validations:
|
|
operatingsystem[major] required |
Validations:
|
|
operatingsystem[minor] optional , nil allowed |
Validations:
|
|
operatingsystem[description] optional , nil allowed |
Validations:
|
|
operatingsystem[family] optional , nil allowed |
Validations:
|
|
operatingsystem[release_name] optional , nil allowed |
Validations:
|
|
operatingsystem[os_parameters_attributes] optional , nil allowed |
Array of parameters Validations:
|
|
operatingsystem[os_parameters_attributes][name] required |
Name of the parameter Validations:
|
|
operatingsystem[os_parameters_attributes][value] required |
Parameter value Validations:
|
|
operatingsystem[password_hash] optional , nil allowed |
Root password hash function to use Validations:
|
|
operatingsystem[architecture_ids] optional , nil allowed |
IDs of associated architectures Validations:
|
|
operatingsystem[provisioning_template_ids] optional , nil allowed |
IDs of associated provisioning templates Validations:
|
|
operatingsystem[medium_ids] optional , nil allowed |
IDs of associated media Validations:
|
|
operatingsystem[ptable_ids] optional , nil allowed |
IDs of associated partition tables Validations:
|
PUT /api/operatingsystems/1073012838
{
"operatingsystem": {
"os_parameters_attributes": [
{
"name": "foo",
"value": "new_value"
}
]
}
}
200
{
"description": null,
"major": "404",
"minor": "",
"family": null,
"release_name": null,
"password_hash": "SHA256",
"created_at": "2021-11-26 08:51:17 UTC",
"updated_at": "2021-11-26 08:51:17 UTC",
"id": 1073012838,
"name": "operatingsystem398",
"title": "operatingsystem398 404",
"media": [],
"architectures": [],
"ptables": [],
"provisioning_templates": [
{
"id": 508279162,
"name": "Linux host initial configuration",
"template_kind_id": 508279162,
"template_kind_name": "host_init_config"
}
],
"os_default_templates": [
{
"id": 1018350805,
"provisioning_template_id": 508279162,
"provisioning_template_name": "Linux host initial configuration",
"template_kind_id": 508279162,
"template_kind_name": "host_init_config",
"operatingsystem_id": 1073012838,
"operatingsystem_name": "operatingsystem398 404"
}
],
"images": [],
"parameters": [
{
"priority": 50,
"created_at": "2021-11-26 08:51:17 UTC",
"updated_at": "2021-11-26 08:51:17 UTC",
"id": 767575244,
"name": "foo",
"parameter_type": "string",
"value": "new_value"
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
|
operatingsystem required |
Validations:
|
|
operatingsystem[name] optional |
Validations:
|
|
operatingsystem[major] optional |
Validations:
|
|
operatingsystem[minor] optional , nil allowed |
Validations:
|
|
operatingsystem[description] optional , nil allowed |
Validations:
|
|
operatingsystem[family] optional , nil allowed |
Validations:
|
|
operatingsystem[release_name] optional , nil allowed |
Validations:
|
|
operatingsystem[os_parameters_attributes] optional , nil allowed |
Array of parameters Validations:
|
|
operatingsystem[os_parameters_attributes][name] optional |
Name of the parameter Validations:
|
|
operatingsystem[os_parameters_attributes][value] optional |
Parameter value Validations:
|
|
operatingsystem[password_hash] optional , nil allowed |
Root password hash function to use Validations:
|
|
operatingsystem[architecture_ids] optional , nil allowed |
IDs of associated architectures Validations:
|
|
operatingsystem[provisioning_template_ids] optional , nil allowed |
IDs of associated provisioning templates Validations:
|
|
operatingsystem[medium_ids] optional , nil allowed |
IDs of associated media Validations:
|
|
operatingsystem[ptable_ids] optional , nil allowed |
IDs of associated partition tables Validations:
|
DELETE /api/operatingsystems/775246587-NoHosts%201-1
{
"operatingsystem": {}
}
200
{
"id": 775246587,
"major": "1",
"name": "NoHosts",
"minor": "1",
"nameindicator": null,
"created_at": "2021-11-26T08:50:56.204Z",
"updated_at": "2021-11-26T08:50:56.204Z",
"release_name": null,
"description": null,
"password_hash": "SHA256",
"title": "NoHosts 1.1"
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
|
medium optional |
Validations:
|
|
architecture optional |
Validations:
|