Closed jellyfish-bot closed 1 year ago
[thgreasi] This has attached https://jel.ly.fish/e9b95dc0-817d-40b0-bd82-03411a22ee85
Hello, after the release of sdk v13 in #326 This can now be achieved with something like:
from balena import Balena
sdk = Balena()
sdk.auth.login(...)
sdk.models.device.getAllByApplication(APPLICATION_ID, {
"$select": ["id", "device_name"],
"$filter": {
"device_tag": {
"$any": {
"$alias": "tag",
"$expr": {
"tag": {
"tag_key": 'TAG_KEY'
}
}
}
}
}
})
[thgreasi] undefined