Set Host Runtime Policy
PUT/api/v32.07/policies/runtime/serverless
x-prisma-cloud-target-env: {"permission":"policyRuntimeServerless"}
Sets the given host policy.
Request
- application/json
Body
- Array [
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
- ]
Internal identifier.
Indicates whether automatic behavioural learning is enabled (true) or not (false).
rules object[]
Rules in the policy.
Indicates whether advanced protection (e.g., custom or premium feeds for container, added whitelist rules for serverless) is enabled (true) or not (false).
Catches containers that access the cloud provider metadata API.
collections object[]
List of collections. Used to scope the rule.
List of account IDs.
List of application IDs.
List of Kubernetes cluster names.
Color is a hexadecimal representation of color code value
List of containers.
Free-form text.
List of functions.
List of hosts.
List of images.
List of labels.
Datetime when the collection was last modified.
Collection name. Must be unique.
List of Kubernetes namespaces.
User who created or last modified the collection.
Indicates whether this collection originates from Prisma Cloud.
Indicates whether this collection was created by the system (i.e., a non user) (true) or a real user (false).
customRules object[]
List of custom runtime rules.
Custom rule ID.
Possible values: [audit,incident
]
Action is the action to perform if the custom rule applies
Possible values: [block,prevent,alert,allow,ban,disable
]
Effect is the effect that will be used for custom rule
Indicates whether the rule is currently disabled. Values: true (disabled) or false (enabled).
dns object
DNSRule is the DNS runtime rule
List of deny-listed domain names (e.g., www.bad-url.com, *.bad-url.com).
Possible values: [block,prevent,alert,disable
]
RuleEffect is the effect that will be used in the runtime rule
List of allow-listed domain names (e.g., *.gmail.com, .s3..amazon.com).
filesystem object
FilesystemRule represents restrictions/suppression for filesystem changes
Monitors files that can create and/or persist backdoors (currently SSH and admin account config files) (true).
List of denied file system path.
Detects changes to binaries and certificates (true).
Possible values: [block,prevent,alert,disable
]
RuleEffect is the effect that will be used in the runtime rule
Indicates that encrypted binaries check should be skipped.
Indicates whether malware detection based on suspicious ELF headers is enabled.
List of allowed file system path.
Detects containers that attempt to compromise the orchestrator.
Specifies the date and time when the rule was last modified.
Name of the rule.
network object
NetworkRule represents the restrictions/suppression for networking
Deny-listed IP addresses.
blacklistListeningPorts object[]
Deny-listed listening ports.
Deny indicates whether the connection is denied.
.
.
blacklistOutboundPorts object[]
Deny-listed outbound ports.
Deny indicates whether the connection is denied.
.
.
Possible values: [block,prevent,alert,disable
]
RuleEffect is the effect that will be used in the runtime rule
Allow-listed IP addresses.
whitelistListeningPorts object[]
Allow-listed listening ports.
Deny indicates whether the connection is denied.
.
.
whitelistOutboundPorts object[]
Allow-listed outbound ports.
Deny indicates whether the connection is denied.
.
.
Describes any noteworthy points for a rule. You can include any text.
User who created or last modified the rule.
Previous name of the rule. Required for rule renaming.
processes object
ProcessesRule represents restrictions/suppression for running processes
List of processes to deny.
Indicates that all processes are blocked except the main process.
Detect crypto miners.
Indicates whether dectection of processes that can be used for lateral movement exploits is enabled.
Indicates whether binaries which do not belong to the original image are allowed to run.
Possible values: [block,prevent,alert,disable
]
RuleEffect is the effect that will be used in the runtime rule
Indicates whether to trigger audits/incidents when a modified proc is spawned.
List of processes to allow.
Indicates whether to skip runtime validation for events triggered by docker/kubectl exec.
Possible values: [block,prevent,alert,disable
]
RuleEffect is the effect that will be used in the runtime rule
Responses
- 200
- default
OK