Nexhypro Virtual Core API (1.0.0)

Download OpenAPI specification:

License: Proprietary

Multi-cluster Proxmox VE management API. Conventions (ADR 0004): errors are RFC 7807 application/problem+json with a stable code; lists use opaque cursor pagination (limit, cursor, next_cursor), sort=field / sort=-field, equality filters as query parameters and q for a name substring.

Authentication (ADR 0006): Authorization: Bearer <token> with a session access token (nva_…) or an API key (nvk_…). Platform admins act in another tenant with X-Nexhypro-Tenant: <tenant id>. Authorization is fine-grained RBAC (ADR 0007); every write is audited (ADR 0008).

health

Liveness probe

Responses

Response samples

Content type
application/json
{
  • "status": "ok",
  • "checks": {
    }
}

Readiness probe (PostgreSQL, Redis, NATS)

Responses

Response samples

Content type
application/json
{
  • "status": "ok",
  • "checks": {
    }
}

auth

Login options of a tenant (pre-filled tenant on single-tenant installations)

query Parameters
tenant
string <= 63 characters

Responses

Response samples

Content type
application/json
{
  • "tenant": "string",
  • "local_login": true,
  • "providers": [
    ]
}

Password login (local or LDAP); may require a second factor

Request Body schema: application/json
required
tenant
required
string <= 63 characters
username
required
string <= 320 characters
password
required
string <= 256 characters
provider_id
string <uuid>

LDAP provider; omit for a local user.

Responses

Request samples

Content type
application/json
{
  • "tenant": "string",
  • "username": "string",
  • "password": "string",
  • "provider_id": "fe3d49af-4061-436b-ae60-f7044f252a44"
}

Response samples

Content type
application/json
{
  • "status": "authenticated",
  • "mfa_token": "string",
  • "methods": [
    ],
  • "access_token": "string",
  • "expires_at": "2019-08-24T14:15:22Z",
  • "recovery_codes": [
    ]
}

Complete a login with TOTP, a recovery code or WebAuthn

Request Body schema: application/json
required
mfa_token
required
string <= 128 characters
method
required
string (MFAMethod)
Enum: "totp" "recovery" "webauthn"
code
string <= 32 characters
object

PublicKeyCredential JSON (WebAuthn).

Responses

Request samples

Content type
application/json
{
  • "mfa_token": "string",
  • "method": "totp",
  • "code": "string",
  • "credential": { }
}

Response samples

Content type
application/json
{
  • "status": "authenticated",
  • "mfa_token": "string",
  • "methods": [
    ],
  • "access_token": "string",
  • "expires_at": "2019-08-24T14:15:22Z",
  • "recovery_codes": [
    ]
}

WebAuthn assertion options for the pending login

Request Body schema: application/json
required
mfa_token
required
string <= 128 characters

Responses

Request samples

Content type
application/json
{
  • "mfa_token": "string"
}

Response samples

Content type
application/json
{ }

Start TOTP enrolment required by the tenant policy

Request Body schema: application/json
required
mfa_token
required
string <= 128 characters

Responses

Request samples

Content type
application/json
{
  • "mfa_token": "string"
}

Response samples

Content type
application/json
{
  • "secret": "string",
  • "otpauth_url": "string",
  • "qr_code": "string"
}

Confirm the enrolled TOTP and finish the login

Request Body schema: application/json
required
mfa_token
string <= 128 characters

Required during login enrolment.

code
required
string <= 16 characters

Responses

Request samples

Content type
application/json
{
  • "mfa_token": "string",
  • "code": "string"
}

Response samples

Content type
application/json
{
  • "status": "authenticated",
  • "mfa_token": "string",
  • "methods": [
    ],
  • "access_token": "string",
  • "expires_at": "2019-08-24T14:15:22Z",
  • "recovery_codes": [
    ]
}

Redirect the browser to an OIDC or SAML identity provider

path Parameters
providerId
required
string <uuid>
query Parameters
tenant
required
string <= 63 characters

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

OIDC redirect URI

path Parameters
providerId
required
string <uuid>
query Parameters
state
string <= 512 characters

Responses

SAML assertion consumer service (HTTP-POST binding)

path Parameters
providerId
required
string <uuid>

Responses

SAML service provider metadata

path Parameters
providerId
required
string <uuid>
query Parameters
tenant
required
string <= 63 characters

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

Rotate the refresh cookie and issue a new access token

Requires the HttpOnly refresh cookie and the X-Nexhypro-CSRF header.

Responses

Response samples

Content type
application/json
{
  • "access_token": "string",
  • "expires_at": "2019-08-24T14:15:22Z"
}

End the current session

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

me

getMe

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "user": {
    },
  • "tenant": {
    },
  • "home_tenant_id": "66285611-fe6e-4233-b012-069dd2625af5",
  • "platform_admin": true,
  • "permissions": [
    ],
  • "scoped_permissions": [
    ],
  • "auth": "session",
  • "session_id": "string"
}

updateMe

Authorizations:
bearerAuth
Request Body schema: application/json
required
display_name
string <= 200 characters
locale
string <= 16 characters

Responses

Request samples

Content type
application/json
{
  • "display_name": "string",
  • "locale": "string"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "email": "string",
  • "display_name": "string",
  • "status": "active",
  • "kind": "human",
  • "locale": "string",
  • "has_password": true,
  • "created_at": "2019-08-24T14:15:22Z",
  • "last_login_at": "2019-08-24T14:15:22Z"
}

changeMyPassword

Authorizations:
bearerAuth
Request Body schema: application/json
required
current_password
required
string <= 256 characters
new_password
required
string <= 256 characters

Responses

Request samples

Content type
application/json
{
  • "current_password": "string",
  • "new_password": "string"
}

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

getMyMfa

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "totp": true,
  • "webauthn": [
    ],
  • "recovery_codes_remaining": 0,
  • "required": true
}

startMyTotp

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "secret": "string",
  • "otpauth_url": "string",
  • "qr_code": "string"
}

deleteMyTotp

Needs the current password or an authenticator code when the user has one (ASVS 3.7.1).

Authorizations:
bearerAuth
Request Body schema: application/json
optional
password
string <= 256 characters
code
string <= 16 characters

A current authenticator (TOTP) code.

Responses

Request samples

Content type
application/json
{
  • "password": "string",
  • "code": "string"
}

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

confirmMyTotp

Authorizations:
bearerAuth
Request Body schema: application/json
required
mfa_token
string <= 128 characters

Required during login enrolment.

code
required
string <= 16 characters

Responses

Request samples

Content type
application/json
{
  • "mfa_token": "string",
  • "code": "string"
}

Response samples

Content type
application/json
{
  • "codes": [
    ]
}

regenerateMyRecoveryCodes

Needs the current password or an authenticator code when the user has one (ASVS 3.7.1).

Authorizations:
bearerAuth
Request Body schema: application/json
optional
password
string <= 256 characters
code
string <= 16 characters

A current authenticator (TOTP) code.

Responses

Request samples

Content type
application/json
{
  • "password": "string",
  • "code": "string"
}

Response samples

Content type
application/json
{
  • "codes": [
    ]
}

startMyWebauthn

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{ }

registerMyWebauthn

Authorizations:
bearerAuth
Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters
required
object

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "credential": { }
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "last_used_at": "2019-08-24T14:15:22Z"
}

deleteMyWebauthn

Needs the current password or an authenticator code when the user has one (ASVS 3.7.1).

Authorizations:
bearerAuth
path Parameters
credentialId
required
string <uuid>
Request Body schema: application/json
optional
password
string <= 256 characters
code
string <= 16 characters

A current authenticator (TOTP) code.

Responses

Request samples

Content type
application/json
{
  • "password": "string",
  • "code": "string"
}

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

listMySessions

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

deleteMySession

Authorizations:
bearerAuth
path Parameters
sessionId
required
string <= 64 characters

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

listMyApiKeys

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

createMyApiKey

Authorizations:
bearerAuth
Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters
permissions
required
Array of strings [ 1 .. 100 ] items
expires_at
required
string <date-time>

At most 365 days ahead.

user_id
string <uuid>

Owner (admin endpoint only); defaults to the caller.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "permissions": [
    ],
  • "expires_at": "2019-08-24T14:15:22Z",
  • "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"
}

Response samples

Content type
application/json
{
  • "key": {
    },
  • "token": "string"
}

revokeMyApiKey

Authorizations:
bearerAuth
path Parameters
keyId
required
string <uuid>

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

tenants

List tenants visible to the caller (every tenant for platform admins)

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Create a tenant with its first tenant-admin (platform.admin)

Authorizations:
bearerAuth
Request Body schema: application/json
required
name
required
string [ 1 .. 200 ] characters
slug
required
string [ 1 .. 63 ] characters ^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$
plan
string <= 50 characters
admin_email
required
string [ 3 .. 320 ] characters
admin_password
string <= 256 characters

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "slug": "string",
  • "plan": "string",
  • "admin_email": "string",
  • "admin_password": "string"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "slug": "string",
  • "plan": "string",
  • "status": "active",
  • "is_provider": true,
  • "mfa_required": true,
  • "local_login_enabled": true,
  • "default_locale": "string",
  • "created_at": "2019-08-24T14:15:22Z"
}

getTenant

Authorizations:
bearerAuth
path Parameters
tenantId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "slug": "string",
  • "plan": "string",
  • "status": "active",
  • "is_provider": true,
  • "mfa_required": true,
  • "local_login_enabled": true,
  • "default_locale": "string",
  • "created_at": "2019-08-24T14:15:22Z"
}

Quota limits and current usage of the caller's tenant

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "limits": {
    },
  • "usage": {
    }
}

Update the current tenant's settings (name, MFA policy, local login)

Authorizations:
bearerAuth
Request Body schema: application/json
required
name
required
string [ 1 .. 200 ] characters
mfa_required
required
boolean
local_login_enabled
required
boolean
default_locale
string <= 16 characters

Language for users who have not chosen one (such as "tr"); omit to keep it, "" to clear it.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "mfa_required": true,
  • "local_login_enabled": true,
  • "default_locale": "string"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "slug": "string",
  • "plan": "string",
  • "status": "active",
  • "is_provider": true,
  • "mfa_required": true,
  • "local_login_enabled": true,
  • "default_locale": "string",
  • "created_at": "2019-08-24T14:15:22Z"
}

users

listUsers

Authorizations:
bearerAuth
query Parameters
limit
integer [ 1 .. 500 ]
Default: 50
cursor
string <= 1024 characters
sort
string
Default: "name"
Enum: "name" "-name" "created_at" "-created_at"

name, -name, created_at or -created_at. Default name.

q
string <= 200 characters

Case-insensitive substring match on name.

status
string (UserStatus)
Enum: "active" "disabled"
kind
string (UserKind)
Enum: "human" "service"

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "next_cursor": "string",
  • "counts": {
    }
}

createUser

Authorizations:
bearerAuth
Request Body schema: application/json
required
email
required
string [ 3 .. 320 ] characters
display_name
required
string <= 200 characters
kind
required
string (UserKind)
Enum: "human" "service"
password
string <= 256 characters

Local password (human users only).

locale
string <= 16 characters

Responses

Request samples

Content type
application/json
{
  • "email": "string",
  • "display_name": "string",
  • "kind": "human",
  • "password": "string",
  • "locale": "string"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "email": "string",
  • "display_name": "string",
  • "status": "active",
  • "kind": "human",
  • "locale": "string",
  • "has_password": true,
  • "created_at": "2019-08-24T14:15:22Z",
  • "last_login_at": "2019-08-24T14:15:22Z"
}

getUser

Authorizations:
bearerAuth
path Parameters
userId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "email": "string",
  • "display_name": "string",
  • "status": "active",
  • "kind": "human",
  • "locale": "string",
  • "has_password": true,
  • "created_at": "2019-08-24T14:15:22Z",
  • "last_login_at": "2019-08-24T14:15:22Z"
}

updateUser

Authorizations:
bearerAuth
path Parameters
userId
required
string <uuid>
Request Body schema: application/json
required
display_name
string <= 200 characters
status
string (UserStatus)
Enum: "active" "disabled"
locale
string <= 16 characters

Responses

Request samples

Content type
application/json
{
  • "display_name": "string",
  • "status": "active",
  • "locale": "string"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "email": "string",
  • "display_name": "string",
  • "status": "active",
  • "kind": "human",
  • "locale": "string",
  • "has_password": true,
  • "created_at": "2019-08-24T14:15:22Z",
  • "last_login_at": "2019-08-24T14:15:22Z"
}

setUserPassword

Authorizations:
bearerAuth
path Parameters
userId
required
string <uuid>
Request Body schema: application/json
required
new_password
required
string <= 256 characters

Responses

Request samples

Content type
application/json
{
  • "new_password": "string"
}

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

Remove every second factor of a user (lost device)

Authorizations:
bearerAuth
path Parameters
userId
required
string <uuid>

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

listUserSessions

Authorizations:
bearerAuth
path Parameters
userId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

End every session of a user

Authorizations:
bearerAuth
path Parameters
userId
required
string <uuid>

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

deleteUserSession

