Enable Threat Feed
Enables the specified threat intelligence feed.
Required Permissions
Requires the MASTER role.
HTTP Request
POST /api/sonar/threat-feeds/enable
cURL Example
curl -H "Authorization: Bearer <API_KEY>" -XPOST \
-d name=<FEED_NAME> \
https://HOSTNAME/api/sonar/threat-feeds/enable
Request Parameters
| Key | Required | Type | Description | Notes |
|---|---|---|---|---|
| name | Y | String | Threat intelligence feed name |
Success Response
HTTP status code 200 response
{}
Error Responses
name: invalid threat intelligence feed name
HTTP status code 400 response
{ "error_code": "illegal-state", "error_msg": "threat-feed-not-found" }