Skip to main content
GET
/
deployments
/
{deployment_id}
Get
curl --request GET \
  --url https://{host}/{version}/deployments/{deployment_id} \
  --header 'X-API-Key: <api-key>'
{
  "object": "deployment",
  "id": "dpl_123",
  "description": "Deployment for the motion control config instance",
  "status": "validating",
  "activity_status": "validating",
  "error_status": "none",
  "target_status": "pending",
  "device_id": "dvc_123",
  "release_id": "v1.0.0",
  "created_at": "2024-01-01T00:00:00Z",
  "updated_at": "2024-01-01T00:00:00Z",
  "device": null,
  "release": null,
  "config_instances": [
    {
      "object": "config_instance",
      "id": "cfg_inst_123",
      "target_status": "created",
      "activity_status": "created",
      "error_status": "none",
      "status": "created",
      "relative_filepath": "/v1/motion-control.json",
      "created_at": "2021-01-01T00:00:00Z",
      "updated_at": "2021-01-01T00:00:00Z",
      "device_id": "dvc_123",
      "config_schema_id": "cfg_sch_123",
      "config_type_id": "cfg_type_123",
      "device": null,
      "config_schema": null,
      "config_type": null,
      "content": {
        "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
        }
      }
    }
  ]
}

Authorizations

X-API-Key
string
header
required

The API key to use for authentication. Retrieve your API key from the Miru dashboard.

Path Parameters

deployment_id
string
required

The unique identifier of the deployment.

Example:

"dpl_123"

Query Parameters

expand[]
enum<string>[]

The fields to expand in the deployment.

Response

200 - application/json

Successfully retrieved the deployment.

object
enum<string>
required
Available options:
deployment
Example:

"deployment"

id
string
required

ID of the deployment.

Example:

"dpl_123"

description
string
required

The description of the deployment.

Example:

"Deployment for the motion control config instance"

status
enum<string>
required

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'.

Available options:
validating,
pending,
approved,
queued,
deployed,
removing,
archived,
failed,
retrying
activity_status
enum<string>
required

Last known activity state of the deployment.

  • Validating: the deployment's config instances are being validated with user's custom validation
  • Pending: staged for deployment but not yet approved; requires approval for deployment to occur
  • Approved: staged and approved for deployment
  • Queued: the deployment's config instances are waiting to be received by the device; will be deployed as soon as the device is online
  • Deployed: the deployment's config instances are currently available for consumption on the device
  • Removing: the deployment's config instances are being removed from the device
  • Archived: the deployment is available for historical reference but cannot be deployed and is not active on the device
Available options:
validating,
pending,
approved,
queued,
deployed,
removing,
archived
error_status
enum<string>
required

Last known error state of the deployment.

  • None: no errors
  • Retrying: an error has been encountered and the agent is retrying to reach the target status
  • Failed: a fatal error has been encountered; the deployment is archived and (if deployed) removed from the device
Available options:
none,
failed,
retrying
target_status
enum<string>
required

Desired state of the deployment.

  • Pending: staged for deployment but not yet approved; requires approval for deployment to occur
  • Approved: staged and approved for deployment
  • Deployed: all config instances part of the deployment are available for consumption on the device
  • Archived: the deployment is available for historical reference but cannot be deployed and is not active on the device
Available options:
pending,
approved,
deployed,
archived
device_id
string
required

ID of the device.

Example:

"dvc_123"

release_id
string
required

The version of the release.

Example:

"v1.0.0"

created_at
string<date-time>
required

Timestamp of when the device release was created.

Example:

"2024-01-01T00:00:00Z"

updated_at
string<date-time>
required

Timestamp of when the device release was last updated.

Example:

"2024-01-01T00:00:00Z"

device
object
required

Expand the device using 'expand[]=device' in the query string.

Example:

null

release
object
required

Expand the release using 'expand[]=release' in the query string.

Example:

null

config_instances
Config Instance · object[] | null
required

Expand the config instances using 'expand[]=config_instances' in the query string.

I