Authorizations:
bearerAuth
path Parameters
userId
required
string <uuid>
sessionId
required
string <= 64 characters

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

rbac

Permission catalog (ADR 0007 §1)

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "approval_actions": [
    ]
}

listRoles

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

createRole

Authorizations:
bearerAuth
Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters
description
string <= 500 characters
permissions
required
Array of strings <= 100 items

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "permissions": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "description": "string",
  • "permissions": [
    ],
  • "builtin": true,
  • "created_at": "2019-08-24T14:15:22Z"
}

getRole

Authorizations:
bearerAuth
path Parameters
roleId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "description": "string",
  • "permissions": [
    ],
  • "builtin": true,
  • "created_at": "2019-08-24T14:15:22Z"
}

updateRole

Authorizations:
bearerAuth
path Parameters
roleId
required
string <uuid>
Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters
description
string <= 500 characters
permissions
required
Array of strings <= 100 items

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "permissions": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "description": "string",
  • "permissions": [
    ],
  • "builtin": true,
  • "created_at": "2019-08-24T14:15:22Z"
}

deleteRole

Authorizations:
bearerAuth
path Parameters
roleId
required
string <uuid>

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

listRoleBindings

Authorizations:
bearerAuth
query Parameters
user_id
string <uuid>
role_id
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

createRoleBinding

Authorizations:
bearerAuth
Request Body schema: application/json
required
role_id
required
string <uuid>
user_id
required
string <uuid>
scope_type
required
string (ScopeType)
Enum: "global" "tenant" "cluster" "pool" "tag"
scope_id
string <uuid>
scope_tag
string <= 100 characters

Responses

Request samples

Content type
application/json
{
  • "role_id": "ac4e70c8-d5be-48af-93eb-760f58fc91a9",
  • "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
  • "scope_type": "global",
  • "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
  • "scope_tag": "string"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "role_id": "ac4e70c8-d5be-48af-93eb-760f58fc91a9",
  • "role_name": "string",
  • "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
  • "scope_type": "global",
  • "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
  • "scope_tag": "string",
  • "source_provider_id": "89679b1d-5eea-4ceb-8c38-aea88452dbc0",
  • "created_at": "2019-08-24T14:15:22Z"
}

deleteRoleBinding

Authorizations:
bearerAuth
path Parameters
bindingId
required
string <uuid>

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

identity

listIdentityProviders

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

createIdentityProvider

Authorizations:
bearerAuth
Request Body schema: application/json
required
kind
required
string
Enum: "ldap" "oidc" "saml"
name
required
string [ 1 .. 100 ] characters
enabled
required
boolean
require_mfa
boolean
required
object
object

Responses

Request samples

Content type
application/json
{
  • "kind": "ldap",
  • "name": "string",
  • "enabled": true,
  • "require_mfa": true,
  • "config": { },
  • "secrets": {
    }
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "kind": "ldap",
  • "name": "string",
  • "enabled": true,
  • "require_mfa": true,
  • "config": { },
  • "secrets_set": [
    ],
  • "callback_url": "string",
  • "acs_url": "string",
  • "metadata_url": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

getIdentityProvider

Authorizations:
bearerAuth
path Parameters
providerId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "kind": "ldap",
  • "name": "string",
  • "enabled": true,
  • "require_mfa": true,
  • "config": { },
  • "secrets_set": [
    ],
  • "callback_url": "string",
  • "acs_url": "string",
  • "metadata_url": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

updateIdentityProvider

Authorizations:
bearerAuth
path Parameters
providerId
required
string <uuid>
Request Body schema: application/json
required
kind
required
string
Enum: "ldap" "oidc" "saml"
name
required
string [ 1 .. 100 ] characters
enabled
required
boolean
require_mfa
boolean
required
object
object

Responses

Request samples

Content type
application/json
{
  • "kind": "ldap",
  • "name": "string",
  • "enabled": true,
  • "require_mfa": true,
  • "config": { },
  • "secrets": {
    }
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "kind": "ldap",
  • "name": "string",
  • "enabled": true,
  • "require_mfa": true,
  • "config": { },
  • "secrets_set": [
    ],
  • "callback_url": "string",
  • "acs_url": "string",
  • "metadata_url": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

deleteIdentityProvider

Authorizations:
bearerAuth
path Parameters
providerId
required
string <uuid>

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

listGroupMappings

Authorizations:
bearerAuth
path Parameters
providerId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

createGroupMapping

Authorizations:
bearerAuth
path Parameters
providerId
required
string <uuid>
Request Body schema: application/json
required
group_name
required
string [ 1 .. 1024 ] characters
role_id
required
string <uuid>
scope_type
required
string (ScopeType)
Enum: "global" "tenant" "cluster" "pool" "tag"
scope_id
string <uuid>
scope_tag
string <= 100 characters

Responses

Request samples

Content type
application/json
{
  • "group_name": "string",
  • "role_id": "ac4e70c8-d5be-48af-93eb-760f58fc91a9",
  • "scope_type": "global",
  • "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
  • "scope_tag": "string"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "group_name": "string",
  • "role_id": "ac4e70c8-d5be-48af-93eb-760f58fc91a9",
  • "scope_type": "global",
  • "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
  • "scope_tag": "string"
}

deleteGroupMapping

Authorizations:
bearerAuth
path Parameters
providerId
required
string <uuid>
mappingId
required
string <uuid>

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

Every API key of the tenant

Authorizations:
bearerAuth
query Parameters
user_id
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Create a key for a service account or another user

Authorizations:
bearerAuth
Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters
permissions
required
Array of strings [ 1 .. 100 ] items
expires_at
required
string <date-time>

At most 365 days ahead.

user_id
string <uuid>

Owner (admin endpoint only); defaults to the caller.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "permissions": [
    ],
  • "expires_at": "2019-08-24T14:15:22Z",
  • "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"
}

Response samples

Content type
application/json
{
  • "key": {
    },
  • "token": "string"
}

revokeApiKey

Authorizations:
bearerAuth
path Parameters
keyId
required
string <uuid>

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

plugins

listPlugins

Installed plugin packages with their configuration schema and whether the licence includes them.

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

listPluginInstances

Authorizations:
bearerAuth
query Parameters
cluster_id
string <uuid>
kind
string
Enum: "storage" "backup"

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

createPluginInstance

Authorizations:
bearerAuth
Request Body schema: application/json
required
cluster_id
required
string <uuid>
plugin
required
string
name
required
string [ 1 .. 100 ] characters
location
string (PluginLocation)
Enum: "center" "connector"
enabled
required
boolean
interval_seconds
integer [ 60 .. 86400 ]
required
object
object

Empty string removes a secret; omitted secrets keep their value.

Responses

Request samples

Content type
application/json
{
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "plugin": "string",
  • "name": "string",
  • "location": "center",
  • "enabled": true,
  • "interval_seconds": 60,
  • "settings": { },
  • "secrets": {
    }
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "plugin": "string",
  • "kind": "storage",
  • "location": "center",
  • "name": "string",
  • "enabled": true,
  • "interval_seconds": 0,
  • "settings": { },
  • "secrets_set": [
    ],
  • "health": {
    },
  • "plugin_version": "string",
  • "last_collected_at": "2019-08-24T14:15:22Z",
  • "last_error_code": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

testPluginConfig

Runs a health check with a configuration that is not stored. With instance_id, omitted secrets are taken from that instance.

Authorizations:
bearerAuth
Request Body schema: application/json
required
cluster_id
required
string <uuid>
plugin
required
string
name
required
string [ 1 .. 100 ] characters
location
string (PluginLocation)
Enum: "center" "connector"
enabled
required
boolean
interval_seconds
integer [ 60 .. 86400 ]
required
object
object

Empty string removes a secret; omitted secrets keep their value.

instance_id
string <uuid>

Responses

Request samples

Content type
application/json
{
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "plugin": "string",
  • "name": "string",
  • "location": "center",
  • "enabled": true,
  • "interval_seconds": 60,
  • "settings": { },
  • "secrets": {
    },
  • "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366"
}

Response samples

Content type
application/json
{
  • "status": "unknown",
  • "code": "string",
  • "product_version": "string"
}

getPluginInstance

Authorizations:
bearerAuth
path Parameters
instanceId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "plugin": "string",
  • "kind": "storage",
  • "location": "center",
  • "name": "string",
  • "enabled": true,
  • "interval_seconds": 0,
  • "settings": { },
  • "secrets_set": [
    ],
  • "health": {
    },
  • "plugin_version": "string",
  • "last_collected_at": "2019-08-24T14:15:22Z",
  • "last_error_code": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

updatePluginInstance

Authorizations:
bearerAuth
path Parameters
instanceId
required
string <uuid>
Request Body schema: application/json
required
cluster_id
required
string <uuid>
plugin
required
string
name
required
string [ 1 .. 100 ] characters
location
string (PluginLocation)
Enum: "center" "connector"
enabled
required
boolean
interval_seconds
integer [ 60 .. 86400 ]
required
object
object

Empty string removes a secret; omitted secrets keep their value.

Responses

Request samples

Content type
application/json
{
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "plugin": "string",
  • "name": "string",
  • "location": "center",
  • "enabled": true,
  • "interval_seconds": 60,
  • "settings": { },
  • "secrets": {
    }
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "plugin": "string",
  • "kind": "storage",
  • "location": "center",
  • "name": "string",
  • "enabled": true,
  • "interval_seconds": 0,
  • "settings": { },
  • "secrets_set": [
    ],
  • "health": {
    },
  • "plugin_version": "string",
  • "last_collected_at": "2019-08-24T14:15:22Z",
  • "last_error_code": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

deletePluginInstance

Authorizations:
bearerAuth
path Parameters
instanceId
required
string <uuid>

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

testPluginInstance

Authorizations:
bearerAuth
path Parameters
instanceId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "status": "unknown",
  • "code": "string",
  • "product_version": "string"
}

collectPluginInstance

Schedules a collection now.

Authorizations:
bearerAuth
path Parameters
instanceId
required
string <uuid>

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

listStorageArrays

Storage plugin instances the caller may see with their last collected data (ADR 0026 §5).

Authorizations:
bearerAuth
query Parameters
cluster_id
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

getBackupCoverage

Backup state of every VM the caller may see, from backup plugins (ADR 0026 §5). VMs without a plugin row are unprotected.

Authorizations:
bearerAuth
query Parameters
cluster_id
string <uuid>
state
string
Enum: "all" "protected" "unprotected" "failed" "warning" "stale"
stale_hours
integer [ 1 .. 8760 ]
Default: 24

Responses

Response samples

Content type
application/json
{
  • "total": 0,
  • "protected": 0,
  • "unprotected": 0,
  • "failed": 0,
  • "warning": 0,
  • "stale": 0,
  • "items": [
    ]
}

listBackupServers

Backup plugin instances with their jobs and repositories.

Authorizations:
bearerAuth
query Parameters
cluster_id
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

listOrphanedBackups

Backups that match no VM in the inventory (deleted or renamed VMs).

Authorizations:
bearerAuth
query Parameters
cluster_id
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

listVMBackups

Authorizations:
bearerAuth
path Parameters
vmId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

listVMRestorePoints

Asks each backup instance that protects the VM for its restore points (read live from the product).

Authorizations:
bearerAuth
path Parameters
vmId
required
string <uuid>
query Parameters
limit
integer [ 1 .. 500 ]
Default: 100

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

ha

listClusterHA

Proxmox HA state per cluster as last reported by its connector (ADR 0027), with Nexhypro Virtual maintenance flags.

Authorizations:
bearerAuth
query Parameters
cluster_id
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

listHAEvents

Failover history and other HA changes derived from consecutive states, newest first.

Authorizations:
bearerAuth
query Parameters
cluster_id
string <uuid>
limit
integer [ 1 .. 500 ]
Default: 100

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

migration

listMigrationSources

ESXi import storages registered as migration sources (ADR 0028 §1).

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

createMigrationSource

Links an existing ESXi import storage of the cluster, or creates one through the connector. The password is passed to Proxmox and never stored by Nexhypro Virtual.

Authorizations:
bearerAuth
Request Body schema: application/json
required
cluster_id
required
string <uuid>
name
required
string [ 1 .. 100 ] characters
mode
required
string
Enum: "link" "create"

Link an existing ESXi storage or create it.

storage
required
string <= 100 characters

Proxmox storage id.

kind
string
Default: "esxi"
Enum: "esxi" "vcenter"
server
string <= 253 characters

Required with mode create.

username
string <= 128 characters
password
string <= 256 characters

Passed to Proxmox only.

skip_cert_verify
boolean
Default: false

Responses

Request samples

Content type
application/json
{
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "name": "string",
  • "mode": "link",
  • "storage": "string",
  • "kind": "esxi",
  • "server": "string",
  • "username": "string",
  • "password": "string",
  • "skip_cert_verify": false
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "name": "string",
  • "storage": "string",
  • "kind": "esxi",
  • "server": "string",
  • "username": "string",
  • "status": "new",
  • "error_code": "string",
  • "vm_count": 0,
  • "last_scan_at": "2019-08-24T14:15:22Z",
  • "last_scan_job": "45d1294c-3f27-4439-9963-4d4d706a4200",
  • "created_at": "2019-08-24T14:15:22Z",
  • "control": {
    }
}

getMigrationSource

Authorizations:
bearerAuth
path Parameters
sourceId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "name": "string",
  • "storage": "string",
  • "kind": "esxi",
  • "server": "string",
  • "username": "string",
  • "status": "new",
  • "error_code": "string",
  • "vm_count": 0,
  • "last_scan_at": "2019-08-24T14:15:22Z",
  • "last_scan_job": "45d1294c-3f27-4439-9963-4d4d706a4200",
  • "created_at": "2019-08-24T14:15:22Z",
  • "control": {
    }
}

deleteMigrationSource

Removes the source with its inventory, mappings and plans. The Proxmox storage stays.

Authorizations:
bearerAuth
path Parameters
sourceId
required
string <uuid>

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

scanMigrationSource

Authorizations:
bearerAuth
path Parameters
sourceId
required
string <uuid>
header Parameters
Idempotency-Key
required
string [ 1 .. 200 ] characters

Client-chosen key, unique per tenant. Repeating a request with the same key returns the original command instead of creating a new one.

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",
  • "type": "vm.migrate",
  • "target_type": "vm",
  • "target_id": "d3bcdc92-4191-401b-ad0c-42056c6efab9",
  • "params": { },
  • "status": "awaiting_approval",
  • "progress": 0,
  • "attempts": 0,
  • "max_attempts": 0,
  • "cancel_requested": true,
  • "error_code": "string",
  • "result": { },
  • "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "started_at": "2019-08-24T14:15:22Z",
  • "finished_at": "2019-08-24T14:15:22Z",
  • "steps": [
    ]
}

