GET /api/architectures 200 { "total": 4, "subtotal": 4, "page": 1, "per_page": 20, "search": null, "sort": { "by": null, "order": null }, "results": [ { "created_at": "2019-02-20 13:38:26 UTC", "updated_at": "2019-02-20 13:38:26 UTC", "name": "x86_64", "id": 501905019 }, { "created_at": "2019-02-20 13:38:26 UTC", "updated_at": "2019-02-20 13:38:26 UTC", "name": "sparc", "id": 331892513 }, { "created_at": "2019-02-20 13:38:26 UTC", "updated_at": "2019-02-20 13:38:26 UTC", "name": "s390", "id": 381564594 }, { "created_at": "2019-02-20 13:38:26 UTC", "updated_at": "2019-02-20 13:38:26 UTC", "name": "ASIC", "id": 578327757 } ] }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
search optional |
filter results Validations:
|
order optional |
Sort field and order, eg. ‘id DESC’ Validations:
|
page optional |
paginate results Validations:
|
per_page optional |
number of entries per request Validations:
|
operatingsystem_id optional |
ID of operating system Validations:
|
Field name | Type | Possible values |
---|---|---|
name | string |
GET /api/architectures/501905019-x86_64 200 { "created_at": "2019-02-20 13:38:26 UTC", "updated_at": "2019-02-20 13:38:26 UTC", "name": "x86_64", "id": 501905019, "operatingsystems": [ { "id": 309172073, "name": "centos", "title": "centos 5.3" }, { "id": 750842046, "name": "OpenSuse", "title": "OpenSuSE 12.3" }, { "id": 1073012828, "name": "Redhat", "title": "RHEL 6.1" }, { "id": 331303656, "name": "Ubuntu", "title": "Ubuntu 10.10" }, { "id": 272342666, "name": "Ubuntu", "title": "Ubuntu 12.10" } ], "images": [ { "id": 980190962, "name": "centos-1" }, { "id": 298486374, "name": "centos-2" } ] }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
id required |
Validations:
|
POST /api/architectures { "architecture": { "name": "i386" } } 201 { "created_at": "2019-02-20 13:38:28 UTC", "updated_at": "2019-02-20 13:38:28 UTC", "name": "i386", "id": 578327761, "operatingsystems": [], "images": [] }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
architecture required |
Validations:
|
architecture[name] required |
Validations:
|
architecture[operatingsystem_ids] optional , nil allowed |
Operating system IDs Validations:
|
PUT /api/architectures/501905019-x86_64 { "architecture": { "name": "newx86_64" } } 200 { "created_at": "2019-02-20 13:38:26 UTC", "updated_at": "2019-02-20 13:38:28 UTC", "name": "newx86_64", "id": 501905019, "operatingsystems": [ { "id": 309172073, "name": "centos", "title": "centos 5.3" }, { "id": 750842046, "name": "OpenSuse", "title": "OpenSuSE 12.3" }, { "id": 1073012828, "name": "Redhat", "title": "RHEL 6.1" }, { "id": 331303656, "name": "Ubuntu", "title": "Ubuntu 10.10" }, { "id": 272342666, "name": "Ubuntu", "title": "Ubuntu 12.10" } ], "images": [ { "id": 980190962, "name": "centos-1" }, { "id": 298486374, "name": "centos-2" } ] }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
id required |
Validations:
|
architecture required |
Validations:
|
architecture[name] optional |
Validations:
|
architecture[operatingsystem_ids] optional , nil allowed |
Operating system IDs Validations:
|
DELETE /api/architectures/381564594-s390 { "architecture": {} } 200 { "id": 381564594, "name": "s390", "created_at": "2019-02-20T13:38:26.359Z", "updated_at": "2019-02-20T13:38:26.359Z" }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
id required |
Validations:
|