Skip to content

Instantly share code, notes, and snippets.

@mdzidic

mdzidic/api.sls Secret

Created October 9, 2017 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdzidic/8e725d3e29f9e0a7d6c35eb862ab6baf to your computer and use it in GitHub Desktop.
Save mdzidic/8e725d3e29f9e0a7d6c35eb862ab6baf to your computer and use it in GitHub Desktop.
Post to api
notify_api:
local.http.query:
- tgt: {{ data['id'] }}
- arg:
- 'https://api-server/api'
- method='POST'
- data='{"name":"{{ data['id']|string }}", "ip":"{{ IP_ADDRESS }}"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment