oci.DataSafe.getSqlFirewallPolicies
Explore with Pulumi AI
This data source provides the list of Sql Firewall Policies in Oracle Cloud Infrastructure Data Safe service.
Retrieves a list of all SQL Firewall policies.
The ListSqlFirewallPolicies operation returns only the SQL Firewall policies 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 ListSqlFirewallPolicies 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 testSqlFirewallPolicies = oci.DataSafe.getSqlFirewallPolicies({
compartmentId: compartmentId,
accessLevel: sqlFirewallPolicyAccessLevel,
compartmentIdInSubtree: sqlFirewallPolicyCompartmentIdInSubtree,
dbUserName: testUser.name,
displayName: sqlFirewallPolicyDisplayName,
securityPolicyId: testSecurityPolicy.id,
sqlFirewallPolicyId: testSqlFirewallPolicy.id,
state: sqlFirewallPolicyState,
timeCreatedGreaterThanOrEqualTo: sqlFirewallPolicyTimeCreatedGreaterThanOrEqualTo,
timeCreatedLessThan: sqlFirewallPolicyTimeCreatedLessThan,
violationAction: sqlFirewallPolicyViolationAction,
});
import pulumi
import pulumi_oci as oci
test_sql_firewall_policies = oci.DataSafe.get_sql_firewall_policies(compartment_id=compartment_id,
access_level=sql_firewall_policy_access_level,
compartment_id_in_subtree=sql_firewall_policy_compartment_id_in_subtree,
db_user_name=test_user["name"],
display_name=sql_firewall_policy_display_name,
security_policy_id=test_security_policy["id"],
sql_firewall_policy_id=test_sql_firewall_policy["id"],
state=sql_firewall_policy_state,
time_created_greater_than_or_equal_to=sql_firewall_policy_time_created_greater_than_or_equal_to,
time_created_less_than=sql_firewall_policy_time_created_less_than,
violation_action=sql_firewall_policy_violation_action)
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.GetSqlFirewallPolicies(ctx, &datasafe.GetSqlFirewallPoliciesArgs{
CompartmentId: compartmentId,
AccessLevel: pulumi.StringRef(sqlFirewallPolicyAccessLevel),
CompartmentIdInSubtree: pulumi.BoolRef(sqlFirewallPolicyCompartmentIdInSubtree),
DbUserName: pulumi.StringRef(testUser.Name),
DisplayName: pulumi.StringRef(sqlFirewallPolicyDisplayName),
SecurityPolicyId: pulumi.StringRef(testSecurityPolicy.Id),
SqlFirewallPolicyId: pulumi.StringRef(testSqlFirewallPolicy.Id),
State: pulumi.StringRef(sqlFirewallPolicyState),
TimeCreatedGreaterThanOrEqualTo: pulumi.StringRef(sqlFirewallPolicyTimeCreatedGreaterThanOrEqualTo),
TimeCreatedLessThan: pulumi.StringRef(sqlFirewallPolicyTimeCreatedLessThan),
ViolationAction: pulumi.StringRef(sqlFirewallPolicyViolationAction),
}, 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 testSqlFirewallPolicies = Oci.DataSafe.GetSqlFirewallPolicies.Invoke(new()
{
CompartmentId = compartmentId,
AccessLevel = sqlFirewallPolicyAccessLevel,
CompartmentIdInSubtree = sqlFirewallPolicyCompartmentIdInSubtree,
DbUserName = testUser.Name,
DisplayName = sqlFirewallPolicyDisplayName,
SecurityPolicyId = testSecurityPolicy.Id,
SqlFirewallPolicyId = testSqlFirewallPolicy.Id,
State = sqlFirewallPolicyState,
TimeCreatedGreaterThanOrEqualTo = sqlFirewallPolicyTimeCreatedGreaterThanOrEqualTo,
TimeCreatedLessThan = sqlFirewallPolicyTimeCreatedLessThan,
ViolationAction = sqlFirewallPolicyViolationAction,
});
});
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.GetSqlFirewallPoliciesArgs;
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 testSqlFirewallPolicies = DataSafeFunctions.getSqlFirewallPolicies(GetSqlFirewallPoliciesArgs.builder()
.compartmentId(compartmentId)
.accessLevel(sqlFirewallPolicyAccessLevel)
.compartmentIdInSubtree(sqlFirewallPolicyCompartmentIdInSubtree)
.dbUserName(testUser.name())
.displayName(sqlFirewallPolicyDisplayName)
.securityPolicyId(testSecurityPolicy.id())
.sqlFirewallPolicyId(testSqlFirewallPolicy.id())
.state(sqlFirewallPolicyState)
.timeCreatedGreaterThanOrEqualTo(sqlFirewallPolicyTimeCreatedGreaterThanOrEqualTo)
.timeCreatedLessThan(sqlFirewallPolicyTimeCreatedLessThan)
.violationAction(sqlFirewallPolicyViolationAction)
.build());
}
}
variables:
testSqlFirewallPolicies:
fn::invoke:
Function: oci:DataSafe:getSqlFirewallPolicies
Arguments:
compartmentId: ${compartmentId}
accessLevel: ${sqlFirewallPolicyAccessLevel}
compartmentIdInSubtree: ${sqlFirewallPolicyCompartmentIdInSubtree}
dbUserName: ${testUser.name}
displayName: ${sqlFirewallPolicyDisplayName}
securityPolicyId: ${testSecurityPolicy.id}
sqlFirewallPolicyId: ${testSqlFirewallPolicy.id}
state: ${sqlFirewallPolicyState}
timeCreatedGreaterThanOrEqualTo: ${sqlFirewallPolicyTimeCreatedGreaterThanOrEqualTo}
timeCreatedLessThan: ${sqlFirewallPolicyTimeCreatedLessThan}
violationAction: ${sqlFirewallPolicyViolationAction}
Using getSqlFirewallPolicies
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 getSqlFirewallPolicies(args: GetSqlFirewallPoliciesArgs, opts?: InvokeOptions): Promise<GetSqlFirewallPoliciesResult>
function getSqlFirewallPoliciesOutput(args: GetSqlFirewallPoliciesOutputArgs, opts?: InvokeOptions): Output<GetSqlFirewallPoliciesResult>
def get_sql_firewall_policies(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.GetSqlFirewallPoliciesFilter]] = None,
security_policy_id: Optional[str] = None,
sql_firewall_policy_id: Optional[str] = None,
state: Optional[str] = None,
time_created_greater_than_or_equal_to: Optional[str] = None,
time_created_less_than: Optional[str] = None,
violation_action: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSqlFirewallPoliciesResult
def get_sql_firewall_policies_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.GetSqlFirewallPoliciesFilterArgs]]]] = None,
security_policy_id: Optional[pulumi.Input[str]] = None,
sql_firewall_policy_id: Optional[pulumi.Input[str]] = None,
state: 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,
violation_action: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSqlFirewallPoliciesResult]
func GetSqlFirewallPolicies(ctx *Context, args *GetSqlFirewallPoliciesArgs, opts ...InvokeOption) (*GetSqlFirewallPoliciesResult, error)
func GetSqlFirewallPoliciesOutput(ctx *Context, args *GetSqlFirewallPoliciesOutputArgs, opts ...InvokeOption) GetSqlFirewallPoliciesResultOutput
> Note: This function is named GetSqlFirewallPolicies
in the Go SDK.
public static class GetSqlFirewallPolicies
{
public static Task<GetSqlFirewallPoliciesResult> InvokeAsync(GetSqlFirewallPoliciesArgs args, InvokeOptions? opts = null)
public static Output<GetSqlFirewallPoliciesResult> Invoke(GetSqlFirewallPoliciesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSqlFirewallPoliciesResult> getSqlFirewallPolicies(GetSqlFirewallPoliciesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DataSafe/getSqlFirewallPolicies:getSqlFirewallPolicies
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 Firewall Policies Filter> - Security
Policy stringId - An optional filter to return only resources that match the specified OCID of the security policy resource.
- Sql
Firewall stringPolicy Id - An optional filter to return only resources that match the specified OCID of the SQL Firewall policy resource.
- State string
- The current state of the SQL Firewall policy.
- 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
- Violation
Action string - An optional filter to return only resources that match the specified violation action.
- 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 Firewall Policies Filter - Security
Policy stringId - An optional filter to return only resources that match the specified OCID of the security policy resource.
- Sql
Firewall stringPolicy Id - An optional filter to return only resources that match the specified OCID of the SQL Firewall policy resource.
- State string
- The current state of the SQL Firewall policy.
- 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
- Violation
Action string - An optional filter to return only resources that match the specified violation action.
- 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 Firewall Policies Filter> - security
Policy StringId - An optional filter to return only resources that match the specified OCID of the security policy resource.
- sql
Firewall StringPolicy Id - An optional filter to return only resources that match the specified OCID of the SQL Firewall policy resource.
- state String
- The current state of the SQL Firewall policy.
- 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
- violation
Action String - An optional filter to return only resources that match the specified violation action.
- 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 Firewall Policies Filter[] - security
Policy stringId - An optional filter to return only resources that match the specified OCID of the security policy resource.
- sql
Firewall stringPolicy Id - An optional filter to return only resources that match the specified OCID of the SQL Firewall policy resource.
- state string
- The current state of the SQL Firewall policy.
- 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
- violation
Action string - An optional filter to return only resources that match the specified violation action.
- 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 Firewall Policies Filter] - security_
policy_ strid - An optional filter to return only resources that match the specified OCID of the security policy resource.
- sql_
firewall_ strpolicy_ id - An optional filter to return only resources that match the specified OCID of the SQL Firewall policy resource.
- state str
- The current state of the SQL Firewall policy.
- 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
- violation_
action str - An optional filter to return only resources that match the specified violation action.
- 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>
- security
Policy StringId - An optional filter to return only resources that match the specified OCID of the security policy resource.
- sql
Firewall StringPolicy Id - An optional filter to return only resources that match the specified OCID of the SQL Firewall policy resource.
- state String
- The current state of the SQL Firewall policy.
- 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
- violation
Action String - An optional filter to return only resources that match the specified violation action.
getSqlFirewallPolicies Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment containing the SQL Firewall policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Sql
Firewall List<GetPolicy Collections Sql Firewall Policies Sql Firewall Policy Collection> - The list of sql_firewall_policy_collection.
- Access
Level string - Compartment
Id boolIn Subtree - Db
User stringName - The database user name.
- Display
Name string - The display name of the SQL Firewall policy.
- Filters
List<Get
Sql Firewall Policies Filter> - Security
Policy stringId - The OCID of the security policy corresponding to the SQL Firewall policy.
- Sql
Firewall stringPolicy Id - State string
- The current state of the SQL Firewall policy.
- Time
Created stringGreater Than Or Equal To - Time
Created stringLess Than - Violation
Action string - Specifies the mode in which the SQL Firewall policy is enabled.
- Compartment
Id string - The OCID of the compartment containing the SQL Firewall policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Sql
Firewall []GetPolicy Collections Sql Firewall Policies Sql Firewall Policy Collection - The list of sql_firewall_policy_collection.
- Access
Level string - Compartment
Id boolIn Subtree - Db
User stringName - The database user name.
- Display
Name string - The display name of the SQL Firewall policy.
- Filters
[]Get
Sql Firewall Policies Filter - Security
Policy stringId - The OCID of the security policy corresponding to the SQL Firewall policy.
- Sql
Firewall stringPolicy Id - State string
- The current state of the SQL Firewall policy.
- Time
Created stringGreater Than Or Equal To - Time
Created stringLess Than - Violation
Action string - Specifies the mode in which the SQL Firewall policy is enabled.
- compartment
Id String - The OCID of the compartment containing the SQL Firewall policy.
- id String
- The provider-assigned unique ID for this managed resource.
- sql
Firewall List<GetPolicy Collections Sql Firewall Policies Sql Firewall Policy Collection> - The list of sql_firewall_policy_collection.
- access
Level String - compartment
Id BooleanIn Subtree - db
User StringName - The database user name.
- display
Name String - The display name of the SQL Firewall policy.
- filters
List<Get
Sql Firewall Policies Filter> - security
Policy StringId - The OCID of the security policy corresponding to the SQL Firewall policy.
- sql
Firewall StringPolicy Id - state String
- The current state of the SQL Firewall policy.
- time
Created StringGreater Than Or Equal To - time
Created StringLess Than - violation
Action String - Specifies the mode in which the SQL Firewall policy is enabled.
- compartment
Id string - The OCID of the compartment containing the SQL Firewall policy.
- id string
- The provider-assigned unique ID for this managed resource.
- sql
Firewall GetPolicy Collections Sql Firewall Policies Sql Firewall Policy Collection[] - The list of sql_firewall_policy_collection.
- access
Level string - compartment
Id booleanIn Subtree - db
User stringName - The database user name.
- display
Name string - The display name of the SQL Firewall policy.
- filters
Get
Sql Firewall Policies Filter[] - security
Policy stringId - The OCID of the security policy corresponding to the SQL Firewall policy.
- sql
Firewall stringPolicy Id - state string
- The current state of the SQL Firewall policy.
- time
Created stringGreater Than Or Equal To - time
Created stringLess Than - violation
Action string - Specifies the mode in which the SQL Firewall policy is enabled.
- compartment_
id str - The OCID of the compartment containing the SQL Firewall policy.
- id str
- The provider-assigned unique ID for this managed resource.
- sql_
firewall_ Sequence[datasafe.policy_ collections Get Sql Firewall Policies Sql Firewall Policy Collection] - The list of sql_firewall_policy_collection.
- access_
level str - compartment_
id_ boolin_ subtree - db_
user_ strname - The database user name.
- display_
name str - The display name of the SQL Firewall policy.
- filters
Sequence[datasafe.
Get Sql Firewall Policies Filter] - security_
policy_ strid - The OCID of the security policy corresponding to the SQL Firewall policy.
- sql_
firewall_ strpolicy_ id - state str
- The current state of the SQL Firewall policy.
- time_
created_ strgreater_ than_ or_ equal_ to - time_
created_ strless_ than - violation_
action str - Specifies the mode in which the SQL Firewall policy is enabled.
- compartment
Id String - The OCID of the compartment containing the SQL Firewall policy.
- id String
- The provider-assigned unique ID for this managed resource.
- sql
Firewall List<Property Map>Policy Collections - The list of sql_firewall_policy_collection.
- access
Level String - compartment
Id BooleanIn Subtree - db
User StringName - The database user name.
- display
Name String - The display name of the SQL Firewall policy.
- filters List<Property Map>
- security
Policy StringId - The OCID of the security policy corresponding to the SQL Firewall policy.
- sql
Firewall StringPolicy Id - state String
- The current state of the SQL Firewall policy.
- time
Created StringGreater Than Or Equal To - time
Created StringLess Than - violation
Action String - Specifies the mode in which the SQL Firewall policy is enabled.
Supporting Types
GetSqlFirewallPoliciesFilter
GetSqlFirewallPoliciesSqlFirewallPolicyCollection
GetSqlFirewallPoliciesSqlFirewallPolicyCollectionItem
- 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 - 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 Firewall policy.
- Display
Name string - A filter to return only resources that match the specified display name.
- 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 - An optional filter to return only resources that match the specified OCID of the security policy resource.
- Sql
Firewall stringPolicy Id - An optional filter to return only resources that match the specified OCID of the SQL Firewall policy resource.
- 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 - An optional filter to return only resources that match the specified violation action.
- 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 - 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 Firewall policy.
- Display
Name string - A filter to return only resources that match the specified display name.
- 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 - An optional filter to return only resources that match the specified OCID of the security policy resource.
- Sql
Firewall stringPolicy Id - An optional filter to return only resources that match the specified OCID of the SQL Firewall policy resource.
- 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 - An optional filter to return only resources that match the specified violation action.
- 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 - 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 Firewall policy.
- display
Name String - A filter to return only resources that match the specified display name.
- 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 - An optional filter to return only resources that match the specified OCID of the security policy resource.
- sql
Firewall StringPolicy Id - An optional filter to return only resources that match the specified OCID of the SQL Firewall policy resource.
- 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 - An optional filter to return only resources that match the specified violation action.
- 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 - 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 Firewall policy.
- display
Name string - A filter to return only resources that match the specified display name.
- 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 - An optional filter to return only resources that match the specified OCID of the security policy resource.
- sql
Firewall stringPolicy Id - An optional filter to return only resources that match the specified OCID of the SQL Firewall policy resource.
- 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 - An optional filter to return only resources that match the specified violation action.
- 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 - 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 Firewall policy.
- display_
name str - A filter to return only resources that match the specified display name.
- 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 - An optional filter to return only resources that match the specified OCID of the security policy resource.
- sql_
firewall_ strpolicy_ id - An optional filter to return only resources that match the specified OCID of the SQL Firewall policy resource.
- 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 - An optional filter to return only resources that match the specified violation action.
- 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 - 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 Firewall policy.
- display
Name String - A filter to return only resources that match the specified display name.
- 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 - An optional filter to return only resources that match the specified OCID of the security policy resource.
- sql
Firewall StringPolicy Id - An optional filter to return only resources that match the specified OCID of the SQL Firewall policy resource.
- 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 - An optional filter to return only resources that match the specified violation action.
- 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.