LogoLogo
Contact Uscybus.io
Connectware 1.9.0
Connectware 1.9.0
  • Getting Started
    • Introduction
    • Installing Connectware
      • System Requirements
      • Acquiring your License Key
      • Installing Connectware on Docker
      • Installing Connectware on Kubernetes
    • Connectware Admin UI
    • Basic Components of Connectware
    • Connecting your First Machine
      • Your First Service Commissioning File
  • Documentation
    • Services
      • Service Commissioning Files
        • Structure of Service Commissioning Files
          • description
          • metadata
          • parameters
          • definitions
          • resources
            • Cybus::Connection
            • Cybus::Endpoint
            • Cybus:Mapping
            • Cybus::Container
              • Docker problem with network changes
            • Cybus::Link
            • Cybus::IngressRoute
            • Cybus::User
            • Cybus::Role
            • Cybus::Volume
            • Cybus::File
            • Cybus::Server
            • Cybus::Node
        • Sample Service Commissioning Files
          • Modbus
            • “Bearbeitungszentrum BAZ” - Single File
            • “Bearbeitungszentrum BAZ” - Multiple Files
            • “Bearbeitungszentrum BAZ” - Single File and Custom Topics
            • “Bearbeitungszentrum BAZ” - Agent Mode
          • Machine Condition Monitoring : OPC UA + InfluxDB + Grafana Dashboard
            • “Machine Condition Monitoring Example” - Single File
          • Machine Utilization Example (Multi file service composition) : Modbus TCP + InfluxDB + Grafana + MSS
            • “Machine Utilization Example” - Machine Connectivity
            • “Machine Utilization Example” - Dashboards with role based access permission
            • “Machine Utilization Example” - Push data to MSSQL Database
      • Services View
      • Setting Up and Configuring Services
        • Installing Services
        • Enabling Services
        • Updating Services
        • Disabling Services
        • Deleting Services
      • Service Details View
      • FlowSync
        • Example 1 - Node with Transaction Mode (HTTP)
        • Example 2 - Node Responds (HTTP)
        • Example 3 - Node with Error (HTTP)
        • Example 4 - Node with Timeout Error Code and Error Message (HTTP)
        • Example 5 - Full Transactional Data Flow (HTTP)
        • Example 6 - Full Transactional Data Flow (OPC UA)
      • ServiceID
      • Inter-Service Referencing
      • Deviation
      • Service Logs
        • Logs of Individual Services
        • Logs of All Services
      • Rule Engine
        • Data Processing Rules
        • Rule Sandbox
      • Shared Subscriptions
        • Setting Up Shared Subscriptions
      • API Definition
    • Resources
      • Servers
      • Containers
      • Volumes
      • Connections
      • Endpoints
      • Mappings
      • Nodes
      • API Definition
    • User Management
      • Users and Roles View
      • Users
      • Roles
      • Permissions
      • Password Policy Rules
      • Default Admin User
      • MQTT Users
      • Adding a MQTT Publish Prefix for Users
      • Multi-Factor Authentication
      • Long lived JSON Web Tokens
      • Access Permissions for Admin-UI
        • UI Access
        • Minimum Access Role Pages
      • API Definition
    • Client Registry
      • Implicit Flow
      • Explicit Flow
      • Granting Access
      • API Definition
    • Certificates
    • Monitoring
      • Data Explorer
      • Live Data
    • Workbench
      • Flows in Git Repositories
    • System Status
      • Info
      • Metrics
      • Status
      • Retrieving More System Information
      • System Health
      • API Definition
    • Backup and Restore
      • Volumes
      • User Database
    • Configuration
      • Environment Variables
      • LDAP Configuration
      • MFA Configuration
    • Agents
      • Agents View
      • Installing Agents
        • Installing Agents via Docker
        • Installing Agents via Docker Compose
        • Installing Agents via Kubernetes
        • Using Mutual TLS for Agents
      • Registering Agents in Connectware
      • Using Agents
      • Monitoring Agents
      • Troubleshooting Agents
    • Industry Protocol Details
      • ADS
        • AdsConnection
        • AdsEndpoint
      • BACnet
        • BacnetConnection
        • BacnetEndpoint
      • EtherNet/IP
        • EthernetIpConnection
        • EthernetIpEndpoint
      • Focas
        • FocasConnection
        • FocasEndpoint
      • Generic VRPC
        • GenericVrpcConnection
        • GenericVrpcEndpoint
      • Hottinger Baldwin Messtechnik (HBM)
        • HbmdaqConnection
        • HbmdaqEndpoint
      • Heidenhain DNC
        • HeidenhainConnection
        • HeidenhainEndpoint
      • HTTP/REST
        • HttpConnection
        • HttpEndpoint
      • HTTP Server
        • HttpServer
        • HttpNode
      • InfluxDB
        • InfluxdbConnection
        • InfluxdbEndpoint
      • Kafka
        • KafkaConnection
        • KafkaEndpoint
      • Modbus/TCP
        • ModbusConnection
        • ModbusEndpoint
      • MQTT
        • MqttConnection
        • MqttEndpoint
      • MSSQL
        • MssqlConnection
        • MssqlEndpoint
      • OPC DA
        • OpcdaConnection
        • OpcdaEndpoint
      • OPC UA
        • OPC UA Client
          • OpcuaConnection
          • OpcuaEndpoint
        • OPC UA Server
          • OpcuaServer
          • OpcuaNode
        • OPC UA Object Types
        • OPC UA Server References
          • OpcuaReferenceNode
          • OpcuaObjectNode
      • Siemens SIMATIC S7
        • S7Connection
        • S7Endpoint
      • Shdr
        • ShdrConnection
        • ShdrEndpoint
      • Sinumerik
        • SinumerikConnection
        • SinumerikEndpoint
      • Sopas
        • SopasConnection
        • SopasEndpoint
      • SQL
        • SqlConnection
        • SqlEndpoint
      • Werma WIN Ethernet
        • WermaConnection
        • WermaEndpoint
      • Systemstate
        • SystemstateConnection
        • SystemstateEndpoint
      • API Definition
    • Connectware Licensing
    • Changelog
      • General changes from 0.x to 1.0
        • Upgrading from 0.x to 1.0
    • Upgrade Guide
      • Upgrading from 1.x to 1.7.0
      • Upgrading from 1.x to 1.5.0
