https://api.katapult.io/core/v1/virtual_machines/virtual_machine/console_sessions
| Code | Error | When it happens |
|---|---|---|
|
|
missing_api_token
|
No API token was provided in the Authorization header. Ensure a token is provided prefixed with Bearer |
|
|
unauthorized_network_for_api_token
|
Network is not allowed to access the API with this API token |
|
|
invalid_api_token
|
The API token provided was not valid (it may not exist or have expired) |
|
|
token_owner_suspended
|
The user that owns the API token has been suspended |
|
|
invalid_capabilities_token
|
The capabilities token provided was not valid (either not valid, expired or not signed by the correct key) |
|
|
scope_not_granted
|
The scope required for this endpoint has not been granted to the authenticating identity |
|
|
virtual_machine_suspended
|
A virtual machine was found from the arguments provided but it is suspended |
|
|
permission_denied
|
The authenticated identity is not permitted to perform this action |
|
|
user_suspended
|
The user with the given user UUID is suspended |
|
|
virtual_machine_not_found
|
No virtual machine was found matching any of the criteria provided in the arguments |
|
|
user_not_found
|
No user exists in Identity with the given user UUID |
|
|
object_in_trash
|
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. |
|
|
virtual_machine_must_be_started
|
Virtual machines must be in a started state to create console sessions |
|
|
validation_error
|
A validation error occurred with the object that was being created/updated/deleted |
|
|
rate_limit_reached
|
You have reached the rate limit for this type of request |
|
|
service_unavailable
|
The service is currently unavailable, please try again later |
|
|
identity_unavailable
|
Identity could not be reached to look up the user with the given user UUID |
virtual_machine
object
required
body
All 'virtual_machine[]' params are mutually exclusive, only one can be provided.
id
string
fqdn
string
user_uuid
string
body
The lowercase UUID of the Identity user the console session is for, when that is not the user creating it. The session is refused if Identity has no such user or the user is suspended, and any console opened from it closes if the user is later suspended or deleted.
console_session
object
id
string
url
string
expires_at
integer
The console session cannot be opened after this time, and any console opened from it is closed at this time.
virtual_machine
object
id
string
name
string
hostname
string
fqdn
string
state
string
{
"console_session": {
"id": "string",
"url": "string",
"expires_at": 0,
"virtual_machine": {
"id": "string",
"name": "string",
"hostname": "string",
"fqdn": "string",
"state": "stopped"
}
}
}
Sent to https://api.katapult.io/core/v1 as a bearer token and never to Krystal Documentation. It isn't stored anywhere, so paste it again on each endpoint page.
Pre-filled with the endpoint's shape — declared defaults where it has them, otherwise a placeholder per type. Edit it before executing; the Arguments tab documents every field.