Device service variable
Available Fields
Field
Examples
Get all service variables for a device by UUID
GET "https://api.balena-cloud.com/v7/device_service_environment_variable?\$filter=service_install/any(si:si/device/any(d:d/uuid%20eq%20'<DEVICE_UUID>'))" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <AUTH_TOKEN>" Get all service variables for a device by UUID, including the service name
GET "https://api.balena-cloud.com/v7/device_service_environment_variable?\$filter=service_install/any(si:si/device/any(d:d/uuid%20eq%20'<DEVICE_UUID>'))&\$expand=service_install(\$expand=installs__service(\$select=id,service_name))" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <AUTH_TOKEN>" Get all service variables for a device by ID
Create a device service variable
Update a device service variable
Remove a device service variable
Last updated
Was this helpful?