Powered by GitBook
LogoLogo

Cybus

  • Terms and Condition
  • Imprint
  • Data Privacy

© Copyright 2025, Cybus GmbH

On this page

Was this helpful?

  1. Documentation
  2. Services

API Definition

PreviousSetting Up Shared SubscriptionsNextResources

Last updated 5 months ago

Was this helpful?

17KB
Service Manager Schema.yaml

Read all services

get
Authorizations
Responses
200
Array of services
application/json
get
GET /api/services HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
200

Array of services

[
  {
    "id": "text",
    "commissioningData": {},
    "resources": {},
    "targetState": "text",
    "currentState": "text"
  }
]

Get status of all services

get
Authorizations
Responses
200
Map of service statuses
application/json
Responseobject
get
GET /api/services/status HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
200

Map of service statuses

{}

Get information of all services

get
Authorizations
Responses
200
Map of service information
application/json
Responseobject
get
GET /api/services/info HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
200

Map of service information

{}

Get the instance names of the services

get
Authorizations
Responses
200
Map of service information
application/json
Responsestring[]
get
GET /api/services/instances HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
200

Map of service information

[
  "text"
]

Get a specific service

get
Authorizations
Path parameters
idstringRequired

Id of service

Responses
200
Service
application/json
400
Invalid request
404
Service not found
get
GET /api/services/{id} HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
{
  "id": "text",
  "commissioningData": {},
  "resources": {},
  "targetState": "text",
  "currentState": "text"
}

Delete an existing service

delete
Authorizations
Path parameters
idstringRequired

Id of service

Responses
200
OK
application/json
404
Service not found
delete
DELETE /api/services/{id} HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
{
  "id": "text"
}

Get a specific service status

get
Authorizations
Path parameters
idstringRequired

Id of service

Responses
200
Service
application/json
400
Invalid request
404
Service not found
get
GET /api/services/{id}/status HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
{
  "id": "text",
  "targetState": "text",
  "currentState": "text"
}

