Fleet service variable

Available Fields

Field

id

created_at

service_install

value

name


Examples

Get all fleet service variables for a service

GET "https://api.balena-cloud.com/v7/service_environment_variable?\$filter=service%20eq%20<SERVICE ID>" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <AUTH_TOKEN>" 

Create a fleet service variable

POST "https://api.balena-cloud.com/v7/service_environment_variable" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <AUTH_TOKEN>" \
--data '{
    "service": "<SERVICE ID>",
    "name": "<NAME>",
    "value": "<VALUE>"
}'

Update a device service variable

Remove a fleet service variable

Last updated

Was this helpful?