Create Threat Signals feed
client.cloudforceOne.threatSignals.feeds.create(FeedCreateParams { account_id, category_id, curated_feed_id, 5 more } params, RequestOptionsoptions?): FeedCreateResponse { id, category_id, category_name, 12 more }
POST/accounts/{account_id}/cloudforce-one/v2/threat-signals/feeds
Subscribes the account to a custom or curated Threat Signals feed. Adding a custom feed when the account is at its custom-feed limit returns 403 with errors[0].reason threat_signals_feed_limit, and errors[0].custom_feed_limit and errors[0].custom_feed_count give the limit and current count. Curated feeds are not subject to this limit.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Accepted Permissions (at least one required)
Create Threat Signals feed
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
const feed = await client.cloudforceOne.threatSignals.feeds.create({ account_id: 'account_id' });
console.log(feed.id);{
"errors": [
{
"message": "message"
}
],
"messages": [
{
"message": "message",
"code": 0,
"custom_feed_count": 0,
"custom_feed_limit": 0,
"expected": "expected",
"path": [
"string"
],
"reason": "threat_signals_feed_limit"
}
],
"result": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"category_id": "category_id",
"category_name": "category_name",
"created_at": "created_at",
"curated_feed_id": "curated_feed_id",
"display_name": "display_name",
"enabled": true,
"last_polled_at": "last_polled_at",
"poll_interval_s": 0,
"source_type": "custom",
"status": "active",
"subscribed_at": "subscribed_at",
"title": "title",
"updated_at": "updated_at",
"url": "url"
},
"success": true
}Returns Examples
{
"errors": [
{
"message": "message"
}
],
"messages": [
{
"message": "message",
"code": 0,
"custom_feed_count": 0,
"custom_feed_limit": 0,
"expected": "expected",
"path": [
"string"
],
"reason": "threat_signals_feed_limit"
}
],
"result": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"category_id": "category_id",
"category_name": "category_name",
"created_at": "created_at",
"curated_feed_id": "curated_feed_id",
"display_name": "display_name",
"enabled": true,
"last_polled_at": "last_polled_at",
"poll_interval_s": 0,
"source_type": "custom",
"status": "active",
"subscribed_at": "subscribed_at",
"title": "title",
"updated_at": "updated_at",
"url": "url"
},
"success": true
}