List account audit log product categories (Version 2)
client.accounts.logs.audit.productCategories(AuditProductCategoriesParams { account_id } params, RequestOptionsoptions?): SinglePage<AuditProductCategoriesResponse { label, products, value } >
GET/accounts/{account_id}/logs/audit/product_categories
Lists the available audit log product categories and the resource products each one expands to. Use these values with the product_category filter on the account audit logs endpoint.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
List account audit log product categories (Version 2)
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const auditProductCategoriesResponse of client.accounts.logs.audit.productCategories({
account_id: 'a67e14daa5f8dceeb91fe5449ba496ef',
})) {
console.log(auditProductCategoriesResponse.label);
}{
"errors": [
{
"message": "message"
}
],
"result": [
{
"label": "Zero Trust",
"products": [
{
"label": "Gateway",
"value": "gateway"
}
],
"value": "zerotrust"
}
],
"success": true
}Returns Examples
{
"errors": [
{
"message": "message"
}
],
"result": [
{
"label": "Zero Trust",
"products": [
{
"label": "Gateway",
"value": "gateway"
}
],
"value": "zerotrust"
}
],
"success": true
}