import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Security Assessment Template Association Analytics in Oracle Cloud Infrastructure Data Safe service. * * Gets a list of template association 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. * * If the template baseline is created for a target group which contains several targets, we will have each individual target * listed there as targetId field together with targetDatabaseGroupId. And if the template baseline is created for an individual target, * it will have targetId field only. * * By leveraging the targetId filter, you will be able to know all the template or template baseline that this target has something to do with. * No matter if they are directly applied or created for this target, or they are for the target group the target belongs to. * * When you perform the ListTemplateAssociationAnalytics 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 * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSecurityAssessmentTemplateAssociationAnalytics = oci.datasafe.getSecurityAssessmentTemplateAssociationAnalytics({ * compartmentId: compartmentId, * accessLevel: securityAssessmentTemplateAssociationAnalyticAccessLevel, * compartmentIdInSubtree: securityAssessmentTemplateAssociationAnalyticCompartmentIdInSubtree === "true", * targetDatabaseGroupId: testTargetDatabaseGroup.id, * targetId: testTarget.id, * templateAssessmentId: testTemplateAssessment.id, * templateBaselineAssessmentId: testTemplateBaselineAssessment.id, * }); * ``` */ export declare function getSecurityAssessmentTemplateAssociationAnalytics(args: GetSecurityAssessmentTemplateAssociationAnalyticsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getSecurityAssessmentTemplateAssociationAnalytics. */ export interface GetSecurityAssessmentTemplateAssociationAnalyticsArgs { /** * 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. */ accessLevel?: string; /** * A filter to return only resources that match the specified compartment OCID. */ compartmentId: string; /** * 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. */ compartmentIdInSubtree?: boolean; filters?: inputs.DataSafe.GetSecurityAssessmentTemplateAssociationAnalyticsFilter[]; /** * A filter to return the target database group that matches the specified OCID. */ targetDatabaseGroupId?: string; /** * A filter to return only items related to a specific target OCID. */ targetId?: string; /** * The OCID of the security assessment of type TEMPLATE. */ templateAssessmentId?: string; /** * The OCID of the security assessment of type TEMPLATE_BASELINE. */ templateBaselineAssessmentId?: string; } /** * A collection of values returned by getSecurityAssessmentTemplateAssociationAnalytics. */ export interface GetSecurityAssessmentTemplateAssociationAnalyticsResult { readonly accessLevel?: string; readonly compartmentId: string; readonly compartmentIdInSubtree?: boolean; readonly filters?: outputs.DataSafe.GetSecurityAssessmentTemplateAssociationAnalyticsFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: 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. */ readonly targetDatabaseGroupId?: string; /** * The OCID of the target database. If the template was applied on a target group, this field will be the OCID of the target members of the target group. If the template was applied on an individual target, this field will contain that targetId. */ readonly targetId?: string; /** * The OCID of the security assessment of type TEMPLATE. */ readonly templateAssessmentId?: string; /** * The list of template_association_analytics_collection. */ readonly templateAssociationAnalyticsCollections: outputs.DataSafe.GetSecurityAssessmentTemplateAssociationAnalyticsTemplateAssociationAnalyticsCollection[]; /** * The OCID of the security assessment of type TEMPLATE_BASELINE. */ readonly templateBaselineAssessmentId?: string; } /** * This data source provides the list of Security Assessment Template Association Analytics in Oracle Cloud Infrastructure Data Safe service. * * Gets a list of template association 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. * * If the template baseline is created for a target group which contains several targets, we will have each individual target * listed there as targetId field together with targetDatabaseGroupId. And if the template baseline is created for an individual target, * it will have targetId field only. * * By leveraging the targetId filter, you will be able to know all the template or template baseline that this target has something to do with. * No matter if they are directly applied or created for this target, or they are for the target group the target belongs to. * * When you perform the ListTemplateAssociationAnalytics 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 * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSecurityAssessmentTemplateAssociationAnalytics = oci.datasafe.getSecurityAssessmentTemplateAssociationAnalytics({ * compartmentId: compartmentId, * accessLevel: securityAssessmentTemplateAssociationAnalyticAccessLevel, * compartmentIdInSubtree: securityAssessmentTemplateAssociationAnalyticCompartmentIdInSubtree === "true", * targetDatabaseGroupId: testTargetDatabaseGroup.id, * targetId: testTarget.id, * templateAssessmentId: testTemplateAssessment.id, * templateBaselineAssessmentId: testTemplateBaselineAssessment.id, * }); * ``` */ export declare function getSecurityAssessmentTemplateAssociationAnalyticsOutput(args: GetSecurityAssessmentTemplateAssociationAnalyticsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getSecurityAssessmentTemplateAssociationAnalytics. */ export interface GetSecurityAssessmentTemplateAssociationAnalyticsOutputArgs { /** * 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. */ accessLevel?: pulumi.Input; /** * A filter to return only resources that match the specified compartment OCID. */ compartmentId: pulumi.Input; /** * 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. */ compartmentIdInSubtree?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * A filter to return the target database group that matches the specified OCID. */ targetDatabaseGroupId?: pulumi.Input; /** * A filter to return only items related to a specific target OCID. */ targetId?: pulumi.Input; /** * The OCID of the security assessment of type TEMPLATE. */ templateAssessmentId?: pulumi.Input; /** * The OCID of the security assessment of type TEMPLATE_BASELINE. */ templateBaselineAssessmentId?: pulumi.Input; } //# sourceMappingURL=getSecurityAssessmentTemplateAssociationAnalytics.d.ts.map