Skip to main content

Data Types

This section defines common data structures returned by the API.

Service

Represents a generic service within the Xenyth Cloud.

FieldTypeDescription
idintegerThe unique numeric ID of the service.
namestringA user-friendly name for the service.
typestringThe service type.
service_typestring?Optional, the subtype of a service.
pricenumberAn number containing pricing information.
recurrencestringThe granularity of the price (rounded up to the next..). Can be one of hr, mn or yr
payment_period_lennumberHow many of the payment_period_type per renewal. Typically 1
payment_period_typestringHow often this service is renewed. Can be one of mn or yr
detailsobjectAn object containing service-specific details.
statusstringThe current status of the service. Can be one of active, suspended, nonrenewal, or terminated.
created_onepochTimestamp of when this service was created
changed_onepochTimestamp of when this service was modified
renewed_dateepochTimestamp of when this service was last renewed
terminated_onepochTimestamp of when this service was terminated
addonsarray?Present only on GET. List of addon services for this one.
pageobject?Present only on GET. Relevant page data under page format.

Service Page (page)

Service page data

FieldTypeDescription
graphsbooleanDoes this service have stats?
factsdictionaryDictionary of "facts" by display name
actionsarrayArray of dashboard actions available (Such as start, vnc, reboot)
settings->panelsarrayArray of dashboard settings panels available

Service Page Fact (page->facts)

Service page data facts

FieldTypeDescription
valuestringThe content of the fact
copyableboolean?Show the copy button for this fact
hiddenboolean?This fact is sensitive, hide it and allow toggle

Service Types (stype)

The stype parameter is used to specify the type of service in API endpoints.

CategorystypeProvider/Sub-typeDescription
CloudcloudostkkvmKVM-based cloud servers.
ostksnapshotSnapshots for cloud servers.
ostkblockstorageBlock storage for cloud servers.
cephs3S3-compatible object storage.
fmnbaremetalBare metal servers.
SSH KeysshkeysshkeyManages SSH keys for server access.
DNSdnsdnsManages DNS zones and records.
OtherotheriptransitManages IP transit services.
iprangeManages IP address ranges.
colocationManages server colocation services.