Update Defender Configuration
POST/api/v33.03/defenders/:id/features
x-prisma-cloud-target-env: {"permission":"manageDefenders"}
Updates a deployed Defender's configuration.
<HOSTNAME>
is a single list item from the /api/v1/defenders/names
endpoint.
$ curl -k \
-u <USER> \
-H 'Content-Type: application/json' \
-X POST \
-d '{"proxyListenerType": "tcp", "registryScanner":"<true|false>", "serverlessScanner":"<true|false>"}' \
https://<CONSOLE>/api/v<VERSION>/defenders/<HOSTNAME>/features
Request
Path Parameters
- application/json
Body
Indicates whether any of the cluster monitoring features are enabled (monitor service accounts, monitor Istio, collect Kubernetes pod labels).
ProxyListenerType is the proxy listener type of defenders
Responses
- 200
- default
Defender is an update about an agent starting
- application/json
- Schema
- Example (auto)
Schema
Category represents the defender target category
Possible values: [container,host,serverless,appEmbedded,hostAgentless,containerAgentless,cloudSecurityAgent
]
Client certificate expiration time.
cloudMetadata object
Cluster name (fallback is internal IP).
Unique ID generated for each DaemonSet. Used to group Defenders by clusters. Note: Kubernetes does not provide a cluster name as part of its API.
ClusterType is the cluster type
Possible values: [AKS,ECS,EKS,GKE,Kubernetes
]
Collections to which this Defender belongs.
Indicates if Defender has a compatible version for communication (e.g., request logs) (true) or not (false).
Indicates whether Defender is connected (true) or not (false).
features object
firewallProtection object
Full domain name of the host. Used in audit alerts to identify specific hosts.
Name of host where Defender is deployed.
IsARM64 indicates whether the defender runs on aarch64 architecture.
Datetime when the Defender's connectivity status last changed.
Port that Defender uses to connect to Console.
proxy object
Indicates if Defender logs can be retrieved remotely (true) or not (false).
Indicates if Defender can be remotely managed (upgraded, restarted) (true) or not (false).
status object
systemInfo object
Indicates TAS blobstore scanning only Defender.
TAS cluster ID where Defender runs. This is typically set to the Cloud controller's API address.
TASFoundation is the foundation the Defender is running on.
Type is the type to be given at startup
Possible values: [none,docker,dockerWindows,containerdWindows,swarm,daemonset,serverLinux,serverWindows,cri,fargate,appEmbedded,tas,tasWindows,serverless,ecs,podman
]
UsingOldCA indicates whether the defender client is using an old certificate signed by an old CA for TLS handshake.
Defender version.
VPCObserver indicates whether the defender runs in a VPC observer.
{
"category": [
"container",
"host",
"serverless",
"appEmbedded",
"hostAgentless",
"containerAgentless",
"cloudSecurityAgent"
],
"certificateExpiration": "2024-07-29T15:51:28.071Z",
"cloudMetadata": {
"accountID": "string",
"awsExecutionEnv": "string",
"image": "string",
"labels": [
{
"key": "string",
"sourceName": "string",
"sourceType": [
"namespace",
"deployment",
"aws",
"azure",
"gcp",
"oci"
],
"timestamp": "2024-07-29T15:51:28.071Z",
"value": "string"
}
],
"name": "string",
"provider": [
"aws",
"azure",
"gcp",
"alibaba",
"oci",
"others"
],
"region": "string",
"resourceID": "string",
"resourceURL": "string",
"type": "string",
"vmID": "string",
"vmImageID": "string"
},
"cluster": "string",
"clusterID": "string",
"clusterType": [
"AKS",
"ECS",
"EKS",
"GKE",
"Kubernetes"
],
"collections": [
"string"
],
"compatibleVersion": true,
"connected": true,
"features": {
"clusterMonitoring": true,
"proxyListenerType": "string"
},
"firewallProtection": {
"enabled": true,
"outOfBandMode": [
"",
"Observation",
"Protection"
],
"ports": [
0
],
"supported": true,
"tlsPorts": [
0
],
"unprotectedProcesses": [
{
"port": 0,
"process": "string",
"tls": true
}
]
},
"fqdn": "string",
"hostname": "string",
"isARM64": true,
"lastModified": "2024-07-29T15:51:28.071Z",
"port": 0,
"proxy": {
"ca": "string",
"httpProxy": "string",
"noProxy": "string",
"password": {
"encrypted": "string",
"plain": "string"
},
"user": "string"
},
"remoteLoggingSupported": true,
"remoteMgmtSupported": true,
"status": {
"appFirewall": {
"enabled": true,
"err": "string",
"hostname": "string"
},
"container": {
"completed": true,
"errors": [
"string"
],
"hostname": "string",
"scanTime": "2024-07-29T15:51:28.071Z",
"scanning": true,
"selective": true
},
"containerNetworkFirewall": {
"enabled": true,
"err": "string",
"hostname": "string"
},
"features": {
"enabled": true,
"err": "string",
"hostname": "string"
},
"filesystem": {
"enabled": true,
"err": "string",
"hostname": "string"
},
"hostCustomCompliance": {
"enabled": true,
"err": "string",
"hostname": "string"
},
"hostNetworkFirewall": {
"enabled": true,
"err": "string",
"hostname": "string"
},
"image": {
"completed": true,
"errors": [
"string"
],
"hostname": "string",
"scanTime": "2024-07-29T15:51:28.071Z",
"scanning": true,
"selective": true
},
"lastModified": "2024-07-29T15:51:28.071Z",
"network": {
"enabled": true,
"err": "string",
"hostname": "string"
},
"outOfBandAppFirewall": {
"enabled": true,
"err": "string",
"hostname": "string"
},
"process": {
"enabled": true,
"err": "string",
"hostname": "string"
},
"runc": {
"enabled": true,
"err": "string",
"hostname": "string"
},
"runtime": {
"enabled": true,
"err": "string",
"hostname": "string"
},
"tasDroplets": {
"completed": true,
"errors": [
"string"
],
"hostname": "string",
"scanTime": "2024-07-29T15:51:28.071Z",
"scanning": true,
"selective": true
},
"upgrade": {
"err": "string",
"hostname": "string",
"lastModified": "2024-07-29T15:51:28.071Z",
"progress": 0
}
},
"systemInfo": {
"cpuCount": 0,
"freeDiskSpaceGB": 0,
"kernelVersion": "string",
"memoryGB": 0,
"totalDiskSpaceGB": 0
},
"tasBlobstoreScanner": true,
"tasClusterID": "string",
"tasFoundation": "string",
"type": [
"none",
"docker",
"dockerWindows",
"containerdWindows",
"swarm",
"daemonset",
"serverLinux",
"serverWindows",
"cri",
"fargate",
"appEmbedded",
"tas",
"tasWindows",
"serverless",
"ecs",
"podman"
],
"usingOldCA": true,
"version": "string",
"vpcObserver": true
}
- curl
- python
- go
- nodejs
- csharp
- php
- CURL
curl -L 'https://pan.dev/api/v33.03/defenders/:id/features' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"clusterMonitoring": true,
"proxyListenerType": "string"
}'