Table: prismacloud_compliance_standard - Query Prisma Cloud compliance standards using SQL
The Prisma Cloud compliance standard table in Steampipe provides you with information about compliance standards within Prisma Cloud. This table allows you, as a security engineer or cloud administrator, to query compliance standard-specific details, including name, description, associated policies, and more. You can utilize this table to gather insights on standards, such as their cloud types, creation and modification details, and more. The schema outlines the various attributes of the Prisma Cloud compliance standard for you, including the standard's ID, name, and description.
Table Usage Guide
The prismacloud_compliance_standard
table in Steampipe provides information about compliance standards within Prisma Cloud. This table allows you to query details such as the standard's name, description, associated policies, and more, enabling you to manage and monitor your compliance standards effectively.
Examples
Basic Info
Retrieve basic information about Prisma Cloud compliance standards, such as name, description, and whether it is a system default. This query helps you to understand the overall configuration and details of your standards.
select name, description, system_defaultfrom prismacloud_compliance_standard;
select name, description, system_defaultfrom prismacloud_compliance_standard;
Assigned policies count with standard compliance
Get a list of all compliance standards along with the number of policies assigned to them. This is useful for identifying which standards have the most policies assigned.
select name, id, policies_assigned_countfrom prismacloud_compliance_standard;
select name, id, policies_assigned_countfrom prismacloud_compliance_standard;
Get assigned policy details for standard compliance
This information is crucial for security engineers and cloud administrators to ensure that compliance requirements are being met and to monitor the status and impact of various security policies.
select c.name as compliance_name, c.id as compliance_id, c.created_on as compliance_create_time, p.policy_id, p.name as policy_name, p.severity as policy_severity, p.enabled as is_policy_enabledfrom prismacloud_compliance_standard as c join prismacloud_policy as p on p.compliance_requirement_name = c.name;
select c.name as compliance_name, c.id as compliance_id, c.created_on as compliance_create_time, p.policy_id, p.name as policy_name, p.severity as policy_severity, p.enabled as is_policy_enabledfrom prismacloud_compliance_standard as c join prismacloud_policy as p on p.compliance_requirement_name = c.name;
Recently modified standard compliances
Retrieve compliance standards that were modified recently. This helps in tracking changes and understanding recent modifications.
select name, last_modified_by, last_modified_onfrom prismacloud_compliance_standardwhere last_modified_on > now() - interval '30 day';
select name, last_modified_by, last_modified_onfrom prismacloud_compliance_standardwhere last_modified_on > datetime('now', '-30 days');
Standard compliance created by a specific user
Get a list of compliance standards that were created by a specific user. This helps in understanding who created which standards.
select name, created_byfrom prismacloud_compliance_standardwhere created_by = 'user@example.com';
select name, created_byfrom prismacloud_compliance_standardwhere created_by = 'user@example.com';
Standard compliances for specific cloud types
Retrieve compliance standards that apply to specific cloud environments. This helps in managing standards based on cloud types.
select name, cloud_typefrom prismacloud_compliance_standardwhere cloud_type ?| array [ 'aws', 'azure' ];
select name, cloud_typefrom prismacloud_compliance_standardwhere json_contains(cloud_type, json_array('aws', 'azure'));
Schema for prismacloud_compliance_standard
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
cloud_type | jsonb | The types of cloud environments the standard applies to. | |
created_by | text | The user who created the standard. | |
created_on | timestamp with time zone | The timestamp when the standard was created. | |
description | text | The description of the standard. | |
text | =, !=, ~~, ~~*, !~~, !~~* | Email address of the current session user. | |
id | text | = | The unique identifier for the standard. |
last_modified_by | text | The user who last modified the standard. | |
last_modified_on | timestamp with time zone | The timestamp when the standard was last modified. | |
name | text | The name of the standard. | |
policies_assigned_count | bigint | The number of policies assigned to the standard. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
system_default | boolean | Indicates if the standard is a system default. | |
title | text | Title of the compliance standard. |
Export
This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- prismacloud
You can pass the configuration to the command with the --config
argument:
steampipe_export_prismacloud --config '<your_config>' prismacloud_compliance_standard