Akamai API Security · Schema
malware-policy
Contains details about a malware policy.
API DiscoveryAPI SecurityCloud SecurityPosture ManagementRuntime ProtectionThreat Protection
Properties
| Name | Type | Description |
|---|---|---|
| allowListId | string | The ID of a client list containing file hashes of specific files to allow. |
| blockListId | string | The ID of a client list containing file hashes of specific files to block. |
| contentTypes | array | The content types and encodings to match. |
| description | string | Descriptive text you provide about a policy. |
| hostnames | array | The hostnames to match. This is where you want the malware detections to focus. |
| id | integer | __Read-only__ Uniquely identifies each malware policy. |
| logFilename | boolean | Whether to log the name of the file that triggered an `alert` or `deny` action. |
| name | string | The name you assign to a malware policy. |
| paths | array | The paths to match. You can use the `?` and `*` wildcards anywhere in a path. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/akamai-api-security/refs/heads/main/json-schema/api-security-malware-policy-schema.json",
"title": "malware-policy",
"description": "Contains details about a malware policy.",
"type": "object",
"properties": {
"allowListId": {
"description": "The ID of a client list containing file hashes of specific files to allow.",
"type": "string"
},
"blockListId": {
"description": "The ID of a client list containing file hashes of specific files to block.",
"type": "string"
},
"contentTypes": {
"description": "The content types and encodings to match.",
"items": {
"additionalProperties": false,
"properties": {
"encodedContentAttributes": {
"description": "An optional list of encoded attribute paths.",
"items": {
"additionalProperties": false,
"properties": {
"encoding": {
"description": "The encodings used for the attribute path. Currently only `base64` is supported.",
"items": {
"enum": [
"base64"
],
"type": "string"
},
"type": "array"
},
"path": {
"description": "The JSONPath to an attribute with encoded content. The path must point to a single item, and may not include the `$`, `..`, `?` or `*` operators.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"name": {
"description": "The name of the content type.",
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
},
"type": "array"
},
"description": {
"description": "Descriptive text you provide about a policy.",
"type": "string"
},
"hostnames": {
"description": "The hostnames to match. This is where you want the malware detections to focus.",
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"description": "__Read-only__ Uniquely identifies each malware policy.",
"readOnly": true,
"type": "integer"
},
"logFilename": {
"default": false,
"description": "Whether to log the name of the file that triggered an `alert` or `deny` action.",
"type": "boolean"
},
"name": {
"description": "The name you assign to a malware policy.",
"type": "string"
},
"paths": {
"description": "The paths to match. You can use the `?` and `*` wildcards anywhere in a path.",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"name",
"hostnames",
"paths"
],
"additionalProperties": false
}