Get virtual machine
GET/virtual_machines/virtual_machine
Return information about a virtual machine
Scopes
virtual_machines
virtual_machines:read
OAuth2 Scopes
When using OAuth2 authentication, scopes are prefixed with api.katapult.io/core/v1/
.
Request
Query Parameters
All 'virtual_machine[]' params are mutually exclusive, only one can be provided.
All 'virtual_machine[]' params are mutually exclusive, only one can be provided.
Responses
- 200
- 400
- 403
- 404
- 406
- 429
- 503
Return information about a virtual machine
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
Array [
]
Array [
]
virtual_machine
object
required
Possible values: [stopped
, failed
, started
, starting
, allocated
, allocating
, resetting
, migrating
, stopping
, shutting_down
, transferring
, orphaned
]
zone
object
data_center
object
country
object
organization
object
currency
object
country
object
nullable
country_state
object
nullable
country
object
group
object
nullable
package
object
nullable
Possible values: [public
, private
]
icon
object
nullable
group
object
attached_iso
object
nullable
operating_system
object
nullable
badge
object
nullable
gpu_type
object
nullable
gpus
object[]
Unique ID for this GPU. Not available when status is "detached".
Possible values: [attached
, attaching
, detached
, detaching
, unknown
]
Possible values: [attach
, detach
]
When pending action is "attach", this indicates if there is a GPU of the relevant type available.
type
object
tags
object[]
Possible values: [red
, pink
, purple
, dark_blue
, green
, teal
, aqua
, light_blue
, yellow
, orange
, orange_red
, brown
, black
, dark_gray
, light_gray
, light_brown
, pastel_red
, pastel_pink
, pastel_purple
, pastel_dark_blue
, pastel_green
, pastel_teal
, pastel_aqua
, pastel_light_blue
, pastel_yellow
, pastel_orange
, pastel_orange_red
, pastel_brown
, pastel_black
, pastel_dark_gray
, pastel_light_gray
, pastel_light_brown
]
ip_addresses
object[]
network
object
data_center
object
country
object
hypervisor
object
nullable
annotations
object[]
required
{
"virtual_machine": {
"id": "string",
"name": "string",
"hostname": "string",
"fqdn": "string",
"description": "string",
"created_at": 0,
"initial_root_password": "string",
"state": "stopped",
"zone": {
"id": "string",
"name": "string",
"permalink": "string",
"data_center": {
"id": "string",
"name": "string",
"permalink": "string",
"country": {
"id": "string",
"name": "string",
"iso_code2": "string",
"iso_code3": "string",
"time_zone": "string",
"eu": true
}
}
},
"organization": {
"id": "string",
"name": "string",
"sub_domain": "string",
"infrastructure_domain": "string",
"created_at": 0,
"activated_at": 0,
"suspended": true,
"managed": true,
"billing_name": "string",
"address1": "string",
"address2": "string",
"address3": "string",
"address4": "string",
"postcode": "string",
"vat_number": "string",
"phone_number": "string",
"currency": {
"id": "string",
"name": "string",
"iso_code": "string",
"symbol": "string"
},
"country": {
"id": "string",
"name": "string",
"iso_code2": "string",
"iso_code3": "string",
"time_zone": "string",
"eu": true
},
"country_state": {
"id": "string",
"name": "string",
"code": "string",
"country": {
"id": "string",
"name": "string",
"iso_code2": "string",
"iso_code3": "string",
"time_zone": "string",
"eu": true
}
}
},
"group": {
"id": "string",
"name": "string",
"segregate": true,
"auto_segregate": true,
"created_at": 0
},
"package": {
"id": "string",
"name": "string",
"permalink": "string",
"cpu_cores": 0,
"ipv4_addresses": 0,
"memory_in_gb": 0,
"storage_in_gb": 0,
"monthly_bandwidth_allowance_in_gb": 0,
"privacy": "public",
"icon": {
"url": "string",
"file_name": "string",
"file_type": "string",
"file_size": 0,
"digest": "string",
"token": "string"
},
"use_dedicated_cpus": true,
"group": {
"id": "string",
"name": "string"
}
},
"attached_iso": {
"id": "string",
"name": "string",
"operating_system": {
"id": "string",
"name": "string",
"badge": {
"url": "string",
"file_name": "string",
"file_type": "string",
"file_size": 0,
"digest": "string",
"token": "string"
}
}
},
"memory_in_gb": 0,
"cpu_cores": 0,
"use_dedicated_cpus": true,
"gpu_type": {
"id": "string",
"name": "string",
"manufacturer": "string",
"memory_in_gb": 0,
"memory_type": "string",
"permalink": "string"
},
"gpus": [
{
"id": "string",
"status": "attached",
"pending_action": "attach",
"available": true,
"type": {
"id": "string",
"name": "string",
"manufacturer": "string",
"memory_in_gb": 0,
"memory_type": "string",
"permalink": "string",
"data_centers": [
{
"id": "string",
"name": "string",
"permalink": "string",
"country": {
"id": "string",
"name": "string",
"iso_code2": "string",
"iso_code3": "string",
"time_zone": "string",
"eu": true
}
}
]
}
}
],
"tags": [
{
"id": "string",
"name": "string",
"color": "red",
"created_at": 0
}
],
"tag_names": [
"string"
],
"ip_addresses": [
{
"id": "string",
"address": "string",
"reverse_dns": "string",
"vip": true,
"label": "string",
"address_with_mask": "string",
"network": {
"id": "string",
"name": "string",
"permalink": "string",
"data_center": {
"id": "string",
"name": "string",
"permalink": "string",
"country": {
"id": "string",
"name": "string",
"iso_code2": "string",
"iso_code3": "string",
"time_zone": "string",
"eu": true
}
}
},
"allocation_id": "string",
"allocation_type": "string"
}
],
"hypervisor": {
"id": "string",
"name": "string",
"ip_address": "string"
}
},
"annotations": [
{
"key": "string",
"value": "string"
}
]
}
No API token was provided in the Authorization header. Ensure a token is provided prefixed with Bearer
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [missing_api_token
]
{
"code": "missing_api_token",
"description": "string",
"detail": {}
}
403 error response
- application/json
- Schema
- Example (from schema)
Schema
- UnauthorizedNetworkForAPITokenSchema
- InvalidAPITokenSchema
- InvalidCapabilitiesTokenSchema
- ScopeNotGrantedErrorSchema
oneOf
Network is not allowed to access the API with this API token
Possible values: [unauthorized_network_for_api_token
]
detail
object
The IP address the request was received from
The API token provided was not valid (it may not exist or have expired)
Possible values: [invalid_api_token
]
detail
object
The capabilities token provided was not valid (either not valid, expired or not signed by the correct key)
Possible values: [invalid_capabilities_token
]
The scope required for this endpoint has not been granted to the authenticating identity
Possible values: [scope_not_granted
]
detail
ScopeNotGrantedError
{}
No virtual machine was found matching any of the criteria provided in the arguments
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [virtual_machine_not_found
]
{
"code": "virtual_machine_not_found",
"description": "string",
"detail": {}
}
The object found is in the trash and therefore cannot be manipulated through the API. It should be restored in order to run this operation.
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [object_in_trash
]
detail
object
trash_object
object
nullable
{
"code": "object_in_trash",
"description": "string",
"detail": {
"trash_object": {
"id": "string",
"keep_until": 0,
"object_id": "string",
"object_type": "string"
}
}
}
You have reached the rate limit for this type of request
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [rate_limit_reached
]
detail
object
The total number of requests per minute that are permitted
{
"code": "rate_limit_reached",
"description": "string",
"detail": {
"total_permitted": 0
}
}
The service is currently unavailable, please try again later
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [service_unavailable
]
{
"code": "service_unavailable",
"description": "string",
"detail": {}
}