Reads a category
client.cloudforceOne.threatEvents.categories.get(stringcategoryId, CategoryGetParams { account_id } params, RequestOptionsoptions?): CategoryGetResponse { killChain, name, uuid, 3 more }
GET/accounts/{account_id}/cloudforce-one/events/categories/{category_id}
Reads a category
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Accepted Permissions (at least one required)
Reads a category
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
const category = await client.cloudforceOne.threatEvents.categories.get(
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
{ account_id: 'account_id' },
);
console.log(category.uuid);{
"killChain": 0,
"name": "name",
"uuid": "12345678-1234-1234-1234-1234567890ab",
"mitreAttack": [
"T1234"
],
"mitreCapec": [
"123"
],
"shortname": "shortname"
}Returns Examples
{
"killChain": 0,
"name": "name",
"uuid": "12345678-1234-1234-1234-1234567890ab",
"mitreAttack": [
"T1234"
],
"mitreCapec": [
"123"
],
"shortname": "shortname"
}