Assets routes
- Version
- since 1.x, describes 2.52.14
- Feature flag
- none
- For
- Workspace user, Workspace administrator
Routes tagged assets in the public API. Paths are relative to the API host (see API overview).
| Method | Path | Summary | Token permission |
|---|---|---|---|
| GET | /api/v1/assets/bare-metal/operatingsystems | Get bare metal operatingsystems | any |
| GET | /api/v1/assets/bare-metal/operatingsystems/simple | Get bare metal operatingsystems | any |
| GET | /api/v1/assets/virtual-instances/images | Get virtual instances images | any |
| GET | /api/v1/assets/virtual-instances/images/simple | Get virtual instances images | any |
Routes
GET /api/v1/assets/bare-metal/operatingsystems
Get bare metal operatingsystems.
Token permission: any active workspace token
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
page | query | number | Page number | |
perPage | query | number | Number of items per page | |
sort | query | string | Direction of a sorting: ASC or DESC | |
sortBy | query | string | name of the field that will be used as a sort parameter | |
search | query | string | Value that will be used for searching | |
searchBy | query | string | Parameter by wich we will search the data | |
regionHandle | query | string | Filter by region handle | |
productId | query | string | Show the generaly compatible OS-es with addition of the ones that are locked directly to the given product id | |
onlyLocked | query | boolean | Does nothing without the parameter 'productId', it will only show the OS-es that are locked for the given product id |
Responses
| Status | Meaning |
|---|---|
200 | Ok |
400 | 400 -- Error when something is wrong with the request sent |
404 | 404 -- Error when resource wasn't found |
422 | 422 -- Error when validation of the request fails |
429 | 429 -- Too many requests |
500 | 500 -- Error when something is wrong on the server side |
Response body for 200
| Field | Type | Required | Notes |
|---|---|---|---|
page | number | ||
perPage | number | ||
total | number | ||
lastPage | number | ||
data | array of object | ||
data.id | string (uuid) | ||
data.name | string | BareMetalOperatingsystem name. | |
data.title | string | BareMetalOperatingsystem title. | |
data.description | string | Fulltext description of the product | |
data.family | string | BareMetalOperatingsystem family eg. (Ubuntu, Centos, Windows...). | |
data.major | string | BareMetalOperatingsystem major, for Ubuntu 20.04 this would be 20 | |
data.minor | string | BareMetalOperatingsystem minor, for Ubuntu 20.04 this would be 04 | |
data.releaseName | string | BareMetalOperatingsystem releaseName, for Ubuntu 20.04 this would be 'FocalFossa' | |
data.active | boolean | Is the BareMetalOperatingsystem active. | |
data.productLocked | boolean | Does it have a lock for specific products (more info in connecting table). | |
data.workspaceType | string | Tels us for what workspaces this OS will be displayed. | |
data.createdBy | string (uuid) | BareMetalOperatingsystem createdBy. | |
data.createdAt | string (date-time) | Entity created at date and time. | |
data.updatedAt | string (date-time) | Entity last update date and time. | |
data.deletedAt | string (date-time) | Date and time of entity deletion. | |
data.availableRegions | array of string | ||
data.foremanHostgroups | array of object | ||
data.foremanHostgroups.id | string (uuid) | ||
data.foremanHostgroups.foremanId | number | Id of the hostgroup on the foreman | |
data.foremanHostgroups.regionHandle | string | ForemanHostgroup region handle connection. | |
sortable | array of string | ||
searchable | array of string |
GET /api/v1/assets/bare-metal/operatingsystems/simple
Get bare metal operatingsystems.
Token permission: any active workspace token
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
regionHandle | query | string | Filter by region handle | |
productId | query | string | Show the generaly compatible OS-es with addition of the ones that are locked directly to the given product id | |
onlyLocked | query | boolean | Does nothing without the parameter 'productId', it will only show the OS-es that are locked for the given product id |
Responses
| Status | Meaning |
|---|---|
200 | Ok |
400 | 400 -- Error when something is wrong with the request sent |
404 | 404 -- Error when resource wasn't found |
422 | 422 -- Error when validation of the request fails |
429 | 429 -- Too many requests |
500 | 500 -- Error when something is wrong on the server side |
Response body for 200
| Field | Type | Required | Notes |
|---|---|---|---|
family | string | ||
operatingsystems | array of object | ||
operatingsystems.id | string (uuid) | ||
operatingsystems.name | string | BareMetalOperatingsystem name. | |
operatingsystems.title | string | BareMetalOperatingsystem title. | |
operatingsystems.description | string | Fulltext description of the product | |
operatingsystems.family | string | BareMetalOperatingsystem family eg. (Ubuntu, Centos, Windows...). | |
operatingsystems.major | string | BareMetalOperatingsystem major, for Ubuntu 20.04 this would be 20 | |
operatingsystems.minor | string | BareMetalOperatingsystem minor, for Ubuntu 20.04 this would be 04 | |
operatingsystems.releaseName | string | BareMetalOperatingsystem releaseName, for Ubuntu 20.04 this would be 'FocalFossa' | |
operatingsystems.active | boolean | Is the BareMetalOperatingsystem active. | |
operatingsystems.productLocked | boolean | Does it have a lock for specific products (more info in connecting table). | |
operatingsystems.workspaceType | string | Tels us for what workspaces this OS will be displayed. | |
operatingsystems.createdBy | string (uuid) | BareMetalOperatingsystem createdBy. | |
operatingsystems.createdAt | string (date-time) | Entity created at date and time. | |
operatingsystems.updatedAt | string (date-time) | Entity last update date and time. | |
operatingsystems.deletedAt | string (date-time) | Date and time of entity deletion. | |
operatingsystems.availableRegions | array of string | ||
operatingsystems.foremanHostgroups | array of object | ||
operatingsystems.foremanHostgroups.id | string (uuid) | ||
operatingsystems.foremanHostgroups.foremanId | number | Id of the hostgroup on the foreman | |
operatingsystems.foremanHostgroups.regionHandle | string | ForemanHostgroup region handle connection. |
GET /api/v1/assets/virtual-instances/images
Get virtual instances images.
Token permission: any active workspace token
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
page | query | number | Page number | |
perPage | query | number | Number of items per page | |
sort | query | string | Direction of a sorting: ASC or DESC | |
sortBy | query | string | name of the field that will be used as a sort parameter | |
search | query | string | Value that will be used for searching | |
searchBy | query | string | Parameter by wich we will search the data | |
regionHandle | query | string | Filter by region handle | |
productId | query | string | Show the generaly compatible images with addition of the ones that are locked directly to the given product id | |
onlyLocked | query | boolean | Does nothing without the parameter 'productId', it will only show the OS-es that are locked for the given product id |
Responses
| Status | Meaning |
|---|---|
200 | Ok |
400 | 400 -- Error when something is wrong with the request sent |
404 | 404 -- Error when resource wasn't found |
422 | 422 -- Error when validation of the request fails |
429 | 429 -- Too many requests |
500 | 500 -- Error when something is wrong on the server side |
Response body for 200
| Field | Type | Required | Notes |
|---|---|---|---|
page | number | ||
perPage | number | ||
total | number | ||
lastPage | number | ||
data | array of object | ||
data.id | string (uuid) | ||
data.name | string | VirtualInstancesImages name. | |
data.description | string | Fulltext description of the product | |
data.family | string | VirtualInstancesImage family eg. (Ubuntu, Centos, Windows...). | |
data.diskFormat | string | Format of disk on openstack image. | |
data.minDisk | number nullable | Minimum disk size for image. | |
data.minRam | number nullable | Min ram size for image. | |
data.size | number | Size of an openstack image. | |
data.active | boolean | Is the VirtualInstancesImage active. | |
data.productLocked | boolean | Does it have a lock for specific products (more info in connecting table). | |
data.visibility | string | Visibility of image on openstack. | |
data.workspaceType | string | Tels us for what workspaces this image will be displayed. | |
data.virtualInstanceImageRegion | array of object | ||
data.virtualInstanceImageRegion.virtualInstancesImageId | string | Id of image on virtual machine platform | |
data.virtualInstanceImageRegion.region | string | Region for image | |
data.virtualInstanceImageRegion.platform | string | Platform for image One of openstack, proxmox | |
data.createdBy | object | ||
data.createdBy.id | string (uuid|system|none) | ||
data.createdBy.email | string (email) | ||
data.createdBy.firstName | string | ||
data.createdBy.lastName | string | ||
data.createdAt | string (date-time) | Entity created at date and time. | |
data.updatedAt | string (date-time) | Entity last update date and time. | |
data.deletedAt | string (date-time) | Date and time of entity deletion. | |
sortable | array of string | ||
searchable | array of string |
GET /api/v1/assets/virtual-instances/images/simple
Get virtual instances images.
Token permission: any active workspace token
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
regionHandle | query | string | Filter by region handle | |
productId | query | string | Show the generaly compatible images with addition of the ones that are locked directly to the given product id | |
onlyLocked | query | boolean | Does nothing without the parameter 'productId', it will only show the images that are locked for the given product id |
Responses
| Status | Meaning |
|---|---|
200 | Ok |
400 | 400 -- Error when something is wrong with the request sent |
404 | 404 -- Error when resource wasn't found |
422 | 422 -- Error when validation of the request fails |
429 | 429 -- Too many requests |
500 | 500 -- Error when something is wrong on the server side |
Response body for 200
| Field | Type | Required | Notes |
|---|---|---|---|
family | string | ||
images | array of object | ||
images.id | string (uuid) | ||
images.name | string | VirtualInstancesImages name. | |
images.description | string | Fulltext description of the product | |
images.family | string | VirtualInstancesImage family eg. (Ubuntu, Centos, Windows...). | |
images.diskFormat | string | Format of disk on openstack image. | |
images.minDisk | number nullable | Minimum disk size for image. | |
images.minRam | number nullable | Min ram size for image. | |
images.size | number | Size of an openstack image. | |
images.active | boolean | Is the VirtualInstancesImage active. | |
images.productLocked | boolean | Does it have a lock for specific products (more info in connecting table). | |
images.visibility | string | Visibility of image on openstack. | |
images.workspaceType | string | Tels us for what workspaces this image will be displayed. | |
images.virtualInstanceImageRegion | array of object | ||
images.virtualInstanceImageRegion.virtualInstancesImageId | string | Id of image on virtual machine platform | |
images.virtualInstanceImageRegion.region | string | Region for image | |
images.virtualInstanceImageRegion.platform | string | Platform for image One of openstack, proxmox | |
images.createdBy | object | ||
images.createdBy.id | string (uuid|system|none) | ||
images.createdBy.email | string (email) | ||
images.createdBy.firstName | string | ||
images.createdBy.lastName | string | ||
images.createdAt | string (date-time) | Entity created at date and time. | |
images.updatedAt | string (date-time) | Entity last update date and time. | |
images.deletedAt | string (date-time) | Date and time of entity deletion. |