copyright | lastupdated | keywords | subcollection | ||
---|---|---|---|---|---|
|
2024-10-15 |
custom profiles, user-defined, controls, goals, security, compliance |
security-compliance |
{{site.data.keyword.attribute-definition-list}}
{: #results}
With {{site.data.keyword.compliance_full}}, you can view the results of a compliance evaluation in the dashboard or by using the API. {: shortdesc}
If you have access to a subscope but not the overarching scope, you will only see the results for the resources that you have access to view. {: tip}
{: #before-results}
Before you get started, be sure that you have the following prerequisites.
-
The required level of access to view results.
- To view results for an entire scope in your account, you must have the Reader service role or higher.
- To view results for a subscope, you must have the Reader service role or higher to {{site.data.keyword.compliance_short}} and for the resource that is being evaluated.
- If you are evaluating resources that require more credentials, you must also have access to those credentials.
{: #understand-dashboard}
As you evaluate your resources, the results are returned via the service UI in graphical and detailed formats.
{: caption="Example dashboard" caption-side="bottom"}
When you visit the dashboard, there are three graphical representations of data that have been aggregated from your scans. You see the:
Success rate : The rate at which your configurations pass the evaluation that is conducted. Note: The number of evaluations that are conducted does not always match the number of billable evaluations, as there is no charge for assessments that are evaluated as unable to perform. Be sure to look for the billable evaluations in each scan result if you need to estimate your cost.
Total controls : The total number of controls that have been evaluated in the past 30 days.
Total evaluations : The total number of evaluations that have been run in the past 30 days. An evaluation is the check of one resource against one assessment.
{: #status}
When you view results in {{site.data.keyword.compliance_short}}, each evaluation produces a result of pass
, fail
, unable to perform
, or user_evaluation_required
. Check out the following table to learn more about what each result means.
Result | Description |
---|---|
Pass | Your resource was compliant with the defined standard. |
Fail | Your resource was not compliant with the defined standard. |
Unable to perform | The assessment could not be performed. Potential reasons include the resource not existing in your account, a misconfiguration, or an error on behalf of {{site.data.keyword.compliance_short}}. |
User evaluation required | The assessment has not yet been automated. To validate that you are meeting the standard, you must check your resource manually. |
{: caption="Understanding result statuses} |
{: #view-detailed-results} {: ui}
To view the information of a scan, you can use the {{site.data.keyword.compliance_short}} UI.
If you edit your scope after it is already part of an attachment, any following scan results are listed as a new entry in the detailed results for your attachment. This means that you might see two entries with the same name. {: note}
- In the {{site.data.keyword.cloud_notm}} console, go to the Resource list page and select your instance of {{site.data.keyword.compliance_short}}.
- In your instance of {{site.data.keyword.compliance_short}}, go to the Dashboard.
- In the Detailed results section, find the row for the specific Scope and Profile combination that you want to view results for and click View in the Results column.
A page opens with an Overview of your results. To further investigate, you can view the results by Control or by Resource. Check out the following table to see what information is available in each tab.
{: #view-detailed-results-api} {: api}
To get a report summary, you can use the {{site.data.keyword.compliance_short}} API.
curl -X GET
--location --header "Authorization: Bearer {iam_token}"
--header "Accept: application/json"
"https://us-south.compliance.cloud.ibm.com/instances/{instance_id}/v3/reports/{report_id}/summary"
{: pre} {: curl}
(securityAndComplianceCenterApi *SecurityAndComplianceCenterApiV3) GetReportSummary(getReportSummaryOptions *GetReportSummaryOptions) (result *ReportSummary, response *core.DetailedResponse, err error)
{: codeblock} {: go}
GetReportSummaryOptions getReportSummaryOptions = new GetReportSummaryOptions.Builder()
.reportId(reportIdForReportLink)
.build();
Response<ReportSummary> response = securityAndComplianceCenterApiService.getReportSummary(getReportSummaryOptions).execute();
ReportSummary reportSummary = response.getResult();
System.out.println(reportSummary);
{: codeblock} {: java}
const params = {
reportId: reportIdForReportLink,
};
let res;
try {
res = await securityAndComplianceCenterApiService.getReportSummary(params);
console.log(JSON.stringify(res.result, null, 2));
} catch (err) {
console.warn(err);
}
{: codeblock} {: node}
response = security_and_compliance_center_api_service.get_report_summary(
report_id=report_id_for_report_link,
)
report_summary = response.get_result()
print(json.dumps(report_summary, indent=2))
{: codeblock} {: python}
A successful response returns the detailed report from your scan, along with other metadata. For more information about the required and optional request parameters, check out the API docs.
{: #view-detailed-results-cli} {: cli}
To get a report summary, you can use the {{site.data.keyword.compliance_short}} CLI. For more information, see the CLI reference.
ibmcloud security-compliance report summary
--report-id=exampleString
--x-correlation-id=exampleString
--x-request-id=exampleString
{: pre}
{: #view-detailed-results-terraform} {: terraform}
To get a report summary, you can use Terraform.
data "ibm_scc_report_summary" "scc_report_summary" {
report_id = "report_id"
}
{: pre}
For more information, check out the {{site.data.keyword.compliance_short}} Terraform reference{: external}.
{: #download-report} {: ui}
If you need to keep your results for long periods of time, or provide information to key stakeholders, you can download a report.
- In the {{site.data.keyword.cloud_notm}} console, go to the Resource list page and select your instance of {{site.data.keyword.compliance_short}}.
- In your instance of {{site.data.keyword.compliance_short}}, go to the Dashboard.
- Find the row for the specific Scope and Profile combination that you want to view results for and click the Results link. A page with the details of the latest evaluation opens.
- Click Download report.
A CSV with your evaluation results is downloaded to your local system.