Monitor Service (3.1.0)

Download OpenAPI specification:Download

This spec defines the API provided by the application to validate authorization for the passed role.

Authentication

bearerAuth

Security Scheme Type HTTP
HTTP Authorization Scheme bearer
Bearer format "JWT"

Service

Enable and start service.

Authorizations:
query Parameters
service
required
string

Name of the service to enable

Responses

Response samples

Content type
application/json
{
  • "message": "Device is already registered in inventory",
  • "code": 101
}

Disable and stop service.

Authorizations:
query Parameters
service
required
string

Name of the service to disable

Responses

Response samples

Content type
application/json
{
  • "message": "Device is already registered in inventory",
  • "code": 101
}

Monitor K3s

Get K3S pod.

Get K3s pod monitoring information.

query Parameters
namespace
required
string

Responses

Response samples

Content type
application/json
{
  • "namespace": "string",
  • "pods": [
    ]
}

Options K3S pod.

Options K3s pod monitoring information.

Responses

Get K3s node label.

Get K3s node label.

Responses

Response samples

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

Get K3s cluster resources.

Get K3s cluster resources.

query Parameters
namespace
required
string

Namespace of the pod.

Responses

Response samples

Content type
application/json
{
  • "statefulSetApps": {
    },
  • "replicaSetApps": {
    },
  • "deploymentApps": {
    },
  • "servicePods": {
    },
  • "pods": {
    }
}

Monitor Service

Get K3s information.

Get K3s monitoring information.

Responses

Response samples

Content type
application/json
{
  • "serviceName": "string",
  • "version": "string",
  • "active": "string",