Skip to main content

AosEdge service configuration

To pass AosEdge-specific parameters, AosCloud generates AosEdge service configuration. Example:

{
"created": "2020-04-09T11:22:00.015925234Z",
"author": "Aos Cloud",
"runner": "crun",
"hostname": "servicehostname",
"sysctl": [
{
"name": "value"
}
],
"offlineTTL": "P1M",
"quotas": {
"stateLimit": 1234,
"storageLimit": 1234,
"uploadSpeed": 2048,
"downloadSpeed": 2048,
"uploadLimit": 65536,
"downloadLimit": 65536,
"ramLimit": 12345,
"pidsLimit": 10,
"noFileLimit": 1024,
"cpuLimit": 50,
"tmpLimit": 1234,
"visPermissions": "permissions"
},
"allowedConnections": {
"service-UUID/1515/udp": {},
"service-UUID1/1516:1520/udp": {}
},
"devices": [
{
"name": "camera0",
"permissions": "r"
},
{
"name": "gpu0",
"permissions": "rwm"
}
],
"resources": [
"system-dbus",
"bluetooth"
],
"permissions": {
"vis": {
"Attribute.Body.Vehicle.VIN": "r",
"Signal.Doors.*": "r"
},
"systemCore": {
"Services.Restart": "w",
"SomeRole": "rw"
}
},
"runParameters": {
"startInterval": "PT1S",
"startBurst": 3,
"restartInterval": "PT1S"
}
}

Parameters from the open container specification (runtime spec) can be used.