Нет описания

tum 0de071e7c9 soc update недель назад: 3
..
README.md 0de071e7c9 soc update недель назад: 3
iris_api_examples.py 9de2549954 first commit 1 месяц назад
iris_api_examples.sh 9de2549954 first commit 1 месяц назад
send_to_shuffle_webhook.sh 0de071e7c9 soc update недель назад: 3

README.md

IRIS API Samples

This folder contains sample code to call IRIS from the soc-integrator context.

Python example

python soc-integrator/examples/iris_api_examples.py

Environment variables:

  • IRIS_BASE_URL (default: https://localhost:8443)
  • IRIS_API_KEY (optional)
  • IRIS_VERIFY_SSL (default: false)
  • INTEGRATOR_URL (default: http://localhost:8088)

Curl example

bash soc-integrator/examples/iris_api_examples.sh

This script demonstrates:

  1. Direct call to IRIS /api/v2/cases
  2. Call through soc-integrator /action/create-iris-case

Send sample event to Shuffle webhook

Use this helper with the sample workflow:

  • /Users/simplicoltd./projects/soc/shuffle-workflows/sample-webhook-soc-integrator-iris-workflow.json

Run:

SHUFFLE_WEBHOOK_URL='http://localhost:3001/api/v1/hooks/webhook_xxx' \
bash soc-integrator/examples/send_to_shuffle_webhook.sh

Environment variables:

  • SHUFFLE_WEBHOOK_URL (required)
  • INTEGRATOR_URL (default: http://localhost:8088)
  • INTERNAL_KEY (optional)