Skip to main content

Workspace Assets routes

Version
since 1.x, describes 2.52.14
Feature flag
none
For
Workspace user, Workspace administrator

Routes tagged workspace-assets in the public API. Paths are relative to the API host (see API overview).

MethodPathSummaryToken permission
GET/api/v1/assets/virtual-instances/productsGet virtual instances productsany

Routes​

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

Get virtual instances products.

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, accepts comma separated values for multiselect

Responses

StatusMeaning
200Ok
400400 -- Error when something is wrong with the request sent
401401 -- Authorization error
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.namestringBareMetalProduct name.
data.descriptionstringFulltext description of the product
data.shortDescriptionstringShort product description
data.vcpunumberNumber of virtual cpus attached to instance
data.vgpuTypestringType of virtual gpu attached to instance
data.vgpuNumbernumberNumber of virtual gpus attached to instance
data.ramnumberAmount of rams attached to instance
data.diskSizenumberSize of root disk attached to instance
data.ephemeralDiskSizenumberSize of ephemeral disk attached to instance
data.openstackFlavorIdstringId of flavor on openstack
data.productRegionstringRegion where product is created
data.isExclusivebooleanIf this product is exclusive, that means it will only show up to connected workspaces
data.activebooleanIs the product active.
data.pricePerHournumberPrice of an instance
data.createdBystring (uuid)Entity created by user.
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