dev.avyos.service
api/service/api.json
Service manager API for lifecycle control and system-level power operations.
Service
| Field | Value |
|---|---|
| Name | dev.avyos.service |
| Package | service |
| Service ID | 0x00000050 |
Service manager API for lifecycle control and system-level power operations.
Types
Empty
Empty payload used for requests and responses without data.
No fields.
ServiceNameRequest
Payload that targets a service by unit name.
| Field | Type | Description |
|---|---|---|
Name |
string |
- |
ServiceStatus
Runtime status snapshot for a single service.
| Field | Type | Description |
|---|---|---|
Name |
string |
- |
Description |
string |
- |
Type |
string |
- |
Restart |
string |
- |
Running |
bool |
- |
Started |
bool |
- |
Failed |
bool |
- |
PID |
int |
- |
ServiceStatusList
Collection of service status entries.
| Field | Type | Description |
|---|---|---|
Items |
[]ServiceStatus |
- |
Requests
StartService
0x0110
Start a stopped service.
Input
Type: ServiceNameRequest
Service unit name to start.
Output
Type: Empty
No payload is returned.
StopService
0x0111
Stop a running service.
Input
Type: ServiceNameRequest
Service unit name to stop.
Output
Type: Empty
No payload is returned.
RestartService
0x0112
Restart an existing service.
Input
Type: ServiceNameRequest
Service unit name to restart.
Output
Type: Empty
No payload is returned.
GetStatus
0x0113
Read status for a specific service.
Input
Type: ServiceNameRequest
Service unit name to inspect.
Output
Type: ServiceStatus
Returns a service status snapshot.
ListServices
0x0114
List status for all discovered services.
Input
Type: Empty
No input is required.
Output
Type: ServiceStatusList
Returns all service status entries.
SystemPoweroff
0x0115
Request a full system poweroff.
Input
Type: Empty
No input is required.
Output
Type: Empty
No payload is returned.
SystemReboot
0x0116
Request a system reboot.
Input
Type: Empty
No input is required.
Output
Type: Empty
No payload is returned.