Services API
The commissioning file of this service as base64 encoded content of a buffer
Validation Successful
No content
Validation Error
Invalid Content
POST /api/validate/service HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 28
{
"commissioningFile": "text"
}No content
The commissioning file of this service as base64 encoded content of a buffer
Created service
Validation Error
Invalid Content
Conflict with service current state
Internal Server Error
POST /api/services HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 117
{
"id": "text",
"commissioningFile": "text",
"parameters": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"targetState": "disabled"
}{
"id": "text"
}Parses the commissioning file without installing it and returns the JSON Schema of its parameters.
The commissioning file of this service as base64 encoded content of a buffer
JSON Schema of the service parameters
Request body does not match ServicePostSchemasRequest
Commissioning file could not be parsed or failed validation
Internal error
POST /api/services/parametersSchema HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 28
{
"commissioningFile": "text"
}{
"schemas": {
"type": "object",
"properties": {
"id": {
"type": "string",
"title": "Service ID",
"minLength": 4,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.]*$",
"description": "Letters, numbers, underscore, and period (decimal point) are allowed"
},
"ipAddress": {
"type": "string",
"title": "ipAddress"
},
"port": {
"type": "integer",
"default": 4334,
"title": "port"
}
},
"additionalProperties": false,
"required": [
"ipAddress",
"port",
"id"
]
}
}Id of the service
OK
Id of the service
Indicates if service was completely removed and can be installed again
Ms until service is completely removed. 0 if it's already removed
Internal Error while fetching service deletion status
GET /api/services/{id}/deletion-status HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"serviceID": "text",
"deletionIsComplete": true,
"remainingTimeInMs": 1
}Values of parameters flagged secret: true in the service's parameters schema are write-only and omitted from the parameters object of the response.
Permanent Redirect
GET /api/services/{id} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
Permanent Redirect
No content
Parameters flagged secret: true are write-only: when such a parameter is absent from parameters (or submitted as the mask value *****), the stored value is kept; any other submitted value overwrites it. The stored value is only carried over while the parameter's definition in the commissioning file is unchanged — changing it (constraints, default, description) requires submitting a new value.
Permanent Redirect
PUT /api/services/{id} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
Permanent Redirect
No content
Id of service
OK
The id of the deleted service
Service not found
DELETE /api/services/{id} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"id": "text"
}Id of service
Service dependencies
Ids of dependent cross reference services
Ids of depends on cross reference services
Service not found
GET /api/services/{id}/dependencies HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"dependent": [
"text"
],
"dependsOn": [
"text"
]
}Ingress routes
Invalid request
GET /api/services/ingress-routes HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
[
{
"id": "text",
"containerHost": "text",
"containerPort": 1,
"containerPrefixRewrite": "text",
"ingressPort": 1,
"ingressUrlPrefix": "text",
"type": "text",
"headers": [
"text"
]
}
]Links
Invalid request
GET /api/services/links HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
[
{
"id": "text",
"ingressRoute": "text",
"name": "text",
"href": "text"
}
]Only list on the response resources from enabled services
trueLinks
GET /api/services/all-links HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
Links
[
{
"id": "text",
"name": "text",
"links": []
}
]Id of service
Disable and enable
Service
myServiceMy Servicev1.2.3enableddisabled2025-03-06T22:13:43.065Z2025-03-06T22:13:43.065ZInvalid request
Service not found
PUT /api/services/{id}/operation HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 23
{
"operation": "disable"
}{
"serviceId": "myService",
"name": "My Service",
"version": "v1.2.3",
"targetState": "enabled",
"currentState": "disabled",
"createdAt": "2025-03-06T22:13:43.065Z",
"updatedAt": "2025-03-06T22:13:43.065Z"
}Id of resource runner
OK
The id of the deleted resource runner
Invalid request
DELETE /api/resources/runners/{id} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"id": "text"
}Map of schema name to JSON Schema
Keys are schema names, values are JSON Schema documents. Built-in schemas are the resource schemas baseSchema, connectionSchema, containerSchema, endpointSchema, fileSchema, ingressRouteSchema, linkSchema, mappingSchema, nodeSchema, roleSchema, serverSchema, userSchema, volumeSchema, the shared CybusRule, and one <Protocol>Connection / <Protocol>Endpoint (plus Server / Node variants where the protocol exposes a server) per supported protocol, e.g. MqttConnection, OpcuaEndpoint. Custom schemas added via POST /resources/schemas are keyed by their $id and replace a built-in schema of the same name.
A JSON Schema document.
Internal error
GET /api/resources/schemas HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"roleSchema": {
"type": "object",
"additionalProperties": false,
"required": [
"permissions"
],
"properties": {
"permissions": {
"type": "array",
"items": {
"type": "object",
"required": [
"resource",
"operation",
"context"
],
"properties": {
"resource": {
"type": "string"
},
"operation": {
"type": "string",
"enum": [
"read",
"write",
"readWrite"
]
},
"context": {
"type": "string",
"enum": [
"mqtt",
"http"
]
}
}
}
}
}
}
}List of resources schemas
Resource schemas stored
No content
Invalid request
POST /api/resources/schemas HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"schemas": [
{}
]
}No content
The value used to retrieve services by matching service ID or name
Page to return
1Number of items per page
50Order response by field
serviceIdPossible values: Ascending or descending order
ASCPossible values: Array of services
Internal Server Error
GET /api/v2/services HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"jsonapi": {
"version": "1.1.1"
},
"data": [
{
"serviceId": "myService",
"name": "My Service",
"version": "v1.2.3",
"targetState": "enabled",
"currentState": "disabled",
"createdAt": "2025-03-06T22:13:43.065Z",
"updatedAt": "2025-03-06T22:13:43.065Z"
}
],
"meta": {
"pagination": {
"totalPages": 1,
"totalRows": 1,
"pageNumber": 1,
"totalRowsInPage": 1,
"nextPage": 1,
"rowsPerPage": 50
}
}
}Number of installed Services
{}Internal Server Error
GET /api/v2/services/stats/count HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"jsonapi": {
"version": "1.1.1"
},
"data": {
"servicesCount": 1000
},
"meta": {}
}Page to return
1Number of items per page
50Get paginated list of service IDs for all Services order lexicographically Ascending
Bad Request
Internal Server Error
GET /api/v2/services/ids HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"jsonapi": {
"version": "1.1.1"
},
"data": [
"myService"
],
"meta": {
"pagination": {
"totalPages": 1,
"totalRows": 1,
"pageNumber": 1,
"totalRowsInPage": 1,
"nextPage": 1,
"rowsPerPage": 50
}
}
}Values of parameters flagged secret: true in the service's parameters schema are write-only and omitted from the parameters object of the response.
Id of service
Service
{}Service not found
Internal Error
GET /api/v2/services/{id} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"jsonapi": {
"version": "1.1.1"
},
"data": {
"connectwareServiceUuid": "81a6c550-fad5-11ef-a38c-0242ac120006",
"serviceId": "myService",
"name": "My Service",
"description": "My Service has some resources",
"version": "v1.2.3",
"provider": "Cybus",
"homepage": "cybus.io",
"icon": "TGFyYTwz",
"targetState": "enabled",
"currentState": "disabled",
"totalResources": 105,
"roleCount": 1,
"userCount": 2,
"volumeCount": 3,
"fileCount": 4,
"containerCount": 5,
"ingressRouteCount": 6,
"linkCount": 7,
"nodeCount": 8,
"serverCount": 9,
"connectionCount": 10,
"endpointCount": 11,
"mappingCount": 12,
"createdAt": "2025-03-06T22:13:43.065Z",
"updatedAt": "2025-03-06T22:13:43.065Z",
"parameters": {
"host": "cybus.io",
"port": 443
}
},
"meta": {}
}Parameters flagged secret: true are write-only: when such a parameter is absent from parameters (or submitted as the mask value *****), the stored value is kept; any other submitted value overwrites it. The stored value is only carried over while the parameter's definition in the commissioning file is unchanged — changing it (constraints, default, description) requires submitting a new value.
Id of service
Accepted
{}Bad Request
Invalid Content
Internal Server Error
PUT /api/v2/services/{id} HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 80
{
"parameters": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"commissioningFile": "text"
}{
"jsonapi": {
"version": "1.1.1"
},
"meta": {}
}Id of service
SCF
{}Bad Request
Service not found
Internal Server Error
GET /api/v2/services/{id}/serviceCommissioningFile HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"jsonapi": {
"version": "1.1.1"
},
"data": {
"parameters_schema": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"scf": "text"
},
"meta": {}
}Id of service
filter by runner name
filter by parentResourceId
The value used to retrieve service resources by matching resource name
Page to return
1Number of items per page
50Order response by field
resourceIdPossible values: Ascending or descending order
ASCPossible values: Only list on the response resources from enabled services
falseArray of services
Bad Request
Internal Server Error
GET /api/v2/services/{serviceId}/resources HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"jsonapi": {
"version": "1.1"
},
"data": [
{
"protocol": "text",
"category": "Node",
"parentResourceId": "text",
"resourceConfig": {
"args": {
"operation": "serverProvides",
"topic": "text"
}
}
}
],
"meta": {
"pagination": {
"totalPages": 1,
"totalRows": 1,
"pageNumber": 1,
"totalRowsInPage": 1,
"nextPage": 1,
"rowsPerPage": 50
}
}
}Resource runner name
Filter by parent of requested resources
The value used to retrieve services resources by matching resource name
Page to return
1Number of items per page
50Order response by field
resourceIdPossible values: Ascending or descending order
ASCPossible values: Only list on the response resources from enabled services
falseArray of resources
Bad Request
Internal Server Error
GET /api/v2/resources HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"jsonapi": {
"version": "1.1"
},
"data": [
{
"protocol": "text",
"category": "Node",
"parentResourceId": "text",
"resourceConfig": {
"args": {
"operation": "serverProvides",
"topic": "text"
}
}
}
],
"meta": {
"pagination": {
"totalPages": 1,
"totalRows": 1,
"pageNumber": 1,
"totalRowsInPage": 1,
"nextPage": 1,
"rowsPerPage": 50
}
}
}Id of resource
Resource
{}Resource not found
Internal Server Error
GET /api/v2/resources/{resourceId} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"jsonapi": {
"version": "1.1.1"
},
"data": {
"resourceId": "myResource",
"serviceId": "myService",
"category": "Node",
"resourceConfig": {
"args": {
"operation": "serverProvides",
"topic": "text"
}
},
"runnerName": "protocol-mapper",
"protocol": "text",
"parentResourceId": "text"
},
"meta": {}
}Id of resource
Disable and enable
Success
No content
Invalid request
Internal Server Error
PUT /api/v2/resources/{resourceId}/operation HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 23
{
"operation": "disable"
}No content
Id of service to list topics for
Page to return
1Number of items per page
50Order response by field
resourceIdPossible values: Ascending or descending order
ASCPossible values: The value used to retrieve topics by matching resource name or resource ID
Only list on the response topics from enabled service
falsePaginated list of topics
Parameter missing
No topics found
Internal Server Error
GET /api/v2/services/{serviceId}/topics HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"jsonapi": {
"version": "1.1"
},
"data": [
{
"topic": "services/servicea/A/000",
"serviceId": "servicea",
"resourceId": "servicea-A_000",
"category": "Endpoint"
}
],
"meta": {
"pagination": {
"totalPages": 1,
"totalRows": 1,
"pageNumber": 1,
"totalRowsInPage": 1,
"nextPage": 1,
"rowsPerPage": 50
}
}
}The resource IDs to filter by (multiple allowed)
Page to return
1Number of items per page
50Order response by field
resourceIdPossible values: Ascending or descending order
ASCPossible values: The value used to retrieve topics by matching resource name or resource ID or service ID
Only list on the response topics from enabled services
falsePaginated list of topics
Parameter missing
No topics found
Internal Server Error
GET /api/v2/topics/resources HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"jsonapi": {
"version": "1.1"
},
"data": [
{
"topic": "services/servicea/A/000",
"serviceId": "servicea",
"resourceId": "servicea-A_000",
"category": "Endpoint"
}
],
"meta": {
"pagination": {
"totalPages": 1,
"totalRows": 1,
"pageNumber": 1,
"totalRowsInPage": 1,
"nextPage": 1,
"rowsPerPage": 50
}
}
}List of service relationships
Internal Server Error
GET /api/v2/service-graph/adjacency-matrix HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"dependencies": [
{
"fromNode": "text",
"toNode": "text"
}
]
}List of root nodes
A list of services from the service graph
List of nodes
Internal Server Error
GET /api/v2/service-graph/root-nodes HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"nodes": [
"text"
]
}List of service to get dependencies for
Configures how many hops to return, e.g. 1 for direct dependencies only, 2 to return until dependencies of dependencies, etc.
List of dependencies
A list of services from the service graph
List of nodes
Internal Server Error
GET /api/v2/service-graph/dependencies?serviceIds=text HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"nodes": [
"text"
]
}Id of service to get dependencies for
Configures how many hops to return, e.g. 1 for direct dependencies only, 2 to return until dependencies of dependencies, etc.
Number of dependencies
No content
Internal Server Error
GET /api/v2/service-graph/dependencies/count?serviceId=text HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
No content
List of services to get dependents for
Configures how many hops to return, e.g. 1 for direct dependents only, 2 to return until dependents of dependents, etc.
List of dependencies
A list of services from the service graph
List of nodes
Internal Server Error
GET /api/v2/service-graph/dependents?serviceIds=text HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"nodes": [
"text"
]
}Id of service to get dependents for
Configures how many hops to return, e.g. 1 for direct dependents only, 2 to return until dependents of dependents, etc.
Number of dependents
No content
Internal Server Error
GET /api/v2/service-graph/dependents/count?serviceId=text HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
No content
Resource Category
Resource
{}Invalid Resource Category provided
Internal Server Error
GET /api/v2/resources/count/{category} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"jsonapi": {
"version": "1.1.1"
},
"data": {
"resourceCount": 1000
},
"meta": {}
}Last updated
Was this helpful?

