oci.DataSafe.getSqlCollections
Explore with Pulumi AI
This data source provides the list of Sql Collections in Oracle Cloud Infrastructure Data Safe service.
Retrieves a list of all SQL collections in Data Safe.
The ListSqlCollections operation returns only the SQL collections in the specified compartmentId
.
The parameter accessLevel
specifies whether to return only those compartments for which the
requestor has INSPECT permissions on at least one resource directly
or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if
Principal doesn’t have access to even one of the child compartments. This is valid only when
compartmentIdInSubtree
is set to true
.
The parameter compartmentIdInSubtree
applies when you perform ListSqlCollections on the
compartmentId
passed and when it is set to true, the entire hierarchy of compartments can be returned.
To get a full list of all compartments and subcompartments in the tenancy (root compartment),
set the parameter compartmentIdInSubtree
to true and accessLevel
to ACCESSIBLE.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSqlCollections = oci.DataSafe.getSqlCollections({
compartmentId: compartmentId,
accessLevel: sqlCollectionAccessLevel,
compartmentIdInSubtree: sqlCollectionCompartmentIdInSubtree,
dbUserName: testUser.name,
displayName: sqlCollectionDisplayName,
sqlCollectionId: testSqlCollection.id,
state: sqlCollectionState,
targetId: testTarget.id,
timeCreatedGreaterThanOrEqualTo: sqlCollectionTimeCreatedGreaterThanOrEqualTo,
timeCreatedLessThan: sqlCollectionTimeCreatedLessThan,
});
import pulumi
import pulumi_oci as oci
test_sql_collections = oci.DataSafe.get_sql_collections(compartment_id=compartment_id,
access_level=sql_collection_access_level,
compartment_id_in_subtree=sql_collection_compartment_id_in_subtree,
db_user_name=test_user["name"],
display_name=sql_collection_display_name,
sql_collection_id=test_sql_collection["id"],
state=sql_collection_state,
target_id=test_target["id"],
time_created_greater_than_or_equal_to=sql_collection_time_created_greater_than_or_equal_to,
time_created_less_than=sql_collection_time_created_less_than)
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.GetSqlCollections(ctx, &datasafe.GetSqlCollectionsArgs{
CompartmentId: compartmentId,
AccessLevel: pulumi.StringRef(sqlCollectionAccessLevel),
CompartmentIdInSubtree: pulumi.BoolRef(sqlCollectionCompartmentIdInSubtree),
DbUserName: pulumi.StringRef(testUser.Name),
DisplayName: pulumi.StringRef(sqlCollectionDisplayName),
SqlCollectionId: pulumi.StringRef(testSqlCollection.Id),
State: pulumi.StringRef(sqlCollectionState),
TargetId: pulumi.StringRef(testTarget.Id),
TimeCreatedGreaterThanOrEqualTo: pulumi.StringRef(sqlCollectionTimeCreatedGreaterThanOrEqualTo),
TimeCreatedLessThan: pulumi.StringRef(sqlCollectionTimeCreatedLessThan),
}, 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 testSqlCollections = Oci.DataSafe.GetSqlCollections.Invoke(new()
{
CompartmentId = compartmentId,
AccessLevel = sqlCollectionAccessLevel,
CompartmentIdInSubtree = sqlCollectionCompartmentIdInSubtree,
DbUserName = testUser.Name,
DisplayName = sqlCollectionDisplayName,
SqlCollectionId = testSqlCollection.Id,
State = sqlCollectionState,
TargetId = testTarget.Id,
TimeCreatedGreaterThanOrEqualTo = sqlCollectionTimeCreatedGreaterThanOrEqualTo,
TimeCreatedLessThan = sqlCollectionTimeCreatedLessThan,
});
});
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.GetSqlCollectionsArgs;
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 testSqlCollections = DataSafeFunctions.getSqlCollections(GetSqlCollectionsArgs.builder()
.compartmentId(compartmentId)
.accessLevel(sqlCollectionAccessLevel)
.compartmentIdInSubtree(sqlCollectionCompartmentIdInSubtree)
.dbUserName(testUser.name())
.displayName(sqlCollectionDisplayName)
.sqlCollectionId(testSqlCollection.id())
.state(sqlCollectionState)
.targetId(testTarget.id())
.timeCreatedGreaterThanOrEqualTo(sqlCollectionTimeCreatedGreaterThanOrEqualTo)
.timeCreatedLessThan(sqlCollectionTimeCreatedLessThan)
.build());
}
}
variables:
testSqlCollections:
fn::invoke:
Function: oci:DataSafe:getSqlCollections
Arguments:
compartmentId: ${compartmentId}
accessLevel: ${sqlCollectionAccessLevel}
compartmentIdInSubtree: ${sqlCollectionCompartmentIdInSubtree}
dbUserName: ${testUser.name}
displayName: ${sqlCollectionDisplayName}
sqlCollectionId: ${testSqlCollection.id}
state: ${sqlCollectionState}
targetId: ${testTarget.id}
timeCreatedGreaterThanOrEqualTo: ${sqlCollectionTimeCreatedGreaterThanOrEqualTo}
timeCreatedLessThan: ${sqlCollectionTimeCreatedLessThan}
Using getSqlCollections
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 getSqlCollections(args: GetSqlCollectionsArgs, opts?: InvokeOptions): Promise<GetSqlCollectionsResult>
function getSqlCollectionsOutput(args: GetSqlCollectionsOutputArgs, opts?: InvokeOptions): Output<GetSqlCollectionsResult>
def get_sql_collections(access_level: Optional[str] = None,
compartment_id: Optional[str] = None,
compartment_id_in_subtree: Optional[bool] = None,
db_user_name: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_datasafe.GetSqlCollectionsFilter]] = None,
sql_collection_id: Optional[str] = None,
state: Optional[str] = None,
target_id: Optional[str] = None,
time_created_greater_than_or_equal_to: Optional[str] = None,
time_created_less_than: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSqlCollectionsResult
def get_sql_collections_output(access_level: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
db_user_name: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datasafe.GetSqlCollectionsFilterArgs]]]] = None,
sql_collection_id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
target_id: Optional[pulumi.Input[str]] = None,
time_created_greater_than_or_equal_to: Optional[pulumi.Input[str]] = None,
time_created_less_than: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSqlCollectionsResult]
func GetSqlCollections(ctx *Context, args *GetSqlCollectionsArgs, opts ...InvokeOption) (*GetSqlCollectionsResult, error)
func GetSqlCollectionsOutput(ctx *Context, args *GetSqlCollectionsOutputArgs, opts ...InvokeOption) GetSqlCollectionsResultOutput
> Note: This function is named GetSqlCollections
in the Go SDK.
public static class GetSqlCollections
{
public static Task<GetSqlCollectionsResult> InvokeAsync(GetSqlCollectionsArgs args, InvokeOptions? opts = null)
public static Output<GetSqlCollectionsResult> Invoke(GetSqlCollectionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSqlCollectionsResult> getSqlCollections(GetSqlCollectionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DataSafe/getSqlCollections:getSqlCollections
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.
- Db
User stringName - A filter to return only items that match the specified user name.
- Display
Name string - A filter to return only resources that match the specified display name.
- Filters
List<Get
Sql Collections Filter> - Sql
Collection stringId - An optional filter to return only resources that match the specified OCID of the SQL collection resource.
- State string
- The current state of the SQL collection.
- Target
Id string - A filter to return only items related to a specific target OCID.
- Time
Created stringGreater Than Or Equal To A filter to return only the resources that were created after the specified date and time, as defined by RFC3339. Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date.
Example: 2016-12-19T16:39:57.600Z
- Time
Created stringLess Than Search for resources that were created before a specific date. Specifying this parameter corresponding
timeCreatedLessThan
parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.Example: 2016-12-19T16:39:57.600Z
- 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.
- Db
User stringName - A filter to return only items that match the specified user name.
- Display
Name string - A filter to return only resources that match the specified display name.
- Filters
[]Get
Sql Collections Filter - Sql
Collection stringId - An optional filter to return only resources that match the specified OCID of the SQL collection resource.
- State string
- The current state of the SQL collection.
- Target
Id string - A filter to return only items related to a specific target OCID.
- Time
Created stringGreater Than Or Equal To A filter to return only the resources that were created after the specified date and time, as defined by RFC3339. Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date.
Example: 2016-12-19T16:39:57.600Z
- Time
Created stringLess Than Search for resources that were created before a specific date. Specifying this parameter corresponding
timeCreatedLessThan
parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.Example: 2016-12-19T16:39:57.600Z
- 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.
- db
User StringName - A filter to return only items that match the specified user name.
- display
Name String - A filter to return only resources that match the specified display name.
- filters
List<Get
Sql Collections Filter> - sql
Collection StringId - An optional filter to return only resources that match the specified OCID of the SQL collection resource.
- state String
- The current state of the SQL collection.
- target
Id String - A filter to return only items related to a specific target OCID.
- time
Created StringGreater Than Or Equal To A filter to return only the resources that were created after the specified date and time, as defined by RFC3339. Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date.
Example: 2016-12-19T16:39:57.600Z
- time
Created StringLess Than Search for resources that were created before a specific date. Specifying this parameter corresponding
timeCreatedLessThan
parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.Example: 2016-12-19T16:39:57.600Z
- 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.
- db
User stringName - A filter to return only items that match the specified user name.
- display
Name string - A filter to return only resources that match the specified display name.
- filters
Get
Sql Collections Filter[] - sql
Collection stringId - An optional filter to return only resources that match the specified OCID of the SQL collection resource.
- state string
- The current state of the SQL collection.
- target
Id string - A filter to return only items related to a specific target OCID.
- time
Created stringGreater Than Or Equal To A filter to return only the resources that were created after the specified date and time, as defined by RFC3339. Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date.
Example: 2016-12-19T16:39:57.600Z
- time
Created stringLess Than Search for resources that were created before a specific date. Specifying this parameter corresponding
timeCreatedLessThan
parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.Example: 2016-12-19T16:39:57.600Z
- 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.
- db_
user_ strname - A filter to return only items that match the specified user name.
- display_
name str - A filter to return only resources that match the specified display name.
- filters
Sequence[datasafe.
Get Sql Collections Filter] - sql_
collection_ strid - An optional filter to return only resources that match the specified OCID of the SQL collection resource.
- state str
- The current state of the SQL collection.
- target_
id str - A filter to return only items related to a specific target OCID.
- time_
created_ strgreater_ than_ or_ equal_ to A filter to return only the resources that were created after the specified date and time, as defined by RFC3339. Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date.
Example: 2016-12-19T16:39:57.600Z
- time_
created_ strless_ than Search for resources that were created before a specific date. Specifying this parameter corresponding
timeCreatedLessThan
parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.Example: 2016-12-19T16:39:57.600Z
- 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.
- db
User StringName - A filter to return only items that match the specified user name.
- display
Name String - A filter to return only resources that match the specified display name.
- filters List<Property Map>
- sql
Collection StringId - An optional filter to return only resources that match the specified OCID of the SQL collection resource.
- state String
- The current state of the SQL collection.
- target
Id String - A filter to return only items related to a specific target OCID.
- time
Created StringGreater Than Or Equal To A filter to return only the resources that were created after the specified date and time, as defined by RFC3339. Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date.
Example: 2016-12-19T16:39:57.600Z
- time
Created StringLess Than Search for resources that were created before a specific date. Specifying this parameter corresponding
timeCreatedLessThan
parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.Example: 2016-12-19T16:39:57.600Z
getSqlCollections Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment containing the SQL collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Sql
Collection List<GetCollections Sql Collections Sql Collection Collection> - The list of sql_collection_collection.
- Access
Level string - Compartment
Id boolIn Subtree - Db
User stringName - The database user name.
- Display
Name string - The display name of the SQL collection.
- Filters
List<Get
Sql Collections Filter> - Sql
Collection stringId - State string
- The current state of the SQL collection.
- Target
Id string - The OCID of the target corresponding to the security policy deployment.
- Time
Created stringGreater Than Or Equal To - Time
Created stringLess Than
- Compartment
Id string - The OCID of the compartment containing the SQL collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Sql
Collection []GetCollections Sql Collections Sql Collection Collection - The list of sql_collection_collection.
- Access
Level string - Compartment
Id boolIn Subtree - Db
User stringName - The database user name.
- Display
Name string - The display name of the SQL collection.
- Filters
[]Get
Sql Collections Filter - Sql
Collection stringId - State string
- The current state of the SQL collection.
- Target
Id string - The OCID of the target corresponding to the security policy deployment.
- Time
Created stringGreater Than Or Equal To - Time
Created stringLess Than
- compartment
Id String - The OCID of the compartment containing the SQL collection.
- id String
- The provider-assigned unique ID for this managed resource.
- sql
Collection List<GetCollections Sql Collections Sql Collection Collection> - The list of sql_collection_collection.
- access
Level String - compartment
Id BooleanIn Subtree - db
User StringName - The database user name.
- display
Name String - The display name of the SQL collection.
- filters
List<Get
Sql Collections Filter> - sql
Collection StringId - state String
- The current state of the SQL collection.
- target
Id String - The OCID of the target corresponding to the security policy deployment.
- time
Created StringGreater Than Or Equal To - time
Created StringLess Than
- compartment
Id string - The OCID of the compartment containing the SQL collection.
- id string
- The provider-assigned unique ID for this managed resource.
- sql
Collection GetCollections Sql Collections Sql Collection Collection[] - The list of sql_collection_collection.
- access
Level string - compartment
Id booleanIn Subtree - db
User stringName - The database user name.
- display
Name string - The display name of the SQL collection.
- filters
Get
Sql Collections Filter[] - sql
Collection stringId - state string
- The current state of the SQL collection.
- target
Id string - The OCID of the target corresponding to the security policy deployment.
- time
Created stringGreater Than Or Equal To - time
Created stringLess Than
- compartment_
id str - The OCID of the compartment containing the SQL collection.
- id str
- The provider-assigned unique ID for this managed resource.
- sql_
collection_ Sequence[datasafe.collections Get Sql Collections Sql Collection Collection] - The list of sql_collection_collection.
- access_
level str - compartment_
id_ boolin_ subtree - db_
user_ strname - The database user name.
- display_
name str - The display name of the SQL collection.
- filters
Sequence[datasafe.
Get Sql Collections Filter] - sql_
collection_ strid - state str
- The current state of the SQL collection.
- target_
id str - The OCID of the target corresponding to the security policy deployment.
- time_
created_ strgreater_ than_ or_ equal_ to - time_
created_ strless_ than
- compartment
Id String - The OCID of the compartment containing the SQL collection.
- id String
- The provider-assigned unique ID for this managed resource.
- sql
Collection List<Property Map>Collections - The list of sql_collection_collection.
- access
Level String - compartment
Id BooleanIn Subtree - db
User StringName - The database user name.
- display
Name String - The display name of the SQL collection.
- filters List<Property Map>
- sql
Collection StringId - state String
- The current state of the SQL collection.
- target
Id String - The OCID of the target corresponding to the security policy deployment.
- time
Created StringGreater Than Or Equal To - time
Created StringLess Than
Supporting Types
GetSqlCollectionsFilter
GetSqlCollectionsSqlCollectionCollection
GetSqlCollectionsSqlCollectionCollectionItem
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- Db
User stringName - A filter to return only items that match the specified 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 - A filter to return only resources that match the specified display name.
- 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
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 - A filter to return only items related to a specific target OCID.
- 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 - A filter to return only resources that match the specified compartment OCID.
- Db
User stringName - A filter to return only items that match the specified 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 - A filter to return only resources that match the specified display name.
- 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
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 - A filter to return only items related to a specific target OCID.
- 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 - A filter to return only resources that match the specified compartment OCID.
- db
User StringName - A filter to return only items that match the specified 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 - A filter to return only resources that match the specified display name.
- 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
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 - A filter to return only items related to a specific target OCID.
- 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 - A filter to return only resources that match the specified compartment OCID.
- db
User stringName - A filter to return only items that match the specified 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 - A filter to return only resources that match the specified display name.
- {[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
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 - A filter to return only items related to a specific target OCID.
- 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 - A filter to return only resources that match the specified compartment OCID.
- db_
user_ strname - A filter to return only items that match the specified 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 - A filter to return only resources that match the specified display name.
- 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_
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 - A filter to return only items related to a specific target OCID.
- 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 - A filter to return only resources that match the specified compartment OCID.
- db
User StringName - A filter to return only items that match the specified 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 - A filter to return only resources that match the specified display name.
- 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
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 - A filter to return only items related to a specific target OCID.
- 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
oci
Terraform Provider.