Guest User

Untitled

a guest
Apr 21st, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. let APP_ID = ...;
  2. let TAG_KEY = ...;
  3. let TAG_VALUE = ...; // Remove this and its use below to ignore the value
  4. let TARGET_ID = ...; // Build id (not commit hash)
  5.  
  6. sdk.pine.patch({
  7. resource: 'device',
  8. options: {
  9. filter: {
  10. belongs_to__application: APP_ID,
  11. device_tag: {
  12. $any: {
  13. $alias: 'dt',
  14. $expr: {
  15. dt: {
  16. tag_key: TAG_KEY,
  17. value: TAG_VALUE
  18. }
  19. }
  20. }
  21. }
  22. }
  23. },
  24. body: { should_be_running__build: TARGET_ID }
  25. });
Add Comment
Please, Sign In to add comment