readMigrationControlFingerprint

Reads the TLS certificate fingerprint of a source's management server or host through the cluster's connector, without logging in, for the operator to compare with the one the server shows (ADR 0038 §2).

Authorizations:
bearerAuth
path Parameters
sourceId
required
string <uuid>
Request Body schema: application/json
required
endpoint
required
string <= 253 characters

Responses

Request samples

Content type
application/json
{
  • "endpoint": "string"
}

Response samples

Content type
application/json
{
  • "fingerprint": "string"
}

setMigrationControl

Sets the source's control connection (ADR 0038 §2). The connector logs in pinned to the confirmed fingerprint and reports the version and missing privileges; the password is sealed and never returned. An empty password keeps the stored one when the endpoint and user stay the same. Needs the migration.control licence feature.

Authorizations:
bearerAuth
path Parameters
sourceId
required
string <uuid>
Request Body schema: application/json
required
endpoint
required
string <= 253 characters
username
required
string <= 128 characters
password
string <= 256 characters
fingerprint
required
string

The SHA-256 fingerprint the operator confirmed.

Responses

Request samples

Content type
application/json
{
  • "endpoint": "string",
  • "username": "string",
  • "password": "string",
  • "fingerprint": "string"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "name": "string",
  • "storage": "string",
  • "kind": "esxi",
  • "server": "string",
  • "username": "string",
  • "status": "new",
  • "error_code": "string",
  • "vm_count": 0,
  • "last_scan_at": "2019-08-24T14:15:22Z",
  • "last_scan_job": "45d1294c-3f27-4439-9963-4d4d706a4200",
  • "created_at": "2019-08-24T14:15:22Z",
  • "control": {
    }
}

deleteMigrationControl

Removes the control connection and its sealed password.

Authorizations:
bearerAuth
path Parameters
sourceId
required
string <uuid>

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

listMigrationSourceVMs

Authorizations:
bearerAuth
path Parameters
sourceId
required
string <uuid>
query Parameters
q
string <= 200 characters
precheck
string (MigrationSeverity)
Enum: "ok" "info" "warning" "blocker"
include_gone
boolean
Default: false
limit
integer [ 1 .. 1000 ]
Default: 200
offset
integer >= 0
Default: 0

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "total": 0,
  • "windows_checklist": [
    ]
}

getMigrationSourceVM

Authorizations:
bearerAuth
path Parameters
sourceVmId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "source_id": "ae50a35c-df42-4eff-ba26-f8bc28d2af81",
  • "volume": "string",
  • "name": "string",
  • "datacenter": "string",
  • "datastores": [
    ],
  • "power_state": "on",
  • "ostype": "string",
  • "firmware": "string",
  • "cores": 0,
  • "sockets": 0,
  • "memory_mib": 0,
  • "disk_bytes": 0,
  • "disks": [
    ],
  • "nics": [
    ],
  • "snapshots": true,
  • "tools": "running",
  • "guest_ips": [
    ],
  • "error_code": "string",
  • "precheck_status": "ok",
  • "findings": [
    ],
  • "windows": true,
  • "last_item_status": "string",
  • "seen_at": "2019-08-24T14:15:22Z",
  • "gone_at": "2019-08-24T14:15:22Z"
}

listESXiStorages

ESXi import storages of the visible clusters, with the source that links each, if any.

Authorizations:
bearerAuth
query Parameters
cluster_id
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

listMigrationMappings

Authorizations:
bearerAuth
query Parameters
source_id
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

createMigrationMapping

Authorizations:
bearerAuth
Request Body schema: application/json
required
source_id
required
string <uuid>
name
required
string [ 1 .. 100 ] characters
required
object (MigrationRules)

Responses

Request samples

Content type
application/json
{
  • "source_id": "ae50a35c-df42-4eff-ba26-f8bc28d2af81",
  • "name": "string",
  • "rules": {
    }
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "source_id": "ae50a35c-df42-4eff-ba26-f8bc28d2af81",
  • "name": "string",
  • "rules": {
    },
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

getMigrationMapping

Authorizations:
bearerAuth
path Parameters
mappingId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "source_id": "ae50a35c-df42-4eff-ba26-f8bc28d2af81",
  • "name": "string",
  • "rules": {
    },
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

updateMigrationMapping

Authorizations:
bearerAuth
path Parameters
mappingId
required
string <uuid>
Request Body schema: application/json
required
source_id
required
string <uuid>
name
required
string [ 1 .. 100 ] characters
required
object (MigrationRules)

Responses

Request samples

Content type
application/json
{
  • "source_id": "ae50a35c-df42-4eff-ba26-f8bc28d2af81",
  • "name": "string",
  • "rules": {
    }
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "source_id": "ae50a35c-df42-4eff-ba26-f8bc28d2af81",
  • "name": "string",
  • "rules": {
    },
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

deleteMigrationMapping

Fails with 409 while a plan uses the template.

Authorizations:
bearerAuth
path Parameters
mappingId
required
string <uuid>

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

listMigrationPlans

Authorizations:
bearerAuth
query Parameters
source_id
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

createMigrationPlan

Authorizations:
bearerAuth
Request Body schema: application/json
required
source_id
required
string <uuid>
mapping_id
required
string <uuid>
name
required
string [ 1 .. 100 ] characters
object (MigrationSettings)

Responses

Request samples

Content type
application/json
{
  • "source_id": "ae50a35c-df42-4eff-ba26-f8bc28d2af81",
  • "mapping_id": "9fd90e5f-616a-481f-87a6-42d72ba405e7",
  • "name": "string",
  • "settings": {
    }
}

Response samples

Content type
application/json
{
  • "plan": {
    },
  • "waves": [
    ],
  • "items": [
    ]
}

getMigrationPlan

The plan with its waves, items, current findings and estimates.

Authorizations:
bearerAuth
path Parameters
planId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "plan": {
    },
  • "waves": [
    ],
  • "items": [
    ]
}

updateMigrationPlan

Authorizations:
bearerAuth
path Parameters
planId
required
string <uuid>
Request Body schema: application/json
required
mapping_id
required
string <uuid>
name
required
string [ 1 .. 100 ] characters
object (MigrationSettings)

Responses

Request samples

Content type
application/json
{
  • "mapping_id": "9fd90e5f-616a-481f-87a6-42d72ba405e7",
  • "name": "string",
  • "settings": {
    }
}

Response samples

Content type
application/json
{
  • "plan": {
    },
  • "waves": [
    ],
  • "items": [
    ]
}

deleteMigrationPlan

Fails with 409 while a wave runs or awaits approval.

Authorizations:
bearerAuth
path Parameters
planId
required
string <uuid>

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

createMigrationWave

Authorizations:
bearerAuth
path Parameters
planId
required
string <uuid>
Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters
window_start
required
string <date-time>
window_end
required
string <date-time>
parallelism
integer [ 1 .. 20 ]
Default: 2
auto_start
boolean
Default: false

Start the wave when its window opens.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "window_start": "2019-08-24T14:15:22Z",
  • "window_end": "2019-08-24T14:15:22Z",
  • "parallelism": 2,
  • "auto_start": false
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "plan_id": "00713021-9aea-41da-9a88-87760c08fa72",
  • "seq": 0,
  • "name": "string",
  • "window_start": "2019-08-24T14:15:22Z",
  • "window_end": "2019-08-24T14:15:22Z",
  • "parallelism": 0,
  • "auto_start": true,
  • "status": "draft",
  • "job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",
  • "started_at": "2019-08-24T14:15:22Z",
  • "finished_at": "2019-08-24T14:15:22Z",
  • "estimate_seconds": 0,
  • "window_exceeded": true
}

getMigrationReport

Durations, states and issues per wave and VM. format=csv returns one row per VM with column keys as headers and codes as values (ADR 0028 §6).

Authorizations:
bearerAuth
path Parameters
planId
required
string <uuid>
query Parameters
format
string
Default: "json"
Enum: "json" "csv"

Responses

Response samples

Content type
{
  • "generated_at": "2019-08-24T14:15:22Z",
  • "plan": {
    },
  • "source": {
    },
  • "waves": [
    ],
  • "items": [
    ],
  • "totals": {
    }
}

updateMigrationWave

Only draft waves can change.

Authorizations:
bearerAuth
path Parameters
waveId
required
string <uuid>
Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters
window_start
required
string <date-time>
window_end
required
string <date-time>
parallelism
integer [ 1 .. 20 ]
Default: 2
auto_start
boolean
Default: false

Start the wave when its window opens.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "window_start": "2019-08-24T14:15:22Z",
  • "window_end": "2019-08-24T14:15:22Z",
  • "parallelism": 2,
  • "auto_start": false
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "plan_id": "00713021-9aea-41da-9a88-87760c08fa72",
  • "seq": 0,
  • "name": "string",
  • "window_start": "2019-08-24T14:15:22Z",
  • "window_end": "2019-08-24T14:15:22Z",
  • "parallelism": 0,
  • "auto_start": true,
  • "status": "draft",
  • "job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",
  • "started_at": "2019-08-24T14:15:22Z",
  • "finished_at": "2019-08-24T14:15:22Z",
  • "estimate_seconds": 0,
  • "window_exceeded": true
}

deleteMigrationWave

Only draft waves can be deleted; their items go with them.

Authorizations:
bearerAuth
path Parameters
waveId
required
string <uuid>

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

addMigrationItems

Authorizations:
bearerAuth
path Parameters
waveId
required
string <uuid>
Request Body schema: application/json
required
source_vm_ids
required
Array of strings <uuid> [ 1 .. 1000 ] items [ items <uuid > ]

Responses

Request samples

Content type
application/json
{
  • "source_vm_ids": [
    ]
}

Response samples

Content type
application/json
{
  • "items": [
    ]
}

startMigrationWave

Submits the wave job (ADR 0028 §5). An approval policy on migration.wave holds it for approval.

Authorizations:
bearerAuth
path Parameters
waveId
required
string <uuid>
header Parameters
Idempotency-Key
required
string [ 1 .. 200 ] characters

Client-chosen key, unique per tenant. Repeating a request with the same key returns the original command instead of creating a new one.

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",
  • "type": "vm.migrate",
  • "target_type": "vm",
  • "target_id": "d3bcdc92-4191-401b-ad0c-42056c6efab9",
  • "params": { },
  • "status": "awaiting_approval",
  • "progress": 0,
  • "attempts": 0,
  • "max_attempts": 0,
  • "cancel_requested": true,
  • "error_code": "string",
  • "result": { },
  • "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "started_at": "2019-08-24T14:15:22Z",
  • "finished_at": "2019-08-24T14:15:22Z",
  • "steps": [
    ]
}

prepareMigrationWave

Submits one guest preparation job per pending item of the wave (ADR 0038 §3), through the source's control connection with the plan's guest credentials. Run it days before the window; running it again is safe. Needs the migration.control licence feature.

Authorizations:
bearerAuth
path Parameters
waveId
required
string <uuid>
header Parameters
Idempotency-Key
required
string [ 1 .. 200 ] characters

Client-chosen key, unique per tenant. Repeating a request with the same key returns the original command instead of creating a new one.

Responses

Response samples

Content type
application/json
{
  • "jobs": [
    ],
  • "count": 0
}

setMigrationGuestCredentials

Sets the plan's guest operating system credentials for one family (ADR 0038 §3). The password is sealed and never returned. Needs the migration.control licence feature.

Authorizations:
bearerAuth
path Parameters
planId
required
string <uuid>
family
required
string^(windows|linux)$
Request Body schema: application/json
required
username
required
string <= 256 characters
password
required
string <= 256 characters

