oci.DataSafe.getSecurityAssessmentSecurityFeatureAnalytics
Explore with Pulumi AI
This data source provides the list of Security Assessment Security Feature Analytics in Oracle Cloud Infrastructure Data Safe service.
Gets a list of Database security feature usage aggregated details in the specified compartment. This provides information about the overall security controls, by returning the counting number of the target databases using the security features.
When you perform the ListSecurityFeatureAnalytics 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 testSecurityAssessmentSecurityFeatureAnalytics = oci.DataSafe.getSecurityAssessmentSecurityFeatureAnalytics({
compartmentId: compartmentId,
accessLevel: securityAssessmentSecurityFeatureAnalyticAccessLevel,
compartmentIdInSubtree: securityAssessmentSecurityFeatureAnalyticCompartmentIdInSubtree,
targetId: testTarget.id,
});
import pulumi
import pulumi_oci as oci
test_security_assessment_security_feature_analytics = oci.DataSafe.get_security_assessment_security_feature_analytics(compartment_id=compartment_id,
access_level=security_assessment_security_feature_analytic_access_level,
compartment_id_in_subtree=security_assessment_security_feature_analytic_compartment_id_in_subtree,
target_id=test_target["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/DataSafe"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DataSafe.GetSecurityAssessmentSecurityFeatureAnalytics(ctx, &datasafe.GetSecurityAssessmentSecurityFeatureAnalyticsArgs{
CompartmentId: compartmentId,
AccessLevel: pulumi.StringRef(securityAssessmentSecurityFeatureAnalyticAccessLevel),
CompartmentIdInSubtree: pulumi.BoolRef(securityAssessmentSecurityFeatureAnalyticCompartmentIdInSubtree),
TargetId: pulumi.StringRef(testTarget.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 testSecurityAssessmentSecurityFeatureAnalytics = Oci.DataSafe.GetSecurityAssessmentSecurityFeatureAnalytics.Invoke(new()
{
CompartmentId = compartmentId,
AccessLevel = securityAssessmentSecurityFeatureAnalyticAccessLevel,
CompartmentIdInSubtree = securityAssessmentSecurityFeatureAnalyticCompartmentIdInSubtree,
TargetId = testTarget.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.GetSecurityAssessmentSecurityFeatureAnalyticsArgs;
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 testSecurityAssessmentSecurityFeatureAnalytics = DataSafeFunctions.getSecurityAssessmentSecurityFeatureAnalytics(GetSecurityAssessmentSecurityFeatureAnalyticsArgs.builder()
.compartmentId(compartmentId)
.accessLevel(securityAssessmentSecurityFeatureAnalyticAccessLevel)
.compartmentIdInSubtree(securityAssessmentSecurityFeatureAnalyticCompartmentIdInSubtree)
.targetId(testTarget.id())
.build());
}
}
variables:
testSecurityAssessmentSecurityFeatureAnalytics:
fn::invoke:
Function: oci:DataSafe:getSecurityAssessmentSecurityFeatureAnalytics
Arguments:
compartmentId: ${compartmentId}
accessLevel: ${securityAssessmentSecurityFeatureAnalyticAccessLevel}
compartmentIdInSubtree: ${securityAssessmentSecurityFeatureAnalyticCompartmentIdInSubtree}
targetId: ${testTarget.id}
Using getSecurityAssessmentSecurityFeatureAnalytics
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 getSecurityAssessmentSecurityFeatureAnalytics(args: GetSecurityAssessmentSecurityFeatureAnalyticsArgs, opts?: InvokeOptions): Promise<GetSecurityAssessmentSecurityFeatureAnalyticsResult>
function getSecurityAssessmentSecurityFeatureAnalyticsOutput(args: GetSecurityAssessmentSecurityFeatureAnalyticsOutputArgs, opts?: InvokeOptions): Output<GetSecurityAssessmentSecurityFeatureAnalyticsResult>
def get_security_assessment_security_feature_analytics(access_level: Optional[str] = None,
compartment_id: Optional[str] = None,
compartment_id_in_subtree: Optional[bool] = None,
filters: Optional[Sequence[_datasafe.GetSecurityAssessmentSecurityFeatureAnalyticsFilter]] = None,
target_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSecurityAssessmentSecurityFeatureAnalyticsResult
def get_security_assessment_security_feature_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[_datasafe.GetSecurityAssessmentSecurityFeatureAnalyticsFilterArgs]]]] = None,
target_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSecurityAssessmentSecurityFeatureAnalyticsResult]
func GetSecurityAssessmentSecurityFeatureAnalytics(ctx *Context, args *GetSecurityAssessmentSecurityFeatureAnalyticsArgs, opts ...InvokeOption) (*GetSecurityAssessmentSecurityFeatureAnalyticsResult, error)
func GetSecurityAssessmentSecurityFeatureAnalyticsOutput(ctx *Context, args *GetSecurityAssessmentSecurityFeatureAnalyticsOutputArgs, opts ...InvokeOption) GetSecurityAssessmentSecurityFeatureAnalyticsResultOutput
> Note: This function is named GetSecurityAssessmentSecurityFeatureAnalytics
in the Go SDK.
public static class GetSecurityAssessmentSecurityFeatureAnalytics
{
public static Task<GetSecurityAssessmentSecurityFeatureAnalyticsResult> InvokeAsync(GetSecurityAssessmentSecurityFeatureAnalyticsArgs args, InvokeOptions? opts = null)
public static Output<GetSecurityAssessmentSecurityFeatureAnalyticsResult> Invoke(GetSecurityAssessmentSecurityFeatureAnalyticsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSecurityAssessmentSecurityFeatureAnalyticsResult> getSecurityAssessmentSecurityFeatureAnalytics(GetSecurityAssessmentSecurityFeatureAnalyticsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DataSafe/getSecurityAssessmentSecurityFeatureAnalytics:getSecurityAssessmentSecurityFeatureAnalytics
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 Security Feature Analytics Filter> - Target
Id string - A filter to return only items related to a specific target OCID.
- 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 Security Feature Analytics Filter - Target
Id string - A filter to return only items related to a specific target OCID.
- 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 Security Feature Analytics Filter> - target
Id String - A filter to return only items related to a specific target OCID.
- 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 Security Feature Analytics Filter[] - target
Id string - A filter to return only items related to a specific target OCID.
- 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[datasafe.
Get Security Assessment Security Feature Analytics Filter] - target_
id str - A filter to return only items related to a specific target OCID.
- 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>
- target
Id String - A filter to return only items related to a specific target OCID.
getSecurityAssessmentSecurityFeatureAnalytics Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Security
Feature List<GetAnalytics Collections Security Assessment Security Feature Analytics Security Feature Analytics Collection> - The list of security_feature_analytics_collection.
- Access
Level string - Compartment
Id boolIn Subtree - Filters
List<Get
Security Assessment Security Feature Analytics Filter> - Target
Id string
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Security
Feature []GetAnalytics Collections Security Assessment Security Feature Analytics Security Feature Analytics Collection - The list of security_feature_analytics_collection.
- Access
Level string - Compartment
Id boolIn Subtree - Filters
[]Get
Security Assessment Security Feature Analytics Filter - Target
Id string
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- security
Feature List<GetAnalytics Collections Security Assessment Security Feature Analytics Security Feature Analytics Collection> - The list of security_feature_analytics_collection.
- access
Level String - compartment
Id BooleanIn Subtree - filters
List<Get
Security Assessment Security Feature Analytics Filter> - target
Id String
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- security
Feature GetAnalytics Collections Security Assessment Security Feature Analytics Security Feature Analytics Collection[] - The list of security_feature_analytics_collection.
- access
Level string - compartment
Id booleanIn Subtree - filters
Get
Security Assessment Security Feature Analytics Filter[] - target
Id string
- compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- security_
feature_ Sequence[datasafe.analytics_ collections Get Security Assessment Security Feature Analytics Security Feature Analytics Collection] - The list of security_feature_analytics_collection.
- access_
level str - compartment_
id_ boolin_ subtree - filters
Sequence[datasafe.
Get Security Assessment Security Feature Analytics Filter] - target_
id str
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- security
Feature List<Property Map>Analytics Collections - The list of security_feature_analytics_collection.
- access
Level String - compartment
Id BooleanIn Subtree - filters List<Property Map>
- target
Id String
Supporting Types
GetSecurityAssessmentSecurityFeatureAnalyticsFilter
GetSecurityAssessmentSecurityFeatureAnalyticsSecurityFeatureAnalyticsCollection
- Items
List<Get
Security Assessment Security Feature Analytics Security Feature Analytics Collection Item> - The array of database security feature analytics summary.
- Items
[]Get
Security Assessment Security Feature Analytics Security Feature Analytics Collection Item - The array of database security feature analytics summary.
- items
List<Get
Security Assessment Security Feature Analytics Security Feature Analytics Collection Item> - The array of database security feature analytics summary.
- items
Get
Security Assessment Security Feature Analytics Security Feature Analytics Collection Item[] - The array of database security feature analytics summary.
- items
Sequence[datasafe.
Get Security Assessment Security Feature Analytics Security Feature Analytics Collection Item] - The array of database security feature analytics summary.
- items List<Property Map>
- The array of database security feature analytics summary.
GetSecurityAssessmentSecurityFeatureAnalyticsSecurityFeatureAnalyticsCollectionItem
- Dimensions
List<Get
Security Assessment Security Feature Analytics Security Feature Analytics Collection Item Dimension> - The scope of analytics data.
- Metric
Name string - The name of the aggregation metric.
- Security
Assessment stringSecurity Feature Analytic Count - The total count for the aggregation metric.
- Dimensions
[]Get
Security Assessment Security Feature Analytics Security Feature Analytics Collection Item Dimension - The scope of analytics data.
- Metric
Name string - The name of the aggregation metric.
- Security
Assessment stringSecurity Feature Analytic Count - The total count for the aggregation metric.
- dimensions
List<Get
Security Assessment Security Feature Analytics Security Feature Analytics Collection Item Dimension> - The scope of analytics data.
- metric
Name String - The name of the aggregation metric.
- security
Assessment StringSecurity Feature Analytic Count - The total count for the aggregation metric.
- dimensions
Get
Security Assessment Security Feature Analytics Security Feature Analytics Collection Item Dimension[] - The scope of analytics data.
- metric
Name string - The name of the aggregation metric.
- security
Assessment stringSecurity Feature Analytic Count - The total count for the aggregation metric.
- dimensions
Sequence[datasafe.
Get Security Assessment Security Feature Analytics Security Feature Analytics Collection Item Dimension] - The scope of analytics data.
- metric_
name str - The name of the aggregation metric.
- security_
assessment_ strsecurity_ feature_ 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 StringSecurity Feature Analytic Count - The total count for the aggregation metric.
GetSecurityAssessmentSecurityFeatureAnalyticsSecurityFeatureAnalyticsCollectionItemDimension
- Security
Feature string - The name of the security feature.
- Security
Feature string - The name of the security feature.
- security
Feature String - The name of the security feature.
- security
Feature string - The name of the security feature.
- security_
feature str - The name of the security feature.
- security
Feature String - The name of the security feature.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.