Create Device – Fleets API – MediaKind

Create Device

put https://app.mk.io/api/v1/projects/:project_name/fleet/devices/:name

Create a device. To learn more about devices, read Device Concept.

RBAC Capability Required: fleet.device.create

Authentication

Authorization Bearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

project_name string Required

name string Required

Request

This endpoint expects an object.

metadata object DefaultMetadata Required

Resource metadata.

A human-readable name for the resource.

A dictionary of labels associated with the resource. Maximum number of labels: 32. Maximum length of a label or value: 256 characters. Label: alphanumeric, hyphens, and underscores. Value: alphanumeric, hyphens, underscores, and spaces.

[any key] string

spec object DeviceBodySpec Required

Device specification.

Whether the device should automatically preload the latest available software version.

The list of glossary:networks available to the device and, optionally, the interfaces they are connected to. Leave the available networks list empty to give the device access to all of the networks with routes to the device's glossary:site. Read Available networks to learn more.

The name of the <<glossary:device interface>> that will be connected to the network.

The name of the glossary:network\ that will be made available to this device.

The desired version of software that should be running on the device.

Optional geolocation data for the device.

Co-ordinates that describe the geolocation (ISO 6709), an array of two floating point numbers [latitude(North - South), longitude(East - West)]. Set an empty array to clear the geolocation.

The location id is the identity of the actual device that will be associated with this record. This can be used instead of the shortCode field when registering an on-prem device. The location id does not change so this can be a simpler approach for large scale system administration.

A version of the software that should be preloaded on the device.

The short code from a device's web user interface, used to on-board the device. The short code expires quickly, so it should be used immediately after it is generated. Read On-board fleet devices to learn more about on-boarding devices.

The name of the glossary:site\ where the device is located.

Response

201 The created device

The kind of record.

Device metadata.

The time when the resource was created

ID of the user who created the resource

Email of the user who created the resource

The display name of the resource

The ID of the resource

A dictionary of labels associated with the resource

[any key] string

The name of the resource

The time when the resource was last updated

ID of the user who last updated the resource

Email of the user who last updated the resource

Device specification.

Whether the device should automatically preload the latest available software version.

The name of the <<glossary:device interface>> that will be connected to the network.

The name of the glossary:network\ that will be made available to this device.

The desired version of software that should be running on the device.

Optional geolocation data for the device.

Device status.

The most severe alarm level last reported by the device.

Allowed values: 01234

The a list of the glossary:flow\ names assigned to the device.

The name of a glossary:flow assigned to the device.

Information about the beamHA the device is connected to.

The name of the active controller device in the beamHA.

The roles of the device in the beamHA (high availability) group.

The status of the beamHA group. Only returned for the active controller device.

List of location IDs of devices that are part of the beamHA but not registered. Only returned for the active controller device.

Device capabilities based on software version and hardware.

Whether the device supports configuration backup. Returns false for devices with beam software version older than 1.6.

The current software version running on the device, as reported by the device.

A list of the physical and virtual interfaces reported by the device. If an interface is referenced directly by a source or a destination, it may continue to be present in the list even if the device no longer reports it. The state field indicates if the interface is currently present on the device.

The IP address associated with this interface, if applicable.

The name of the interface on the device.

Whether the interface is currently present on the device. If an interface is referenced directly by a source or a destination, it may continue to be present in the list even if the device no longer reports it.

Allowed values: NotPresent Present

The type of the physical or virtual interface on the device (IP, SDI/ASI or RF).

Allowed values: IPSDIASIRF

The last time the device contacted the system.

The preloaded software present on the device.

Errors

Pertinent information about the error

Pertinent information about the error

Pertinent information about the error

Pertinent information about the error

Pertinent information about the error

Pertinent information about the error

Pertinent information about the error