Policies and collections¶
Monitoring policies with their children, queue and links, and the file collections distributed to agents.
Generated automatically from pandora-cli docs (version 0.9.0, branch develop, commit 4f61789e07). Do not edit by hand; run make cli-ref.
Entities¶
| Entity | Aliases | Commands | Summary |
|---|---|---|---|
policy |
policies |
80 | Policies applied to agents |
collection |
collections |
16 | File collections distributed to agents |
policy¶
Policies applied to agents
Aliases: policies
| Command | Method | Path |
|---|---|---|
policy list |
POST | /policy/list |
policy get <idPolicy> |
GET | /policy/{idPolicy} |
policy create |
POST | /policy |
policy update <idPolicy> |
PUT | /policy/{idPolicy} |
policy delete <idPolicy> |
DELETE | /policy/{idPolicy} |
policy copy <idPolicy> |
POST | /policy/{idPolicy}/copy |
policy purge <idPolicy> |
POST | /policy/{idPolicy}/purge |
policy agent list <idPolicy> |
POST | /policy/{idPolicy}/agent/list |
policy agent get <idPolicy> <idPolicyAgent> |
GET | /policy/{idPolicy}/agent/{idPolicyAgent} |
policy agent add <idPolicy> |
POST | /policy/{idPolicy}/agent |
policy agent remove <idPolicy> <idPolicyAgent> |
DELETE | /policy/{idPolicy}/agent/{idPolicyAgent} |
policy agent restore <idPolicy> <idPolicyAgent> |
POST | /policy/{idPolicy}/agent/{idPolicyAgent}/restore |
policy alert list <idPolicy> |
POST | /policy/{idPolicy}/alert/list |
policy alert get <idPolicy> <idPolicyAlert> |
GET | /policy/{idPolicy}/alert/{idPolicyAlert} |
policy alert create <idPolicy> |
POST | /policy/{idPolicy}/alert |
policy alert update <idPolicy> <idPolicyAlert> |
PUT | /policy/{idPolicy}/alert/{idPolicyAlert} |
policy alert delete <idPolicy> <idPolicyAlert> |
DELETE | /policy/{idPolicy}/alert/{idPolicyAlert} |
policy alert restore <idPolicy> <idPolicyAlert> |
POST | /policy/{idPolicy}/alert/{idPolicyAlert}/restore |
policy alert-action list <idPolicy> <idPolicyAlert> |
POST | /policy/{idPolicy}/alert/{idPolicyAlert}/action/list |
policy alert-action add <idPolicy> <idPolicyAlert> |
POST | /policy/{idPolicy}/alert/{idPolicyAlert}/action |
policy alert-action remove <idPolicy> <idPolicyAlert> <idPolicyAlertAction> |
DELETE | /policy/{idPolicy}/alert/{idPolicyAlert}/action/{idPolicyAlertAction} |
policy collection list <idPolicy> |
POST | /policy/{idPolicy}/collection/list |
policy collection available <idPolicy> |
POST | /policy/{idPolicy}/collection/available/list |
policy collection get <idPolicy> <idPolicyCollection> |
GET | /policy/{idPolicy}/collection/{idPolicyCollection} |
policy collection add <idPolicy> |
POST | /policy/{idPolicy}/collection |
policy collection remove <idPolicy> <idPolicyCollection> |
DELETE | /policy/{idPolicy}/collection/{idPolicyCollection} |
policy collection restore <idPolicy> <idPolicyCollection> |
POST | /policy/{idPolicy}/collection/{idPolicyCollection}/restore |
policy group list <idPolicy> |
POST | /policy/{idPolicy}/group/list |
policy group get <idPolicy> <idPolicyGroup> |
GET | /policy/{idPolicy}/group/{idPolicyGroup} |
policy group add <idPolicy> |
POST | /policy/{idPolicy}/group |
policy group remove <idPolicy> <idPolicyGroup> |
DELETE | /policy/{idPolicy}/group/{idPolicyGroup} |
policy group restore <idPolicy> <idPolicyGroup> |
POST | /policy/{idPolicy}/group/{idPolicyGroup}/restore |
policy log-module list <idPolicy> |
POST | /policy/{idPolicy}/logModule/list |
policy log-module get <idPolicy> <idPolicyLogModule> |
GET | /policy/{idPolicy}/logModule/{idPolicyLogModule} |
policy log-module create <idPolicy> |
POST | /policy/{idPolicy}/logModule |
policy log-module update <idPolicy> <idPolicyLogModule> |
PUT | /policy/{idPolicy}/logModule/{idPolicyLogModule} |
policy log-module delete <idPolicy> <idPolicyLogModule> |
DELETE | /policy/{idPolicy}/logModule/{idPolicyLogModule} |
policy log-module enable <idPolicy> <idPolicyLogModule> |
POST | /policy/{idPolicy}/logModule/{idPolicyLogModule}/enable |
policy log-module disable <idPolicy> <idPolicyLogModule> |
POST | /policy/{idPolicy}/logModule/{idPolicyLogModule}/disable |
policy log-module restore <idPolicy> <idPolicyLogModule> |
POST | /policy/{idPolicy}/logModule/{idPolicyLogModule}/restore |
policy module list <idPolicy> |
POST | /policy/{idPolicy}/module/list |
policy module get <idPolicy> <idPolicyModule> |
GET | /policy/{idPolicy}/module/{idPolicyModule} |
policy module create <idPolicy> |
POST | /policy/{idPolicy}/module |
policy module update <idPolicy> <idPolicyModule> |
PUT | /policy/{idPolicy}/module/{idPolicyModule} |
policy module delete <idPolicy> <idPolicyModule> |
DELETE | /policy/{idPolicy}/module/{idPolicyModule} |
policy module enable <idPolicy> <idPolicyModule> |
POST | /policy/{idPolicy}/module/{idPolicyModule}/enable |
policy module disable <idPolicy> <idPolicyModule> |
POST | /policy/{idPolicy}/module/{idPolicyModule}/disable |
policy module restore <idPolicy> <idPolicyModule> |
POST | /policy/{idPolicy}/module/{idPolicyModule}/restore |
policy plugin list <idPolicy> |
POST | /policy/{idPolicy}/plugin/list |
policy plugin get <idPolicy> <idPolicyPlugin> |
GET | /policy/{idPolicy}/plugin/{idPolicyPlugin} |
policy plugin create <idPolicy> |
POST | /policy/{idPolicy}/plugin |
policy plugin update <idPolicy> <idPolicyPlugin> |
PUT | /policy/{idPolicy}/plugin/{idPolicyPlugin} |
policy plugin delete <idPolicy> <idPolicyPlugin> |
DELETE | /policy/{idPolicy}/plugin/{idPolicyPlugin} |
policy plugin enable <idPolicy> <idPolicyPlugin> |
POST | /policy/{idPolicy}/plugin/{idPolicyPlugin}/enable |
policy plugin disable <idPolicy> <idPolicyPlugin> |
POST | /policy/{idPolicy}/plugin/{idPolicyPlugin}/disable |
policy plugin restore <idPolicy> <idPolicyPlugin> |
POST | /policy/{idPolicy}/plugin/{idPolicyPlugin}/restore |
policy plugin bulk-delete <idPolicy> |
POST | /policy/{idPolicy}/plugin/bulk/delete |
policy plugin bulk-disable <idPolicy> |
POST | /policy/{idPolicy}/plugin/bulk/disable |
policy plugin bulk-enable <idPolicy> |
POST | /policy/{idPolicy}/plugin/bulk/enable |
policy plugin bulk-restore <idPolicy> |
POST | /policy/{idPolicy}/plugin/bulk/restore |
policy queue list <idPolicy> |
POST | /policy/{idPolicy}/queue/list |
policy queue get <idPolicy> <idPolicyQueue> |
GET | /policy/{idPolicy}/queue/{idPolicyQueue} |
policy queue summary <idPolicy> |
GET | /policy/{idPolicy}/queue/summary |
policy queue add <idPolicy> |
POST | /policy/{idPolicy}/queue |
policy queue apply-pending <idPolicy> |
POST | /policy/{idPolicy}/queue/applyPending |
policy queue clear <idPolicy> |
POST | /policy/{idPolicy}/queue/clear |
policy queue delete <idPolicy> <idPolicyQueue> |
DELETE | /policy/{idPolicy}/queue/{idPolicyQueue} |
policy external-alert list <idPolicy> |
POST | /policy/{idPolicy}/externalAlert/list |
policy external-alert get <idPolicy> <idPolicyExternalAlert> |
GET | /policy/{idPolicy}/externalAlert/{idPolicyExternalAlert} |
policy external-alert create <idPolicy> |
POST | /policy/{idPolicy}/externalAlert |
policy external-alert delete <idPolicy> <idPolicyExternalAlert> |
DELETE | /policy/{idPolicy}/externalAlert/{idPolicyExternalAlert} |
policy external-alert restore <idPolicy> <idPolicyExternalAlert> |
POST | /policy/{idPolicy}/externalAlert/{idPolicyExternalAlert}/restore |
policy external-alert-action list <idPolicy> <idPolicyExternalAlert> |
POST | /policy/{idPolicy}/externalAlert/{idPolicyExternalAlert}/action/list |
policy external-alert-action add <idPolicy> <idPolicyExternalAlert> |
POST | /policy/{idPolicy}/externalAlert/{idPolicyExternalAlert}/action |
policy external-alert-action remove <idPolicy> <idPolicyExternalAlert> <idPolicyExternalAlertAction> |
DELETE | /policy/{idPolicy}/externalAlert/{idPolicyExternalAlert}/action/{idPolicyExternalAlertAction} |
policy fim get <idPolicy> |
GET | /policy/{idPolicy}/fim |
policy fim update <idPolicy> |
PUT | /policy/{idPolicy}/fim |
policy linking list <idPolicy> |
POST | /policy/{idPolicy}/linking/list |
policy linking link <idPolicy> <idAgentModule> |
POST | /policy/{idPolicy}/linking/{idAgentModule}/link |
policy linking bulk-link <idPolicy> |
POST | /policy/{idPolicy}/linking/bulk/link |
Fields for --where, --fields and --in: applyToSecondaryGroups, createLinkedModules, description, forceApply, idGroup, idPolicy, name, status
--filter additionally accepts every other field of the entity (13 in total).
policy copy— The specification declares name and idGroup for the new policy.
policy purge— Only queues the operation; runpolicy queue listto follow its progress.
policy agent remove— The relation is only marked pendingDelete, andpolicy queue apply-pendingignores agents in that state. Complete the removal withpolicy queue add <idPolicy> --set operation=delete --set idAgent=<idAgent>.
policy alert delete— The alert is only marked; the deletion takes effect when the policy queue is applied.
policy collection remove— The association is only marked; the removal takes effect when the policy queue is applied.
policy group remove— The relation is only marked; the removal takes effect when the policy queue is applied.
policy log-module delete— The log module is only marked; the deletion takes effect when the policy queue is applied.
policy module delete— The module is only marked; the deletion takes effect when the policy queue is applied.
policy plugin delete— The plugin is only marked; the deletion takes effect when the policy queue is applied.
policy plugin bulk-delete— The body is a JSON array of plugin ids, sent with --from-file (--set cannot build a top-level array); the result reports success and error counts per plugin.
policy plugin bulk-disable— The body is a JSON array of plugin ids, sent with --from-file (--set cannot build a top-level array); the result reports success and error counts per plugin.
policy plugin bulk-enable— The body is a JSON array of plugin ids, sent with --from-file (--set cannot build a top-level array); the result reports success and error counts per plugin.
policy plugin bulk-restore— The body is a JSON array of plugin ids, sent with --from-file (--set cannot build a top-level array); the result reports success and error counts per plugin.
policy queue apply-pending— The specification declares a request body, so an empty one is sent when none is given. It does not process agents marked pendingDelete (policy agent remove): to remove an agent from the policy usepolicy queue add --set operation=delete --set idAgent=<idAgent>.
policy external-alert create— The specification requires idAlertTemplate and nameExternModule; exactMatch is optional.
policy external-alert delete— The alert is only marked; the deletion takes effect when the policy queue is applied.
policy external-alert-action add— The specification requires idAlertAction; firesMin, firesMax and moduleActionThreshold are optional.
policy fim update— --set does not parse array literals: --set files='["/a","/b"]' becomes a one-element array holding that text. Repeat the flag for each item (--set files=/a --set files=/b) or send the payload with --from-file.
policy linking bulk-link— The body is a JSON array of objects with idAgentModule (required) and serverId (required on a metaconsole), sent with --from-file (--set cannot build a top-level array).
collection¶
File collections distributed to agents
Aliases: collections
| Command | Method | Path |
|---|---|---|
collection list |
POST | /collection/list |
collection get <idCollection> |
GET | /collection/{idCollection} |
collection create |
POST | /collection |
collection update <idCollection> |
PUT | /collection/{idCollection} |
collection delete <idCollection> |
DELETE | /collection/{idCollection} |
collection apply <idCollection> |
POST | /collection/{idCollection}/apply |
collection file read <idCollection> |
GET | /collection/{idCollection}/file |
collection file create <idCollection> |
POST | /collection/{idCollection}/file |
collection file update <idCollection> |
PUT | /collection/{idCollection}/file |
collection file delete <idCollection> |
DELETE | /collection/{idCollection}/file |
collection file download <idCollection> |
GET | /collection/{idCollection}/file/download |
collection file list <idCollection> |
POST | /collection/{idCollection}/file/list |
collection file upload <idCollection> |
POST | /collection/{idCollection}/file/upload |
collection folder create <idCollection> |
POST | /collection/{idCollection}/folder |
collection folder delete <idCollection> |
DELETE | /collection/{idCollection}/folder |
collection agent list <idCollection> |
POST | /collection/{idCollection}/agent/list |
Fields for --where, --fields and --in: description, idCollection, idGroup, name, shortName, status
--filter additionally accepts every other field of the entity (11 in total).
collection apply— The specification declares an empty request body, so an empty one is sent. Run it after changing files so agents pick up the new package.
collection file download— The response is raw bytes, so --output-fileis required (use --output-file - to write to stdout). An existing file is only replaced with --force. -o/--output still selects the output format.
collection file list— The folder to browse travels in the body (--set folder=...); omit it to list the root of the collection.
collection file upload— Sends multipart/form-data. Pass the file with --file(or --file = ); --set supplies the text form fields folder, decompress, overwrite and permissions. --from-file does not apply. --set coerces numeric-looking values to numbers, so permissions=0755 is sent as the number 755; quote it to keep a string: --set 'permissions="0755"'.
collection folder create— --set coerces numeric-looking values to numbers (permissions=0755 is sent as 755) and true/false to booleans. For a string field quote the value, e.g. --set 'permissions="0755"', or send the payload with --from-file.
collection file upload uploads files as multipart/form-data: pass --file <path> (or --file <field>=<path>, repeatable) and optional text form fields with --set field=value. It has no --from-file.
collection file download returns raw bytes: --output-file <file> is required (--output-file - writes to stdout), an existing file is replaced only with --force, and a failed download leaves no partial file. --output-file is the destination; -o/--output still selects the output format.