Responses

Request samples

Content type
application/json
{
  • "username": "string",
  • "password": "string"
}

Response samples

Content type
application/json
{
  • "plan": {
    },
  • "waves": [
    ],
  • "items": [
    ]
}

deleteMigrationGuestCredentials

Authorizations:
bearerAuth
path Parameters
planId
required
string <uuid>
family
required
string^(windows|linux)$

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

cancelMigrationWave

Requests cancellation of the wave job; imports already running finish.

Authorizations:
bearerAuth
path Parameters
waveId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "plan_id": "00713021-9aea-41da-9a88-87760c08fa72",
  • "seq": 0,
  • "name": "string",
  • "window_start": "2019-08-24T14:15:22Z",
  • "window_end": "2019-08-24T14:15:22Z",
  • "parallelism": 0,
  • "auto_start": true,
  • "status": "draft",
  • "job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",
  • "started_at": "2019-08-24T14:15:22Z",
  • "finished_at": "2019-08-24T14:15:22Z",
  • "estimate_seconds": 0,
  • "window_exceeded": true
}

updateMigrationItem

Moves a pending item to another draft wave of the plan or changes its overrides.

Authorizations:
bearerAuth
path Parameters
itemId
required
string <uuid>
Request Body schema: application/json
required
wave_id
required
string <uuid>
required
object (MigrationOverrides)

Responses

Request samples

Content type
application/json
{
  • "wave_id": "1f4fc03d-1e37-4553-92d8-f8a3ca494099",
  • "overrides": {
    }
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "plan_id": "00713021-9aea-41da-9a88-87760c08fa72",
  • "wave_id": "1f4fc03d-1e37-4553-92d8-f8a3ca494099",
  • "source_vm_id": "4166681a-3f59-42d5-b5da-045835918231",
  • "source_name": "string",
  • "source_ostype": "string",
  • "source_power_state": "string",
  • "source_disk_bytes": 0,
  • "source_gone": true,
  • "overrides": {
    },
  • "status": "pending",
  • "error_code": "string",
  • "issues": [
    ],
  • "findings": [
    ],
  • "precheck_status": "ok",
  • "rollback_steps": [
    ],
  • "job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",
  • "target_vm_id": "594fc20a-c3fc-4b1d-9c28-94c2ccc85c2d",
  • "target_vmid": 0,
  • "target_node": "string",
  • "estimate_seconds": 0,
  • "copy_seconds": 0,
  • "import_mode": "cold",
  • "started_at": "2019-08-24T14:15:22Z",
  • "cutover_at": "2019-08-24T14:15:22Z",
  • "finished_at": "2019-08-24T14:15:22Z",
  • "prep_status": "running",
  • "prep_error": "string",
  • "prep_steps": [
    ],
  • "guest_network": {
    },
  • "prepared_at": "2019-08-24T14:15:22Z",
  • "network_changes": [
    ]
}

deleteMigrationItem

Only pending items that never started can be removed.

Authorizations:
bearerAuth
path Parameters
itemId
required
string <uuid>

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

approvals

listApprovalPolicies

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

putApprovalPolicy

Authorizations:
bearerAuth
path Parameters
action
required
string <= 100 characters
Request Body schema: application/json
required
required_approvals
required
integer [ 1 .. 5 ]
enabled
required
boolean

Responses

Request samples

Content type
application/json
{
  • "required_approvals": 1,
  • "enabled": true
}

Response samples

Content type
application/json
{
  • "action": "string",
  • "required_approvals": 0,
  • "enabled": true
}

listApprovalRequests

Authorizations:
bearerAuth
query Parameters
limit
integer [ 1 .. 500 ]
Default: 50
cursor
string <= 1024 characters
status
string (ApprovalStatus)
Enum: "pending" "approved" "rejected" "expired" "executed" "cancelled"
mine
boolean

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "next_cursor": "string"
}

createApprovalRequest

Authorizations:
bearerAuth
Request Body schema: application/json
required
action
required
string <= 100 characters
target_type
required
string <= 100 characters
target_id
required
string <= 200 characters
object
reason
string <= 2000 characters

Responses

Request samples

Content type
application/json
{
  • "action": "string",
  • "target_type": "string",
  • "target_id": "string",
  • "payload": { },
  • "reason": "string"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "action": "string",
  • "target_type": "string",
  • "target_id": "string",
  • "payload": { },
  • "reason": "string",
  • "requested_by": "cda0f200-65cd-4343-aedd-9c936b908826",
  • "required_approvals": 0,
  • "status": "pending",
  • "expires_at": "2019-08-24T14:15:22Z",
  • "created_at": "2019-08-24T14:15:22Z",
  • "decided_at": "2019-08-24T14:15:22Z",
  • "executed_at": "2019-08-24T14:15:22Z",
  • "decisions": [
    ]
}

getApprovalRequest

Authorizations:
bearerAuth
path Parameters
requestId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "action": "string",
  • "target_type": "string",
  • "target_id": "string",
  • "payload": { },
  • "reason": "string",
  • "requested_by": "cda0f200-65cd-4343-aedd-9c936b908826",
  • "required_approvals": 0,
  • "status": "pending",
  • "expires_at": "2019-08-24T14:15:22Z",
  • "created_at": "2019-08-24T14:15:22Z",
  • "decided_at": "2019-08-24T14:15:22Z",
  • "executed_at": "2019-08-24T14:15:22Z",
  • "decisions": [
    ]
}

decideApprovalRequest

Authorizations:
bearerAuth
path Parameters
requestId
required
string <uuid>
Request Body schema: application/json
required
decision
required
string
Enum: "approve" "reject"
comment
string <= 2000 characters

Responses

Request samples

Content type
application/json
{
  • "decision": "approve",
  • "comment": "string"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "action": "string",
  • "target_type": "string",
  • "target_id": "string",
  • "payload": { },
  • "reason": "string",
  • "requested_by": "cda0f200-65cd-4343-aedd-9c936b908826",
  • "required_approvals": 0,
  • "status": "pending",
  • "expires_at": "2019-08-24T14:15:22Z",
  • "created_at": "2019-08-24T14:15:22Z",
  • "decided_at": "2019-08-24T14:15:22Z",
  • "executed_at": "2019-08-24T14:15:22Z",
  • "decisions": [
    ]
}

cancelApprovalRequest

Authorizations:
bearerAuth
path Parameters
requestId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "action": "string",
  • "target_type": "string",
  • "target_id": "string",
  • "payload": { },
  • "reason": "string",
  • "requested_by": "cda0f200-65cd-4343-aedd-9c936b908826",
  • "required_approvals": 0,
  • "status": "pending",
  • "expires_at": "2019-08-24T14:15:22Z",
  • "created_at": "2019-08-24T14:15:22Z",
  • "decided_at": "2019-08-24T14:15:22Z",
  • "executed_at": "2019-08-24T14:15:22Z",
  • "decisions": [
    ]
}

audit

listAuditLogs

Authorizations:
bearerAuth
query Parameters
limit
integer [ 1 .. 500 ]
Default: 50
cursor
string <= 1024 characters
action
string <= 100 characters

Exact action or prefix (e.g. "auth")

actor_id
string <uuid>
result
string (AuditResult)
Enum: "success" "failure" "denied"
target_type
string <= 100 characters
target_id
string <= 200 characters
since
string <date-time>
until
string <date-time>

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "next_cursor": "string",
  • "counts": {
    }
}

exportAuditLogs

Authorizations:
bearerAuth
query Parameters
format
required
string
Enum: "csv" "json"
since
string <date-time>
until
string <date-time>

Responses

Response samples

Content type
No sample

verifyAuditLogs

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "intact": true,
  • "checked": 0,
  • "head_seq": 0,
  • "first_broken_seq": 0
}

listAuditSinks

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

createAuditSink

Authorizations:
bearerAuth
Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters
kind
required
string
Enum: "syslog" "webhook"
enabled
required
boolean
required
object
object

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "kind": "syslog",
  • "enabled": true,
  • "config": { },
  • "secrets": {
    }
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "kind": "syslog",
  • "enabled": true,
  • "config": { },
  • "secrets_set": [
    ],
  • "state": {
    },
  • "created_at": "2019-08-24T14:15:22Z"
}

updateAuditSink

Authorizations:
bearerAuth
path Parameters
sinkId
required
string <uuid>
Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters
kind
required
string
Enum: "syslog" "webhook"
enabled
required
boolean
required
object
object

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "kind": "syslog",
  • "enabled": true,
  • "config": { },
  • "secrets": {
    }
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "kind": "syslog",
  • "enabled": true,
  • "config": { },
  • "secrets_set": [
    ],
  • "state": {
    },
  • "created_at": "2019-08-24T14:15:22Z"
}

deleteAuditSink

Authorizations:
bearerAuth
path Parameters
sinkId
required
string <uuid>

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

inventory

listSites

Authorizations:
bearerAuth
query Parameters
limit
integer [ 1 .. 500 ]
Default: 50
cursor
string <= 1024 characters
sort
string
Default: "name"
Enum: "name" "-name" "created_at" "-created_at"

name, -name, created_at or -created_at. Default name.

q
string <= 200 characters

Case-insensitive substring match on name.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "next_cursor": "string"
}

createSite

Authorizations:
bearerAuth
Request Body schema: application/json
required
name
required
string [ 1 .. 200 ] characters
location
string <= 200 characters

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "location": "string"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "location": "string",
  • "created_at": "2019-08-24T14:15:22Z"
}

listClusters

Authorizations:
bearerAuth
query Parameters
limit
integer [ 1 .. 500 ]
Default: 50
cursor
string <= 1024 characters
sort
string
Default: "name"
Enum: "name" "-name" "created_at" "-created_at"

name, -name, created_at or -created_at. Default name.

q
string <= 200 characters

Case-insensitive substring match on name.

site_id
string <uuid>
status
string (ClusterStatus)
Enum: "pending" "online" "degraded" "offline" "stale"

stale: no connector heartbeat for 30 s; the center does not know the cluster's state.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "next_cursor": "string"
}

Add a cluster; returns the one-time registration token of its connector

Authorizations:
bearerAuth
Request Body schema: application/json
required
site_id
required
string <uuid>
name
required
string [ 1 .. 200 ] characters

Responses

Request samples

Content type
application/json
{
  • "site_id": "72771e6a-6f5e-4de4-a5b9-1266c4197811",
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "cluster": {
    },
  • "registration": {
    }
}

getCluster

Authorizations:
bearerAuth
path Parameters
clusterId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "owner_actions": [
    ],
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "site_id": "72771e6a-6f5e-4de4-a5b9-1266c4197811",
  • "name": "string",
  • "pve_version": "string",
  • "connector_id": "9389ba6f-3696-4571-84d4-34d588c4b109",
  • "status": "pending",
  • "pve_cluster_name": "string",
  • "quorate": true,
  • "last_seen_at": "2019-08-24T14:15:22Z",
  • "last_sync_at": "2019-08-24T14:15:22Z",
  • "created_at": "2019-08-24T14:15:22Z",
  • "site_name": "string",
  • "host_count": 0,
  • "hosts_online": 0,
  • "vm_count": 0,
  • "vms_running": 0,
  • "datastore_count": 0
}

Remove a cluster from the panel

Revokes the cluster's connectors, stops a managed connector and removes the cluster's inventory, jobs and settings from the panel. Nothing changes on Proxmox VE; the PVE user of a managed connector stays there (pve_user) for the administrator to remove. A cluster with queued or running jobs is refused with cluster_busy.

Authorizations:
bearerAuth
path Parameters
clusterId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "pve_user": "string"
}

Set what owner tenants may do with their VMs on this cluster (ADR 0024 §3)

Authorizations:
bearerAuth
path Parameters
clusterId
required
string <uuid>
Request Body schema: application/json
required
owner_actions
required
Array of strings (OwnerAction) <= 4 items
Items Enum: "vm.power" "vm.console" "vm.snapshot" "vm.config"

Responses

Request samples

Content type
application/json
{
  • "owner_actions": [
    ]
}

Response samples

Content type
application/json
{
  • "owner_actions": [
    ],
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "site_id": "72771e6a-6f5e-4de4-a5b9-1266c4197811",
  • "name": "string",
  • "pve_version": "string",
  • "connector_id": "9389ba6f-3696-4571-84d4-34d588c4b109",
  • "status": "pending",
  • "pve_cluster_name": "string",
  • "quorate": true,
  • "last_seen_at": "2019-08-24T14:15:22Z",
  • "last_sync_at": "2019-08-24T14:15:22Z",
  • "created_at": "2019-08-24T14:15:22Z",
  • "site_name": "string",
  • "host_count": 0,
  • "hosts_online": 0,
  • "vm_count": 0,
  • "vms_running": 0,
  • "datastore_count": 0
}

List hosts (Proxmox nodes)

Authorizations:
bearerAuth
query Parameters
limit
integer [ 1 .. 500 ]
Default: 50
cursor
string <= 1024 characters
sort
string
Default: "name"
Enum: "name" "-name" "created_at" "-created_at"

name, -name, created_at or -created_at. Default name.

