Note: You must contact Hive to have streams allocated to your project before you can use this feature.

This endpoint will return the number of active streams as well as their stream IDs.

EXAMPLES


curl --request GET \
  --url https://api.thehive.ai/api/v2/stream/active \
  --header 'accept: application/json' \
  --header 'authorization: token <API_KEY>'
var request = require("request");

var options = {
  method: 'GET',
  url: 'https://api.thehive.ai/api/v2/stream/active',
  headers: {
    accept: 'application/json',
    authorization: 'token <API_KEY>'
  }
};  

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
import requests
url = 'https://api.thehive.ai/api/v2/stream/active'
headers = {"authorization": "token <API_KEY>", "accept": "application/json"}
response = session.get("https://api.thehive.ai/api/v2/stream/active", headers = headers)

RESULTS


{ "active_stream_count": 2, 
  "stream_ids": 
    [ "ee88d6e0-1d83-11ed-b629-c7033d6f823b", 
    "f6fab460-1d83-11ed-b629-c7033d6f823b" ] 
}
HEADERS
string
required

Project API Token from hive customer dashboard. Prepend with 'token'