Authorizations
The API key to use for authentication. Retrieve your API key from the Miru dashboard.
Path Parameters
The unique identifier of the config instance.
"cfg_inst_123"
Query Parameters
The fields to expand in the config instance.
Response
Successfully retrieved the config instance.
config_instance
"config_instance"
ID of the config instance.
"cfg_inst_123"
Desired state of the config instance.
- Created: config instance is created and can be deployed in the future
- Deployed: config instance is available for consumption on the device
- Removed: config instance is available for historical reference but cannot be deployed and is not active on the device
created
, deployed
, removed
Last known activity state of the config instance.
- Created: config instance has been created and can be deployed in the future
- Queued: config instance is waiting to be received by the device; will be deployed as soon as the device is online
- Deployed: config instance is currently available for consumption on the device
- Removed: the config instance is available for historical reference but cannot be deployed and is not active on the device
created
, queued
, deployed
, removed
Last known error state of the config instance deployment.
- None: there are no errors with the config instance deployment
- Retrying: an error has been encountered and the agent is attempting to try again to reach the target status
- Failed: a fatal error has been encountered; the config instance is archived and (if deployed) removed from the device
none
, failed
, retrying
This status merges the 'activity_status' and 'error_status' fields, with error states taking precedence over activity states when errors are present. For example, if the activity status is 'deployed' but the error status is 'failed', the status is 'failed'. However, if the error status is 'none' and the activity status is 'deployed', the status is 'deployed'.
created
, queued
, deployed
, removed
, failed
, retrying
The file path to deploy the config instance relative to /srv/miru/config_instances
. v1/motion-control.json
would deploy to /srv/miru/config_instances/v1/motion-control.json
.
"/v1/motion-control.json"
The timestamp of when the config instance was created.
"2021-01-01T00:00:00Z"
The timestamp of when the config instance was last updated.
"2021-01-01T00:00:00Z"
ID of the device which the config instance is deployed to.
"dvc_123"
ID of the config schema which the config instance must adhere to.
"cfg_sch_123"
ID of the config type which the config instance (and its schema) is a part of.
"cfg_type_123"
null
Expand the config schema using 'expand[]=config_schema' in the query string.
null
The configuration values associated with the config instance. Expand the content using 'expand[]=content' in the query string.
{
"enable_autonomy": true,
"enable_remote_control": false,
"max_payload_kg": 8.5,
"preferred_speed_mode": "normal",
"emergency_stop_sensitivity": 0.9,
"telemetry": {
"upload_interval_sec": 45,
"heartbeat_interval_sec": 15
}
}
Expand the config type using 'expand[]=config_type' in the query string.
null