q
string <= 200 characters

Case-insensitive substring match on name.

cluster_id
string <uuid>
status
string (HostStatus)
Enum: "online" "offline" "maintenance" "unknown"

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "next_cursor": "string"
}

Host with hardware, software, network and disk details (ADR 0016)

Authorizations:
bearerAuth
path Parameters
hostId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "name": "string",
  • "status": "online",
  • "cpu_cores": 0,
  • "memory_bytes": 0,
  • "created_at": "2019-08-24T14:15:22Z",
  • "vm_count": 0,
  • "vms_running": 0,
  • "vcpus_allocated": 0,
  • "memory_allocated_bytes": 0,
  • "cpu_model": "string",
  • "pve_version": "string",
  • "updates_pending": 0,
  • "updates_security": 0,
  • "details_at": "2019-08-24T14:15:22Z",
  • "maintenance_at": "2019-08-24T14:15:22Z",
  • "details": {
    }
}

Enter or leave host maintenance mode, optionally evacuating the host's VMs (ADR 0025 §2)

Authorizations:
bearerAuth
path Parameters
hostId
required
string <uuid>
Request Body schema: application/json
required
enabled
required
boolean
evacuate
boolean

Also submit a host.evacuate job (only with enabled).

max_failures
integer >= 0

Failed migrations tolerated before the evacuation stops (default 0).

Responses

Request samples

Content type
application/json
{
  • "enabled": true,
  • "evacuate": true,
  • "max_failures": 0
}

Response samples

Content type
application/json
{
  • "host": {
    },
  • "job": {
    }
}

Datastores; a shared storage appears once per cluster, a local one once per host (ADR 0016)

Authorizations:
bearerAuth
query Parameters
cluster_id
string <uuid>
host_id
string <uuid>

Datastores visible on this host.

q
string <= 200 characters

Case-insensitive substring match on name.

limit
integer [ 1 .. 5000 ]
Default: 1000

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

vSwitches (bridges) with their uplinks and port groups, folded per cluster (ADR 0016)

Authorizations:
bearerAuth
query Parameters
cluster_id
string <uuid>
host_id
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Define a named VLAN on a vSwitch (ADR 0035)

Authorizations:
bearerAuth
Request Body schema: application/json
required
cluster_id
required
string <uuid>
vswitch
required
string^[A-Za-z0-9_.-]{1,32}$
vlan_id
required
integer [ 1 .. 4094 ]
name
required
string [ 1 .. 64 ] characters

Responses

Request samples

Content type
application/json
{
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "vswitch": "string",
  • "vlan_id": 1,
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "name": "string",
  • "vlan_id": 0,
  • "host_count": 0,
  • "comment": "string",
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "source": "host"
}

Remove a port group defined in the panel

Authorizations:
bearerAuth
path Parameters
portGroupId
required
string <uuid>

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

Recent Proxmox tasks, newest first

Authorizations:
bearerAuth
query Parameters
limit
integer [ 1 .. 500 ]
Default: 50
cursor
string <= 1024 characters
cluster_id
string <uuid>
host
string <= 200 characters

Host (node) name.

object_id
string <= 200 characters

Task object, e.g. the VMID.

status
string (TaskStatus)
Enum: "running" "ok" "error"

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "next_cursor": "string"
}

Inventory totals for dashboards

Authorizations:
bearerAuth
query Parameters
cluster_id
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "clusters": 0,
  • "clusters_online": 0,
  • "clusters_degraded": 0,
  • "clusters_offline": 0,
  • "hosts": 0,
  • "hosts_online": 0,
  • "hosts_maintenance": 0,
  • "cpu_cores": 0,
  • "memory_bytes": 0,
  • "vms": 0,
  • "vms_running": 0,
  • "vcpus_allocated": 0,
  • "memory_allocated_bytes": 0,
  • "vms_ha": 0,
  • "vms_ha_error": 0,
  • "datastores": 0,
  • "storage_total_bytes": 0,
  • "storage_used_bytes": 0
}

Search clusters, hosts (name, IP address), VMs (name, VMID, tag) and datastores

Authorizations:
bearerAuth
query Parameters
q
required
string [ 1 .. 200 ] characters
limit
integer [ 1 .. 50 ]
Default: 30

Total results; at most six of each kind.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

A row range of the filtered, sorted VM set for the VM grid (ADR 0017)

Authorizations:
bearerAuth
query Parameters
cluster_id
Array of strings <uuid> <= 200 items [ items <uuid > ]

Any of these clusters.

host_id
Array of strings <uuid> <= 200 items [ items <uuid > ]

Any of these hosts.

status
Array of strings (VMStatus) <= 200 items
Items Enum: "running" "stopped" "paused" "unknown"

Any of these power states.

kind
Array of strings <= 200 items
Items Enum: "qemu" "lxc"

Any of these guest kinds.

pool_id
Array of strings <uuid> <= 200 items [ items <uuid > ]

Any of these resource pools; the nil UUID means in no pool.

owner_tenant_id
Array of strings <uuid> <= 200 items [ items <uuid > ]

Any of these owner tenants.

tag
Array of strings <= 200 items [ items <= 200 characters ]

VMs carrying any of these tags.

q
string <= 200 characters

Case-insensitive substring of the name or a tag, or an exact VMID.

template
boolean
Default: false

Templates instead of guests.

sort
string
Default: "name"
Enum: "name" "-name" "vmid" "-vmid" "status" "-status" "kind" "-kind" "cluster" "-cluster" "host" "-host" "pool" "-pool" "vcpus" "-vcpus" "memory" "-memory" "disk" "-disk" "created_at" "-created_at"

Sort key, - prefix for descending. Ties break on name, then id.

offset
integer [ 0 .. 100000 ]
Default: 0
limit
integer [ 1 .. 500 ]
Default: 200

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "total": 0,
  • "offset": 0
}

Values and counts of each VM grid filter over the visible VMs

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "status": [
    ],
  • "kind": [
    ],
  • "cluster": [
    ],
  • "host": [
    ],
  • "pool": [
    ],
  • "owner": [
    ],
  • "tag": [
    ]
}

The filtered, sorted VM set as CSV

Authorizations:
bearerAuth
query Parameters
cluster_id
Array of strings <uuid> <= 200 items [ items <uuid > ]

Any of these clusters.

host_id
Array of strings <uuid> <= 200 items [ items <uuid > ]

Any of these hosts.

status
Array of strings (VMStatus) <= 200 items
Items Enum: "running" "stopped" "paused" "unknown"

Any of these power states.

kind
Array of strings <= 200 items
Items Enum: "qemu" "lxc"

Any of these guest kinds.

pool_id
Array of strings <uuid> <= 200 items [ items <uuid > ]

Any of these resource pools; the nil UUID means in no pool.

owner_tenant_id
Array of strings <uuid> <= 200 items [ items <uuid > ]

Any of these owner tenants.

tag
Array of strings <= 200 items [ items <= 200 characters ]

VMs carrying any of these tags.

q
string <= 200 characters

Case-insensitive substring of the name or a tag, or an exact VMID.

template
boolean
Default: false

Templates instead of guests.

sort
string
Default: "name"
Enum: "name" "-name" "vmid" "-vmid" "status" "-status" "kind" "-kind" "cluster" "-cluster" "host" "-host" "pool" "-pool" "vcpus" "-vcpus" "memory" "-memory" "disk" "-disk" "created_at" "-created_at"

Sort key, - prefix for descending. Ties break on name, then id.

columns
Array of strings <= 30 items
Items Enum: "name" "vmid" "status" "kind" "cluster" "host" "pool" "owner_tenant" "vcpus" "memory_bytes" "disk_bytes" "tags" "ha_state" "lock" "created_at" "id"

Column keys in output order. Default is every column.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

The caller's saved views of a page and the views others shared in the tenant

Authorizations:
bearerAuth
query Parameters
page
required
string (SavedViewPage)
Value: "vms"

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

createSavedView

Authorizations:
bearerAuth
Request Body schema: application/json
required
page
required
string (SavedViewPage)
Value: "vms"
name
required
string [ 1 .. 80 ] characters
required
object

Opaque UI state

shared
boolean
Default: false

Responses

Request samples

Content type
application/json
{
  • "page": "vms",
  • "name": "string",
  • "state": { },
  • "shared": false
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "page": "vms",
  • "name": "string",
  • "state": { },
  • "shared": true,
  • "own": true,
  • "owner_name": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

updateSavedView

Only the owner can change a view; another user's view is not found.

Authorizations:
bearerAuth
path Parameters
viewId
required
string <uuid>
Request Body schema: application/json
required
page
required
string (SavedViewPage)
Value: "vms"
name
required
string [ 1 .. 80 ] characters
required
object

Opaque UI state

shared
boolean
Default: false

Responses

Request samples

Content type
application/json
{
  • "page": "vms",
  • "name": "string",
  • "state": { },
  • "shared": false
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "page": "vms",
  • "name": "string",
  • "state": { },
  • "shared": true,
  • "own": true,
  • "owner_name": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

deleteSavedView

Authorizations:
bearerAuth
path Parameters
viewId
required
string <uuid>

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

listResourcePools

Authorizations:
bearerAuth
query Parameters
limit
integer [ 1 .. 500 ]
Default: 50
cursor
string <= 1024 characters
sort
string
Default: "name"
Enum: "name" "-name" "created_at" "-created_at"

name, -name, created_at or -created_at. Default name.

q
string <= 200 characters

Case-insensitive substring match on name.

cluster_id
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "next_cursor": "string"
}

listVMs

Authorizations:
bearerAuth
query Parameters
limit
integer [ 1 .. 500 ]
Default: 50
cursor
string <= 1024 characters
sort
string
Default: "name"
Enum: "name" "-name" "created_at" "-created_at"

name, -name, created_at or -created_at. Default name.

q
string <= 200 characters

Case-insensitive substring match on name.

cluster_id
string <uuid>
host_id
string <uuid>
pool_id
string <uuid>
status
string (VMStatus)
Enum: "running" "stopped" "paused" "unknown"
tag
string <= 200 characters
in_pool
boolean

false: only guests without a pool (folder).

template
boolean

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "next_cursor": "string"
}

getVM

Authorizations:
bearerAuth
path Parameters
vmId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "shared_actions": [
    ],
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "host_id": "eb4e20fc-2b4a-4d0c-811f-48abcf12b89b",
  • "vmid": 0,
  • "name": "string",
  • "status": "running",
  • "tags": [
    ],
  • "pool_id": "bd9ee216-b2f2-496a-bbe1-31b86a2c3c43",
  • "owner_tenant_id": "596e3cbe-035a-4620-883e-c767879fc8e0",
  • "vcpus": 0,
  • "memory_bytes": 0,
  • "disk_bytes": 0,
  • "kind": "qemu",
  • "template": true,
  • "created_at": "2019-08-24T14:15:22Z"
}

Open a console session for a running VM (ADR 0023)

vnc for qemu guests, terminal for lxc containers. The session id is valid for 60 seconds and once: connect to GET /console and name it in the first message.

Authorizations:
bearerAuth
path Parameters
vmId
required
string <uuid>
Request Body schema: application/json
required
type
required
string
Enum: "vnc" "terminal"

Responses

Request samples

Content type
application/json
{
  • "type": "vnc"
}

Response samples

Content type
application/json
{
  • "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82",
  • "type": "vnc",
  • "expires_at": "2019-08-24T14:15:22Z"
}

A VM's virtual hardware as last read by its connector (ADR 0037)

Authorizations:
bearerAuth
path Parameters
vmId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "hardware": {
    },
  • "updated_at": "2019-08-24T14:15:22Z"
}

Ask the connector to read the VM's configuration again; at most one refresh per VM per minute

Authorizations:
bearerAuth
path Parameters
vmId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "vm_id": "9a025db5-7896-46f6-883f-28fe3549d7b4",
  • "type": "vm.start",
  • "status": "queued",
  • "upid": "string",
  • "progress": 0,
  • "error_code": "string",
  • "detail": "string",
  • "idempotency_key": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "expires_at": "2019-08-24T14:15:22Z",
  • "finished_at": "2019-08-24T14:15:22Z"
}

A VM's snapshots as last reported by its connector (ADR 0020 §3)

Authorizations:
bearerAuth
path Parameters
vmId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "updated_at": "2019-08-24T14:15:22Z"
}

Ask the connector for a fresh snapshot list; at most one refresh per VM per minute

Authorizations:
bearerAuth
path Parameters
vmId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "vm_id": "9a025db5-7896-46f6-883f-28fe3549d7b4",
  • "type": "vm.start",
  • "status": "queued",
  • "upid": "string",
  • "progress": 0,
  • "error_code": "string",
  • "detail": "string",
  • "idempotency_key": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "expires_at": "2019-08-24T14:15:22Z",
  • "finished_at": "2019-08-24T14:15:22Z"
}

Hosts of the VM's cluster ranked as migration targets (ADR 0021 §2)

Authorizations:
bearerAuth
path Parameters
vmId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Hosts of the cluster ranked for a new VM of the given size (ADR 0025 §1)

