Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.DataSafe.getDiscoveryAnalytics
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides the list of Discovery Analytics in Oracle Cloud Infrastructure Data Safe service.
Gets consolidated discovery analytics data based on the specified query parameters. If CompartmentIdInSubtreeQueryParam is specified as true, the behaviour is equivalent to accessLevel “ACCESSIBLE” by default.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDiscoveryAnalytics = oci.DataSafe.getDiscoveryAnalytics({
compartmentId: compartmentId,
compartmentIdInSubtree: discoveryAnalyticCompartmentIdInSubtree,
groupBy: discoveryAnalyticGroupBy,
isCommon: discoveryAnalyticIsCommon,
sensitiveDataModelId: testSensitiveDataModel.id,
sensitiveTypeId: testSensitiveType.id,
targetId: testTarget.id,
});
import pulumi
import pulumi_oci as oci
test_discovery_analytics = oci.DataSafe.get_discovery_analytics(compartment_id=compartment_id,
compartment_id_in_subtree=discovery_analytic_compartment_id_in_subtree,
group_by=discovery_analytic_group_by,
is_common=discovery_analytic_is_common,
sensitive_data_model_id=test_sensitive_data_model["id"],
sensitive_type_id=test_sensitive_type["id"],
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.GetDiscoveryAnalytics(ctx, &datasafe.GetDiscoveryAnalyticsArgs{
CompartmentId: compartmentId,
CompartmentIdInSubtree: pulumi.BoolRef(discoveryAnalyticCompartmentIdInSubtree),
GroupBy: pulumi.StringRef(discoveryAnalyticGroupBy),
IsCommon: pulumi.BoolRef(discoveryAnalyticIsCommon),
SensitiveDataModelId: pulumi.StringRef(testSensitiveDataModel.Id),
SensitiveTypeId: pulumi.StringRef(testSensitiveType.Id),
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 testDiscoveryAnalytics = Oci.DataSafe.GetDiscoveryAnalytics.Invoke(new()
{
CompartmentId = compartmentId,
CompartmentIdInSubtree = discoveryAnalyticCompartmentIdInSubtree,
GroupBy = discoveryAnalyticGroupBy,
IsCommon = discoveryAnalyticIsCommon,
SensitiveDataModelId = testSensitiveDataModel.Id,
SensitiveTypeId = testSensitiveType.Id,
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.GetDiscoveryAnalyticsArgs;
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 testDiscoveryAnalytics = DataSafeFunctions.getDiscoveryAnalytics(GetDiscoveryAnalyticsArgs.builder()
.compartmentId(compartmentId)
.compartmentIdInSubtree(discoveryAnalyticCompartmentIdInSubtree)
.groupBy(discoveryAnalyticGroupBy)
.isCommon(discoveryAnalyticIsCommon)
.sensitiveDataModelId(testSensitiveDataModel.id())
.sensitiveTypeId(testSensitiveType.id())
.targetId(testTarget.id())
.build());
}
}
variables:
testDiscoveryAnalytics:
fn::invoke:
Function: oci:DataSafe:getDiscoveryAnalytics
Arguments:
compartmentId: ${compartmentId}
compartmentIdInSubtree: ${discoveryAnalyticCompartmentIdInSubtree}
groupBy: ${discoveryAnalyticGroupBy}
isCommon: ${discoveryAnalyticIsCommon}
sensitiveDataModelId: ${testSensitiveDataModel.id}
sensitiveTypeId: ${testSensitiveType.id}
targetId: ${testTarget.id}
Using getDiscoveryAnalytics
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 getDiscoveryAnalytics(args: GetDiscoveryAnalyticsArgs, opts?: InvokeOptions): Promise<GetDiscoveryAnalyticsResult>
function getDiscoveryAnalyticsOutput(args: GetDiscoveryAnalyticsOutputArgs, opts?: InvokeOptions): Output<GetDiscoveryAnalyticsResult>
def get_discovery_analytics(compartment_id: Optional[str] = None,
compartment_id_in_subtree: Optional[bool] = None,
filters: Optional[Sequence[_datasafe.GetDiscoveryAnalyticsFilter]] = None,
group_by: Optional[str] = None,
is_common: Optional[bool] = None,
sensitive_data_model_id: Optional[str] = None,
sensitive_type_id: Optional[str] = None,
target_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDiscoveryAnalyticsResult
def get_discovery_analytics_output(compartment_id: Optional[pulumi.Input[str]] = None,
compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datasafe.GetDiscoveryAnalyticsFilterArgs]]]] = None,
group_by: Optional[pulumi.Input[str]] = None,
is_common: Optional[pulumi.Input[bool]] = None,
sensitive_data_model_id: Optional[pulumi.Input[str]] = None,
sensitive_type_id: Optional[pulumi.Input[str]] = None,
target_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDiscoveryAnalyticsResult]
func GetDiscoveryAnalytics(ctx *Context, args *GetDiscoveryAnalyticsArgs, opts ...InvokeOption) (*GetDiscoveryAnalyticsResult, error)
func GetDiscoveryAnalyticsOutput(ctx *Context, args *GetDiscoveryAnalyticsOutputArgs, opts ...InvokeOption) GetDiscoveryAnalyticsResultOutput
> Note: This function is named GetDiscoveryAnalytics
in the Go SDK.
public static class GetDiscoveryAnalytics
{
public static Task<GetDiscoveryAnalyticsResult> InvokeAsync(GetDiscoveryAnalyticsArgs args, InvokeOptions? opts = null)
public static Output<GetDiscoveryAnalyticsResult> Invoke(GetDiscoveryAnalyticsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDiscoveryAnalyticsResult> getDiscoveryAnalytics(GetDiscoveryAnalyticsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DataSafe/getDiscoveryAnalytics:getDiscoveryAnalytics
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- 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
Discovery Analytics Filter> - Group
By string - Attribute by which the discovery analytics data should be grouped.
- Is
Common bool - A filter to return only the common sensitive type resources. Common sensitive types belong to library sensitive types which are frequently used to perform sensitive data discovery.
- Sensitive
Data stringModel Id - A filter to return only the resources that match the specified sensitive data model OCID.
- Sensitive
Type stringId - A filter to return only items related to a specific sensitive type OCID.
- 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.
- 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
Discovery Analytics Filter - Group
By string - Attribute by which the discovery analytics data should be grouped.
- Is
Common bool - A filter to return only the common sensitive type resources. Common sensitive types belong to library sensitive types which are frequently used to perform sensitive data discovery.
- Sensitive
Data stringModel Id - A filter to return only the resources that match the specified sensitive data model OCID.
- Sensitive
Type stringId - A filter to return only items related to a specific sensitive type OCID.
- 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.
- 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
Discovery Analytics Filter> - group
By String - Attribute by which the discovery analytics data should be grouped.
- is
Common Boolean - A filter to return only the common sensitive type resources. Common sensitive types belong to library sensitive types which are frequently used to perform sensitive data discovery.
- sensitive
Data StringModel Id - A filter to return only the resources that match the specified sensitive data model OCID.
- sensitive
Type StringId - A filter to return only items related to a specific sensitive type OCID.
- 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.
- 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
Discovery Analytics Filter[] - group
By string - Attribute by which the discovery analytics data should be grouped.
- is
Common boolean - A filter to return only the common sensitive type resources. Common sensitive types belong to library sensitive types which are frequently used to perform sensitive data discovery.
- sensitive
Data stringModel Id - A filter to return only the resources that match the specified sensitive data model OCID.
- sensitive
Type stringId - A filter to return only items related to a specific sensitive type OCID.
- 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.
- 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 Discovery Analytics Filter] - group_
by str - Attribute by which the discovery analytics data should be grouped.
- is_
common bool - A filter to return only the common sensitive type resources. Common sensitive types belong to library sensitive types which are frequently used to perform sensitive data discovery.
- sensitive_
data_ strmodel_ id - A filter to return only the resources that match the specified sensitive data model OCID.
- sensitive_
type_ strid - A filter to return only items related to a specific sensitive type OCID.
- 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.
- 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>
- group
By String - Attribute by which the discovery analytics data should be grouped.
- is
Common Boolean - A filter to return only the common sensitive type resources. Common sensitive types belong to library sensitive types which are frequently used to perform sensitive data discovery.
- sensitive
Data StringModel Id - A filter to return only the resources that match the specified sensitive data model OCID.
- sensitive
Type StringId - A filter to return only items related to a specific sensitive type OCID.
- target
Id String - A filter to return only items related to a specific target OCID.
getDiscoveryAnalytics Result
The following output properties are available:
- Compartment
Id string - Discovery
Analytics List<GetCollections Discovery Analytics Discovery Analytics Collection> - The list of discovery_analytics_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Compartment
Id boolIn Subtree - Filters
List<Get
Discovery Analytics Filter> - Group
By string - Is
Common bool - Sensitive
Data stringModel Id - The OCID of the sensitive data model.
- Sensitive
Type stringId - The OCID of the sensitive type.
- Target
Id string - The OCID of the target database.
- Compartment
Id string - Discovery
Analytics []GetCollections Discovery Analytics Discovery Analytics Collection - The list of discovery_analytics_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Compartment
Id boolIn Subtree - Filters
[]Get
Discovery Analytics Filter - Group
By string - Is
Common bool - Sensitive
Data stringModel Id - The OCID of the sensitive data model.
- Sensitive
Type stringId - The OCID of the sensitive type.
- Target
Id string - The OCID of the target database.
- compartment
Id String - discovery
Analytics List<GetCollections Discovery Analytics Discovery Analytics Collection> - The list of discovery_analytics_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- compartment
Id BooleanIn Subtree - filters
List<Get
Discovery Analytics Filter> - group
By String - is
Common Boolean - sensitive
Data StringModel Id - The OCID of the sensitive data model.
- sensitive
Type StringId - The OCID of the sensitive type.
- target
Id String - The OCID of the target database.
- compartment
Id string - discovery
Analytics GetCollections Discovery Analytics Discovery Analytics Collection[] - The list of discovery_analytics_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- compartment
Id booleanIn Subtree - filters
Get
Discovery Analytics Filter[] - group
By string - is
Common boolean - sensitive
Data stringModel Id - The OCID of the sensitive data model.
- sensitive
Type stringId - The OCID of the sensitive type.
- target
Id string - The OCID of the target database.
- compartment_
id str - discovery_
analytics_ Sequence[datasafe.collections Get Discovery Analytics Discovery Analytics Collection] - The list of discovery_analytics_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- compartment_
id_ boolin_ subtree - filters
Sequence[datasafe.
Get Discovery Analytics Filter] - group_
by str - is_
common bool - sensitive_
data_ strmodel_ id - The OCID of the sensitive data model.
- sensitive_
type_ strid - The OCID of the sensitive type.
- target_
id str - The OCID of the target database.
- compartment
Id String - discovery
Analytics List<Property Map>Collections - The list of discovery_analytics_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- compartment
Id BooleanIn Subtree - filters List<Property Map>
- group
By String - is
Common Boolean - sensitive
Data StringModel Id - The OCID of the sensitive data model.
- sensitive
Type StringId - The OCID of the sensitive type.
- target
Id String - The OCID of the target database.
Supporting Types
GetDiscoveryAnalyticsDiscoveryAnalyticsCollection
- Items
List<Get
Discovery Analytics Discovery Analytics Collection Item> - An array of discovery analytics summary objects.
- Items
[]Get
Discovery Analytics Discovery Analytics Collection Item - An array of discovery analytics summary objects.
- items
List<Get
Discovery Analytics Discovery Analytics Collection Item> - An array of discovery analytics summary objects.
- items
Get
Discovery Analytics Discovery Analytics Collection Item[] - An array of discovery analytics summary objects.
- items
Sequence[datasafe.
Get Discovery Analytics Discovery Analytics Collection Item] - An array of discovery analytics summary objects.
- items List<Property Map>
- An array of discovery analytics summary objects.
GetDiscoveryAnalyticsDiscoveryAnalyticsCollectionItem
- Count string
- The total count for the aggregation metric.
- Dimensions
List<Get
Discovery Analytics Discovery Analytics Collection Item Dimension> - The scope of analytics data.
- Metric
Name string - The name of the aggregation metric.
- Count string
- The total count for the aggregation metric.
- Dimensions
[]Get
Discovery Analytics Discovery Analytics Collection Item Dimension - The scope of analytics data.
- Metric
Name string - The name of the aggregation metric.
- count String
- The total count for the aggregation metric.
- dimensions
List<Get
Discovery Analytics Discovery Analytics Collection Item Dimension> - The scope of analytics data.
- metric
Name String - The name of the aggregation metric.
- count string
- The total count for the aggregation metric.
- dimensions
Get
Discovery Analytics Discovery Analytics Collection Item Dimension[] - The scope of analytics data.
- metric
Name string - The name of the aggregation metric.
- count str
- The total count for the aggregation metric.
- dimensions
Sequence[datasafe.
Get Discovery Analytics Discovery Analytics Collection Item Dimension] - The scope of analytics data.
- metric_
name str - The name of the aggregation metric.
- count String
- 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.
GetDiscoveryAnalyticsDiscoveryAnalyticsCollectionItemDimension
- Sensitive
Data stringModel Id - A filter to return only the resources that match the specified sensitive data model OCID.
- Sensitive
Type stringId - A filter to return only items related to a specific sensitive type OCID.
- Target
Id string - A filter to return only items related to a specific target OCID.
- Sensitive
Data stringModel Id - A filter to return only the resources that match the specified sensitive data model OCID.
- Sensitive
Type stringId - A filter to return only items related to a specific sensitive type OCID.
- Target
Id string - A filter to return only items related to a specific target OCID.
- sensitive
Data StringModel Id - A filter to return only the resources that match the specified sensitive data model OCID.
- sensitive
Type StringId - A filter to return only items related to a specific sensitive type OCID.
- target
Id String - A filter to return only items related to a specific target OCID.
- sensitive
Data stringModel Id - A filter to return only the resources that match the specified sensitive data model OCID.
- sensitive
Type stringId - A filter to return only items related to a specific sensitive type OCID.
- target
Id string - A filter to return only items related to a specific target OCID.
- sensitive_
data_ strmodel_ id - A filter to return only the resources that match the specified sensitive data model OCID.
- sensitive_
type_ strid - A filter to return only items related to a specific sensitive type OCID.
- target_
id str - A filter to return only items related to a specific target OCID.
- sensitive
Data StringModel Id - A filter to return only the resources that match the specified sensitive data model OCID.
- sensitive
Type StringId - A filter to return only items related to a specific sensitive type OCID.
- target
Id String - A filter to return only items related to a specific target OCID.
GetDiscoveryAnalyticsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi