oci.DataSafe.getSecurityAssessmentTemplateAnalytics
Explore with Pulumi AI
This data source provides the list of Security Assessment Template Analytics in Oracle Cloud Infrastructure Data Safe service.
Gets a list of template aggregated details in the specified compartment. This provides information about the overall template usage, by returning the count of the target databases/target groups using the templates. It also provides information about the statistics for the template baseline and the comparison related. If the comparison is done, it will show if there is any drift, and how many checks have drifts. The dimension field - isGroup identifies if the targetId belongs to a target group or a individual target. The dimension field - isCompared identifies if the comparison between the latest assessment and the template baseline assessment is done or not. The dimension field - isCompliant identifies if the latest assessment is compliant with the template baseline assessment or not. The dimension field - totalChecksFailed identifies how many checks in the template have drifts in the comparison.
When you perform the ListTemplateAnalytics operation, if the parameter compartmentIdInSubtree is set to “true,” and if the parameter accessLevel is set to ACCESSIBLE, then the operation returns statistics from the compartments in which the requestor has INSPECT permissions on at least one resource, directly or indirectly (in subcompartments). If the operation is performed at the root compartment and the requestor does not have access to at least one subcompartment of the compartment specified by compartmentId, then “Not Authorized” is returned.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSecurityAssessmentTemplateAnalytics = oci.DataSafe.getSecurityAssessmentTemplateAnalytics({
compartmentId: compartmentId,
accessLevel: securityAssessmentTemplateAnalyticAccessLevel,
compartmentIdInSubtree: securityAssessmentTemplateAnalyticCompartmentIdInSubtree,
isCompared: securityAssessmentTemplateAnalyticIsCompared,
isCompliant: securityAssessmentTemplateAnalyticIsCompliant,
isGroup: securityAssessmentTemplateAnalyticIsGroup,
targetDatabaseGroupId: testTargetDatabaseGroup.id,
targetId: testTarget.id,
templateAssessmentId: testTemplateAssessment.id,
templateBaselineAssessmentId: testTemplateBaselineAssessment.id,
});
import pulumi
import pulumi_oci as oci
test_security_assessment_template_analytics = oci.DataSafe.get_security_assessment_template_analytics(compartment_id=compartment_id,
access_level=security_assessment_template_analytic_access_level,
compartment_id_in_subtree=security_assessment_template_analytic_compartment_id_in_subtree,
is_compared=security_assessment_template_analytic_is_compared,
is_compliant=security_assessment_template_analytic_is_compliant,
is_group=security_assessment_template_analytic_is_group,
target_database_group_id=test_target_database_group["id"],
target_id=test_target["id"],
template_assessment_id=test_template_assessment["id"],
template_baseline_assessment_id=test_template_baseline_assessment["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/datasafe"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datasafe.GetSecurityAssessmentTemplateAnalytics(ctx, &datasafe.GetSecurityAssessmentTemplateAnalyticsArgs{
CompartmentId: compartmentId,
AccessLevel: pulumi.StringRef(securityAssessmentTemplateAnalyticAccessLevel),
CompartmentIdInSubtree: pulumi.BoolRef(securityAssessmentTemplateAnalyticCompartmentIdInSubtree),
IsCompared: pulumi.BoolRef(securityAssessmentTemplateAnalyticIsCompared),
IsCompliant: pulumi.BoolRef(securityAssessmentTemplateAnalyticIsCompliant),
IsGroup: pulumi.BoolRef(securityAssessmentTemplateAnalyticIsGroup),
TargetDatabaseGroupId: pulumi.StringRef(testTargetDatabaseGroup.Id),
TargetId: pulumi.StringRef(testTarget.Id),
TemplateAssessmentId: pulumi.StringRef(testTemplateAssessment.Id),
TemplateBaselineAssessmentId: pulumi.StringRef(testTemplateBaselineAssessment.Id),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testSecurityAssessmentTemplateAnalytics = Oci.DataSafe.GetSecurityAssessmentTemplateAnalytics.Invoke(new()
{
CompartmentId = compartmentId,
AccessLevel = securityAssessmentTemplateAnalyticAccessLevel,
CompartmentIdInSubtree = securityAssessmentTemplateAnalyticCompartmentIdInSubtree,
IsCompared = securityAssessmentTemplateAnalyticIsCompared,
IsCompliant = securityAssessmentTemplateAnalyticIsCompliant,
IsGroup = securityAssessmentTemplateAnalyticIsGroup,
TargetDatabaseGroupId = testTargetDatabaseGroup.Id,
TargetId = testTarget.Id,
TemplateAssessmentId = testTemplateAssessment.Id,
TemplateBaselineAssessmentId = testTemplateBaselineAssessment.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.DataSafeFunctions;
import com.pulumi.oci.DataSafe.inputs.GetSecurityAssessmentTemplateAnalyticsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testSecurityAssessmentTemplateAnalytics = DataSafeFunctions.getSecurityAssessmentTemplateAnalytics(GetSecurityAssessmentTemplateAnalyticsArgs.builder()
.compartmentId(compartmentId)
.accessLevel(securityAssessmentTemplateAnalyticAccessLevel)
.compartmentIdInSubtree(securityAssessmentTemplateAnalyticCompartmentIdInSubtree)
.isCompared(securityAssessmentTemplateAnalyticIsCompared)
.isCompliant(securityAssessmentTemplateAnalyticIsCompliant)
.isGroup(securityAssessmentTemplateAnalyticIsGroup)
.targetDatabaseGroupId(testTargetDatabaseGroup.id())
.targetId(testTarget.id())
.templateAssessmentId(testTemplateAssessment.id())
.templateBaselineAssessmentId(testTemplateBaselineAssessment.id())
.build());
}
}
variables:
testSecurityAssessmentTemplateAnalytics:
fn::invoke:
function: oci:DataSafe:getSecurityAssessmentTemplateAnalytics
arguments:
compartmentId: ${compartmentId}
accessLevel: ${securityAssessmentTemplateAnalyticAccessLevel}
compartmentIdInSubtree: ${securityAssessmentTemplateAnalyticCompartmentIdInSubtree}
isCompared: ${securityAssessmentTemplateAnalyticIsCompared}
isCompliant: ${securityAssessmentTemplateAnalyticIsCompliant}
isGroup: ${securityAssessmentTemplateAnalyticIsGroup}
targetDatabaseGroupId: ${testTargetDatabaseGroup.id}
targetId: ${testTarget.id}
templateAssessmentId: ${testTemplateAssessment.id}
templateBaselineAssessmentId: ${testTemplateBaselineAssessment.id}
Using getSecurityAssessmentTemplateAnalytics
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSecurityAssessmentTemplateAnalytics(args: GetSecurityAssessmentTemplateAnalyticsArgs, opts?: InvokeOptions): Promise<GetSecurityAssessmentTemplateAnalyticsResult>
function getSecurityAssessmentTemplateAnalyticsOutput(args: GetSecurityAssessmentTemplateAnalyticsOutputArgs, opts?: InvokeOptions): Output<GetSecurityAssessmentTemplateAnalyticsResult>
def get_security_assessment_template_analytics(access_level: Optional[str] = None,
compartment_id: Optional[str] = None,
compartment_id_in_subtree: Optional[bool] = None,
filters: Optional[Sequence[GetSecurityAssessmentTemplateAnalyticsFilter]] = None,
is_compared: Optional[bool] = None,
is_compliant: Optional[bool] = None,
is_group: Optional[bool] = None,
target_database_group_id: Optional[str] = None,
target_id: Optional[str] = None,
template_assessment_id: Optional[str] = None,
template_baseline_assessment_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSecurityAssessmentTemplateAnalyticsResult
def get_security_assessment_template_analytics_output(access_level: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetSecurityAssessmentTemplateAnalyticsFilterArgs]]]] = None,
is_compared: Optional[pulumi.Input[bool]] = None,
is_compliant: Optional[pulumi.Input[bool]] = None,
is_group: Optional[pulumi.Input[bool]] = None,
target_database_group_id: Optional[pulumi.Input[str]] = None,
target_id: Optional[pulumi.Input[str]] = None,
template_assessment_id: Optional[pulumi.Input[str]] = None,
template_baseline_assessment_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSecurityAssessmentTemplateAnalyticsResult]
func GetSecurityAssessmentTemplateAnalytics(ctx *Context, args *GetSecurityAssessmentTemplateAnalyticsArgs, opts ...InvokeOption) (*GetSecurityAssessmentTemplateAnalyticsResult, error)
func GetSecurityAssessmentTemplateAnalyticsOutput(ctx *Context, args *GetSecurityAssessmentTemplateAnalyticsOutputArgs, opts ...InvokeOption) GetSecurityAssessmentTemplateAnalyticsResultOutput
> Note: This function is named GetSecurityAssessmentTemplateAnalytics
in the Go SDK.
public static class GetSecurityAssessmentTemplateAnalytics
{
public static Task<GetSecurityAssessmentTemplateAnalyticsResult> InvokeAsync(GetSecurityAssessmentTemplateAnalyticsArgs args, InvokeOptions? opts = null)
public static Output<GetSecurityAssessmentTemplateAnalyticsResult> Invoke(GetSecurityAssessmentTemplateAnalyticsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSecurityAssessmentTemplateAnalyticsResult> getSecurityAssessmentTemplateAnalytics(GetSecurityAssessmentTemplateAnalyticsArgs args, InvokeOptions options)
public static Output<GetSecurityAssessmentTemplateAnalyticsResult> getSecurityAssessmentTemplateAnalytics(GetSecurityAssessmentTemplateAnalyticsArgs args, InvokeOptions options)
fn::invoke:
function: oci:DataSafe/getSecurityAssessmentTemplateAnalytics:getSecurityAssessmentTemplateAnalytics
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- Access
Level string - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- Compartment
Id boolIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
- Filters
List<Get
Security Assessment Template Analytics Filter> - Is
Compared bool - A filter to return only the statistics where the comparison between the latest assessment and the template baseline assessment is done.
- Is
Compliant bool - A filter to return only the statistics where the latest assessment is compliant with the template baseline assessment.
- Is
Group bool - A filter to return only the target group related information if the OCID belongs to a target group.
- Target
Database stringGroup Id - A filter to return the target database group that matches the specified OCID.
- Target
Id string - A filter to return only items related to a specific target OCID.
- Template
Assessment stringId - The OCID of the security assessment of type TEMPLATE.
- Template
Baseline stringAssessment Id - The OCID of the security assessment of type TEMPLATE_BASELINE.
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- Access
Level string - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- Compartment
Id boolIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
- Filters
[]Get
Security Assessment Template Analytics Filter - Is
Compared bool - A filter to return only the statistics where the comparison between the latest assessment and the template baseline assessment is done.
- Is
Compliant bool - A filter to return only the statistics where the latest assessment is compliant with the template baseline assessment.
- Is
Group bool - A filter to return only the target group related information if the OCID belongs to a target group.
- Target
Database stringGroup Id - A filter to return the target database group that matches the specified OCID.
- Target
Id string - A filter to return only items related to a specific target OCID.
- Template
Assessment stringId - The OCID of the security assessment of type TEMPLATE.
- Template
Baseline stringAssessment Id - The OCID of the security assessment of type TEMPLATE_BASELINE.
- compartment
Id String - A filter to return only resources that match the specified compartment OCID.
- access
Level String - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- compartment
Id BooleanIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
- filters
List<Get
Security Assessment Template Analytics Filter> - is
Compared Boolean - A filter to return only the statistics where the comparison between the latest assessment and the template baseline assessment is done.
- is
Compliant Boolean - A filter to return only the statistics where the latest assessment is compliant with the template baseline assessment.
- is
Group Boolean - A filter to return only the target group related information if the OCID belongs to a target group.
- target
Database StringGroup Id - A filter to return the target database group that matches the specified OCID.
- target
Id String - A filter to return only items related to a specific target OCID.
- template
Assessment StringId - The OCID of the security assessment of type TEMPLATE.
- template
Baseline StringAssessment Id - The OCID of the security assessment of type TEMPLATE_BASELINE.
- compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- access
Level string - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- compartment
Id booleanIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
- filters
Get
Security Assessment Template Analytics Filter[] - is
Compared boolean - A filter to return only the statistics where the comparison between the latest assessment and the template baseline assessment is done.
- is
Compliant boolean - A filter to return only the statistics where the latest assessment is compliant with the template baseline assessment.
- is
Group boolean - A filter to return only the target group related information if the OCID belongs to a target group.
- target
Database stringGroup Id - A filter to return the target database group that matches the specified OCID.
- target
Id string - A filter to return only items related to a specific target OCID.
- template
Assessment stringId - The OCID of the security assessment of type TEMPLATE.
- template
Baseline stringAssessment Id - The OCID of the security assessment of type TEMPLATE_BASELINE.
- compartment_
id str - A filter to return only resources that match the specified compartment OCID.
- access_
level str - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- compartment_
id_ boolin_ subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
- filters
Sequence[Get
Security Assessment Template Analytics Filter] - is_
compared bool - A filter to return only the statistics where the comparison between the latest assessment and the template baseline assessment is done.
- is_
compliant bool - A filter to return only the statistics where the latest assessment is compliant with the template baseline assessment.
- is_
group bool - A filter to return only the target group related information if the OCID belongs to a target group.
- target_
database_ strgroup_ id - A filter to return the target database group that matches the specified OCID.
- target_
id str - A filter to return only items related to a specific target OCID.
- template_
assessment_ strid - The OCID of the security assessment of type TEMPLATE.
- template_
baseline_ strassessment_ id - The OCID of the security assessment of type TEMPLATE_BASELINE.
- compartment
Id String - A filter to return only resources that match the specified compartment OCID.
- access
Level String - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- compartment
Id BooleanIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
- filters List<Property Map>
- is
Compared Boolean - A filter to return only the statistics where the comparison between the latest assessment and the template baseline assessment is done.
- is
Compliant Boolean - A filter to return only the statistics where the latest assessment is compliant with the template baseline assessment.
- is
Group Boolean - A filter to return only the target group related information if the OCID belongs to a target group.
- target
Database StringGroup Id - A filter to return the target database group that matches the specified OCID.
- target
Id String - A filter to return only items related to a specific target OCID.
- template
Assessment StringId - The OCID of the security assessment of type TEMPLATE.
- template
Baseline StringAssessment Id - The OCID of the security assessment of type TEMPLATE_BASELINE.
getSecurityAssessmentTemplateAnalytics Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Template
Analytics List<GetCollections Security Assessment Template Analytics Template Analytics Collection> - The list of template_analytics_collection.
- Access
Level string - Compartment
Id boolIn Subtree - Filters
List<Get
Security Assessment Template Analytics Filter> - Is
Compared bool - Indicates whether or not the comparison between the latest assessment and the template baseline assessment is done. If the value is false, it means the comparison is not done yet.
- Is
Compliant bool - Indicates whether or not the latest assessment is compliant with the template baseline assessment. If the value is false, it means there is drift in the comparison report and the totalChecksFailed field will have a non-zero value.
- Is
Group bool - Indicates whether or not the template security assessment is applied to a target group. If the value is false, it means the template security assessment is applied to a individual target.
- Target
Database stringGroup Id - The OCID of the target database group that the group assessment is created for. This field will be in the response if the template was applied on a target group.
- Target
Id string - The OCID of the target database. This field will be in the response if the template was applied on an individual target.
- Template
Assessment stringId - The OCID of the security assessment of type TEMPLATE.
- Template
Baseline stringAssessment Id - The OCID of the security assessment of type TEMPLATE_BASELINE.
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Template
Analytics []GetCollections Security Assessment Template Analytics Template Analytics Collection - The list of template_analytics_collection.
- Access
Level string - Compartment
Id boolIn Subtree - Filters
[]Get
Security Assessment Template Analytics Filter - Is
Compared bool - Indicates whether or not the comparison between the latest assessment and the template baseline assessment is done. If the value is false, it means the comparison is not done yet.
- Is
Compliant bool - Indicates whether or not the latest assessment is compliant with the template baseline assessment. If the value is false, it means there is drift in the comparison report and the totalChecksFailed field will have a non-zero value.
- Is
Group bool - Indicates whether or not the template security assessment is applied to a target group. If the value is false, it means the template security assessment is applied to a individual target.
- Target
Database stringGroup Id - The OCID of the target database group that the group assessment is created for. This field will be in the response if the template was applied on a target group.
- Target
Id string - The OCID of the target database. This field will be in the response if the template was applied on an individual target.
- Template
Assessment stringId - The OCID of the security assessment of type TEMPLATE.
- Template
Baseline stringAssessment Id - The OCID of the security assessment of type TEMPLATE_BASELINE.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- template
Analytics List<GetCollections Security Assessment Template Analytics Template Analytics Collection> - The list of template_analytics_collection.
- access
Level String - compartment
Id BooleanIn Subtree - filters
List<Get
Security Assessment Template Analytics Filter> - is
Compared Boolean - Indicates whether or not the comparison between the latest assessment and the template baseline assessment is done. If the value is false, it means the comparison is not done yet.
- is
Compliant Boolean - Indicates whether or not the latest assessment is compliant with the template baseline assessment. If the value is false, it means there is drift in the comparison report and the totalChecksFailed field will have a non-zero value.
- is
Group Boolean - Indicates whether or not the template security assessment is applied to a target group. If the value is false, it means the template security assessment is applied to a individual target.
- target
Database StringGroup Id - The OCID of the target database group that the group assessment is created for. This field will be in the response if the template was applied on a target group.
- target
Id String - The OCID of the target database. This field will be in the response if the template was applied on an individual target.
- template
Assessment StringId - The OCID of the security assessment of type TEMPLATE.
- template
Baseline StringAssessment Id - The OCID of the security assessment of type TEMPLATE_BASELINE.
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- template
Analytics GetCollections Security Assessment Template Analytics Template Analytics Collection[] - The list of template_analytics_collection.
- access
Level string - compartment
Id booleanIn Subtree - filters
Get
Security Assessment Template Analytics Filter[] - is
Compared boolean - Indicates whether or not the comparison between the latest assessment and the template baseline assessment is done. If the value is false, it means the comparison is not done yet.
- is
Compliant boolean - Indicates whether or not the latest assessment is compliant with the template baseline assessment. If the value is false, it means there is drift in the comparison report and the totalChecksFailed field will have a non-zero value.
- is
Group boolean - Indicates whether or not the template security assessment is applied to a target group. If the value is false, it means the template security assessment is applied to a individual target.
- target
Database stringGroup Id - The OCID of the target database group that the group assessment is created for. This field will be in the response if the template was applied on a target group.
- target
Id string - The OCID of the target database. This field will be in the response if the template was applied on an individual target.
- template
Assessment stringId - The OCID of the security assessment of type TEMPLATE.
- template
Baseline stringAssessment Id - The OCID of the security assessment of type TEMPLATE_BASELINE.
- compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- template_
analytics_ Sequence[Getcollections Security Assessment Template Analytics Template Analytics Collection] - The list of template_analytics_collection.
- access_
level str - compartment_
id_ boolin_ subtree - filters
Sequence[Get
Security Assessment Template Analytics Filter] - is_
compared bool - Indicates whether or not the comparison between the latest assessment and the template baseline assessment is done. If the value is false, it means the comparison is not done yet.
- is_
compliant bool - Indicates whether or not the latest assessment is compliant with the template baseline assessment. If the value is false, it means there is drift in the comparison report and the totalChecksFailed field will have a non-zero value.
- is_
group bool - Indicates whether or not the template security assessment is applied to a target group. If the value is false, it means the template security assessment is applied to a individual target.
- target_
database_ strgroup_ id - The OCID of the target database group that the group assessment is created for. This field will be in the response if the template was applied on a target group.
- target_
id str - The OCID of the target database. This field will be in the response if the template was applied on an individual target.
- template_
assessment_ strid - The OCID of the security assessment of type TEMPLATE.
- template_
baseline_ strassessment_ id - The OCID of the security assessment of type TEMPLATE_BASELINE.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- template
Analytics List<Property Map>Collections - The list of template_analytics_collection.
- access
Level String - compartment
Id BooleanIn Subtree - filters List<Property Map>
- is
Compared Boolean - Indicates whether or not the comparison between the latest assessment and the template baseline assessment is done. If the value is false, it means the comparison is not done yet.
- is
Compliant Boolean - Indicates whether or not the latest assessment is compliant with the template baseline assessment. If the value is false, it means there is drift in the comparison report and the totalChecksFailed field will have a non-zero value.
- is
Group Boolean - Indicates whether or not the template security assessment is applied to a target group. If the value is false, it means the template security assessment is applied to a individual target.
- target
Database StringGroup Id - The OCID of the target database group that the group assessment is created for. This field will be in the response if the template was applied on a target group.
- target
Id String - The OCID of the target database. This field will be in the response if the template was applied on an individual target.
- template
Assessment StringId - The OCID of the security assessment of type TEMPLATE.
- template
Baseline StringAssessment Id - The OCID of the security assessment of type TEMPLATE_BASELINE.
Supporting Types
GetSecurityAssessmentTemplateAnalyticsFilter
GetSecurityAssessmentTemplateAnalyticsTemplateAnalyticsCollection
- Items
List<Get
Security Assessment Template Analytics Template Analytics Collection Item> - The array of template analytics summary.
- Items
[]Get
Security Assessment Template Analytics Template Analytics Collection Item - The array of template analytics summary.
- items
List<Get
Security Assessment Template Analytics Template Analytics Collection Item> - The array of template analytics summary.
- items
Get
Security Assessment Template Analytics Template Analytics Collection Item[] - The array of template analytics summary.
- items
Sequence[Get
Security Assessment Template Analytics Template Analytics Collection Item] - The array of template analytics summary.
- items List<Property Map>
- The array of template analytics summary.
GetSecurityAssessmentTemplateAnalyticsTemplateAnalyticsCollectionItem
- Dimensions
List<Get
Security Assessment Template Analytics Template Analytics Collection Item Dimension> - The scope of analytics data.
- Metric
Name string - The name of the aggregation metric.
- Security
Assessment stringTemplate Analytic Count - The total count for the aggregation metric.
- Dimensions
[]Get
Security Assessment Template Analytics Template Analytics Collection Item Dimension - The scope of analytics data.
- Metric
Name string - The name of the aggregation metric.
- Security
Assessment stringTemplate Analytic Count - The total count for the aggregation metric.
- dimensions
List<Get
Security Assessment Template Analytics Template Analytics Collection Item Dimension> - The scope of analytics data.
- metric
Name String - The name of the aggregation metric.
- security
Assessment StringTemplate Analytic Count - The total count for the aggregation metric.
- dimensions
Get
Security Assessment Template Analytics Template Analytics Collection Item Dimension[] - The scope of analytics data.
- metric
Name string - The name of the aggregation metric.
- security
Assessment stringTemplate Analytic Count - The total count for the aggregation metric.
- dimensions
Sequence[Get
Security Assessment Template Analytics Template Analytics Collection Item Dimension] - The scope of analytics data.
- metric_
name str - The name of the aggregation metric.
- security_
assessment_ strtemplate_ analytic_ count - The total count for the aggregation metric.
- dimensions List<Property Map>
- The scope of analytics data.
- metric
Name String - The name of the aggregation metric.
- security
Assessment StringTemplate Analytic Count - The total count for the aggregation metric.
GetSecurityAssessmentTemplateAnalyticsTemplateAnalyticsCollectionItemDimension
- Is
Compared bool - A filter to return only the statistics where the comparison between the latest assessment and the template baseline assessment is done.
- Is
Compliant bool - A filter to return only the statistics where the latest assessment is compliant with the template baseline assessment.
- Is
Group bool - A filter to return only the target group related information if the OCID belongs to a target group.
- Target
Database stringGroup Id - A filter to return the target database group that matches the specified OCID.
- Target
Id string - A filter to return only items related to a specific target OCID.
- Template
Assessment stringId - The OCID of the security assessment of type TEMPLATE.
- Template
Baseline stringAssessment Id - The OCID of the security assessment of type TEMPLATE_BASELINE.
- Time
Last stringCompared - The date and time when the comparison was made upon the template baseline. Conforms to the format defined by RFC3339.
- Total
Checks int - The number of checks inside the template assessment.
- Total
Checks intFailed - Indicates how many checks in the template have drifts in the comparison report. This field is only present if isCompliant is false.
- Total
Non intCompliant Targets - The number of the target(s) that have drifts in the comparison report. This field is only present if isCompared is true.
- Total
Targets int - The number of the target(s) inside the target group for which the template baseline assessment was created for. If the isGroup field is false, the value will be 1, representing the single target.
- Is
Compared bool - A filter to return only the statistics where the comparison between the latest assessment and the template baseline assessment is done.
- Is
Compliant bool - A filter to return only the statistics where the latest assessment is compliant with the template baseline assessment.
- Is
Group bool - A filter to return only the target group related information if the OCID belongs to a target group.
- Target
Database stringGroup Id - A filter to return the target database group that matches the specified OCID.
- Target
Id string - A filter to return only items related to a specific target OCID.
- Template
Assessment stringId - The OCID of the security assessment of type TEMPLATE.
- Template
Baseline stringAssessment Id - The OCID of the security assessment of type TEMPLATE_BASELINE.
- Time
Last stringCompared - The date and time when the comparison was made upon the template baseline. Conforms to the format defined by RFC3339.
- Total
Checks int - The number of checks inside the template assessment.
- Total
Checks intFailed - Indicates how many checks in the template have drifts in the comparison report. This field is only present if isCompliant is false.
- Total
Non intCompliant Targets - The number of the target(s) that have drifts in the comparison report. This field is only present if isCompared is true.
- Total
Targets int - The number of the target(s) inside the target group for which the template baseline assessment was created for. If the isGroup field is false, the value will be 1, representing the single target.
- is
Compared Boolean - A filter to return only the statistics where the comparison between the latest assessment and the template baseline assessment is done.
- is
Compliant Boolean - A filter to return only the statistics where the latest assessment is compliant with the template baseline assessment.
- is
Group Boolean - A filter to return only the target group related information if the OCID belongs to a target group.
- target
Database StringGroup Id - A filter to return the target database group that matches the specified OCID.
- target
Id String - A filter to return only items related to a specific target OCID.
- template
Assessment StringId - The OCID of the security assessment of type TEMPLATE.
- template
Baseline StringAssessment Id - The OCID of the security assessment of type TEMPLATE_BASELINE.
- time
Last StringCompared - The date and time when the comparison was made upon the template baseline. Conforms to the format defined by RFC3339.
- total
Checks Integer - The number of checks inside the template assessment.
- total
Checks IntegerFailed - Indicates how many checks in the template have drifts in the comparison report. This field is only present if isCompliant is false.
- total
Non IntegerCompliant Targets - The number of the target(s) that have drifts in the comparison report. This field is only present if isCompared is true.
- total
Targets Integer - The number of the target(s) inside the target group for which the template baseline assessment was created for. If the isGroup field is false, the value will be 1, representing the single target.
- is
Compared boolean - A filter to return only the statistics where the comparison between the latest assessment and the template baseline assessment is done.
- is
Compliant boolean - A filter to return only the statistics where the latest assessment is compliant with the template baseline assessment.
- is
Group boolean - A filter to return only the target group related information if the OCID belongs to a target group.
- target
Database stringGroup Id - A filter to return the target database group that matches the specified OCID.
- target
Id string - A filter to return only items related to a specific target OCID.
- template
Assessment stringId - The OCID of the security assessment of type TEMPLATE.
- template
Baseline stringAssessment Id - The OCID of the security assessment of type TEMPLATE_BASELINE.
- time
Last stringCompared - The date and time when the comparison was made upon the template baseline. Conforms to the format defined by RFC3339.
- total
Checks number - The number of checks inside the template assessment.
- total
Checks numberFailed - Indicates how many checks in the template have drifts in the comparison report. This field is only present if isCompliant is false.
- total
Non numberCompliant Targets - The number of the target(s) that have drifts in the comparison report. This field is only present if isCompared is true.
- total
Targets number - The number of the target(s) inside the target group for which the template baseline assessment was created for. If the isGroup field is false, the value will be 1, representing the single target.
- is_
compared bool - A filter to return only the statistics where the comparison between the latest assessment and the template baseline assessment is done.
- is_
compliant bool - A filter to return only the statistics where the latest assessment is compliant with the template baseline assessment.
- is_
group bool - A filter to return only the target group related information if the OCID belongs to a target group.
- target_
database_ strgroup_ id - A filter to return the target database group that matches the specified OCID.
- target_
id str - A filter to return only items related to a specific target OCID.
- template_
assessment_ strid - The OCID of the security assessment of type TEMPLATE.
- template_
baseline_ strassessment_ id - The OCID of the security assessment of type TEMPLATE_BASELINE.
- time_
last_ strcompared - The date and time when the comparison was made upon the template baseline. Conforms to the format defined by RFC3339.
- total_
checks int - The number of checks inside the template assessment.
- total_
checks_ intfailed - Indicates how many checks in the template have drifts in the comparison report. This field is only present if isCompliant is false.
- total_
non_ intcompliant_ targets - The number of the target(s) that have drifts in the comparison report. This field is only present if isCompared is true.
- total_
targets int - The number of the target(s) inside the target group for which the template baseline assessment was created for. If the isGroup field is false, the value will be 1, representing the single target.
- is
Compared Boolean - A filter to return only the statistics where the comparison between the latest assessment and the template baseline assessment is done.
- is
Compliant Boolean - A filter to return only the statistics where the latest assessment is compliant with the template baseline assessment.
- is
Group Boolean - A filter to return only the target group related information if the OCID belongs to a target group.
- target
Database StringGroup Id - A filter to return the target database group that matches the specified OCID.
- target
Id String - A filter to return only items related to a specific target OCID.
- template
Assessment StringId - The OCID of the security assessment of type TEMPLATE.
- template
Baseline StringAssessment Id - The OCID of the security assessment of type TEMPLATE_BASELINE.
- time
Last StringCompared - The date and time when the comparison was made upon the template baseline. Conforms to the format defined by RFC3339.
- total
Checks Number - The number of checks inside the template assessment.
- total
Checks NumberFailed - Indicates how many checks in the template have drifts in the comparison report. This field is only present if isCompliant is false.
- total
Non NumberCompliant Targets - The number of the target(s) that have drifts in the comparison report. This field is only present if isCompared is true.
- total
Targets Number - The number of the target(s) inside the target group for which the template baseline assessment was created for. If the isGroup field is false, the value will be 1, representing the single target.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.