Authorizations:
bearerAuth
path Parameters
clusterId
required
string <uuid>
query Parameters
vcpus
required
integer [ 1 .. 8192 ]
memory_mib
required
integer [ 16 .. 4194304 ]

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Console WebSocket (ADR 0023)

The first client message is {"type":"auth","token":"<access token>","tenant":"<acting tenant, optional>", "session":"<session id>"}; the server answers {"type":"ready"}. The client then sends {"type":"start"} and from then on the connection carries the console: raw VNC bytes (binary) or Proxmox termproxy frames (0:<len>:<data> input, 1:<cols>:<rows>: resize; output binary). Close codes: 4401 unauthenticated, 4403 forbidden, 4404 unknown or used session, 4409 console refused by the cluster, 4500 stream broken.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

connectors

The cluster's current connector

Authorizations:
bearerAuth
path Parameters
clusterId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "status": "pending",
  • "hostname": "string",
  • "version": "string",
  • "active_endpoint": "string",
  • "pve_reachable": true,
  • "nodes_total": 0,
  • "nodes_online": 0,
  • "buffered_events": 0,
  • "last_seen_at": "2019-08-24T14:15:22Z",
  • "registered_at": "2019-08-24T14:15:22Z",
  • "cert_not_after": "2019-08-24T14:15:22Z",
  • "token_expires_at": "2019-08-24T14:15:22Z",
  • "created_at": "2019-08-24T14:15:22Z"
}

Revoke every connector of the cluster

Authorizations:
bearerAuth
path Parameters
clusterId
required
string <uuid>

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

Issue a new one-time registration token (reinstall or replacement)

The current connector keeps working until a connector registers with the new token.

Authorizations:
bearerAuth
path Parameters
clusterId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "connector_id": "9389ba6f-3696-4571-84d4-34d588c4b109",
  • "token": "string",
  • "expires_at": "2019-08-24T14:15:22Z"
}

Connect an existing cluster with a managed connector (another access level or a new token, ADR 0034)

Authorizations:
bearerAuth
path Parameters
clusterId
required
string <uuid>
Request Body schema: application/json
required
endpoint
required
string [ 1 .. 300 ] characters
username
required
string [ 1 .. 200 ] characters
password
required
string [ 1 .. 500 ] characters
fingerprint
required
string [ 1 .. 200 ] characters
access
required
string
Enum: "read_only" "full"

Responses

Request samples

Content type
application/json
{
  • "endpoint": "string",
  • "username": "string",
  • "password": "string",
  • "fingerprint": "string",
  • "access": "read_only"
}

Response samples

Content type
application/json
{
  • "cluster": {
    },
  • "access": "read_only",
  • "role": "string",
  • "endpoints": [
    ]
}

Whether clusters can be added from the panel on this installation (ADR 0034)

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "available": true
}

Add a cluster from the panel

Logs in to PVE once with the administrator's password (never stored), creates a PVE user of its own (nexhypro-panel-…@pve) with the role of the access level and an API token, and starts a connector for the cluster on the panel host. The fingerprint is the one the probe returned and the administrator confirmed.

Authorizations:
bearerAuth
Request Body schema: application/json
required
endpoint
required
string [ 1 .. 300 ] characters
username
required
string [ 1 .. 200 ] characters
password
required
string [ 1 .. 500 ] characters
fingerprint
required
string [ 1 .. 200 ] characters
access
required
string
Enum: "read_only" "full"
site_id
required
string <uuid>
name
required
string [ 1 .. 200 ] characters

Responses

Request samples

Content type
application/json
{
  • "endpoint": "string",
  • "username": "string",
  • "password": "string",
  • "fingerprint": "string",
  • "access": "read_only",
  • "site_id": "72771e6a-6f5e-4de4-a5b9-1266c4197811",
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "cluster": {
    },
  • "access": "read_only",
  • "role": "string",
  • "endpoints": [
    ]
}

Read a PVE cluster before adding it (certificate fingerprint, name, version and nodes)

Authorizations:
bearerAuth
Request Body schema: application/json
required
endpoint
required
string [ 1 .. 300 ] characters

https://host:8006, host:port or host

username
required
string [ 1 .. 200 ] characters

root@pam; a name without realm means @pam

password
required
string [ 1 .. 500 ] characters

Responses

Request samples

Content type
application/json
{
  • "endpoint": "string",
  • "username": "string",
  • "password": "string"
}

Response samples

Content type
application/json
{
  • "name": "string",
  • "version": "string",
  • "fingerprint": "string",
  • "nodes": [
    ]
}

Connector bootstrap; exchanges a one-time token and a CSR for its identity (ADR 0009)

Request Body schema: application/json
required
token
required
string <= 200 characters
csr
required
string <= 16384 characters

PEM certificate request for the connector's key.

hostname
string <= 255 characters
version
string <= 64 characters

Responses

Request samples

Content type
application/json
{
  • "token": "string",
  • "csr": "string",
  • "hostname": "string",
  • "version": "string"
}

Response samples

Content type
application/json
{
  • "connector_id": "string",
  • "tenant_id": "string",
  • "cluster_id": "string",
  • "certificate": "string",
  • "ca_certificate": "string",
  • "nats_url": "string",
  • "metrics_url": "string",
  • "command_public_key": "string",
  • "not_after": "2019-08-24T14:15:22Z"
}

commands

Start, stop, shut down, reboot, suspend or resume a VM

Authorizations:
bearerAuth
path Parameters
vmId
required
string <uuid>
header Parameters
Idempotency-Key
required
string [ 1 .. 200 ] characters

Client-chosen key, unique per tenant. Repeating a request with the same key returns the original command instead of creating a new one.

Request Body schema: application/json
required
action
required
string
Enum: "start" "stop" "shutdown" "reboot" "suspend" "resume"

Responses

Request samples

Content type
application/json
{
  • "action": "start"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "vm_id": "9a025db5-7896-46f6-883f-28fe3549d7b4",
  • "type": "vm.start",
  • "status": "queued",
  • "upid": "string",
  • "progress": 0,
  • "error_code": "string",
  • "detail": "string",
  • "idempotency_key": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "expires_at": "2019-08-24T14:15:22Z",
  • "finished_at": "2019-08-24T14:15:22Z"
}

Migrate a VM to another host of its cluster Deprecated

Direct command kept for compatibility. Submit a vm.migrate job (POST /jobs) instead; only jobs honour the per-cluster and per-host migration limits (ADR 0019 §6).

Authorizations:
bearerAuth
path Parameters
vmId
required
string <uuid>
header Parameters
Idempotency-Key
required
string [ 1 .. 200 ] characters

Client-chosen key, unique per tenant. Repeating a request with the same key returns the original command instead of creating a new one.

Request Body schema: application/json
required
target_host_id
required
string <uuid>
online
boolean
Default: true

Live migration (restart migration for containers).

Responses

Request samples

Content type
application/json
{
  • "target_host_id": "5fa08e70-cef9-414c-b387-7bde7b6f4011",
  • "online": true
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "vm_id": "9a025db5-7896-46f6-883f-28fe3549d7b4",
  • "type": "vm.start",
  • "status": "queued",
  • "upid": "string",
  • "progress": 0,
  • "error_code": "string",
  • "detail": "string",
  • "idempotency_key": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "expires_at": "2019-08-24T14:15:22Z",
  • "finished_at": "2019-08-24T14:15:22Z"
}

Commands of the tenant, newest first

Authorizations:
bearerAuth
query Parameters
limit
integer [ 1 .. 500 ]
Default: 50
cursor
string <= 1024 characters
vm_id
string <uuid>
cluster_id
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "next_cursor": "string"
}

getCommand

Authorizations:
bearerAuth
path Parameters
commandId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "vm_id": "9a025db5-7896-46f6-883f-28fe3549d7b4",
  • "type": "vm.start",
  • "status": "queued",
  • "upid": "string",
  • "progress": 0,
  • "error_code": "string",
  • "detail": "string",
  • "idempotency_key": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "expires_at": "2019-08-24T14:15:22Z",
  • "finished_at": "2019-08-24T14:15:22Z"
}

metrics

Instant MetricsQL query, restricted to the caller's tenant and clusters (ADR 0011 §3)

Authorizations:
bearerAuth
query Parameters
query
required
string [ 1 .. 8192 ] characters
time
string <date-time>

Evaluation time. Default now.

Responses

Response samples

Content type
application/json
{
  • "series": [
    ]
}

Range MetricsQL query. Ranges older than 30 days read 5-minute downsampled data.

Authorizations:
bearerAuth
query Parameters
query
required
string [ 1 .. 8192 ] characters
start
required
string <date-time>
end
string <date-time>

Default now.

step
integer [ 1 .. 86400 ]
Default: 60

Seconds between points. Raised when the range would exceed 11000 points.

Responses

Response samples

Content type
application/json
{
  • "series": [
    ]
}

Linear-trend forecast of datastore and cluster memory usage (ADR 0014)

Authorizations:
bearerAuth
query Parameters
cluster_id
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "generated_at": "2019-08-24T14:15:22Z",
  • "window_days": 0,
  • "datastores": [
    ],
  • "memory": [
    ]
}

live

Live update WebSocket (ADR 0018)

Upgrades to a WebSocket that pushes change notifications: {"type":"changed","topics":["inventory","tasks","commands","alerts"],"clusters":["<uuid>"]}. An empty or missing clusters means every cluster. Clients refetch the affected resources through the REST endpoints. Without an Authorization header on the upgrade, the first client message must be {"type":"auth","token":"<access token>","tenant":"<acting tenant id, optional>"}; the server answers {"type":"hello"} or closes with 4401 (unauthenticated) or 4403 (forbidden).

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

jobs

Jobs (ADR 0019), newest first; children of bulk jobs only with parent_id

Authorizations:
bearerAuth
query Parameters
cluster_id
string <uuid>
target_id
string <uuid>
parent_id
string <uuid>
mine
boolean

Only jobs the caller submitted (the live task drawer).

status
Array of strings (JobStatus) <= 6 items
Items Enum: "awaiting_approval" "queued" "running" "succeeded" "failed" "canceled"
limit
integer [ 1 .. 500 ]
Default: 50
cursor
string <= 1024 characters

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "next_cursor": "string"
}

Submit a job

Job types and their params:

  • vm.migrate (target: VM, permission vm.migrate): {"target_host_id": uuid, "online": bool (default true)}. Bounded by the per-cluster and per-host migration limits.
  • vm.snapshot.create (vm.snapshot): {"name": string, "description": string, "vmstate": bool}.
  • vm.snapshot.rollback, vm.snapshot.delete (vm.snapshot): {"name": string}.
  • vm.clone (vm.create): {"name": DNS name, "target_host_id": uuid, "full": bool (default true), "start": bool}. The result holds the new vmid and vm_id.
  • vm.deploy (vm.create, target: a template): {"name", "target_host_id", "start" (default true), "cores", "sockets", "memory_mib", "disk" (default scsi0), "disk_gib", "ciuser", "sshkeys", "ipconfig0", "nameserver", "searchdomain", "description"}.
  • vm.reconfigure (vm.config): {"cores", "sockets", "memory_mib", "description", "onboot", "disk": {"name", "size_gib"}, "add_nics": [{"bridge", "vlan", "model"}], "add_disks": [{"datastore", "size_gib", "bus"}], "cdrom": {"iso"}}; disks only grow. New network adapters, disks and the CD/DVD medium apply to QEMU VMs (ADR 0036): model is virtio (default), e1000, vmxnet3 or rtl8139; bus is scsi (default), virtio or sata; iso is a volume ID from the host's isos, or empty to eject. New disks count against the disk quota.
  • vm.tags (vm.config): {"tags": [string]}, the complete list.
  • vm.pool (vm.config): {"pool_id": uuid or null}.
  • vm.power (vm.power): {"action": "start" | "shutdown" | "reboot" | "stop" | "suspend" | "resume"}; refused when the action does not apply to the VM's state.
  • vm.tags.update (vm.config): {"add": [string], "remove": [string]}. vm.migrate, vm.clone and vm.deploy accept "placement": "auto" instead of a target host (ADR 0021 §2). vm.clone and vm.deploy are checked against the tenant's quota (409 quota_exceeded, ADR 0021 §3). See ADR 0020.
Authorizations:
bearerAuth
header Parameters
Idempotency-Key
required
string [ 1 .. 200 ] characters

Client-chosen key, unique per tenant. Repeating a request with the same key returns the original command instead of creating a new one.

Request Body schema: application/json
required
type
required
string
Enum: "vm.migrate" "vm.snapshot.create" "vm.snapshot.rollback" "vm.snapshot.delete" "vm.clone" "vm.deploy" "vm.reconfigure" "vm.tags" "vm.tags.update" "vm.pool" "vm.power" "vm.create" "host.evacuate" "vm.ha.add" "vm.ha.remove" "vm.delete"
target_id
required
string <uuid>

The VM; the cluster for vm.create; the host for host.evacuate (ADR 0025).

object

