Skip to main content

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).

MethodPathSummaryToken permission
GET/api/v1/assets/bare-metal/operatingsystemsGet bare metal operatingsystemsany
GET/api/v1/assets/bare-metal/operatingsystems/simpleGet bare metal operatingsystemsany
GET/api/v1/assets/virtual-instances/imagesGet virtual instances imagesany
GET/api/v1/assets/virtual-instances/images/simpleGet virtual instances imagesany

Routes​

GET /api/v1/assets/bare-metal/operatingsystems​

Get bare metal operatingsystems.

Token permission: any active workspace token

Parameters

NameInTypeRequiredDescription
pagequerynumberPage number
perPagequerynumberNumber of items per page
sortquerystringDirection of a sorting: ASC or DESC
sortByquerystringname of the field that will be used as a sort parameter
searchquerystringValue that will be used for searching
searchByquerystringParameter by wich we will search the data
regionHandlequerystringFilter by region handle
productIdquerystringShow the generaly compatible OS-es with addition of the ones that are locked directly to the given product id
onlyLockedquerybooleanDoes nothing without the parameter 'productId', it will only show the OS-es that are locked for the given product id

Responses

StatusMeaning
200Ok
400400 -- Error when something is wrong with the request sent
404404 -- Error when resource wasn't found
422422 -- Error when validation of the request fails
429429 -- Too many requests
500500 -- Error when something is wrong on the server side

Response body for 200

FieldTypeRequiredNotes
pagenumber
perPagenumber
totalnumber
lastPagenumber
dataarray of object
data.idstring (uuid)
data.namestringBareMetalOperatingsystem name.
data.titlestringBareMetalOperatingsystem title.
data.descriptionstringFulltext description of the product
data.familystringBareMetalOperatingsystem family eg. (Ubuntu, Centos, Windows...).
data.majorstringBareMetalOperatingsystem major, for Ubuntu 20.04 this would be 20
data.minorstringBareMetalOperatingsystem minor, for Ubuntu 20.04 this would be 04
data.releaseNamestringBareMetalOperatingsystem releaseName, for Ubuntu 20.04 this would be 'FocalFossa'
data.activebooleanIs the BareMetalOperatingsystem active.
data.productLockedbooleanDoes it have a lock for specific products (more info in connecting table).
data.workspaceTypestringTels us for what workspaces this OS will be displayed.
data.createdBystring (uuid)BareMetalOperatingsystem createdBy.
data.createdAtstring (date-time)Entity created at date and time.
data.updatedAtstring (date-time)Entity last update date and time.
data.deletedAtstring (date-time)Date and time of entity deletion.
data.availableRegionsarray of string
data.foremanHostgroupsarray of object
data.foremanHostgroups.idstring (uuid)
data.foremanHostgroups.foremanIdnumberId of the hostgroup on the foreman
data.foremanHostgroups.regionHandlestringForemanHostgroup region handle connection.
sortablearray of string
searchablearray of string

GET /api/v1/assets/bare-metal/operatingsystems/simple​

Get bare metal operatingsystems.

Token permission: any active workspace token

Parameters

NameInTypeRequiredDescription
regionHandlequerystringFilter by region handle
productIdquerystringShow the generaly compatible OS-es with addition of the ones that are locked directly to the given product id
onlyLockedquerybooleanDoes nothing without the parameter 'productId', it will only show the OS-es that are locked for the given product id

Responses

StatusMeaning
200Ok
400400 -- Error when something is wrong with the request sent
404404 -- Error when resource wasn't found
422422 -- Error when validation of the request fails
429429 -- Too many requests
500500 -- Error when something is wrong on the server side

Response body for 200

FieldTypeRequiredNotes
familystring
operatingsystemsarray of object
operatingsystems.idstring (uuid)
operatingsystems.namestringBareMetalOperatingsystem name.
operatingsystems.titlestringBareMetalOperatingsystem title.
operatingsystems.descriptionstringFulltext description of the product
operatingsystems.familystringBareMetalOperatingsystem family eg. (Ubuntu, Centos, Windows...).
operatingsystems.majorstringBareMetalOperatingsystem major, for Ubuntu 20.04 this would be 20
operatingsystems.minorstringBareMetalOperatingsystem minor, for Ubuntu 20.04 this would be 04
operatingsystems.releaseNamestringBareMetalOperatingsystem releaseName, for Ubuntu 20.04 this would be 'FocalFossa'
operatingsystems.activebooleanIs the BareMetalOperatingsystem active.
operatingsystems.productLockedbooleanDoes it have a lock for specific products (more info in connecting table).
operatingsystems.workspaceTypestringTels us for what workspaces this OS will be displayed.
operatingsystems.createdBystring (uuid)BareMetalOperatingsystem createdBy.
operatingsystems.createdAtstring (date-time)Entity created at date and time.
operatingsystems.updatedAtstring (date-time)Entity last update date and time.
operatingsystems.deletedAtstring (date-time)Date and time of entity deletion.
operatingsystems.availableRegionsarray of string
operatingsystems.foremanHostgroupsarray of object
operatingsystems.foremanHostgroups.idstring (uuid)
operatingsystems.foremanHostgroups.foremanIdnumberId of the hostgroup on the foreman
operatingsystems.foremanHostgroups.regionHandlestringForemanHostgroup region handle connection.

