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).
| Method | Path | Summary | Token permission |
|---|---|---|---|
| GET | /api/v1/assets/virtual-instances/products | Get virtual instances products | any |
Routes
GET /api/v1/assets/virtual-instances/products
Get virtual instances products.
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, accepts comma separated values for multiselect |
Responses
| Status | Meaning |
|---|---|
200 | Ok |
400 | 400 -- Error when something is wrong with the request sent |
401 | 401 -- Authorization error |
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 | BareMetalProduct name. | |
data.description | string | Fulltext description of the product | |
data.shortDescription | string | Short product description | |
data.vcpu | number | Number of virtual cpus attached to instance | |
data.vgpuType | string | Type of virtual gpu attached to instance | |
data.vgpuNumber | number | Number of virtual gpus attached to instance | |
data.ram | number | Amount of rams attached to instance | |
data.diskSize | number | Size of root disk attached to instance | |
data.ephemeralDiskSize | number | Size of ephemeral disk attached to instance | |
data.openstackFlavorId | string | Id of flavor on openstack | |
data.productRegion | string | Region where product is created | |
data.isExclusive | boolean | If this product is exclusive, that means it will only show up to connected workspaces | |
data.active | boolean | Is the product active. | |
data.pricePerHour | number | Price of an instance | |
data.createdBy | string (uuid) | Entity created by user. | |
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 |