Type-specific parameters. vm.delete needs confirm_name (the VM's name) and, for a template, allow_template: true (ADR 0033 §1).

Responses

Request samples

Content type
application/json
{
  • "type": "vm.migrate",
  • "target_id": "d3bcdc92-4191-401b-ad0c-42056c6efab9",
  • "params": { }
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",
  • "type": "vm.migrate",
  • "target_type": "vm",
  • "target_id": "d3bcdc92-4191-401b-ad0c-42056c6efab9",
  • "params": { },
  • "status": "awaiting_approval",
  • "progress": 0,
  • "attempts": 0,
  • "max_attempts": 0,
  • "cancel_requested": true,
  • "error_code": "string",
  • "result": { },
  • "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "started_at": "2019-08-24T14:15:22Z",
  • "finished_at": "2019-08-24T14:15:22Z",
  • "steps": [
    ]
}

Run one action on many VMs in waves (ADR 0021 §1)

Actions: vm.power, vm.snapshot.create, vm.tags.update, vm.pool, vm.migrate (use {"placement": "auto"} to spread the VMs). The selection is resolved now and stored with the job (at most 10,000 VMs); VMs the caller lacks the action's permission on are excluded and counted.

Authorizations:
bearerAuth
header Parameters
Idempotency-Key
required
string [ 1 .. 200 ] characters

Client-chosen key, unique per tenant. Repeating a request with the same key returns the original command instead of creating a new one.

Request Body schema: application/json
required
required
object
required
object
wave_size
integer [ 1 .. 200 ]
Default: 10
max_failures
integer >= 0

Stop after more than this many failed VMs.

Responses

Request samples

Content type
application/json
{
  • "action": {
    },
  • "selection": {
    },
  • "wave_size": 10,
  • "max_failures": 0
}

Response samples

Content type
application/json
{
  • "job": {
    },
  • "selected": 0,
  • "excluded": 0
}

A job with its executed steps

Authorizations:
bearerAuth
path Parameters
jobId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",
  • "type": "vm.migrate",
  • "target_type": "vm",
  • "target_id": "d3bcdc92-4191-401b-ad0c-42056c6efab9",
  • "params": { },
  • "status": "awaiting_approval",
  • "progress": 0,
  • "attempts": 0,
  • "max_attempts": 0,
  • "cancel_requested": true,
  • "error_code": "string",
  • "result": { },
  • "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "started_at": "2019-08-24T14:15:22Z",
  • "finished_at": "2019-08-24T14:15:22Z",
  • "steps": [
    ]
}

Cancel a job; a running job stops before its next step

Authorizations:
bearerAuth
path Parameters
jobId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",
  • "type": "vm.migrate",
  • "target_type": "vm",
  • "target_id": "d3bcdc92-4191-401b-ad0c-42056c6efab9",
  • "params": { },
  • "status": "awaiting_approval",
  • "progress": 0,
  • "attempts": 0,
  • "max_attempts": 0,
  • "cancel_requested": true,
  • "error_code": "string",
  • "result": { },
  • "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "started_at": "2019-08-24T14:15:22Z",
  • "finished_at": "2019-08-24T14:15:22Z",
  • "steps": [
    ]
}

alerts

Alerts, most recent activity first. Alerts without a cluster need tenant-wide alert.read.

Authorizations:
bearerAuth
query Parameters
limit
integer [ 1 .. 500 ]
Default: 50
cursor
string <= 1024 characters
state
Array of strings (AlertState)
Items Enum: "open" "acknowledged" "silenced" "closed"

Repeat for several; default: every state but closed.

severity
Array of strings (AlertSeverity)
Items Enum: "info" "warning" "critical"
cluster_id
string <uuid>
rule_id
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "next_cursor": "string"
}

Counts of live alerts visible to the caller (the menu badge)

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "open": 0,
  • "acknowledged": 0,
  • "silenced": 0,
  • "open_by_severity": {
    }
}

getAlert

Authorizations:
bearerAuth
path Parameters
alertId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "rule_id": "728c1541-d6d1-4290-9a53-cdf01dd32d60",
  • "rule_name": "string",
  • "builtin_key": "string",
  • "condition": "metric",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "severity": "info",
  • "labels": {
    },
  • "value": 0.1,
  • "threshold": 0.1,
  • "state": "open",
  • "occurrences": 0,
  • "first_seen_at": "2019-08-24T14:15:22Z",
  • "last_seen_at": "2019-08-24T14:15:22Z",
  • "acknowledged_by": "57e93f65-9db5-4b3c-8761-f3edd8ac8276",
  • "acknowledged_at": "2019-08-24T14:15:22Z",
  • "silenced_until": "2019-08-24T14:15:22Z",
  • "maintenance_window_id": "8795cee4-001d-461b-bb1a-8b5850da9393",
  • "closed_at": "2019-08-24T14:15:22Z",
  • "close_reason": "resolved"
}

listAlertEvents

Authorizations:
bearerAuth
path Parameters
alertId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

acknowledgeAlert

Authorizations:
bearerAuth
path Parameters
alertId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "rule_id": "728c1541-d6d1-4290-9a53-cdf01dd32d60",
  • "rule_name": "string",
  • "builtin_key": "string",
  • "condition": "metric",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "severity": "info",
  • "labels": {
    },
  • "value": 0.1,
  • "threshold": 0.1,
  • "state": "open",
  • "occurrences": 0,
  • "first_seen_at": "2019-08-24T14:15:22Z",
  • "last_seen_at": "2019-08-24T14:15:22Z",
  • "acknowledged_by": "57e93f65-9db5-4b3c-8761-f3edd8ac8276",
  • "acknowledged_at": "2019-08-24T14:15:22Z",
  • "silenced_until": "2019-08-24T14:15:22Z",
  • "maintenance_window_id": "8795cee4-001d-461b-bb1a-8b5850da9393",
  • "closed_at": "2019-08-24T14:15:22Z",
  • "close_reason": "resolved"
}

silenceAlert

Authorizations:
bearerAuth
path Parameters
alertId
required
string <uuid>
Request Body schema: application/json
required
until
required
string <date-time>

At most 30 days ahead.

Responses

Request samples

Content type
application/json
{
  • "until": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "rule_id": "728c1541-d6d1-4290-9a53-cdf01dd32d60",
  • "rule_name": "string",
  • "builtin_key": "string",
  • "condition": "metric",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "severity": "info",
  • "labels": {
    },
  • "value": 0.1,
  • "threshold": 0.1,
  • "state": "open",
  • "occurrences": 0,
  • "first_seen_at": "2019-08-24T14:15:22Z",
  • "last_seen_at": "2019-08-24T14:15:22Z",
  • "acknowledged_by": "57e93f65-9db5-4b3c-8761-f3edd8ac8276",
  • "acknowledged_at": "2019-08-24T14:15:22Z",
  • "silenced_until": "2019-08-24T14:15:22Z",
  • "maintenance_window_id": "8795cee4-001d-461b-bb1a-8b5850da9393",
  • "closed_at": "2019-08-24T14:15:22Z",
  • "close_reason": "resolved"
}

unsilenceAlert

Authorizations:
bearerAuth
path Parameters
alertId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "rule_id": "728c1541-d6d1-4290-9a53-cdf01dd32d60",
  • "rule_name": "string",
  • "builtin_key": "string",
  • "condition": "metric",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "severity": "info",
  • "labels": {
    },
  • "value": 0.1,
  • "threshold": 0.1,
  • "state": "open",
  • "occurrences": 0,
  • "first_seen_at": "2019-08-24T14:15:22Z",
  • "last_seen_at": "2019-08-24T14:15:22Z",
  • "acknowledged_by": "57e93f65-9db5-4b3c-8761-f3edd8ac8276",
  • "acknowledged_at": "2019-08-24T14:15:22Z",
  • "silenced_until": "2019-08-24T14:15:22Z",
  • "maintenance_window_id": "8795cee4-001d-461b-bb1a-8b5850da9393",
  • "closed_at": "2019-08-24T14:15:22Z",
  • "close_reason": "resolved"
}

Close an alert by hand. A condition that still holds opens a new alert on the next evaluation.

Authorizations:
bearerAuth
path Parameters
alertId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "rule_id": "728c1541-d6d1-4290-9a53-cdf01dd32d60",
  • "rule_name": "string",
  • "builtin_key": "string",
  • "condition": "metric",
  • "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
  • "severity": "info",
  • "labels": {
    },
  • "value": 0.1,
  • "threshold": 0.1,
  • "state": "open",
  • "occurrences": 0,
  • "first_seen_at": "2019-08-24T14:15:22Z",
  • "last_seen_at": "2019-08-24T14:15:22Z",
  • "acknowledged_by": "57e93f65-9db5-4b3c-8761-f3edd8ac8276",
  • "acknowledged_at": "2019-08-24T14:15:22Z",
  • "silenced_until": "2019-08-24T14:15:22Z",
  • "maintenance_window_id": "8795cee4-001d-461b-bb1a-8b5850da9393",
  • "closed_at": "2019-08-24T14:15:22Z",
  • "close_reason": "resolved"
}

Built-in rules first, then custom rules

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

createAlertRule

Authorizations:
bearerAuth
Request Body schema: application/json
required
name
required
string [ 1 .. 200 ] characters
enabled
required
boolean
condition
required
string (AlertCondition)
Enum: "metric" "node_offline" "quorum_lost" "connector_stale" "task_failed" "backup_stale" "license_expiring"
required
object (AlertRuleParams)

Parameters of the rule's condition; other fields are ignored.

severity
required
string (AlertSeverity)
Enum: "info" "warning" "critical"
for_seconds
required
integer [ 0 .. 86400 ]
cluster_ids
required
Array of strings <uuid> <= 200 items [ items <uuid > ]

Empty means every cluster.

required
Array of objects (LabelMatcher) <= 20 items

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "enabled": true,
  • "condition": "metric",
  • "params": {
    },
  • "severity": "info",
  • "for_seconds": 0,
  • "cluster_ids": [
    ],
  • "matchers": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "builtin_key": "string",
  • "name": "string",
  • "enabled": true,
  • "condition": "metric",
  • "params": {
    },
  • "severity": "info",
  • "for_seconds": 0,
  • "cluster_ids": [
    ],
  • "matchers": [
    ],
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Replace a rule. The condition cannot change; built-in rules can be changed and disabled.

Authorizations:
bearerAuth
path Parameters
ruleId
required
string <uuid>
Request Body schema: application/json
required
name
required
string [ 1 .. 200 ] characters
enabled
required
boolean
condition
required
string (AlertCondition)
Enum: "metric" "node_offline" "quorum_lost" "connector_stale" "task_failed" "backup_stale" "license_expiring"
required
object (AlertRuleParams)

Parameters of the rule's condition; other fields are ignored.

severity
required
string (AlertSeverity)
Enum: "info" "warning" "critical"
for_seconds
required
integer [ 0 .. 86400 ]
cluster_ids
required
Array of strings <uuid> <= 200 items [ items <uuid > ]

Empty means every cluster.

required
Array of objects (LabelMatcher) <= 20 items

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "enabled": true,
  • "condition": "metric",
  • "params": {
    },
  • "severity": "info",
  • "for_seconds": 0,
  • "cluster_ids": [
    ],
  • "matchers": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "builtin_key": "string",
  • "name": "string",
  • "enabled": true,
  • "condition": "metric",
  • "params": {
    },
  • "severity": "info",
  • "for_seconds": 0,
  • "cluster_ids": [
    ],
  • "matchers": [
    ],
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Delete a custom rule; its live alerts close on the next evaluation. Built-in rules cannot be deleted.

Authorizations:
bearerAuth
path Parameters
ruleId
required
string <uuid>

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

listMaintenanceWindows

Authorizations:
bearerAuth
query Parameters
current
boolean
Default: false

Only windows that have not ended.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

createMaintenanceWindow

Authorizations:
bearerAuth
Request Body schema: application/json
required
name
required
string [ 1 .. 200 ] characters
starts_at
required
string <date-time>
ends_at
required
string <date-time>
cluster_ids
required
Array of strings <uuid> <= 200 items [ items <uuid > ]

Empty means every cluster.

required
Array of objects (LabelMatcher) <= 20 items

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "starts_at": "2019-08-24T14:15:22Z",
  • "ends_at": "2019-08-24T14:15:22Z",
  • "cluster_ids": [
    ],
  • "matchers": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "starts_at": "2019-08-24T14:15:22Z",
  • "ends_at": "2019-08-24T14:15:22Z",
  • "cluster_ids": [
    ],
  • "matchers": [
    ],
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

updateMaintenanceWindow

Authorizations:
bearerAuth
path Parameters
windowId
required
string <uuid>
Request Body schema: application/json
required
name
required
string [ 1 .. 200 ] characters
starts_at
required
string <date-time>
ends_at
required
string <date-time>
cluster_ids
required
Array of strings <uuid> <= 200 items [ items <uuid > ]

Empty means every cluster.

required
Array of objects (LabelMatcher) <= 20 items

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "starts_at": "2019-08-24T14:15:22Z",
  • "ends_at": "2019-08-24T14:15:22Z",
  • "cluster_ids": [
    ],
  • "matchers": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "starts_at": "2019-08-24T14:15:22Z",
  • "ends_at": "2019-08-24T14:15:22Z",
  • "cluster_ids": [
    ],
  • "matchers": [
    ],
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

