Data management service API | Service APIs

Data management service API

The data management service API allows you to sync data stored on the machine it is deployed on to the cloud.

The data management service supports the following methods:

Method Name Description viam-micro-server Support
Sync Sync data stored on the machine to the cloud.
UploadBinaryDataToDatasets Upload Binary data to the specified datasets.
Reconfigure Reconfigure this resource.
DoCommand Execute model-specific commands that are not otherwise defined by the service API.
GetResourceName Get the ResourceName for this instance of the service.
Close Safely shut down the resource and prevent further use.

The data client API supports a separate set of methods that allow you to upload and export data to and from Viam. For information about that API, see Data Client API.

API

Sync

Important

This method is not yet available in the Viam Python SDK.

Sync data stored on the machine to the cloud.

Parameters:

Returns:

Example:


For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


For more information, see the TypeScript SDK Docs.

UploadBinaryDataToDatasets

Upload Binary data to the specified datasets.

Parameters:

Returns:

For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


For more information, see the TypeScript SDK Docs.

Reconfigure

Reconfigure this resource. Reconfigure must reconfigure the resource atomically and in place.

Parameters:

Returns:

For more information, see the Go SDK Docs.

DoCommand

Execute model-specific commands that are not otherwise defined by the service API. Most models do not implement DoCommand. Any available model-specific commands should be covered in the model’s documentation. If you are implementing your own data manager service and want to add features that have no corresponding built-in API method, you can implement them with DoCommand.

Parameters:

Returns:

Example:


For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


For more information, see the TypeScript SDK Docs.

GetResourceName

Get the ResourceName for this instance of the service.

Parameters:

Returns:

Example:


For more information, see the Go SDK Docs.

Parameters:

Returns:

Example:


For more information, see the TypeScript SDK Docs.

Close

Safely shut down the resource and prevent further use.

Parameters:

Returns:

Example:


For more information, see the Go SDK Docs.