Viewing docs for Oracle Cloud Infrastructure v4.3.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.3.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
This data source provides details about a specific Sql Collection resource in Oracle Cloud Infrastructure Data Safe service.
Gets a SQL collection by identifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSqlCollection = oci.DataSafe.getSqlCollection({
sqlCollectionId: testSqlCollectionOciDataSafeSqlCollection.id,
});
import pulumi
import pulumi_oci as oci
test_sql_collection = oci.DataSafe.get_sql_collection(sql_collection_id=test_sql_collection_oci_data_safe_sql_collection["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/datasafe"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datasafe.GetSqlCollection(ctx, &datasafe.GetSqlCollectionArgs{
SqlCollectionId: testSqlCollectionOciDataSafeSqlCollection.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 testSqlCollection = Oci.DataSafe.GetSqlCollection.Invoke(new()
{
SqlCollectionId = testSqlCollectionOciDataSafeSqlCollection.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.GetSqlCollectionArgs;
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 testSqlCollection = DataSafeFunctions.getSqlCollection(GetSqlCollectionArgs.builder()
.sqlCollectionId(testSqlCollectionOciDataSafeSqlCollection.id())
.build());
}
}
variables:
testSqlCollection:
fn::invoke:
function: oci:DataSafe:getSqlCollection
arguments:
sqlCollectionId: ${testSqlCollectionOciDataSafeSqlCollection.id}
Using getSqlCollection
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 getSqlCollection(args: GetSqlCollectionArgs, opts?: InvokeOptions): Promise<GetSqlCollectionResult>
function getSqlCollectionOutput(args: GetSqlCollectionOutputArgs, opts?: InvokeOptions): Output<GetSqlCollectionResult>def get_sql_collection(sql_collection_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSqlCollectionResult
def get_sql_collection_output(sql_collection_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSqlCollectionResult]func LookupSqlCollection(ctx *Context, args *LookupSqlCollectionArgs, opts ...InvokeOption) (*LookupSqlCollectionResult, error)
func LookupSqlCollectionOutput(ctx *Context, args *LookupSqlCollectionOutputArgs, opts ...InvokeOption) LookupSqlCollectionResultOutput> Note: This function is named LookupSqlCollection in the Go SDK.
public static class GetSqlCollection
{
public static Task<GetSqlCollectionResult> InvokeAsync(GetSqlCollectionArgs args, InvokeOptions? opts = null)
public static Output<GetSqlCollectionResult> Invoke(GetSqlCollectionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSqlCollectionResult> getSqlCollection(GetSqlCollectionArgs args, InvokeOptions options)
public static Output<GetSqlCollectionResult> getSqlCollection(GetSqlCollectionArgs args, InvokeOptions options)
fn::invoke:
function: oci:DataSafe/getSqlCollection:getSqlCollection
arguments:
# arguments dictionaryThe following arguments are supported:
- Sql
Collection stringId - The OCID of the SQL collection resource.
- Sql
Collection stringId - The OCID of the SQL collection resource.
- sql
Collection StringId - The OCID of the SQL collection resource.
- sql
Collection stringId - The OCID of the SQL collection resource.
- sql_
collection_ strid - The OCID of the SQL collection resource.
- sql
Collection StringId - The OCID of the SQL collection resource.
getSqlCollection Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment containing the SQL collection.
- Db
User stringName - The database user name.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"} - Description string
- The description of the SQL collection.
- Display
Name string - The display name of the SQL collection.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"} - Generate
Sql boolFirewall Policy Trigger - Id string
- The OCID of the SQL collection.
- Lifecycle
Details string - Details about the current state of the SQL collection in Data Safe.
- Purge
Logs boolTrigger - Refresh
Log boolInsights Trigger - Sql
Collection stringId - Sql
Level string - Specifies the level of SQL that will be collected. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- Start
Trigger bool - State string
- The current state of the SQL collection.
- Status string
- Specifies if the status of the SqlCollection. Enabled indicates that the collecting is in progress.
- Stop
Trigger bool - Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"} - Target
Id string - The OCID of the target corresponding to the security policy deployment.
- Time
Created string - The time that the SQL collection was created, in the format defined by RFC3339.
- Time
Last stringStarted - The timestamp of the most recent SqlCollection start operation, in the format defined by RFC3339.
- Time
Last stringStopped - The timestamp of the most recent SqlCollection stop operation, in the format defined by RFC3339.
- Time
Updated string - The last date and time the SQL collection was updated, in the format defined by RFC3339.
- Compartment
Id string - The OCID of the compartment containing the SQL collection.
- Db
User stringName - The database user name.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"} - Description string
- The description of the SQL collection.
- Display
Name string - The display name of the SQL collection.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"} - Generate
Sql boolFirewall Policy Trigger - Id string
- The OCID of the SQL collection.
- Lifecycle
Details string - Details about the current state of the SQL collection in Data Safe.
- Purge
Logs boolTrigger - Refresh
Log boolInsights Trigger - Sql
Collection stringId - Sql
Level string - Specifies the level of SQL that will be collected. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- Start
Trigger bool - State string
- The current state of the SQL collection.
- Status string
- Specifies if the status of the SqlCollection. Enabled indicates that the collecting is in progress.
- Stop
Trigger bool - map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"} - Target
Id string - The OCID of the target corresponding to the security policy deployment.
- Time
Created string - The time that the SQL collection was created, in the format defined by RFC3339.
- Time
Last stringStarted - The timestamp of the most recent SqlCollection start operation, in the format defined by RFC3339.
- Time
Last stringStopped - The timestamp of the most recent SqlCollection stop operation, in the format defined by RFC3339.
- Time
Updated string - The last date and time the SQL collection was updated, in the format defined by RFC3339.
- compartment
Id String - The OCID of the compartment containing the SQL collection.
- db
User StringName - The database user name.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"} - description String
- The description of the SQL collection.
- display
Name String - The display name of the SQL collection.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"} - generate
Sql BooleanFirewall Policy Trigger - id String
- The OCID of the SQL collection.
- lifecycle
Details String - Details about the current state of the SQL collection in Data Safe.
- purge
Logs BooleanTrigger - refresh
Log BooleanInsights Trigger - sql
Collection StringId - sql
Level String - Specifies the level of SQL that will be collected. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- start
Trigger Boolean - state String
- The current state of the SQL collection.
- status String
- Specifies if the status of the SqlCollection. Enabled indicates that the collecting is in progress.
- stop
Trigger Boolean - Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Id String - The OCID of the target corresponding to the security policy deployment.
- time
Created String - The time that the SQL collection was created, in the format defined by RFC3339.
- time
Last StringStarted - The timestamp of the most recent SqlCollection start operation, in the format defined by RFC3339.
- time
Last StringStopped - The timestamp of the most recent SqlCollection stop operation, in the format defined by RFC3339.
- time
Updated String - The last date and time the SQL collection was updated, in the format defined by RFC3339.
- compartment
Id string - The OCID of the compartment containing the SQL collection.
- db
User stringName - The database user name.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"} - description string
- The description of the SQL collection.
- display
Name string - The display name of the SQL collection.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"} - generate
Sql booleanFirewall Policy Trigger - id string
- The OCID of the SQL collection.
- lifecycle
Details string - Details about the current state of the SQL collection in Data Safe.
- purge
Logs booleanTrigger - refresh
Log booleanInsights Trigger - sql
Collection stringId - sql
Level string - Specifies the level of SQL that will be collected. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- start
Trigger boolean - state string
- The current state of the SQL collection.
- status string
- Specifies if the status of the SqlCollection. Enabled indicates that the collecting is in progress.
- stop
Trigger boolean - {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Id string - The OCID of the target corresponding to the security policy deployment.
- time
Created string - The time that the SQL collection was created, in the format defined by RFC3339.
- time
Last stringStarted - The timestamp of the most recent SqlCollection start operation, in the format defined by RFC3339.
- time
Last stringStopped - The timestamp of the most recent SqlCollection stop operation, in the format defined by RFC3339.
- time
Updated string - The last date and time the SQL collection was updated, in the format defined by RFC3339.
- compartment_
id str - The OCID of the compartment containing the SQL collection.
- db_
user_ strname - The database user name.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"} - description str
- The description of the SQL collection.
- display_
name str - The display name of the SQL collection.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"} - generate_
sql_ boolfirewall_ policy_ trigger - id str
- The OCID of the SQL collection.
- lifecycle_
details str - Details about the current state of the SQL collection in Data Safe.
- purge_
logs_ booltrigger - refresh_
log_ boolinsights_ trigger - sql_
collection_ strid - sql_
level str - Specifies the level of SQL that will be collected. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- start_
trigger bool - state str
- The current state of the SQL collection.
- status str
- Specifies if the status of the SqlCollection. Enabled indicates that the collecting is in progress.
- stop_
trigger bool - Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"} - target_
id str - The OCID of the target corresponding to the security policy deployment.
- time_
created str - The time that the SQL collection was created, in the format defined by RFC3339.
- time_
last_ strstarted - The timestamp of the most recent SqlCollection start operation, in the format defined by RFC3339.
- time_
last_ strstopped - The timestamp of the most recent SqlCollection stop operation, in the format defined by RFC3339.
- time_
updated str - The last date and time the SQL collection was updated, in the format defined by RFC3339.
- compartment
Id String - The OCID of the compartment containing the SQL collection.
- db
User StringName - The database user name.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"} - description String
- The description of the SQL collection.
- display
Name String - The display name of the SQL collection.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"} - generate
Sql BooleanFirewall Policy Trigger - id String
- The OCID of the SQL collection.
- lifecycle
Details String - Details about the current state of the SQL collection in Data Safe.
- purge
Logs BooleanTrigger - refresh
Log BooleanInsights Trigger - sql
Collection StringId - sql
Level String - Specifies the level of SQL that will be collected. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- start
Trigger Boolean - state String
- The current state of the SQL collection.
- status String
- Specifies if the status of the SqlCollection. Enabled indicates that the collecting is in progress.
- stop
Trigger Boolean - Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Id String - The OCID of the target corresponding to the security policy deployment.
- time
Created String - The time that the SQL collection was created, in the format defined by RFC3339.
- time
Last StringStarted - The timestamp of the most recent SqlCollection start operation, in the format defined by RFC3339.
- time
Last StringStopped - The timestamp of the most recent SqlCollection stop operation, in the format defined by RFC3339.
- time
Updated String - The last date and time the SQL collection was updated, in the format defined by RFC3339.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.3.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