deleteMaintenanceWindow

Authorizations:
bearerAuth
path Parameters
windowId
required
string <uuid>

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

listNotificationChannels

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

createNotificationChannel

Authorizations:
bearerAuth
Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters
kind
required
string (NotificationChannelKind)
Enum: "email" "slack" "teams" "webhook" "pagerduty" "opsgenie"
enabled
required
boolean
required
object

email: to[], from, smtp_host, smtp_port, security (starttls|tls|none), username; webhook: url, allow_insecure; opsgenie: region (us|eu)

object

Write-only. email: password; slack/teams: webhook_url; webhook: hmac_secret; pagerduty: routing_key; opsgenie: api_key

min_severity
required
string (AlertSeverity)
Enum: "info" "warning" "critical"
cluster_ids
required
Array of strings <uuid> <= 200 items [ items <uuid > ]

Empty means every cluster.

required
Array of objects (LabelMatcher) <= 20 items
send_resolved
required
boolean
approvals
boolean

Also deliver approval requests and decisions (ADR 0022 §4); email, Slack, Teams and webhook only.

locale
required
string
Enum: "en" "tr"

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "kind": "email",
  • "enabled": true,
  • "config": { },
  • "secrets": {
    },
  • "min_severity": "info",
  • "cluster_ids": [
    ],
  • "matchers": [
    ],
  • "send_resolved": true,
  • "approvals": true,
  • "locale": "en"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "kind": "email",
  • "enabled": true,
  • "config": { },
  • "secrets_set": [
    ],
  • "min_severity": "info",
  • "cluster_ids": [
    ],
  • "matchers": [
    ],
  • "send_resolved": true,
  • "approvals": true,
  • "locale": "en",
  • "status": {
    },
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Replace a channel. Omitted secrets are kept; an empty string removes one. The kind cannot change.

Authorizations:
bearerAuth
path Parameters
channelId
required
string <uuid>
Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters
kind
required
string (NotificationChannelKind)
Enum: "email" "slack" "teams" "webhook" "pagerduty" "opsgenie"
enabled
required
boolean
required
object

email: to[], from, smtp_host, smtp_port, security (starttls|tls|none), username; webhook: url, allow_insecure; opsgenie: region (us|eu)

object

Write-only. email: password; slack/teams: webhook_url; webhook: hmac_secret; pagerduty: routing_key; opsgenie: api_key

min_severity
required
string (AlertSeverity)
Enum: "info" "warning" "critical"
cluster_ids
required
Array of strings <uuid> <= 200 items [ items <uuid > ]

Empty means every cluster.

required
Array of objects (LabelMatcher) <= 20 items
send_resolved
required
boolean
approvals
boolean

Also deliver approval requests and decisions (ADR 0022 §4); email, Slack, Teams and webhook only.

locale
required
string
Enum: "en" "tr"

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "kind": "email",
  • "enabled": true,
  • "config": { },
  • "secrets": {
    },
  • "min_severity": "info",
  • "cluster_ids": [
    ],
  • "matchers": [
    ],
  • "send_resolved": true,
  • "approvals": true,
  • "locale": "en"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "kind": "email",
  • "enabled": true,
  • "config": { },
  • "secrets_set": [
    ],
  • "min_severity": "info",
  • "cluster_ids": [
    ],
  • "matchers": [
    ],
  • "send_resolved": true,
  • "approvals": true,
  • "locale": "en",
  • "status": {
    },
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

deleteNotificationChannel

Authorizations:
bearerAuth
path Parameters
channelId
required
string <uuid>

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

Send a test message now

Authorizations:
bearerAuth
path Parameters
channelId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "ok": true,
  • "error": "string"
}

listNotificationDeliveries

Authorizations:
bearerAuth
path Parameters
channelId
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

license

getLicenseSummary

The licence state every signed-in user sees (banners, gated actions). ADR 0029.

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "state": "community",
  • "edition": "community",
  • "version": "string",
  • "read_only": true,
  • "trial": true,
  • "expires_at": "2019-08-24T14:15:22Z",
  • "grace_ends": "2019-08-24T14:15:22Z",
  • "hosts_used": 0,
  • "host_limit": 0,
  • "clusters_used": 0,
  • "cluster_limit": 0,
  • "integrity": "verified",
  • "features": {
    }
}

getLicense

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "summary": {
    },
  • "installation_id": "91166175-c6a9-4caf-88e9-3147ffc9c934",
  • "activation_request": "string",
  • "version": "string",
  • "customer_name": "string",
  • "license_id": "string",
  • "issued_at": "2019-08-24T14:15:22Z",
  • "reason": "string",
  • "min_editions": {
    },
  • "online_activation": true,
  • "portal_configured": true,
  • "last_renew_at": "2019-08-24T14:15:22Z",
  • "last_renew_error": "string",
  • "history": [
    ]
}

uploadLicense

Verifies a signed licence file for this installation and makes it current.

Authorizations:
bearerAuth
Request Body schema: application/json
required
document
required
string [ 2 .. 65536 ] characters

The licence file contents.

Responses

Request samples

Content type
application/json
{
  • "document": "string"
}

Response samples

Content type
application/json
{
  • "summary": {
    },
  • "installation_id": "91166175-c6a9-4caf-88e9-3147ffc9c934",
  • "activation_request": "string",
  • "version": "string",
  • "customer_name": "string",
  • "license_id": "string",
  • "issued_at": "2019-08-24T14:15:22Z",
  • "reason": "string",
  • "min_editions": {
    },
  • "online_activation": true,
  • "portal_configured": true,
  • "last_renew_at": "2019-08-24T14:15:22Z",
  • "last_renew_error": "string",
  • "history": [
    ]
}

activateLicense

Online activation through the licence portal with the customer's activation token. Turns on daily renewal.

Authorizations:
bearerAuth
Request Body schema: application/json
required
token
required
string [ 8 .. 200 ] characters

Responses

Request samples

Content type
application/json
{
  • "token": "stringst"
}

Response samples

Content type
application/json
{
  • "summary": {
    },
  • "installation_id": "91166175-c6a9-4caf-88e9-3147ffc9c934",
  • "activation_request": "string",
  • "version": "string",
  • "customer_name": "string",
  • "license_id": "string",
  • "issued_at": "2019-08-24T14:15:22Z",
  • "reason": "string",
  • "min_editions": {
    },
  • "online_activation": true,
  • "portal_configured": true,
  • "last_renew_at": "2019-08-24T14:15:22Z",
  • "last_renew_error": "string",
  • "history": [
    ]
}

updateLicenseSettings

Authorizations:
bearerAuth
Request Body schema: application/json
required
online_activation
boolean

Renew the licence from the portal every day.

Responses

Request samples

Content type
application/json
{
  • "online_activation": true
}

Response samples

Content type
application/json
{
  • "summary": {
    },
  • "installation_id": "91166175-c6a9-4caf-88e9-3147ffc9c934",
  • "activation_request": "string",
  • "version": "string",
  • "customer_name": "string",
  • "license_id": "string",
  • "issued_at": "2019-08-24T14:15:22Z",
  • "reason": "string",
  • "min_editions": {
    },
  • "online_activation": true,
  • "portal_configured": true,
  • "last_renew_at": "2019-08-24T14:15:22Z",
  • "last_renew_error": "string",
  • "history": [
    ]
}

setup

getSetup

Whether the first-boot wizard is needed (no administrator yet). ADR 0030 §2.

Responses

Response samples

Content type
application/json
{
  • "required": true
}

completeSetup

Creates the provider tenant and its first administrator. Guarded by the one-time setup code.

Request Body schema: application/json
required
code
required
string [ 1 .. 64 ] characters
tenant_name
required
string [ 1 .. 200 ] characters
tenant_slug
required
string [ 1 .. 63 ] characters
admin_email
required
string <= 320 characters
admin_password
required
string <= 1024 characters
display_name
string <= 200 characters

Responses

Request samples

Content type
application/json
{
  • "code": "string",
  • "tenant_name": "string",
  • "tenant_slug": "string",
  • "admin_email": "string",
  • "admin_password": "string",
  • "display_name": "string"
}

Response samples

Content type
application/json
{
  • "tenant_slug": "string"
}

updates

getUpdates

The running version, the release channel, the releases offered by the licence portal and the connector versions (ADR 0030 §4).

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "current_version": "string",
  • "channel": "stable",
  • "online": true,
  • "checked_at": "2019-08-24T14:15:22Z",
  • "error": "string",
  • "releases": [
    ],
  • "connector_release": "string",
  • "connectors": [
    ],
  • "apply_supported": true,
  • "apply": {
    }
}

updateUpdateSettings

Authorizations:
bearerAuth
Request Body schema: application/json
required
channel
string (ReleaseChannel)
Enum: "stable" "beta"

Responses

Request samples

Content type
application/json
{
  • "channel": "stable"
}

Response samples

Content type
application/json
{
  • "current_version": "string",
  • "channel": "stable",
  • "online": true,
  • "checked_at": "2019-08-24T14:15:22Z",
  • "error": "string",
  • "releases": [
    ],
  • "connector_release": "string",
  • "connectors": [
    ],
  • "apply_supported": true,
  • "apply": {
    }
}

checkUpdates

Asks the licence portal for releases now.

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "current_version": "string",
  • "channel": "stable",
  • "online": true,
  • "checked_at": "2019-08-24T14:15:22Z",
  • "error": "string",
  • "releases": [
    ],
  • "connector_release": "string",
  • "connectors": [
    ],
  • "apply_supported": true,
  • "apply": {
    }
}

applyUpdate

Asks the host to install an offered release (ADR 0032 §10). The API writes a signed request that the host's nexhypro-update service picks up; it verifies the release, takes a backup, migrates and rolls back on failure. Progress appears in UpdateStatus.apply. Only Compose and appliance installations with the update service.

Authorizations:
bearerAuth
Request Body schema: application/json
required
version
required
string <= 64 characters

Responses

Request samples

Content type
application/json
{
  • "version": "string"
}

Response samples

Content type
application/json
{
  • "current_version": "string",
  • "channel": "stable",
  • "online": true,
  • "checked_at": "2019-08-24T14:15:22Z",
  • "error": "string",
  • "releases": [
    ],
  • "connector_release": "string",
  • "connectors": [
    ],
  • "apply_supported": true,
  • "apply": {
    }
}

branding

getPublicBranding

A tenant's white-label for the login screen and the shell (ADR 0031 §1). Without a tenant, the installation's only tenant.

query Parameters
tenant
string <= 63 characters

Responses

Response samples

Content type
application/json
{
  • "tenant_slug": "string",
  • "product_name": "string",
  • "primary_color": "string",
  • "primary_color_dark": "string",
  • "logo_url": "string",
  • "logo_small_url": "string",
  • "login_message": {
    },
  • "support_url": "string",
  • "updated_at": "2019-08-24T14:15:22Z"
}

getTenantBranding

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "tenant_slug": "string",
  • "product_name": "string",
  • "primary_color": "string",
  • "primary_color_dark": "string",
  • "logo_url": "string",
  • "logo_small_url": "string",
  • "login_message": {
    },
  • "support_url": "string",
  • "updated_at": "2019-08-24T14:15:22Z"
}

putTenantBranding

Authorizations:
bearerAuth
Request Body schema: application/json
required
product_name
string <= 40 characters
primary_color
string <= 7 characters
primary_color_dark
string <= 7 characters
object <= 20 properties
support_url
string <= 500 characters
object (BrandingLogo)
object (BrandingLogo)

Responses

Request samples

Content type
application/json
{
  • "product_name": "string",
  • "primary_color": "string",
  • "primary_color_dark": "string",
  • "login_message": {
    },
  • "support_url": "string",
  • "logo": {
    },
  • "logo_small": {
    }
}

Response samples

Content type
application/json
{
  • "tenant_slug": "string",
  • "product_name": "string",
  • "primary_color": "string",
  • "primary_color_dark": "string",
  • "logo_url": "string",
  • "logo_small_url": "string",
  • "login_message": {
    },
  • "support_url": "string",
  • "updated_at": "2019-08-24T14:15:22Z"
}

deleteTenantBranding

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/problem+json
{
  • "type": "urn:nexhypro:problem:not_found",
  • "title": "string",
  • "status": 0,
  • "code": "string",
  • "detail": "string",
  • "instance": "string",
  • "errors": [
    ]
}

telemetry

getTelemetry

The consent, the exact report that would be sent, and the last report sent (ADR 0031 §2).

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "enabled": true,
  • "configured": true,
  • "consented_at": "2019-08-24T14:15:22Z",
  • "last_sent_at": "2019-08-24T14:15:22Z",
  • "preview": { },
  • "last_report": { }
}

putTelemetry

Authorizations:
bearerAuth
Request Body schema: application/json
required
enabled
required
boolean

Responses

Request samples

Content type
application/json
{
  • "enabled": true
}

Response samples

Content type
application/json
{
  • "enabled": true,
  • "configured": true,
  • "consented_at": "2019-08-24T14:15:22Z",
  • "last_sent_at": "2019-08-24T14:15:22Z",
  • "preview": { },
  • "last_report": { }
}