Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DataSafe.getSqlFirewallAllowedSql
Explore with Pulumi AI
This data source provides details about a specific Sql Firewall Allowed Sql resource in Oracle Cloud Infrastructure Data Safe service.
Gets a SQL firewall allowed SQL by identifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSqlFirewallAllowedSql = oci.DataSafe.getSqlFirewallAllowedSql({
    sqlFirewallAllowedSqlId: testSqlFirewallAllowedSqlOciDataSafeSqlFirewallAllowedSql.id,
});
import pulumi
import pulumi_oci as oci
test_sql_firewall_allowed_sql = oci.DataSafe.get_sql_firewall_allowed_sql(sql_firewall_allowed_sql_id=test_sql_firewall_allowed_sql_oci_data_safe_sql_firewall_allowed_sql["id"])
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.GetSqlFirewallAllowedSql(ctx, &datasafe.GetSqlFirewallAllowedSqlArgs{
			SqlFirewallAllowedSqlId: testSqlFirewallAllowedSqlOciDataSafeSqlFirewallAllowedSql.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 testSqlFirewallAllowedSql = Oci.DataSafe.GetSqlFirewallAllowedSql.Invoke(new()
    {
        SqlFirewallAllowedSqlId = testSqlFirewallAllowedSqlOciDataSafeSqlFirewallAllowedSql.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.GetSqlFirewallAllowedSqlArgs;
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 testSqlFirewallAllowedSql = DataSafeFunctions.getSqlFirewallAllowedSql(GetSqlFirewallAllowedSqlArgs.builder()
            .sqlFirewallAllowedSqlId(testSqlFirewallAllowedSqlOciDataSafeSqlFirewallAllowedSql.id())
            .build());
    }
}
variables:
  testSqlFirewallAllowedSql:
    fn::invoke:
      function: oci:DataSafe:getSqlFirewallAllowedSql
      arguments:
        sqlFirewallAllowedSqlId: ${testSqlFirewallAllowedSqlOciDataSafeSqlFirewallAllowedSql.id}
Using getSqlFirewallAllowedSql
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 getSqlFirewallAllowedSql(args: GetSqlFirewallAllowedSqlArgs, opts?: InvokeOptions): Promise<GetSqlFirewallAllowedSqlResult>
function getSqlFirewallAllowedSqlOutput(args: GetSqlFirewallAllowedSqlOutputArgs, opts?: InvokeOptions): Output<GetSqlFirewallAllowedSqlResult>def get_sql_firewall_allowed_sql(sql_firewall_allowed_sql_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetSqlFirewallAllowedSqlResult
def get_sql_firewall_allowed_sql_output(sql_firewall_allowed_sql_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetSqlFirewallAllowedSqlResult]func GetSqlFirewallAllowedSql(ctx *Context, args *GetSqlFirewallAllowedSqlArgs, opts ...InvokeOption) (*GetSqlFirewallAllowedSqlResult, error)
func GetSqlFirewallAllowedSqlOutput(ctx *Context, args *GetSqlFirewallAllowedSqlOutputArgs, opts ...InvokeOption) GetSqlFirewallAllowedSqlResultOutput> Note: This function is named GetSqlFirewallAllowedSql in the Go SDK.
public static class GetSqlFirewallAllowedSql 
{
    public static Task<GetSqlFirewallAllowedSqlResult> InvokeAsync(GetSqlFirewallAllowedSqlArgs args, InvokeOptions? opts = null)
    public static Output<GetSqlFirewallAllowedSqlResult> Invoke(GetSqlFirewallAllowedSqlInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSqlFirewallAllowedSqlResult> getSqlFirewallAllowedSql(GetSqlFirewallAllowedSqlArgs args, InvokeOptions options)
public static Output<GetSqlFirewallAllowedSqlResult> getSqlFirewallAllowedSql(GetSqlFirewallAllowedSqlArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DataSafe/getSqlFirewallAllowedSql:getSqlFirewallAllowedSql
  arguments:
    # arguments dictionaryThe following arguments are supported:
- SqlFirewall stringAllowed Sql Id 
- The OCID of the sqlFirewallAllowedSql resource.
- SqlFirewall stringAllowed Sql Id 
- The OCID of the sqlFirewallAllowedSql resource.
- sqlFirewall StringAllowed Sql Id 
- The OCID of the sqlFirewallAllowedSql resource.
- sqlFirewall stringAllowed Sql Id 
- The OCID of the sqlFirewallAllowedSql resource.
- sql_firewall_ strallowed_ sql_ id 
- The OCID of the sqlFirewallAllowedSql resource.
- sqlFirewall StringAllowed Sql Id 
- The OCID of the sqlFirewallAllowedSql resource.
getSqlFirewallAllowedSql Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment containing the SQL Firewall allowed SQL.
- CurrentUser string
- The name of the user that SQL was executed as.
- DbUser 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 Firewall allowed SQL.
- DisplayName string
- The display name of the SQL Firewall allowed SQL.
- 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"}
- Id string
- The provider-assigned unique ID for this managed resource.
- SqlAccessed List<string>Objects 
- The objects accessed by the SQL.
- SqlFirewall stringAllowed Sql Id 
- SqlFirewall stringPolicy Id 
- The OCID of the SQL Firewall policy corresponding to the SQL Firewall allowed SQL.
- SqlLevel string
- Specifies the level of SQL included for this SQL Firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- SqlText string
- The SQL text of the SQL Firewall allowed SQL.
- State string
- The current state of the SQL Firewall allowed SQL.
- 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"}
- TimeCollected string
- The time the the SQL Firewall allowed SQL was collected from the target database, in the format defined by RFC3339.
- TimeUpdated string
- The last date and time the SQL Firewall allowed SQL was updated, in the format defined by RFC3339.
- Version double
- Version of the associated SQL Firewall policy. This identifies whether the allowed SQLs were added in the same batch or not.
- CompartmentId string
- The OCID of the compartment containing the SQL Firewall allowed SQL.
- CurrentUser string
- The name of the user that SQL was executed as.
- DbUser 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 Firewall allowed SQL.
- DisplayName string
- The display name of the SQL Firewall allowed SQL.
- 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"}
- Id string
- The provider-assigned unique ID for this managed resource.
- SqlAccessed []stringObjects 
- The objects accessed by the SQL.
- SqlFirewall stringAllowed Sql Id 
- SqlFirewall stringPolicy Id 
- The OCID of the SQL Firewall policy corresponding to the SQL Firewall allowed SQL.
- SqlLevel string
- Specifies the level of SQL included for this SQL Firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- SqlText string
- The SQL text of the SQL Firewall allowed SQL.
- State string
- The current state of the SQL Firewall allowed SQL.
- 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"}
- TimeCollected string
- The time the the SQL Firewall allowed SQL was collected from the target database, in the format defined by RFC3339.
- TimeUpdated string
- The last date and time the SQL Firewall allowed SQL was updated, in the format defined by RFC3339.
- Version float64
- Version of the associated SQL Firewall policy. This identifies whether the allowed SQLs were added in the same batch or not.
- compartmentId String
- The OCID of the compartment containing the SQL Firewall allowed SQL.
- currentUser String
- The name of the user that SQL was executed as.
- dbUser 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 Firewall allowed SQL.
- displayName String
- The display name of the SQL Firewall allowed SQL.
- 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"}
- id String
- The provider-assigned unique ID for this managed resource.
- sqlAccessed List<String>Objects 
- The objects accessed by the SQL.
- sqlFirewall StringAllowed Sql Id 
- sqlFirewall StringPolicy Id 
- The OCID of the SQL Firewall policy corresponding to the SQL Firewall allowed SQL.
- sqlLevel String
- Specifies the level of SQL included for this SQL Firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- sqlText String
- The SQL text of the SQL Firewall allowed SQL.
- state String
- The current state of the SQL Firewall allowed SQL.
- 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"}
- timeCollected String
- The time the the SQL Firewall allowed SQL was collected from the target database, in the format defined by RFC3339.
- timeUpdated String
- The last date and time the SQL Firewall allowed SQL was updated, in the format defined by RFC3339.
- version Double
- Version of the associated SQL Firewall policy. This identifies whether the allowed SQLs were added in the same batch or not.
- compartmentId string
- The OCID of the compartment containing the SQL Firewall allowed SQL.
- currentUser string
- The name of the user that SQL was executed as.
- dbUser 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 Firewall allowed SQL.
- displayName string
- The display name of the SQL Firewall allowed SQL.
- {[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"}
- id string
- The provider-assigned unique ID for this managed resource.
- sqlAccessed string[]Objects 
- The objects accessed by the SQL.
- sqlFirewall stringAllowed Sql Id 
- sqlFirewall stringPolicy Id 
- The OCID of the SQL Firewall policy corresponding to the SQL Firewall allowed SQL.
- sqlLevel string
- Specifies the level of SQL included for this SQL Firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- sqlText string
- The SQL text of the SQL Firewall allowed SQL.
- state string
- The current state of the SQL Firewall allowed SQL.
- {[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"}
- timeCollected string
- The time the the SQL Firewall allowed SQL was collected from the target database, in the format defined by RFC3339.
- timeUpdated string
- The last date and time the SQL Firewall allowed SQL was updated, in the format defined by RFC3339.
- version number
- Version of the associated SQL Firewall policy. This identifies whether the allowed SQLs were added in the same batch or not.
- compartment_id str
- The OCID of the compartment containing the SQL Firewall allowed SQL.
- current_user str
- The name of the user that SQL was executed as.
- 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 Firewall allowed SQL.
- display_name str
- The display name of the SQL Firewall allowed SQL.
- 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"}
- id str
- The provider-assigned unique ID for this managed resource.
- sql_accessed_ Sequence[str]objects 
- The objects accessed by the SQL.
- sql_firewall_ strallowed_ sql_ id 
- sql_firewall_ strpolicy_ id 
- The OCID of the SQL Firewall policy corresponding to the SQL Firewall allowed SQL.
- sql_level str
- Specifies the level of SQL included for this SQL Firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- sql_text str
- The SQL text of the SQL Firewall allowed SQL.
- state str
- The current state of the SQL Firewall allowed SQL.
- 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"}
- time_collected str
- The time the the SQL Firewall allowed SQL was collected from the target database, in the format defined by RFC3339.
- time_updated str
- The last date and time the SQL Firewall allowed SQL was updated, in the format defined by RFC3339.
- version float
- Version of the associated SQL Firewall policy. This identifies whether the allowed SQLs were added in the same batch or not.
- compartmentId String
- The OCID of the compartment containing the SQL Firewall allowed SQL.
- currentUser String
- The name of the user that SQL was executed as.
- dbUser 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 Firewall allowed SQL.
- displayName String
- The display name of the SQL Firewall allowed SQL.
- 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"}
- id String
- The provider-assigned unique ID for this managed resource.
- sqlAccessed List<String>Objects 
- The objects accessed by the SQL.
- sqlFirewall StringAllowed Sql Id 
- sqlFirewall StringPolicy Id 
- The OCID of the SQL Firewall policy corresponding to the SQL Firewall allowed SQL.
- sqlLevel String
- Specifies the level of SQL included for this SQL Firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- sqlText String
- The SQL text of the SQL Firewall allowed SQL.
- state String
- The current state of the SQL Firewall allowed SQL.
- 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"}
- timeCollected String
- The time the the SQL Firewall allowed SQL was collected from the target database, in the format defined by RFC3339.
- timeUpdated String
- The last date and time the SQL Firewall allowed SQL was updated, in the format defined by RFC3339.
- version Number
- Version of the associated SQL Firewall policy. This identifies whether the allowed SQLs were added in the same batch or not.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.