Oracle Cloud Infrastructure v2.27.0 published on Thursday, Mar 20, 2025 by Pulumi
oci.DataSafe.getSqlCollectionLogInsights
Explore with Pulumi AI
This data source provides the list of Sql Collection Log Insights in Oracle Cloud Infrastructure Data Safe service.
Retrieves a list of the SQL collection log analytics.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSqlCollectionLogInsights = oci.DataSafe.getSqlCollectionLogInsights({
sqlCollectionId: testSqlCollection.id,
timeEnded: sqlCollectionLogInsightTimeEnded,
timeStarted: sqlCollectionLogInsightTimeStarted,
groupBy: sqlCollectionLogInsightGroupBy,
});
import pulumi
import pulumi_oci as oci
test_sql_collection_log_insights = oci.DataSafe.get_sql_collection_log_insights(sql_collection_id=test_sql_collection["id"],
time_ended=sql_collection_log_insight_time_ended,
time_started=sql_collection_log_insight_time_started,
group_by=sql_collection_log_insight_group_by)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/datasafe"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datasafe.GetSqlCollectionLogInsights(ctx, &datasafe.GetSqlCollectionLogInsightsArgs{
SqlCollectionId: testSqlCollection.Id,
TimeEnded: sqlCollectionLogInsightTimeEnded,
TimeStarted: sqlCollectionLogInsightTimeStarted,
GroupBy: pulumi.StringRef(sqlCollectionLogInsightGroupBy),
}, 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 testSqlCollectionLogInsights = Oci.DataSafe.GetSqlCollectionLogInsights.Invoke(new()
{
SqlCollectionId = testSqlCollection.Id,
TimeEnded = sqlCollectionLogInsightTimeEnded,
TimeStarted = sqlCollectionLogInsightTimeStarted,
GroupBy = sqlCollectionLogInsightGroupBy,
});
});
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.GetSqlCollectionLogInsightsArgs;
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 testSqlCollectionLogInsights = DataSafeFunctions.getSqlCollectionLogInsights(GetSqlCollectionLogInsightsArgs.builder()
.sqlCollectionId(testSqlCollection.id())
.timeEnded(sqlCollectionLogInsightTimeEnded)
.timeStarted(sqlCollectionLogInsightTimeStarted)
.groupBy(sqlCollectionLogInsightGroupBy)
.build());
}
}
variables:
testSqlCollectionLogInsights:
fn::invoke:
function: oci:DataSafe:getSqlCollectionLogInsights
arguments:
sqlCollectionId: ${testSqlCollection.id}
timeEnded: ${sqlCollectionLogInsightTimeEnded}
timeStarted: ${sqlCollectionLogInsightTimeStarted}
groupBy: ${sqlCollectionLogInsightGroupBy}
Using getSqlCollectionLogInsights
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 getSqlCollectionLogInsights(args: GetSqlCollectionLogInsightsArgs, opts?: InvokeOptions): Promise<GetSqlCollectionLogInsightsResult>
function getSqlCollectionLogInsightsOutput(args: GetSqlCollectionLogInsightsOutputArgs, opts?: InvokeOptions): Output<GetSqlCollectionLogInsightsResult>
def get_sql_collection_log_insights(filters: Optional[Sequence[_datasafe.GetSqlCollectionLogInsightsFilter]] = None,
group_by: Optional[str] = None,
sql_collection_id: Optional[str] = None,
time_ended: Optional[str] = None,
time_started: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSqlCollectionLogInsightsResult
def get_sql_collection_log_insights_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datasafe.GetSqlCollectionLogInsightsFilterArgs]]]] = None,
group_by: Optional[pulumi.Input[str]] = None,
sql_collection_id: Optional[pulumi.Input[str]] = None,
time_ended: Optional[pulumi.Input[str]] = None,
time_started: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSqlCollectionLogInsightsResult]
func GetSqlCollectionLogInsights(ctx *Context, args *GetSqlCollectionLogInsightsArgs, opts ...InvokeOption) (*GetSqlCollectionLogInsightsResult, error)
func GetSqlCollectionLogInsightsOutput(ctx *Context, args *GetSqlCollectionLogInsightsOutputArgs, opts ...InvokeOption) GetSqlCollectionLogInsightsResultOutput
> Note: This function is named GetSqlCollectionLogInsights
in the Go SDK.
public static class GetSqlCollectionLogInsights
{
public static Task<GetSqlCollectionLogInsightsResult> InvokeAsync(GetSqlCollectionLogInsightsArgs args, InvokeOptions? opts = null)
public static Output<GetSqlCollectionLogInsightsResult> Invoke(GetSqlCollectionLogInsightsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSqlCollectionLogInsightsResult> getSqlCollectionLogInsights(GetSqlCollectionLogInsightsArgs args, InvokeOptions options)
public static Output<GetSqlCollectionLogInsightsResult> getSqlCollectionLogInsights(GetSqlCollectionLogInsightsArgs args, InvokeOptions options)
fn::invoke:
function: oci:DataSafe/getSqlCollectionLogInsights:getSqlCollectionLogInsights
arguments:
# arguments dictionary
The following arguments are supported:
- Sql
Collection stringId - The OCID of the SQL collection resource.
- Time
Ended string - An optional filter to return the stats of the SQL collection logs collected before the date-time specified, in the format defined by RFC3339.
- Time
Started string - An optional filter to return the stats of the SQL collection logs collected after the date-time specified, in the format defined by RFC3339.
- Filters
List<Get
Sql Collection Log Insights Filter> - Group
By string - The group by parameter to summarize SQL collection log insights aggregation.
- Sql
Collection stringId - The OCID of the SQL collection resource.
- Time
Ended string - An optional filter to return the stats of the SQL collection logs collected before the date-time specified, in the format defined by RFC3339.
- Time
Started string - An optional filter to return the stats of the SQL collection logs collected after the date-time specified, in the format defined by RFC3339.
- Filters
[]Get
Sql Collection Log Insights Filter - Group
By string - The group by parameter to summarize SQL collection log insights aggregation.
- sql
Collection StringId - The OCID of the SQL collection resource.
- time
Ended String - An optional filter to return the stats of the SQL collection logs collected before the date-time specified, in the format defined by RFC3339.
- time
Started String - An optional filter to return the stats of the SQL collection logs collected after the date-time specified, in the format defined by RFC3339.
- filters
List<Get
Sql Collection Log Insights Filter> - group
By String - The group by parameter to summarize SQL collection log insights aggregation.
- sql
Collection stringId - The OCID of the SQL collection resource.
- time
Ended string - An optional filter to return the stats of the SQL collection logs collected before the date-time specified, in the format defined by RFC3339.
- time
Started string - An optional filter to return the stats of the SQL collection logs collected after the date-time specified, in the format defined by RFC3339.
- filters
Get
Sql Collection Log Insights Filter[] - group
By string - The group by parameter to summarize SQL collection log insights aggregation.
- sql_
collection_ strid - The OCID of the SQL collection resource.
- time_
ended str - An optional filter to return the stats of the SQL collection logs collected before the date-time specified, in the format defined by RFC3339.
- time_
started str - An optional filter to return the stats of the SQL collection logs collected after the date-time specified, in the format defined by RFC3339.
- filters
Sequence[datasafe.
Get Sql Collection Log Insights Filter] - group_
by str - The group by parameter to summarize SQL collection log insights aggregation.
- sql
Collection StringId - The OCID of the SQL collection resource.
- time
Ended String - An optional filter to return the stats of the SQL collection logs collected before the date-time specified, in the format defined by RFC3339.
- time
Started String - An optional filter to return the stats of the SQL collection logs collected after the date-time specified, in the format defined by RFC3339.
- filters List<Property Map>
- group
By String - The group by parameter to summarize SQL collection log insights aggregation.
getSqlCollectionLogInsights Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Sql
Collection stringId - Sql
Collection List<GetLog Insights Collections Sql Collection Log Insights Sql Collection Log Insights Collection> - The list of sql_collection_log_insights_collection.
- Time
Ended string - The time at which the aggregation ended.
- Time
Started string - The time at which the aggregation started.
- Filters
List<Get
Sql Collection Log Insights Filter> - Group
By string
- Id string
- The provider-assigned unique ID for this managed resource.
- Sql
Collection stringId - Sql
Collection []GetLog Insights Collections Sql Collection Log Insights Sql Collection Log Insights Collection - The list of sql_collection_log_insights_collection.
- Time
Ended string - The time at which the aggregation ended.
- Time
Started string - The time at which the aggregation started.
- Filters
[]Get
Sql Collection Log Insights Filter - Group
By string
- id String
- The provider-assigned unique ID for this managed resource.
- sql
Collection StringId - sql
Collection List<GetLog Insights Collections Sql Collection Log Insights Sql Collection Log Insights Collection> - The list of sql_collection_log_insights_collection.
- time
Ended String - The time at which the aggregation ended.
- time
Started String - The time at which the aggregation started.
- filters
List<Get
Sql Collection Log Insights Filter> - group
By String
- id string
- The provider-assigned unique ID for this managed resource.
- sql
Collection stringId - sql
Collection GetLog Insights Collections Sql Collection Log Insights Sql Collection Log Insights Collection[] - The list of sql_collection_log_insights_collection.
- time
Ended string - The time at which the aggregation ended.
- time
Started string - The time at which the aggregation started.
- filters
Get
Sql Collection Log Insights Filter[] - group
By string
- id str
- The provider-assigned unique ID for this managed resource.
- sql_
collection_ strid - sql_
collection_ Sequence[datasafe.log_ insights_ collections Get Sql Collection Log Insights Sql Collection Log Insights Collection] - The list of sql_collection_log_insights_collection.
- time_
ended str - The time at which the aggregation ended.
- time_
started str - The time at which the aggregation started.
- filters
Sequence[datasafe.
Get Sql Collection Log Insights Filter] - group_
by str
- id String
- The provider-assigned unique ID for this managed resource.
- sql
Collection StringId - sql
Collection List<Property Map>Log Insights Collections - The list of sql_collection_log_insights_collection.
- time
Ended String - The time at which the aggregation ended.
- time
Started String - The time at which the aggregation started.
- filters List<Property Map>
- group
By String
Supporting Types
GetSqlCollectionLogInsightsFilter
GetSqlCollectionLogInsightsSqlCollectionLogInsightsCollection
- Items
List<Get
Sql Collection Log Insights Sql Collection Log Insights Collection Item> - The aggregated data point items.
- Items
[]Get
Sql Collection Log Insights Sql Collection Log Insights Collection Item - The aggregated data point items.
- items
List<Get
Sql Collection Log Insights Sql Collection Log Insights Collection Item> - The aggregated data point items.
- items
Get
Sql Collection Log Insights Sql Collection Log Insights Collection Item[] - The aggregated data point items.
- items
Sequence[datasafe.
Get Sql Collection Log Insights Sql Collection Log Insights Collection Item] - The aggregated data point items.
- items List<Property Map>
- The aggregated data point items.
GetSqlCollectionLogInsightsSqlCollectionLogInsightsCollectionItem
- Dimensions
List<Get
Sql Collection Log Insights Sql Collection Log Insights Collection Item Dimension> - The dimensions available for SQL collection analytics.
- Metric
Name string - Name of the aggregation.
- Sql
Collection stringLog Insight Count - Total count of aggregated value.
- Time
Ended string - An optional filter to return the stats of the SQL collection logs collected before the date-time specified, in the format defined by RFC3339.
- Time
Started string - An optional filter to return the stats of the SQL collection logs collected after the date-time specified, in the format defined by RFC3339.
- Dimensions
[]Get
Sql Collection Log Insights Sql Collection Log Insights Collection Item Dimension - The dimensions available for SQL collection analytics.
- Metric
Name string - Name of the aggregation.
- Sql
Collection stringLog Insight Count - Total count of aggregated value.
- Time
Ended string - An optional filter to return the stats of the SQL collection logs collected before the date-time specified, in the format defined by RFC3339.
- Time
Started string - An optional filter to return the stats of the SQL collection logs collected after the date-time specified, in the format defined by RFC3339.
- dimensions
List<Get
Sql Collection Log Insights Sql Collection Log Insights Collection Item Dimension> - The dimensions available for SQL collection analytics.
- metric
Name String - Name of the aggregation.
- sql
Collection StringLog Insight Count - Total count of aggregated value.
- time
Ended String - An optional filter to return the stats of the SQL collection logs collected before the date-time specified, in the format defined by RFC3339.
- time
Started String - An optional filter to return the stats of the SQL collection logs collected after the date-time specified, in the format defined by RFC3339.
- dimensions
Get
Sql Collection Log Insights Sql Collection Log Insights Collection Item Dimension[] - The dimensions available for SQL collection analytics.
- metric
Name string - Name of the aggregation.
- sql
Collection stringLog Insight Count - Total count of aggregated value.
- time
Ended string - An optional filter to return the stats of the SQL collection logs collected before the date-time specified, in the format defined by RFC3339.
- time
Started string - An optional filter to return the stats of the SQL collection logs collected after the date-time specified, in the format defined by RFC3339.
- dimensions
Sequence[datasafe.
Get Sql Collection Log Insights Sql Collection Log Insights Collection Item Dimension] - The dimensions available for SQL collection analytics.
- metric_
name str - Name of the aggregation.
- sql_
collection_ strlog_ insight_ count - Total count of aggregated value.
- time_
ended str - An optional filter to return the stats of the SQL collection logs collected before the date-time specified, in the format defined by RFC3339.
- time_
started str - An optional filter to return the stats of the SQL collection logs collected after the date-time specified, in the format defined by RFC3339.
- dimensions List<Property Map>
- The dimensions available for SQL collection analytics.
- metric
Name String - Name of the aggregation.
- sql
Collection StringLog Insight Count - Total count of aggregated value.
- time
Ended String - An optional filter to return the stats of the SQL collection logs collected before the date-time specified, in the format defined by RFC3339.
- time
Started String - An optional filter to return the stats of the SQL collection logs collected after the date-time specified, in the format defined by RFC3339.
GetSqlCollectionLogInsightsSqlCollectionLogInsightsCollectionItemDimension
- Client
Ip string - The IP addresses for the SQL collection.
- Client
Os stringUser Name - The operating system user names for the SQL collection.
- Client
Program string - The allowed client programs for the SQL collection.
- Client
Ip string - The IP addresses for the SQL collection.
- Client
Os stringUser Name - The operating system user names for the SQL collection.
- Client
Program string - The allowed client programs for the SQL collection.
- client
Ip String - The IP addresses for the SQL collection.
- client
Os StringUser Name - The operating system user names for the SQL collection.
- client
Program String - The allowed client programs for the SQL collection.
- client
Ip string - The IP addresses for the SQL collection.
- client
Os stringUser Name - The operating system user names for the SQL collection.
- client
Program string - The allowed client programs for the SQL collection.
- client_
ip str - The IP addresses for the SQL collection.
- client_
os_ struser_ name - The operating system user names for the SQL collection.
- client_
program str - The allowed client programs for the SQL collection.
- client
Ip String - The IP addresses for the SQL collection.
- client
Os StringUser Name - The operating system user names for the SQL collection.
- client
Program String - The allowed client programs for the SQL collection.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.