Skip to content

Commit

Permalink
Merge pull request #3068 from balena-io/device-service-env-vars-get-s…
Browse files Browse the repository at this point in the history
…ervice-name

API/resources: Retrieve the service name as part of the device service env var GET requests
  • Loading branch information
thgreasi authored Sep 2, 2024
2 parents e39248e + f73c525 commit adec74d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion config/dictionaries/resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -606,13 +606,21 @@
],
"examples": [
{
"id": "get-device-service-vars",
"id": "get-device-service-vars-by-device-uuid",
"summary": "Get all service variables for a device by UUID",
"description": "",
"method": "GET",
"endpoint": "/v6/device_service_environment_variable",
"filters": "?\\$filter=service_install/any(si:si/device/any(d:d/uuid%20eq%20'<DEVICE_UUID>'))"
},
{
"id": "get-device-service-vars-with-service-name",
"summary": "Get all service variables for a device by UUID, including the service name",
"description": "",
"method": "GET",
"endpoint": "/v6/device_service_environment_variable",
"filters": "?\\$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))"
},
{
"id": "get-device-service-vars",
"summary": "Get all service variables for a device by ID",
Expand Down

0 comments on commit adec74d

Please sign in to comment.