Workspace Instances routes
- Version
- since 1.x, describes 2.52.14
- Feature flag
- none
- For
- Workspace user, Workspace administrator
Routes tagged workspace-instances in the public API. Paths are relative to the API host (see API overview).
| Method | Path | Summary | Token permission |
|---|---|---|---|
| GET | /api/v1/workspaces/{workspace_id}/instances/{workspace_instance_id} | Single workspace instance | view-instances |
| GET | /api/v1/workspaces/{workspace_id}/instances/{workspace_instance_id}/logs | Workspace instance logs list | view-instances |
| PUT | /api/v1/workspaces/{workspace_id}/instances/{workspace_instance_id}/reset | Reset workspace instance | manage-instances |
| DELETE | /api/v1/workspaces/{workspace_id}/instances/{workspace_instance_id}/terminate | Terminate workspace instance | destroy-instances |
| GET | /api/v1/workspaces/{workspace_id}/instances/bare-metal | Bare metal workspace instances list | view-instances |
| GET | /api/v1/workspaces/{workspace_id}/instances/projects/{project_id} | Single workspace instance | view-instances |
| GET | /api/v1/workspaces/{workspace_id}/instances/virtual | Virtual workspace instances list | view-instances |
| GET | /api/v1/workspaces/{workspace_id}/instances/active | Active workspace instances list | view-instances |
Routes
GET /api/v1/workspaces/{workspace_id}/instances/{workspace_instance_id}
Single workspace instance.
Token permission: view-instances
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspace_id | path | string | yes | ID of the workspace |
workspace_instance_id | path | string | yes | ID of the instance |
Responses
| Status | Meaning |
|---|---|
200 | OK |
400 | 400 -- Error when something is wrong with the request sent |
401 | 401 -- Authorization error |
429 | 429 -- Too many requests |
500 | 500 -- Error when something is wrong on the server side |
Response body for 200 (FullWorkspaceInstanceWithLinksAndHw)
| Field | Type | Required | Notes |
|---|---|---|---|
id | string (uuid) | ||
workspaceId | string (uuid) | ||
workspace | object | ||
workspace.id | string (uuid) | yes | |
workspace.name | string | yes | |
workspace.handle | string | Unique identifier of a workspace, usually will be uuid | |
workspace.balanceAlertThreshold | string (uuid) | yes | |
workspace.createdBy | string (uuid) | yes | |
workspace.createdAt | string (date-time) | yes | |
workspace.updatedAt | string (date-time) | yes | |
workspace.deletedAt | string (date-time) | ||
workspace.deactivatedMessage | string (Message given during the deletion of the workspace) | ||
workspace.resellersId | string | Unique identifier of a reseller. | |
projectId | string (uuid) | ||
project | object | ||
project.id | string (uuid) | ||
project.workspaceId | string (uuid) | ||
project.name | string | ||
project.description | string | ||
project.color | string (hexadecimal_rgb) | ||
project.createdBy | string (uuid) | ||
project.createdAt | string (date-time) | ||
project.updatedAt | string (date-time) | ||
regionHandle | string | ||
region | object | ||
region.id | string (uuid) | ||
region.handle | string | Unique identifier of a region | |
region.name | string | Region name. | |
region.country | string | Region country. | |
region.city | string | Region city. | |
region.longitude | string | Region longitude. | |
region.latitude | string | Region latitude. | |
region.active | boolean | Is the region active. | |
region.createdAt | string (date-time) | Entity created at date and time. | |
region.updatedAt | string (date-time) | Entity last update date and time. | |
name | string | ||
hostname | string | ||
variant | string (bare_metal|virtual_machine) | ||
pricePerHour | number nullable | ||
purchaseId | string (uuid) | ||
purchase | object | ||
purchase.id | string (uuid) | ||
purchase.userId | string (uuid) | ||
purchase.workspaceId | string (uuid) | ||
purchase.regionHandle | string | ||
purchase.region | object | ||
purchase.region.id | string (uuid) | ||
purchase.region.handle | string | Unique identifier of a region | |
purchase.region.name | string | Region name. | |
purchase.region.country | string | Region country. | |
purchase.region.city | string | Region city. | |
purchase.region.longitude | string | Region longitude. | |
purchase.region.latitude | string | Region latitude. | |
purchase.region.active | boolean | Is the region active. | |
purchase.region.createdAt | string (date-time) | Entity created at date and time. | |
purchase.region.updatedAt | string (date-time) | Entity last update date and time. | |
purchase.variant | string | Variant of the purchase item | |
purchase.pricePerHour | number nullable | Purchase item price per hour | |
purchase.quantity | number | Number of this same item to create | |
purchase.createdAt | string (date-time) | Entity created at date and time. | |
purchase.updatedAt | string (date-time) | Entity last update date and time. | |
purchase.data | object | Properties of this object can only be bareMetal or virtualMachine, this should be used to figure out what variant the item is | |
purchase.data.bareMetal | object | ||
purchase.data.bareMetal.bareMetalProduct | object | ||
purchase.data.bareMetal.bareMetalOperatingsystem | object | ||
purchase.data.bareMetal.workspaceCredential | object | ||
purchase.data.virtualMachine | object | ||
purchase.data.virtualMachine.virtualInstanceProduct | object | ||
purchase.data.virtualMachine.virtualInstanceImage | array of object | ||
purchase.data.virtualMachine.workspaceCredential | object | ||
foremanHostId | string (uuid) | ||
foremanHostgroupId | string (uuid) | ||
createdAt | string (date-time) | ||
updatedAt | string (date-time) | ||
startedAt | string (date-time) | ||
terminatedAt | string (date-time) | ||
lastLog | object | ||
lastLog.id | string (uuid) | ||
lastLog.workspaceInstanceId | string (uuid) | ||
lastLog.createdBy | object | ||
lastLog.createdBy.id | string (uuid|system|none) | ||
lastLog.createdBy.email | string (email) | ||
lastLog.createdBy.firstName | string | ||
lastLog.createdBy.lastName | string | ||
lastLog.action | string | ||
lastLog.failedAt | string (date-time) | ||
lastLog.completedAt | string (date-time) | ||
lastLog.createdAt | string (date-time) | ||
lastLog.updatedAt | string (date-time) | ||
foremanHost | object | ||
foremanHost.id | string (uuid) | Unique identifier for the foreman host. | |
foremanHost.foremanId | number | Foreman id. | |
foremanHost.regionHandle | string | Foreman host region handle. | |
foremanHost.workspaceHandle | string | Foreman host workspace handle. | |
foremanHost.name | string | Foreman host name. | |
foremanHost.modelName | string | Foreman host model name. | |
foremanHost.mac | string | Foreman host mac address. | |
foremanHost.hostgroupId | number | Foreman host group id. | |
foremanHost.hostgroupName | string | Foreman host group name. | |
foremanHost.uuid | string (uuid) | Unique identifier for the foreman host. | |
foremanHost.build | boolean | Build flag. | |
foremanHost.globalStatus | string | Global status. | |
foremanHost.buildStatus | string | Build status. | |
foremanHost.ip | string | Ip address. | |
foremanHost.ip6 | string | Ip6 address. | |
foremanHost.powerOn | boolean | Power on flag. | |
foremanHost.specs | array of object | ||
foremanHost.specs.name | string | yes | Name of the hardware item |
foremanHost.specs.htype | string | yes | hardware type (cpu, gpu, memory, etc..) |
foremanHost.specs.serial | string | Possible serial number of the item (if exists, or we got it) | |
foremanHost.specs.metadata | array of object | yes | |
foremanHost.specs.metadata.name | string | Name of the metadata key | |
foremanHost.specs.metadata.value | string | Any type of the value | |
foremanHost.specs.metadata.unit | string | If the value has a unit, this is where it goes | |
foremanHost.createdAt | string (date-time) | Entity created at date and time. | |
foremanHost.updatedAt | string (date-time) | Entity last update date and time. | |
foremanHost.deletedAt | string (date-time) | Date and time of entity deletion. | |
status | string (running-ok | running-warning | terminated | provisioning-pending | pending-reboot | pending-terminating) | ||
cpu | string | ||
gpu | string | ||
ram | string | ||
storage | string |
GET /api/v1/workspaces/{workspace_id}/instances/{workspace_instance_id}/logs
Workspace instance logs list.
Token permission: view-instances
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspace_id | path | string | yes | ID of the workspace |
workspace_instance_id | path | string | yes | ID of the workspace instance |
sortBy | query | string | Sort by parameter for paginated list | |
sort | query | string | Sort parameter for paginated list (ASC, DESC) | |
page | query | number | Page parameter for paginated list | |
perPage | query | number | Per page parameter for paginated list | |
status | query | string (running|terminated|pending) | Filter instances by their state |
Responses
| Status | Meaning |
|---|---|
200 | OK |
400 | 400 -- Error when something is wrong with the request sent |
401 | 401 -- Authorization error |
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.workspaceInstanceId | string (uuid) | ||
data.createdBy | object | ||
data.createdBy.id | string (uuid|system|none) | ||
data.createdBy.email | string (email) | ||
data.createdBy.firstName | string | ||
data.createdBy.lastName | string | ||
data.action | string | ||
data.failedAt | string (date-time) | ||
data.completedAt | string (date-time) | ||
data.createdAt | string (date-time) | ||
data.updatedAt | string (date-time) | ||
sortable | array of string | ||
statuses | array of string |
PUT /api/v1/workspaces/{workspace_id}/instances/{workspace_instance_id}/reset
Reset workspace instance.
Token permission: manage-instances
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspace_id | path | string | yes | ID of the workspace |
workspace_instance_id | path | string | yes | ID of the workspace instance |
Responses
| Status | Meaning |
|---|---|
204 | No Content |
400 | 400 -- Error when something is wrong with the request sent |
401 | 401 -- Authorization error |
403 | 403 -- Error when trying to access forbidden resource |
429 | 429 -- Too many requests |
500 | 500 -- Error when something is wrong on the server side |
DELETE /api/v1/workspaces/{workspace_id}/instances/{workspace_instance_id}/terminate
Terminate workspace instance.
Token permission: destroy-instances
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspace_id | path | string | yes | ID of the workspace |
workspace_instance_id | path | string | yes | ID of the workspace instance |
Responses
| Status | Meaning |
|---|---|
204 | No Content |
400 | 400 -- Error when something is wrong with the request sent |
401 | 401 -- Authorization error |
429 | 429 -- Too many requests |
500 | 500 -- Error when something is wrong on the server side |
GET /api/v1/workspaces/{workspace_id}/instances/bare-metal
Bare metal workspace instances list.
Token permission: view-instances
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspace_id | path | string | yes | ID of the workspace |
sortBy | query | string | Sort by parameter for paginated list | |
sort | query | string | Sort parameter for paginated list (ASC, DESC) | |
page | query | number | Page parameter for paginated list | |
perPage | query | number | Per page parameter for paginated list | |
status | query | string (running-ok|running-warning|terminated|provisioning-pending|pending-reboot|pending-terminating|provisioning-failed) | Filter instances by their state | |
projectId | query | string (uuid) | Filter instances by project they are assigned to |
Responses
| Status | Meaning |
|---|---|
200 | OK |
400 | 400 -- Error when something is wrong with the request sent |
401 | 401 -- Authorization error |
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.workspaceId | string (uuid) | ||
data.workspace | object | ||
data.workspace.id | string (uuid) | yes | |
data.workspace.name | string | yes | |
data.workspace.handle | string | Unique identifier of a workspace, usually will be uuid | |
data.workspace.balanceAlertThreshold | string (uuid) | yes | |
data.workspace.createdBy | string (uuid) | yes | |
data.workspace.createdAt | string (date-time) | yes | |
data.workspace.updatedAt | string (date-time) | yes | |
data.workspace.deletedAt | string (date-time) | ||
data.workspace.deactivatedMessage | string (Message given during the deletion of the workspace) | ||
data.workspace.resellersId | string | Unique identifier of a reseller. | |
data.projectId | string (uuid) | ||
data.project | object | ||
data.project.id | string (uuid) | ||
data.project.workspaceId | string (uuid) | ||
data.project.name | string | ||
data.project.description | string | ||
data.project.color | string (hexadecimal_rgb) | ||
data.project.createdBy | string (uuid) | ||
data.project.createdAt | string (date-time) | ||
data.project.updatedAt | string (date-time) | ||
data.regionHandle | string | ||
data.region | object | ||
data.region.id | string (uuid) | ||
data.region.handle | string | Unique identifier of a region | |
data.region.name | string | Region name. | |
data.region.country | string | Region country. | |
data.region.city | string | Region city. | |
data.region.longitude | string | Region longitude. | |
data.region.latitude | string | Region latitude. | |
data.region.active | boolean | Is the region active. | |
data.region.createdAt | string (date-time) | Entity created at date and time. | |
data.region.updatedAt | string (date-time) | Entity last update date and time. | |
data.name | string | ||
data.hostname | string | ||
data.variant | string (bare_metal|virtual_machine) | ||
data.pricePerHour | number nullable | ||
data.purchaseId | string (uuid) | ||
data.purchase | object | ||
data.purchase.id | string (uuid) | ||
data.purchase.userId | string (uuid) | ||
data.purchase.workspaceId | string (uuid) | ||
data.purchase.regionHandle | string | ||
data.purchase.region | object | ||
data.purchase.region.id | string (uuid) | ||
data.purchase.region.handle | string | Unique identifier of a region | |
data.purchase.region.name | string | Region name. | |
data.purchase.region.country | string | Region country. | |
data.purchase.region.city | string | Region city. | |
data.purchase.region.longitude | string | Region longitude. | |
data.purchase.region.latitude | string | Region latitude. | |
data.purchase.region.active | boolean | Is the region active. | |
data.purchase.region.createdAt | string (date-time) | Entity created at date and time. | |
data.purchase.region.updatedAt | string (date-time) | Entity last update date and time. | |
data.purchase.variant | string | Variant of the purchase item | |
data.purchase.pricePerHour | number nullable | Purchase item price per hour | |
data.purchase.quantity | number | Number of this same item to create | |
data.purchase.createdAt | string (date-time) | Entity created at date and time. | |
data.purchase.updatedAt | string (date-time) | Entity last update date and time. | |
data.purchase.data | object | Properties of this object can only be bareMetal or virtualMachine, this should be used to figure out what variant the item is | |
data.purchase.data.bareMetal | object | ||
data.purchase.data.virtualMachine | object | ||
data.foremanHostId | string (uuid) | ||
data.foremanHostgroupId | string (uuid) | ||
data.createdAt | string (date-time) | ||
data.updatedAt | string (date-time) | ||
data.startedAt | string (date-time) | ||
data.terminatedAt | string (date-time) | ||
data.lastLog | object | ||
data.lastLog.id | string (uuid) | ||
data.lastLog.workspaceInstanceId | string (uuid) | ||
data.lastLog.createdBy | object | ||
data.lastLog.createdBy.id | string (uuid|system|none) | ||
data.lastLog.createdBy.email | string (email) | ||
data.lastLog.createdBy.firstName | string | ||
data.lastLog.createdBy.lastName | string | ||
data.lastLog.action | string | ||
data.lastLog.failedAt | string (date-time) | ||
data.lastLog.completedAt | string (date-time) | ||
data.lastLog.createdAt | string (date-time) | ||
data.lastLog.updatedAt | string (date-time) | ||
data.foremanHost | object | ||
data.foremanHost.id | string (uuid) | Unique identifier for the foreman host. | |
data.foremanHost.foremanId | number | Foreman id. | |
data.foremanHost.regionHandle | string | Foreman host region handle. | |
data.foremanHost.workspaceHandle | string | Foreman host workspace handle. | |
data.foremanHost.name | string | Foreman host name. | |
data.foremanHost.modelName | string | Foreman host model name. | |
data.foremanHost.mac | string | Foreman host mac address. | |
data.foremanHost.hostgroupId | number | Foreman host group id. | |
data.foremanHost.hostgroupName | string | Foreman host group name. | |
data.foremanHost.uuid | string (uuid) | Unique identifier for the foreman host. | |
data.foremanHost.build | boolean | Build flag. | |
data.foremanHost.globalStatus | string | Global status. | |
data.foremanHost.buildStatus | string | Build status. | |
data.foremanHost.ip | string | Ip address. | |
data.foremanHost.ip6 | string | Ip6 address. | |
data.foremanHost.powerOn | boolean | Power on flag. | |
data.foremanHost.specs | array of object | ||
data.foremanHost.specs.name | string | yes | Name of the hardware item |
data.foremanHost.specs.htype | string | yes | hardware type (cpu, gpu, memory, etc..) |
data.foremanHost.specs.serial | string | Possible serial number of the item (if exists, or we got it) | |
data.foremanHost.specs.metadata | array of object | yes | |
data.foremanHost.createdAt | string (date-time) | Entity created at date and time. | |
data.foremanHost.updatedAt | string (date-time) | Entity last update date and time. | |
data.foremanHost.deletedAt | string (date-time) | Date and time of entity deletion. | |
data.status | string (running-ok | running-warning | terminated | provisioning-pending | pending-reboot | pending-terminating) | ||
data.cpu | string | ||
data.gpu | string | ||
data.ram | string | ||
data.storage | string | ||
sortable | array of string | ||
statuses | array of string |
GET /api/v1/workspaces/{workspace_id}/instances/projects/{project_id}
Single workspace instance.
Token permission: view-instances
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspace_id | path | string | yes | ID of the workspace |
project_id | path | string | yes | ID of the project |
sortBy | query | string | Sort by parameter for paginated list | |
sort | query | string | Sort parameter for paginated list (ASC, DESC) | |
page | query | number | Page parameter for paginated list | |
perPage | query | number | Per page parameter for paginated list | |
variant | query | string (bare_metal|virtual_machine) | Filter instances by their variant, accepts comma separated values | |
status | query | string (running-ok|running-warning|terminated|provisioning-pending|pending-reboot|pending-terminating|provisioning-failed) | Filter instances by their state |
Responses
| Status | Meaning |
|---|---|
200 | OK |
400 | 400 -- Error when something is wrong with the request sent |
401 | 401 -- Authorization error |
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.workspaceId | string (uuid) | ||
data.workspace | object | ||
data.workspace.id | string (uuid) | yes | |
data.workspace.name | string | yes | |
data.workspace.handle | string | Unique identifier of a workspace, usually will be uuid | |
data.workspace.balanceAlertThreshold | string (uuid) | yes | |
data.workspace.createdBy | string (uuid) | yes | |
data.workspace.createdAt | string (date-time) | yes | |
data.workspace.updatedAt | string (date-time) | yes | |
data.workspace.deletedAt | string (date-time) | ||
data.workspace.deactivatedMessage | string (Message given during the deletion of the workspace) | ||
data.workspace.resellersId | string | Unique identifier of a reseller. | |
data.projectId | string (uuid) | ||
data.project | object | ||
data.project.id | string (uuid) | ||
data.project.workspaceId | string (uuid) | ||
data.project.name | string | ||
data.project.description | string | ||
data.project.color | string (hexadecimal_rgb) | ||
data.project.createdBy | string (uuid) | ||
data.project.createdAt | string (date-time) | ||
data.project.updatedAt | string (date-time) | ||
data.regionHandle | string | ||
data.region | object | ||
data.region.id | string (uuid) | ||
data.region.handle | string | Unique identifier of a region | |
data.region.name | string | Region name. | |
data.region.country | string | Region country. | |
data.region.city | string | Region city. | |
data.region.longitude | string | Region longitude. | |
data.region.latitude | string | Region latitude. | |
data.region.active | boolean | Is the region active. | |
data.region.createdAt | string (date-time) | Entity created at date and time. | |
data.region.updatedAt | string (date-time) | Entity last update date and time. | |
data.name | string | ||
data.hostname | string | ||
data.variant | string (bare_metal|virtual_machine) | ||
data.pricePerHour | number nullable | ||
data.purchaseId | string (uuid) | ||
data.purchase | object | ||
data.purchase.id | string (uuid) | ||
data.purchase.userId | string (uuid) | ||
data.purchase.workspaceId | string (uuid) | ||
data.purchase.regionHandle | string | ||
data.purchase.region | object | ||
data.purchase.region.id | string (uuid) | ||
data.purchase.region.handle | string | Unique identifier of a region | |
data.purchase.region.name | string | Region name. | |
data.purchase.region.country | string | Region country. | |
data.purchase.region.city | string | Region city. | |
data.purchase.region.longitude | string | Region longitude. | |
data.purchase.region.latitude | string | Region latitude. | |
data.purchase.region.active | boolean | Is the region active. | |
data.purchase.region.createdAt | string (date-time) | Entity created at date and time. | |
data.purchase.region.updatedAt | string (date-time) | Entity last update date and time. | |
data.purchase.variant | string | Variant of the purchase item | |
data.purchase.pricePerHour | number nullable | Purchase item price per hour | |
data.purchase.quantity | number | Number of this same item to create | |
data.purchase.createdAt | string (date-time) | Entity created at date and time. | |
data.purchase.updatedAt | string (date-time) | Entity last update date and time. | |
data.purchase.data | object | Properties of this object can only be bareMetal or virtualMachine, this should be used to figure out what variant the item is | |
data.purchase.data.bareMetal | object | ||
data.purchase.data.virtualMachine | object | ||
data.foremanHostId | string (uuid) | ||
data.foremanHostgroupId | string (uuid) | ||
data.createdAt | string (date-time) | ||
data.updatedAt | string (date-time) | ||
data.startedAt | string (date-time) | ||
data.terminatedAt | string (date-time) | ||
data.lastLog | object | ||
data.lastLog.id | string (uuid) | ||
data.lastLog.workspaceInstanceId | string (uuid) | ||
data.lastLog.createdBy | object | ||
data.lastLog.createdBy.id | string (uuid|system|none) | ||
data.lastLog.createdBy.email | string (email) | ||
data.lastLog.createdBy.firstName | string | ||
data.lastLog.createdBy.lastName | string | ||
data.lastLog.action | string | ||
data.lastLog.failedAt | string (date-time) | ||
data.lastLog.completedAt | string (date-time) | ||
data.lastLog.createdAt | string (date-time) | ||
data.lastLog.updatedAt | string (date-time) | ||
data.foremanHost | object | ||
data.foremanHost.id | string (uuid) | Unique identifier for the foreman host. | |
data.foremanHost.foremanId | number | Foreman id. | |
data.foremanHost.regionHandle | string | Foreman host region handle. | |
data.foremanHost.workspaceHandle | string | Foreman host workspace handle. | |
data.foremanHost.name | string | Foreman host name. | |
data.foremanHost.modelName | string | Foreman host model name. | |
data.foremanHost.mac | string | Foreman host mac address. | |
data.foremanHost.hostgroupId | number | Foreman host group id. | |
data.foremanHost.hostgroupName | string | Foreman host group name. | |
data.foremanHost.uuid | string (uuid) | Unique identifier for the foreman host. | |
data.foremanHost.build | boolean | Build flag. | |
data.foremanHost.globalStatus | string | Global status. | |
data.foremanHost.buildStatus | string | Build status. | |
data.foremanHost.ip | string | Ip address. | |
data.foremanHost.ip6 | string | Ip6 address. | |
data.foremanHost.powerOn | boolean | Power on flag. | |
data.foremanHost.specs | array of object | ||
data.foremanHost.specs.name | string | yes | Name of the hardware item |
data.foremanHost.specs.htype | string | yes | hardware type (cpu, gpu, memory, etc..) |
data.foremanHost.specs.serial | string | Possible serial number of the item (if exists, or we got it) | |
data.foremanHost.specs.metadata | array of object | yes | |
data.foremanHost.createdAt | string (date-time) | Entity created at date and time. | |
data.foremanHost.updatedAt | string (date-time) | Entity last update date and time. | |
data.foremanHost.deletedAt | string (date-time) | Date and time of entity deletion. | |
data.status | string (running-ok | running-warning | terminated | provisioning-pending | pending-reboot | pending-terminating) | ||
data.cpu | string | ||
data.gpu | string | ||
data.ram | string | ||
data.storage | string | ||
sortable | array of string | ||
statuses | array of string |
GET /api/v1/workspaces/{workspace_id}/instances/virtual
Virtual workspace instances list.
Token permission: view-instances
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspace_id | path | string | yes | ID of the workspace |
sortBy | query | string | Sort by parameter for paginated list | |
sort | query | string | Sort parameter for paginated list (ASC, DESC) | |
page | query | number | Page parameter for paginated list | |
perPage | query | number | Per page parameter for paginated list | |
status | query | string (running-ok|running-warning|terminated|provisioning-pending|pending-reboot|pending-terminating|provisioning-failed) | Filter instances by their state | |
projectId | query | string (uuid) | Filter instances by project they are assigned to |
Responses
| Status | Meaning |
|---|---|
200 | OK |
400 | 400 -- Error when something is wrong with the request sent |
401 | 401 -- Authorization error |
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.workspaceId | string (uuid) | ||
data.workspace | object | ||
data.workspace.id | string (uuid) | yes | |
data.workspace.name | string | yes | |
data.workspace.handle | string | Unique identifier of a workspace, usually will be uuid | |
data.workspace.balanceAlertThreshold | string (uuid) | yes | |
data.workspace.createdBy | string (uuid) | yes | |
data.workspace.createdAt | string (date-time) | yes | |
data.workspace.updatedAt | string (date-time) | yes | |
data.workspace.deletedAt | string (date-time) | ||
data.workspace.deactivatedMessage | string (Message given during the deletion of the workspace) | ||
data.workspace.resellersId | string | Unique identifier of a reseller. | |
data.projectId | string (uuid) | ||
data.project | object | ||
data.project.id | string (uuid) | ||
data.project.workspaceId | string (uuid) | ||
data.project.name | string | ||
data.project.description | string | ||
data.project.color | string (hexadecimal_rgb) | ||
data.project.createdBy | string (uuid) | ||
data.project.createdAt | string (date-time) | ||
data.project.updatedAt | string (date-time) | ||
data.regionHandle | string | ||
data.region | object | ||
data.region.id | string (uuid) | ||
data.region.handle | string | Unique identifier of a region | |
data.region.name | string | Region name. | |
data.region.country | string | Region country. | |
data.region.city | string | Region city. | |
data.region.longitude | string | Region longitude. | |
data.region.latitude | string | Region latitude. | |
data.region.active | boolean | Is the region active. | |
data.region.createdAt | string (date-time) | Entity created at date and time. | |
data.region.updatedAt | string (date-time) | Entity last update date and time. | |
data.name | string | ||
data.hostname | string | ||
data.variant | string (bare_metal|virtual_machine) | ||
data.pricePerHour | number nullable | ||
data.purchaseId | string (uuid) | ||
data.purchase | object | ||
data.purchase.id | string (uuid) | ||
data.purchase.userId | string (uuid) | ||
data.purchase.workspaceId | string (uuid) | ||
data.purchase.regionHandle | string | ||
data.purchase.region | object | ||
data.purchase.region.id | string (uuid) | ||
data.purchase.region.handle | string | Unique identifier of a region | |
data.purchase.region.name | string | Region name. | |
data.purchase.region.country | string | Region country. | |
data.purchase.region.city | string | Region city. | |
data.purchase.region.longitude | string | Region longitude. | |
data.purchase.region.latitude | string | Region latitude. | |
data.purchase.region.active | boolean | Is the region active. | |
data.purchase.region.createdAt | string (date-time) | Entity created at date and time. | |
data.purchase.region.updatedAt | string (date-time) | Entity last update date and time. | |
data.purchase.variant | string | Variant of the purchase item | |
data.purchase.pricePerHour | number nullable | Purchase item price per hour | |
data.purchase.quantity | number | Number of this same item to create | |
data.purchase.createdAt | string (date-time) | Entity created at date and time. | |
data.purchase.updatedAt | string (date-time) | Entity last update date and time. | |
data.purchase.data | object | Properties of this object can only be bareMetal or virtualMachine, this should be used to figure out what variant the item is | |
data.purchase.data.bareMetal | object | ||
data.purchase.data.virtualMachine | object | ||
data.foremanHostId | string (uuid) | ||
data.foremanHostgroupId | string (uuid) | ||
data.createdAt | string (date-time) | ||
data.updatedAt | string (date-time) | ||
data.startedAt | string (date-time) | ||
data.terminatedAt | string (date-time) | ||
data.lastLog | object | ||
data.lastLog.id | string (uuid) | ||
data.lastLog.workspaceInstanceId | string (uuid) | ||
data.lastLog.createdBy | object | ||
data.lastLog.createdBy.id | string (uuid|system|none) | ||
data.lastLog.createdBy.email | string (email) | ||
data.lastLog.createdBy.firstName | string | ||
data.lastLog.createdBy.lastName | string | ||
data.lastLog.action | string | ||
data.lastLog.failedAt | string (date-time) | ||
data.lastLog.completedAt | string (date-time) | ||
data.lastLog.createdAt | string (date-time) | ||
data.lastLog.updatedAt | string (date-time) | ||
data.foremanHost | object | ||
data.foremanHost.id | string (uuid) | Unique identifier for the foreman host. | |
data.foremanHost.foremanId | number | Foreman id. | |
data.foremanHost.regionHandle | string | Foreman host region handle. | |
data.foremanHost.workspaceHandle | string | Foreman host workspace handle. | |
data.foremanHost.name | string | Foreman host name. | |
data.foremanHost.modelName | string | Foreman host model name. | |
data.foremanHost.mac | string | Foreman host mac address. | |
data.foremanHost.hostgroupId | number | Foreman host group id. | |
data.foremanHost.hostgroupName | string | Foreman host group name. | |
data.foremanHost.uuid | string (uuid) | Unique identifier for the foreman host. | |
data.foremanHost.build | boolean | Build flag. | |
data.foremanHost.globalStatus | string | Global status. | |
data.foremanHost.buildStatus | string | Build status. | |
data.foremanHost.ip | string | Ip address. | |
data.foremanHost.ip6 | string | Ip6 address. | |
data.foremanHost.powerOn | boolean | Power on flag. | |
data.foremanHost.specs | array of object | ||
data.foremanHost.specs.name | string | yes | Name of the hardware item |
data.foremanHost.specs.htype | string | yes | hardware type (cpu, gpu, memory, etc..) |
data.foremanHost.specs.serial | string | Possible serial number of the item (if exists, or we got it) | |
data.foremanHost.specs.metadata | array of object | yes | |
data.foremanHost.createdAt | string (date-time) | Entity created at date and time. | |
data.foremanHost.updatedAt | string (date-time) | Entity last update date and time. | |
data.foremanHost.deletedAt | string (date-time) | Date and time of entity deletion. | |
data.status | string (running-ok | running-warning | terminated | provisioning-pending | pending-reboot | pending-terminating) | ||
data.cpu | string | ||
data.gpu | string | ||
data.ram | string | ||
data.storage | string | ||
sortable | array of string | ||
statuses | array of string |
GET /api/v1/workspaces/{workspace_id}/instances/active
Active workspace instances list.
Token permission: view-instances
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspace_id | path | string | yes | ID of the workspace |
sortBy | query | string | Sort by parameter for paginated list | |
sort | query | string | Sort parameter for paginated list (ASC, DESC) | |
page | query | number | Page parameter for paginated list | |
perPage | query | number | Per page parameter for paginated list | |
variant | query | string (bare_metal|virtual_machine) | Filter instances by their variant, accepts comma separated values | |
projectId | query | string (uuid) | Filter instances by project they are assigned to |
Responses
| Status | Meaning |
|---|---|
200 | OK |
400 | 400 -- Error when something is wrong with the request sent |
401 | 401 -- Authorization error |
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.workspaceId | string (uuid) | ||
data.workspace | object | ||
data.workspace.id | string (uuid) | yes | |
data.workspace.name | string | yes | |
data.workspace.handle | string | Unique identifier of a workspace, usually will be uuid | |
data.workspace.balanceAlertThreshold | string (uuid) | yes | |
data.workspace.createdBy | string (uuid) | yes | |
data.workspace.createdAt | string (date-time) | yes | |
data.workspace.updatedAt | string (date-time) | yes | |
data.workspace.deletedAt | string (date-time) | ||
data.workspace.deactivatedMessage | string (Message given during the deletion of the workspace) | ||
data.workspace.resellersId | string | Unique identifier of a reseller. | |
data.projectId | string (uuid) | ||
data.project | object | ||
data.project.id | string (uuid) | ||
data.project.workspaceId | string (uuid) | ||
data.project.name | string | ||
data.project.description | string | ||
data.project.color | string (hexadecimal_rgb) | ||
data.project.createdBy | string (uuid) | ||
data.project.createdAt | string (date-time) | ||
data.project.updatedAt | string (date-time) | ||
data.regionHandle | string | ||
data.region | object | ||
data.region.id | string (uuid) | ||
data.region.handle | string | Unique identifier of a region | |
data.region.name | string | Region name. | |
data.region.country | string | Region country. | |
data.region.city | string | Region city. | |
data.region.longitude | string | Region longitude. | |
data.region.latitude | string | Region latitude. | |
data.region.active | boolean | Is the region active. | |
data.region.createdAt | string (date-time) | Entity created at date and time. | |
data.region.updatedAt | string (date-time) | Entity last update date and time. | |
data.name | string | ||
data.hostname | string | ||
data.variant | string (bare_metal|virtual_machine) | ||
data.pricePerHour | number nullable | ||
data.purchaseId | string (uuid) | ||
data.purchase | object | ||
data.purchase.id | string (uuid) | ||
data.purchase.userId | string (uuid) | ||
data.purchase.workspaceId | string (uuid) | ||
data.purchase.regionHandle | string | ||
data.purchase.region | object | ||
data.purchase.region.id | string (uuid) | ||
data.purchase.region.handle | string | Unique identifier of a region | |
data.purchase.region.name | string | Region name. | |
data.purchase.region.country | string | Region country. | |
data.purchase.region.city | string | Region city. | |
data.purchase.region.longitude | string | Region longitude. | |
data.purchase.region.latitude | string | Region latitude. | |
data.purchase.region.active | boolean | Is the region active. | |
data.purchase.region.createdAt | string (date-time) | Entity created at date and time. | |
data.purchase.region.updatedAt | string (date-time) | Entity last update date and time. | |
data.purchase.variant | string | Variant of the purchase item | |
data.purchase.pricePerHour | number nullable | Purchase item price per hour | |
data.purchase.quantity | number | Number of this same item to create | |
data.purchase.createdAt | string (date-time) | Entity created at date and time. | |
data.purchase.updatedAt | string (date-time) | Entity last update date and time. | |
data.purchase.data | object | Properties of this object can only be bareMetal or virtualMachine, this should be used to figure out what variant the item is | |
data.purchase.data.bareMetal | object | ||
data.purchase.data.virtualMachine | object | ||
data.foremanHostId | string (uuid) | ||
data.foremanHostgroupId | string (uuid) | ||
data.createdAt | string (date-time) | ||
data.updatedAt | string (date-time) | ||
data.startedAt | string (date-time) | ||
data.terminatedAt | string (date-time) | ||
data.lastLog | object | ||
data.lastLog.id | string (uuid) | ||
data.lastLog.workspaceInstanceId | string (uuid) | ||
data.lastLog.createdBy | object | ||
data.lastLog.createdBy.id | string (uuid|system|none) | ||
data.lastLog.createdBy.email | string (email) | ||
data.lastLog.createdBy.firstName | string | ||
data.lastLog.createdBy.lastName | string | ||
data.lastLog.action | string | ||
data.lastLog.failedAt | string (date-time) | ||
data.lastLog.completedAt | string (date-time) | ||
data.lastLog.createdAt | string (date-time) | ||
data.lastLog.updatedAt | string (date-time) | ||
data.foremanHost | object | ||
data.foremanHost.id | string (uuid) | Unique identifier for the foreman host. | |
data.foremanHost.foremanId | number | Foreman id. | |
data.foremanHost.regionHandle | string | Foreman host region handle. | |
data.foremanHost.workspaceHandle | string | Foreman host workspace handle. | |
data.foremanHost.name | string | Foreman host name. | |
data.foremanHost.modelName | string | Foreman host model name. | |
data.foremanHost.mac | string | Foreman host mac address. | |
data.foremanHost.hostgroupId | number | Foreman host group id. | |
data.foremanHost.hostgroupName | string | Foreman host group name. | |
data.foremanHost.uuid | string (uuid) | Unique identifier for the foreman host. | |
data.foremanHost.build | boolean | Build flag. | |
data.foremanHost.globalStatus | string | Global status. | |
data.foremanHost.buildStatus | string | Build status. | |
data.foremanHost.ip | string | Ip address. | |
data.foremanHost.ip6 | string | Ip6 address. | |
data.foremanHost.powerOn | boolean | Power on flag. | |
data.foremanHost.specs | array of object | ||
data.foremanHost.specs.name | string | yes | Name of the hardware item |
data.foremanHost.specs.htype | string | yes | hardware type (cpu, gpu, memory, etc..) |
data.foremanHost.specs.serial | string | Possible serial number of the item (if exists, or we got it) | |
data.foremanHost.specs.metadata | array of object | yes | |
data.foremanHost.createdAt | string (date-time) | Entity created at date and time. | |
data.foremanHost.updatedAt | string (date-time) | Entity last update date and time. | |
data.foremanHost.deletedAt | string (date-time) | Date and time of entity deletion. | |
data.status | string (running-ok | running-warning | terminated | provisioning-pending | pending-reboot | pending-terminating) | ||
data.cpu | string | ||
data.gpu | string | ||
data.ram | string | ||
data.storage | string | ||
sortable | array of string | ||
statuses | array of string |