GET /api/v1/assets/virtual-instances/images​

Get virtual instances images.

Token permission: any active workspace token

Parameters

NameInTypeRequiredDescription
pagequerynumberPage number
perPagequerynumberNumber of items per page
sortquerystringDirection of a sorting: ASC or DESC
sortByquerystringname of the field that will be used as a sort parameter
searchquerystringValue that will be used for searching
searchByquerystringParameter by wich we will search the data
regionHandlequerystringFilter by region handle
productIdquerystringShow the generaly compatible images with addition of the ones that are locked directly to the given product id
onlyLockedquerybooleanDoes nothing without the parameter 'productId', it will only show the OS-es that are locked for the given product id

Responses

StatusMeaning
200Ok
400400 -- Error when something is wrong with the request sent
404404 -- Error when resource wasn't found
422422 -- Error when validation of the request fails
429429 -- Too many requests
500500 -- Error when something is wrong on the server side

Response body for 200

FieldTypeRequiredNotes
pagenumber
perPagenumber
totalnumber
lastPagenumber
dataarray of object
data.idstring (uuid)
data.namestringVirtualInstancesImages name.
data.descriptionstringFulltext description of the product
data.familystringVirtualInstancesImage family eg. (Ubuntu, Centos, Windows...).
data.diskFormatstringFormat of disk on openstack image.
data.minDisknumber nullableMinimum disk size for image.
data.minRamnumber nullableMin ram size for image.
data.sizenumberSize of an openstack image.
data.activebooleanIs the VirtualInstancesImage active.
data.productLockedbooleanDoes it have a lock for specific products (more info in connecting table).
data.visibilitystringVisibility of image on openstack.
data.workspaceTypestringTels us for what workspaces this image will be displayed.
data.virtualInstanceImageRegionarray of object
data.virtualInstanceImageRegion.virtualInstancesImageIdstringId of image on virtual machine platform
data.virtualInstanceImageRegion.regionstringRegion for image
data.virtualInstanceImageRegion.platformstringPlatform for image One of openstack, proxmox
data.createdByobject
data.createdBy.idstring (uuid|system|none)
data.createdBy.emailstring (email)
data.createdBy.firstNamestring
data.createdBy.lastNamestring
data.createdAtstring (date-time)Entity created at date and time.
data.updatedAtstring (date-time)Entity last update date and time.
data.deletedAtstring (date-time)Date and time of entity deletion.
sortablearray of string
searchablearray of string

GET /api/v1/assets/virtual-instances/images/simple​

Get virtual instances images.

Token permission: any active workspace token

Parameters

NameInTypeRequiredDescription
regionHandlequerystringFilter by region handle
productIdquerystringShow the generaly compatible images with addition of the ones that are locked directly to the given product id
onlyLockedquerybooleanDoes nothing without the parameter 'productId', it will only show the images that are locked for the given product id

Responses

StatusMeaning
200Ok
400400 -- Error when something is wrong with the request sent
404404 -- Error when resource wasn't found
422422 -- Error when validation of the request fails
429429 -- Too many requests
500500 -- Error when something is wrong on the server side

Response body for 200

FieldTypeRequiredNotes
familystring
imagesarray of object
images.idstring (uuid)
images.namestringVirtualInstancesImages name.
images.descriptionstringFulltext description of the product
images.familystringVirtualInstancesImage family eg. (Ubuntu, Centos, Windows...).
images.diskFormatstringFormat of disk on openstack image.
images.minDisknumber nullableMinimum disk size for image.
images.minRamnumber nullableMin ram size for image.
images.sizenumberSize of an openstack image.
images.activebooleanIs the VirtualInstancesImage active.
images.productLockedbooleanDoes it have a lock for specific products (more info in connecting table).
images.visibilitystringVisibility of image on openstack.
images.workspaceTypestringTels us for what workspaces this image will be displayed.
images.virtualInstanceImageRegionarray of object
images.virtualInstanceImageRegion.virtualInstancesImageIdstringId of image on virtual machine platform
images.virtualInstanceImageRegion.regionstringRegion for image
images.virtualInstanceImageRegion.platformstringPlatform for image One of openstack, proxmox
images.createdByobject
images.createdBy.idstring (uuid|system|none)
images.createdBy.emailstring (email)
images.createdBy.firstNamestring
images.createdBy.lastNamestring
images.createdAtstring (date-time)Entity created at date and time.
images.updatedAtstring (date-time)Entity last update date and time.
images.deletedAtstring (date-time)Date and time of entity deletion.