Get the service dependencies

get
Authorizations
Path parameters
idstringRequired

Id of service

Responses
200
Service dependencies
application/json
400
Invalid request
404
Service not found
get
GET /api/services/{id}/dependencies HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
{
  "dependent": [
    "text"
  ],
  "dependsOn": [
    "text"
  ]
}

Get all ingress routes

get
Authorizations
Responses
200
Ingress routes
application/json
400
Invalid request
get
GET /api/services/ingress-routes HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "id": "text",
    "containerHost": "text",
    "containerPort": 1,
    "containerPrefixRewrite": "text",
    "ingressPort": 1,
    "ingressUrlPrefix": "text",
    "type": "text",
    "headers": [
      "text"
    ]
  }
]

Get all Cybus::Link routes

get
Authorizations
Responses
200
Links
application/json
400
Invalid request
get
GET /api/services/links HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "id": "text",
    "ingressRoute": "text",
    "name": "text",
    "href": "text"
  }
]

Get all links by all services

get
Authorizations
Responses
200
Links
application/json
400
Invalid request
get
GET /api/services/all-links HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "id": "text",
    "name": "text",
    "links": []
  }
]

Get all of the resource schemas

get
Authorizations
Responses
200
Resource schemas in a JSON string
application/json
400
Invalid request
500
Internal error
get
GET /api/resources/schemas HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
{
  "[a-zA-Z0-9]+": {},
  "ANY_ADDITIONAL_PROPERTY": "anything"
}
  • POSTvalidate a commissioning file
  • POSTCreate a new service
  • GETRead all services
  • POSTGet the service schemas
  • GETGet status of all services
  • GETGet information of all services
  • GETGet the instance names of the services
  • GETGet a specific service
  • PUTUpdate an existing service
  • DELETEDelete an existing service
  • GETGet a specific service status
  • GETGet the service dependencies
  • GETGet all ingress routes
  • GETGet all Cybus::Link routes
  • GETGet all links by all services
  • PUTPerform an operation on a service
  • GETGet all of the resource schemas

validate a commissioning file

post
Authorizations
Body
commissioningFilestringRequired

The commissioning file of this service as base64 encoded content of a buffer

Responses
200
Validation Successful
400
Validation Error
application/json
406
Invalid Content
application/json
post
POST /api/validate/service HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 28

{
  "commissioningFile": "text"
}

No content

Create a new service

post
Authorizations
Body
idstring · min: 4Required
commissioningFilestringRequired

The commissioning file of this service as base64 encoded content of a buffer

parametersobjectOptional

The parameter values of this service as a JSON object

marketplaceobjectOptional
targetStatestring · enumOptionalPossible values:
Responses
201
Created service
application/json
400
Validation Error
application/json
406
Invalid Content
application/json
post
POST /api/services HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 98

{
  "id": "text",
  "commissioningFile": "text",
  "parameters": {},
  "marketplace": {},
  "targetState": "disabled"
}
{
  "id": "text",
  "targetState": "text",
  "currentState": "text"
}

Get the service schemas

post
Authorizations
Body
commissioningFilestringRequired

The commissioning file of this service as base64 encoded content of a buffer

Responses
201
Service schemas
application/json
Responseobject
400
Validation Error
application/json
406
Invalid Content
application/json
post
POST /api/services/parametersSchema HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 28

{
  "commissioningFile": "text"
}
{}

Update an existing service

put
Authorizations
Path parameters
idstringRequired

Id of service

Body
parametersobjectOptional
commissioningFilestringOptional
marketplaceobjectOptional
Responses
202
Accepted
400
Validation Error
application/json
406
Invalid Content
application/json
put
PUT /api/services/{id} HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 61

{
  "parameters": {},
  "commissioningFile": "text",
  "marketplace": {}
}

No content

Perform an operation on a service

put
Authorizations
Path parameters
idstringRequired

Id of service

Body
operationstringOptional

Disable and enable

Responses
200
Service
application/json
400
Invalid request
404
Service not found
put
PUT /api/services/{id}/operation HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 20

{
  "operation": "text"
}
{
  "id": "text",
  "targetState": "text",
  "currentState": "text"
}