Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.DataSafe.getSqlFirewallPolicy
Explore with Pulumi AI
This data source provides details about a specific Sql Firewall Policy resource in Oracle Cloud Infrastructure Data Safe service.
Gets a SQL Firewall policy by identifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSqlFirewallPolicy = oci.DataSafe.getSqlFirewallPolicy({
sqlFirewallPolicyId: testSqlFirewallPolicyOciDataSafeSqlFirewallPolicy.id,
});
import pulumi
import pulumi_oci as oci
test_sql_firewall_policy = oci.DataSafe.get_sql_firewall_policy(sql_firewall_policy_id=test_sql_firewall_policy_oci_data_safe_sql_firewall_policy["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.GetSqlFirewallPolicy(ctx, &datasafe.GetSqlFirewallPolicyArgs{
SqlFirewallPolicyId: testSqlFirewallPolicyOciDataSafeSqlFirewallPolicy.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 testSqlFirewallPolicy = Oci.DataSafe.GetSqlFirewallPolicy.Invoke(new()
{
SqlFirewallPolicyId = testSqlFirewallPolicyOciDataSafeSqlFirewallPolicy.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.GetSqlFirewallPolicyArgs;
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 testSqlFirewallPolicy = DataSafeFunctions.getSqlFirewallPolicy(GetSqlFirewallPolicyArgs.builder()
.sqlFirewallPolicyId(testSqlFirewallPolicyOciDataSafeSqlFirewallPolicy.id())
.build());
}
}
variables:
testSqlFirewallPolicy:
fn::invoke:
Function: oci:DataSafe:getSqlFirewallPolicy
Arguments:
sqlFirewallPolicyId: ${testSqlFirewallPolicyOciDataSafeSqlFirewallPolicy.id}
Using getSqlFirewallPolicy
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 getSqlFirewallPolicy(args: GetSqlFirewallPolicyArgs, opts?: InvokeOptions): Promise<GetSqlFirewallPolicyResult>
function getSqlFirewallPolicyOutput(args: GetSqlFirewallPolicyOutputArgs, opts?: InvokeOptions): Output<GetSqlFirewallPolicyResult>
def get_sql_firewall_policy(sql_firewall_policy_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSqlFirewallPolicyResult
def get_sql_firewall_policy_output(sql_firewall_policy_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSqlFirewallPolicyResult]
func GetSqlFirewallPolicy(ctx *Context, args *GetSqlFirewallPolicyArgs, opts ...InvokeOption) (*GetSqlFirewallPolicyResult, error)
func GetSqlFirewallPolicyOutput(ctx *Context, args *GetSqlFirewallPolicyOutputArgs, opts ...InvokeOption) GetSqlFirewallPolicyResultOutput
> Note: This function is named GetSqlFirewallPolicy
in the Go SDK.
public static class GetSqlFirewallPolicy
{
public static Task<GetSqlFirewallPolicyResult> InvokeAsync(GetSqlFirewallPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetSqlFirewallPolicyResult> Invoke(GetSqlFirewallPolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSqlFirewallPolicyResult> getSqlFirewallPolicy(GetSqlFirewallPolicyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DataSafe/getSqlFirewallPolicy:getSqlFirewallPolicy
arguments:
# arguments dictionary
The following arguments are supported:
- Sql
Firewall stringPolicy Id - The OCID of the SQL Firewall policy resource.
- Sql
Firewall stringPolicy Id - The OCID of the SQL Firewall policy resource.
- sql
Firewall StringPolicy Id - The OCID of the SQL Firewall policy resource.
- sql
Firewall stringPolicy Id - The OCID of the SQL Firewall policy resource.
- sql_
firewall_ strpolicy_ id - The OCID of the SQL Firewall policy resource.
- sql
Firewall StringPolicy Id - The OCID of the SQL Firewall policy resource.
getSqlFirewallPolicy Result
The following output properties are available:
- Allowed
Client List<string>Ips - The list of allowed ip addresses for the SQL Firewall policy.
- Allowed
Client List<string>Os Usernames - The list of allowed operating system user names for the SQL Firewall policy.
- Allowed
Client List<string>Programs - The list of allowed client programs for the SQL Firewall policy.
- Compartment
Id string - The OCID of the compartment containing the SQL Firewall policy.
- 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 Firewall policy.
- Display
Name string - The display name of the SQL Firewall policy.
- Enforcement
Scope string - Specifies the SQL Firewall policy enforcement option.
- 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 OCID of the SQL Firewall policy.
- Lifecycle
Details string - Details about the current state of the SQL Firewall policy in Data Safe.
- Security
Policy stringId - The OCID of the security policy corresponding to the SQL Firewall policy.
- Sql
Firewall stringPolicy Id - Sql
Level 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.
- State string
- The current state of the SQL Firewall policy.
- Status string
- Specifies whether the SQL Firewall policy is enabled or disabled.
- 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"}
- Time
Created string - The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- Time
Updated string - The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- Violation
Action string - Specifies the mode in which the SQL Firewall policy is enabled.
- Violation
Audit string - Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.
- Allowed
Client []stringIps - The list of allowed ip addresses for the SQL Firewall policy.
- Allowed
Client []stringOs Usernames - The list of allowed operating system user names for the SQL Firewall policy.
- Allowed
Client []stringPrograms - The list of allowed client programs for the SQL Firewall policy.
- Compartment
Id string - The OCID of the compartment containing the SQL Firewall policy.
- 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 Firewall policy.
- Display
Name string - The display name of the SQL Firewall policy.
- Enforcement
Scope string - Specifies the SQL Firewall policy enforcement option.
- 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 OCID of the SQL Firewall policy.
- Lifecycle
Details string - Details about the current state of the SQL Firewall policy in Data Safe.
- Security
Policy stringId - The OCID of the security policy corresponding to the SQL Firewall policy.
- Sql
Firewall stringPolicy Id - Sql
Level 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.
- State string
- The current state of the SQL Firewall policy.
- Status string
- Specifies whether the SQL Firewall policy is enabled or disabled.
- 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"}
- Time
Created string - The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- Time
Updated string - The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- Violation
Action string - Specifies the mode in which the SQL Firewall policy is enabled.
- Violation
Audit string - Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.
- allowed
Client List<String>Ips - The list of allowed ip addresses for the SQL Firewall policy.
- allowed
Client List<String>Os Usernames - The list of allowed operating system user names for the SQL Firewall policy.
- allowed
Client List<String>Programs - The list of allowed client programs for the SQL Firewall policy.
- compartment
Id String - The OCID of the compartment containing the SQL Firewall policy.
- 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 Firewall policy.
- display
Name String - The display name of the SQL Firewall policy.
- enforcement
Scope String - Specifies the SQL Firewall policy enforcement option.
- 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 OCID of the SQL Firewall policy.
- lifecycle
Details String - Details about the current state of the SQL Firewall policy in Data Safe.
- security
Policy StringId - The OCID of the security policy corresponding to the SQL Firewall policy.
- sql
Firewall StringPolicy Id - sql
Level 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.
- state String
- The current state of the SQL Firewall policy.
- status String
- Specifies whether the SQL Firewall policy is enabled or disabled.
- 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"}
- time
Created String - The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- time
Updated String - The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- violation
Action String - Specifies the mode in which the SQL Firewall policy is enabled.
- violation
Audit String - Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.
- allowed
Client string[]Ips - The list of allowed ip addresses for the SQL Firewall policy.
- allowed
Client string[]Os Usernames - The list of allowed operating system user names for the SQL Firewall policy.
- allowed
Client string[]Programs - The list of allowed client programs for the SQL Firewall policy.
- compartment
Id string - The OCID of the compartment containing the SQL Firewall policy.
- 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 Firewall policy.
- display
Name string - The display name of the SQL Firewall policy.
- enforcement
Scope string - Specifies the SQL Firewall policy enforcement option.
- {[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 OCID of the SQL Firewall policy.
- lifecycle
Details string - Details about the current state of the SQL Firewall policy in Data Safe.
- security
Policy stringId - The OCID of the security policy corresponding to the SQL Firewall policy.
- sql
Firewall stringPolicy Id - sql
Level 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.
- state string
- The current state of the SQL Firewall policy.
- status string
- Specifies whether the SQL Firewall policy is enabled or disabled.
- {[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"}
- time
Created string - The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- time
Updated string - The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- violation
Action string - Specifies the mode in which the SQL Firewall policy is enabled.
- violation
Audit string - Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.
- allowed_
client_ Sequence[str]ips - The list of allowed ip addresses for the SQL Firewall policy.
- allowed_
client_ Sequence[str]os_ usernames - The list of allowed operating system user names for the SQL Firewall policy.
- allowed_
client_ Sequence[str]programs - The list of allowed client programs for the SQL Firewall policy.
- compartment_
id str - The OCID of the compartment containing the SQL Firewall policy.
- 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 policy.
- display_
name str - The display name of the SQL Firewall policy.
- enforcement_
scope str - Specifies the SQL Firewall policy enforcement option.
- 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 OCID of the SQL Firewall policy.
- lifecycle_
details str - Details about the current state of the SQL Firewall policy in Data Safe.
- security_
policy_ strid - The OCID of the security policy corresponding to the SQL Firewall policy.
- sql_
firewall_ strpolicy_ id - 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.
- state str
- The current state of the SQL Firewall policy.
- status str
- Specifies whether the SQL Firewall policy is enabled or disabled.
- 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_
created str - The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- time_
updated str - The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- violation_
action str - Specifies the mode in which the SQL Firewall policy is enabled.
- violation_
audit str - Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.
- allowed
Client List<String>Ips - The list of allowed ip addresses for the SQL Firewall policy.
- allowed
Client List<String>Os Usernames - The list of allowed operating system user names for the SQL Firewall policy.
- allowed
Client List<String>Programs - The list of allowed client programs for the SQL Firewall policy.
- compartment
Id String - The OCID of the compartment containing the SQL Firewall policy.
- 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 Firewall policy.
- display
Name String - The display name of the SQL Firewall policy.
- enforcement
Scope String - Specifies the SQL Firewall policy enforcement option.
- 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 OCID of the SQL Firewall policy.
- lifecycle
Details String - Details about the current state of the SQL Firewall policy in Data Safe.
- security
Policy StringId - The OCID of the security policy corresponding to the SQL Firewall policy.
- sql
Firewall StringPolicy Id - sql
Level 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.
- state String
- The current state of the SQL Firewall policy.
- status String
- Specifies whether the SQL Firewall policy is enabled or disabled.
- 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"}
- time
Created String - The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- time
Updated String - The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- violation
Action String - Specifies the mode in which the SQL Firewall policy is enabled.
- violation
Audit String - Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.