1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getSecurityAssessmentTemplateAnalytics
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

oci.DataSafe.getSecurityAssessmentTemplateAnalytics

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

    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:

    CompartmentId string
    A filter to return only resources that match the specified compartment OCID.
    AccessLevel 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.
    CompartmentIdInSubtree bool
    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<GetSecurityAssessmentTemplateAnalyticsFilter>
    IsCompared bool
    A filter to return only the statistics where the comparison between the latest assessment and the template baseline assessment is done.
    IsCompliant bool
    A filter to return only the statistics where the latest assessment is compliant with the template baseline assessment.
    IsGroup bool
    A filter to return only the target group related information if the OCID belongs to a target group.
    TargetDatabaseGroupId string
    A filter to return the target database group that matches the specified OCID.
    TargetId string
    A filter to return only items related to a specific target OCID.
    TemplateAssessmentId string
    The OCID of the security assessment of type TEMPLATE.
    TemplateBaselineAssessmentId string
    The OCID of the security assessment of type TEMPLATE_BASELINE.
    CompartmentId string
    A filter to return only resources that match the specified compartment OCID.
    AccessLevel 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.
    CompartmentIdInSubtree bool
    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 []GetSecurityAssessmentTemplateAnalyticsFilter
    IsCompared bool
    A filter to return only the statistics where the comparison between the latest assessment and the template baseline assessment is done.
    IsCompliant bool
    A filter to return only the statistics where the latest assessment is compliant with the template baseline assessment.
    IsGroup bool
    A filter to return only the target group related information if the OCID belongs to a target group.
    TargetDatabaseGroupId string
    A filter to return the target database group that matches the specified OCID.
    TargetId string
    A filter to return only items related to a specific target OCID.
    TemplateAssessmentId string
    The OCID of the security assessment of type TEMPLATE.
    TemplateBaselineAssessmentId string
    The OCID of the security assessment of type TEMPLATE_BASELINE.
    compartmentId String
    A filter to return only resources that match the specified compartment OCID.
    accessLevel 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.
    compartmentIdInSubtree Boolean
    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<GetSecurityAssessmentTemplateAnalyticsFilter>
    isCompared Boolean
    A filter to return only the statistics where the comparison between the latest assessment and the template baseline assessment is done.
    isCompliant Boolean
    A filter to return only the statistics where the latest assessment is compliant with the template baseline assessment.
    isGroup Boolean
    A filter to return only the target group related information if the OCID belongs to a target group.
    targetDatabaseGroupId String
    A filter to return the target database group that matches the specified OCID.
    targetId String
    A filter to return only items related to a specific target OCID.
    templateAssessmentId String
    The OCID of the security assessment of type TEMPLATE.
    templateBaselineAssessmentId String
    The OCID of the security assessment of type TEMPLATE_BASELINE.
    compartmentId string
    A filter to return only resources that match the specified compartment OCID.
    accessLevel 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.
    compartmentIdInSubtree boolean
    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 GetSecurityAssessmentTemplateAnalyticsFilter[]
    isCompared boolean
    A filter to return only the statistics where the comparison between the latest assessment and the template baseline assessment is done.
    isCompliant boolean
    A filter to return only the statistics where the latest assessment is compliant with the template baseline assessment.
    isGroup boolean
    A filter to return only the target group related information if the OCID belongs to a target group.
    targetDatabaseGroupId string
    A filter to return the target database group that matches the specified OCID.
    targetId string
    A filter to return only items related to a specific target OCID.
    templateAssessmentId string
    The OCID of the security assessment of type TEMPLATE.
    templateBaselineAssessmentId string
    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_in_subtree bool
    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[GetSecurityAssessmentTemplateAnalyticsFilter]
    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_group_id str
    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_id str
    The OCID of the security assessment of type TEMPLATE.
    template_baseline_assessment_id str
    The OCID of the security assessment of type TEMPLATE_BASELINE.
    compartmentId String
    A filter to return only resources that match the specified compartment OCID.
    accessLevel 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.
    compartmentIdInSubtree Boolean
    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>
    isCompared Boolean
    A filter to return only the statistics where the comparison between the latest assessment and the template baseline assessment is done.
    isCompliant Boolean
    A filter to return only the statistics where the latest assessment is compliant with the template baseline assessment.
    isGroup Boolean
    A filter to return only the target group related information if the OCID belongs to a target group.
    targetDatabaseGroupId String
    A filter to return the target database group that matches the specified OCID.
    targetId String
    A filter to return only items related to a specific target OCID.
    templateAssessmentId String
    The OCID of the security assessment of type TEMPLATE.
    templateBaselineAssessmentId String
    The OCID of the security assessment of type TEMPLATE_BASELINE.

    getSecurityAssessmentTemplateAnalytics Result

    The following output properties are available:

    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    TemplateAnalyticsCollections List<GetSecurityAssessmentTemplateAnalyticsTemplateAnalyticsCollection>
    The list of template_analytics_collection.
    AccessLevel string
    CompartmentIdInSubtree bool
    Filters List<GetSecurityAssessmentTemplateAnalyticsFilter>
    IsCompared 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.
    IsCompliant 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.
    IsGroup 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.
    TargetDatabaseGroupId string
    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.
    TargetId string
    The OCID of the target database. This field will be in the response if the template was applied on an individual target.
    TemplateAssessmentId string
    The OCID of the security assessment of type TEMPLATE.
    TemplateBaselineAssessmentId string
    The OCID of the security assessment of type TEMPLATE_BASELINE.
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    TemplateAnalyticsCollections []GetSecurityAssessmentTemplateAnalyticsTemplateAnalyticsCollection
    The list of template_analytics_collection.
    AccessLevel string
    CompartmentIdInSubtree bool
    Filters []GetSecurityAssessmentTemplateAnalyticsFilter
    IsCompared 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.
    IsCompliant 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.
    IsGroup 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.
    TargetDatabaseGroupId string
    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.
    TargetId string
    The OCID of the target database. This field will be in the response if the template was applied on an individual target.
    TemplateAssessmentId string
    The OCID of the security assessment of type TEMPLATE.
    TemplateBaselineAssessmentId string
    The OCID of the security assessment of type TEMPLATE_BASELINE.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    templateAnalyticsCollections List<GetSecurityAssessmentTemplateAnalyticsTemplateAnalyticsCollection>
    The list of template_analytics_collection.
    accessLevel String
    compartmentIdInSubtree Boolean
    filters List<GetSecurityAssessmentTemplateAnalyticsFilter>
    isCompared 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.
    isCompliant 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.
    isGroup 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.
    targetDatabaseGroupId String
    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.
    targetId String
    The OCID of the target database. This field will be in the response if the template was applied on an individual target.
    templateAssessmentId String
    The OCID of the security assessment of type TEMPLATE.
    templateBaselineAssessmentId String
    The OCID of the security assessment of type TEMPLATE_BASELINE.
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    templateAnalyticsCollections GetSecurityAssessmentTemplateAnalyticsTemplateAnalyticsCollection[]
    The list of template_analytics_collection.
    accessLevel string
    compartmentIdInSubtree boolean
    filters GetSecurityAssessmentTemplateAnalyticsFilter[]
    isCompared 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.
    isCompliant 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.
    isGroup 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.
    targetDatabaseGroupId string
    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.
    targetId string
    The OCID of the target database. This field will be in the response if the template was applied on an individual target.
    templateAssessmentId string
    The OCID of the security assessment of type TEMPLATE.
    templateBaselineAssessmentId string
    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_collections Sequence[GetSecurityAssessmentTemplateAnalyticsTemplateAnalyticsCollection]
    The list of template_analytics_collection.
    access_level str
    compartment_id_in_subtree bool
    filters Sequence[GetSecurityAssessmentTemplateAnalyticsFilter]
    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_group_id str
    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_id str
    The OCID of the security assessment of type TEMPLATE.
    template_baseline_assessment_id str
    The OCID of the security assessment of type TEMPLATE_BASELINE.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    templateAnalyticsCollections List<Property Map>
    The list of template_analytics_collection.
    accessLevel String
    compartmentIdInSubtree Boolean
    filters List<Property Map>
    isCompared 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.
    isCompliant 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.
    isGroup 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.
    targetDatabaseGroupId String
    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.
    targetId String
    The OCID of the target database. This field will be in the response if the template was applied on an individual target.
    templateAssessmentId String
    The OCID of the security assessment of type TEMPLATE.
    templateBaselineAssessmentId String
    The OCID of the security assessment of type TEMPLATE_BASELINE.

    Supporting Types

    GetSecurityAssessmentTemplateAnalyticsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetSecurityAssessmentTemplateAnalyticsTemplateAnalyticsCollection

    items List<Property Map>
    The array of template analytics summary.

    GetSecurityAssessmentTemplateAnalyticsTemplateAnalyticsCollectionItem

    Dimensions List<GetSecurityAssessmentTemplateAnalyticsTemplateAnalyticsCollectionItemDimension>
    The scope of analytics data.
    MetricName string
    The name of the aggregation metric.
    SecurityAssessmentTemplateAnalyticCount string
    The total count for the aggregation metric.
    Dimensions []GetSecurityAssessmentTemplateAnalyticsTemplateAnalyticsCollectionItemDimension
    The scope of analytics data.
    MetricName string
    The name of the aggregation metric.
    SecurityAssessmentTemplateAnalyticCount string
    The total count for the aggregation metric.
    dimensions List<GetSecurityAssessmentTemplateAnalyticsTemplateAnalyticsCollectionItemDimension>
    The scope of analytics data.
    metricName String
    The name of the aggregation metric.
    securityAssessmentTemplateAnalyticCount String
    The total count for the aggregation metric.
    dimensions GetSecurityAssessmentTemplateAnalyticsTemplateAnalyticsCollectionItemDimension[]
    The scope of analytics data.
    metricName string
    The name of the aggregation metric.
    securityAssessmentTemplateAnalyticCount string
    The total count for the aggregation metric.
    dimensions Sequence[GetSecurityAssessmentTemplateAnalyticsTemplateAnalyticsCollectionItemDimension]
    The scope of analytics data.
    metric_name str
    The name of the aggregation metric.
    security_assessment_template_analytic_count str
    The total count for the aggregation metric.
    dimensions List<Property Map>
    The scope of analytics data.
    metricName String
    The name of the aggregation metric.
    securityAssessmentTemplateAnalyticCount String
    The total count for the aggregation metric.

    GetSecurityAssessmentTemplateAnalyticsTemplateAnalyticsCollectionItemDimension

    IsCompared bool
    A filter to return only the statistics where the comparison between the latest assessment and the template baseline assessment is done.
    IsCompliant bool
    A filter to return only the statistics where the latest assessment is compliant with the template baseline assessment.
    IsGroup bool
    A filter to return only the target group related information if the OCID belongs to a target group.
    TargetDatabaseGroupId string
    A filter to return the target database group that matches the specified OCID.
    TargetId string
    A filter to return only items related to a specific target OCID.
    TemplateAssessmentId string
    The OCID of the security assessment of type TEMPLATE.
    TemplateBaselineAssessmentId string
    The OCID of the security assessment of type TEMPLATE_BASELINE.
    TimeLastCompared string
    The date and time when the comparison was made upon the template baseline. Conforms to the format defined by RFC3339.
    TotalChecks int
    The number of checks inside the template assessment.
    TotalChecksFailed int
    Indicates how many checks in the template have drifts in the comparison report. This field is only present if isCompliant is false.
    TotalNonCompliantTargets int
    The number of the target(s) that have drifts in the comparison report. This field is only present if isCompared is true.
    TotalTargets 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.
    IsCompared bool
    A filter to return only the statistics where the comparison between the latest assessment and the template baseline assessment is done.
    IsCompliant bool
    A filter to return only the statistics where the latest assessment is compliant with the template baseline assessment.
    IsGroup bool
    A filter to return only the target group related information if the OCID belongs to a target group.
    TargetDatabaseGroupId string
    A filter to return the target database group that matches the specified OCID.
    TargetId string
    A filter to return only items related to a specific target OCID.
    TemplateAssessmentId string
    The OCID of the security assessment of type TEMPLATE.
    TemplateBaselineAssessmentId string
    The OCID of the security assessment of type TEMPLATE_BASELINE.
    TimeLastCompared string
    The date and time when the comparison was made upon the template baseline. Conforms to the format defined by RFC3339.
    TotalChecks int
    The number of checks inside the template assessment.
    TotalChecksFailed int
    Indicates how many checks in the template have drifts in the comparison report. This field is only present if isCompliant is false.
    TotalNonCompliantTargets int
    The number of the target(s) that have drifts in the comparison report. This field is only present if isCompared is true.
    TotalTargets 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.
    isCompared Boolean
    A filter to return only the statistics where the comparison between the latest assessment and the template baseline assessment is done.
    isCompliant Boolean
    A filter to return only the statistics where the latest assessment is compliant with the template baseline assessment.
    isGroup Boolean
    A filter to return only the target group related information if the OCID belongs to a target group.
    targetDatabaseGroupId String
    A filter to return the target database group that matches the specified OCID.
    targetId String
    A filter to return only items related to a specific target OCID.
    templateAssessmentId String
    The OCID of the security assessment of type TEMPLATE.
    templateBaselineAssessmentId String
    The OCID of the security assessment of type TEMPLATE_BASELINE.
    timeLastCompared String
    The date and time when the comparison was made upon the template baseline. Conforms to the format defined by RFC3339.
    totalChecks Integer
    The number of checks inside the template assessment.
    totalChecksFailed Integer
    Indicates how many checks in the template have drifts in the comparison report. This field is only present if isCompliant is false.
    totalNonCompliantTargets Integer
    The number of the target(s) that have drifts in the comparison report. This field is only present if isCompared is true.
    totalTargets 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.
    isCompared boolean
    A filter to return only the statistics where the comparison between the latest assessment and the template baseline assessment is done.
    isCompliant boolean
    A filter to return only the statistics where the latest assessment is compliant with the template baseline assessment.
    isGroup boolean
    A filter to return only the target group related information if the OCID belongs to a target group.
    targetDatabaseGroupId string
    A filter to return the target database group that matches the specified OCID.
    targetId string
    A filter to return only items related to a specific target OCID.
    templateAssessmentId string
    The OCID of the security assessment of type TEMPLATE.
    templateBaselineAssessmentId string
    The OCID of the security assessment of type TEMPLATE_BASELINE.
    timeLastCompared string
    The date and time when the comparison was made upon the template baseline. Conforms to the format defined by RFC3339.
    totalChecks number
    The number of checks inside the template assessment.
    totalChecksFailed number
    Indicates how many checks in the template have drifts in the comparison report. This field is only present if isCompliant is false.
    totalNonCompliantTargets number
    The number of the target(s) that have drifts in the comparison report. This field is only present if isCompared is true.
    totalTargets 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_group_id str
    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_id str
    The OCID of the security assessment of type TEMPLATE.
    template_baseline_assessment_id str
    The OCID of the security assessment of type TEMPLATE_BASELINE.
    time_last_compared str
    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_failed int
    Indicates how many checks in the template have drifts in the comparison report. This field is only present if isCompliant is false.
    total_non_compliant_targets int
    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.
    isCompared Boolean
    A filter to return only the statistics where the comparison between the latest assessment and the template baseline assessment is done.
    isCompliant Boolean
    A filter to return only the statistics where the latest assessment is compliant with the template baseline assessment.
    isGroup Boolean
    A filter to return only the target group related information if the OCID belongs to a target group.
    targetDatabaseGroupId String
    A filter to return the target database group that matches the specified OCID.
    targetId String
    A filter to return only items related to a specific target OCID.
    templateAssessmentId String
    The OCID of the security assessment of type TEMPLATE.
    templateBaselineAssessmentId String
    The OCID of the security assessment of type TEMPLATE_BASELINE.
    timeLastCompared String
    The date and time when the comparison was made upon the template baseline. Conforms to the format defined by RFC3339.
    totalChecks Number
    The number of checks inside the template assessment.
    totalChecksFailed Number
    Indicates how many checks in the template have drifts in the comparison report. This field is only present if isCompliant is false.
    totalNonCompliantTargets Number
    The number of the target(s) that have drifts in the comparison report. This field is only present if isCompared is true.
    totalTargets 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.
    oci logo
    Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi