published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
This data source provides the list of Security Policy Deployment Security Policy Entry States in Oracle Cloud Infrastructure Data Safe service.
Retrieves a list of all security policy entry states in Data Safe.
The ListSecurityPolicyEntryStates operation returns only the security policy entry states for the specified security policy entry.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSecurityPolicyDeploymentSecurityPolicyEntryStates = oci.DataSafe.getSecurityPolicyDeploymentSecurityPolicyEntryStates({
securityPolicyDeploymentId: testSecurityPolicyDeployment.id,
deploymentStatus: securityPolicyDeploymentSecurityPolicyEntryStateDeploymentStatus,
securityPolicyEntryId: testSecurityPolicyEntry.id,
securityPolicyEntryType: securityPolicyDeploymentSecurityPolicyEntryStateSecurityPolicyEntryType,
targetId: testTarget.id,
});
import pulumi
import pulumi_oci as oci
test_security_policy_deployment_security_policy_entry_states = oci.DataSafe.get_security_policy_deployment_security_policy_entry_states(security_policy_deployment_id=test_security_policy_deployment["id"],
deployment_status=security_policy_deployment_security_policy_entry_state_deployment_status,
security_policy_entry_id=test_security_policy_entry["id"],
security_policy_entry_type=security_policy_deployment_security_policy_entry_state_security_policy_entry_type,
target_id=test_target["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/datasafe"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datasafe.GetSecurityPolicyDeploymentSecurityPolicyEntryStates(ctx, &datasafe.GetSecurityPolicyDeploymentSecurityPolicyEntryStatesArgs{
SecurityPolicyDeploymentId: testSecurityPolicyDeployment.Id,
DeploymentStatus: pulumi.StringRef(securityPolicyDeploymentSecurityPolicyEntryStateDeploymentStatus),
SecurityPolicyEntryId: pulumi.StringRef(testSecurityPolicyEntry.Id),
SecurityPolicyEntryType: pulumi.StringRef(securityPolicyDeploymentSecurityPolicyEntryStateSecurityPolicyEntryType),
TargetId: pulumi.StringRef(testTarget.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 testSecurityPolicyDeploymentSecurityPolicyEntryStates = Oci.DataSafe.GetSecurityPolicyDeploymentSecurityPolicyEntryStates.Invoke(new()
{
SecurityPolicyDeploymentId = testSecurityPolicyDeployment.Id,
DeploymentStatus = securityPolicyDeploymentSecurityPolicyEntryStateDeploymentStatus,
SecurityPolicyEntryId = testSecurityPolicyEntry.Id,
SecurityPolicyEntryType = securityPolicyDeploymentSecurityPolicyEntryStateSecurityPolicyEntryType,
TargetId = testTarget.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.GetSecurityPolicyDeploymentSecurityPolicyEntryStatesArgs;
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 testSecurityPolicyDeploymentSecurityPolicyEntryStates = DataSafeFunctions.getSecurityPolicyDeploymentSecurityPolicyEntryStates(GetSecurityPolicyDeploymentSecurityPolicyEntryStatesArgs.builder()
.securityPolicyDeploymentId(testSecurityPolicyDeployment.id())
.deploymentStatus(securityPolicyDeploymentSecurityPolicyEntryStateDeploymentStatus)
.securityPolicyEntryId(testSecurityPolicyEntry.id())
.securityPolicyEntryType(securityPolicyDeploymentSecurityPolicyEntryStateSecurityPolicyEntryType)
.targetId(testTarget.id())
.build());
}
}
variables:
testSecurityPolicyDeploymentSecurityPolicyEntryStates:
fn::invoke:
function: oci:DataSafe:getSecurityPolicyDeploymentSecurityPolicyEntryStates
arguments:
securityPolicyDeploymentId: ${testSecurityPolicyDeployment.id}
deploymentStatus: ${securityPolicyDeploymentSecurityPolicyEntryStateDeploymentStatus}
securityPolicyEntryId: ${testSecurityPolicyEntry.id}
securityPolicyEntryType: ${securityPolicyDeploymentSecurityPolicyEntryStateSecurityPolicyEntryType}
targetId: ${testTarget.id}
Using getSecurityPolicyDeploymentSecurityPolicyEntryStates
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 getSecurityPolicyDeploymentSecurityPolicyEntryStates(args: GetSecurityPolicyDeploymentSecurityPolicyEntryStatesArgs, opts?: InvokeOptions): Promise<GetSecurityPolicyDeploymentSecurityPolicyEntryStatesResult>
function getSecurityPolicyDeploymentSecurityPolicyEntryStatesOutput(args: GetSecurityPolicyDeploymentSecurityPolicyEntryStatesOutputArgs, opts?: InvokeOptions): Output<GetSecurityPolicyDeploymentSecurityPolicyEntryStatesResult>def get_security_policy_deployment_security_policy_entry_states(deployment_status: Optional[str] = None,
filters: Optional[Sequence[GetSecurityPolicyDeploymentSecurityPolicyEntryStatesFilter]] = None,
security_policy_deployment_id: Optional[str] = None,
security_policy_entry_id: Optional[str] = None,
security_policy_entry_type: Optional[str] = None,
target_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSecurityPolicyDeploymentSecurityPolicyEntryStatesResult
def get_security_policy_deployment_security_policy_entry_states_output(deployment_status: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetSecurityPolicyDeploymentSecurityPolicyEntryStatesFilterArgs]]]] = None,
security_policy_deployment_id: Optional[pulumi.Input[str]] = None,
security_policy_entry_id: Optional[pulumi.Input[str]] = None,
security_policy_entry_type: Optional[pulumi.Input[str]] = None,
target_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSecurityPolicyDeploymentSecurityPolicyEntryStatesResult]func GetSecurityPolicyDeploymentSecurityPolicyEntryStates(ctx *Context, args *GetSecurityPolicyDeploymentSecurityPolicyEntryStatesArgs, opts ...InvokeOption) (*GetSecurityPolicyDeploymentSecurityPolicyEntryStatesResult, error)
func GetSecurityPolicyDeploymentSecurityPolicyEntryStatesOutput(ctx *Context, args *GetSecurityPolicyDeploymentSecurityPolicyEntryStatesOutputArgs, opts ...InvokeOption) GetSecurityPolicyDeploymentSecurityPolicyEntryStatesResultOutput> Note: This function is named GetSecurityPolicyDeploymentSecurityPolicyEntryStates in the Go SDK.
public static class GetSecurityPolicyDeploymentSecurityPolicyEntryStates
{
public static Task<GetSecurityPolicyDeploymentSecurityPolicyEntryStatesResult> InvokeAsync(GetSecurityPolicyDeploymentSecurityPolicyEntryStatesArgs args, InvokeOptions? opts = null)
public static Output<GetSecurityPolicyDeploymentSecurityPolicyEntryStatesResult> Invoke(GetSecurityPolicyDeploymentSecurityPolicyEntryStatesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSecurityPolicyDeploymentSecurityPolicyEntryStatesResult> getSecurityPolicyDeploymentSecurityPolicyEntryStates(GetSecurityPolicyDeploymentSecurityPolicyEntryStatesArgs args, InvokeOptions options)
public static Output<GetSecurityPolicyDeploymentSecurityPolicyEntryStatesResult> getSecurityPolicyDeploymentSecurityPolicyEntryStates(GetSecurityPolicyDeploymentSecurityPolicyEntryStatesArgs args, InvokeOptions options)
fn::invoke:
function: oci:DataSafe/getSecurityPolicyDeploymentSecurityPolicyEntryStates:getSecurityPolicyDeploymentSecurityPolicyEntryStates
arguments:
# arguments dictionaryThe following arguments are supported:
- Security
Policy stringDeployment Id - The OCID of the security policy deployment resource.
- Deployment
Status string - The current state of the security policy deployment.
- Filters
List<Get
Security Policy Deployment Security Policy Entry States Filter> - Security
Policy stringEntry Id - An optional filter to return only resources that match the specified security policy entry OCID.
- Security
Policy stringEntry Type - The type of the security policy deployment.
- Target
Id string - An optional filter to return only resources that match the specified target id.
- Security
Policy stringDeployment Id - The OCID of the security policy deployment resource.
- Deployment
Status string - The current state of the security policy deployment.
- Filters
[]Get
Security Policy Deployment Security Policy Entry States Filter - Security
Policy stringEntry Id - An optional filter to return only resources that match the specified security policy entry OCID.
- Security
Policy stringEntry Type - The type of the security policy deployment.
- Target
Id string - An optional filter to return only resources that match the specified target id.
- security
Policy StringDeployment Id - The OCID of the security policy deployment resource.
- deployment
Status String - The current state of the security policy deployment.
- filters
List<Get
Security Policy Deployment Security Policy Entry States Filter> - security
Policy StringEntry Id - An optional filter to return only resources that match the specified security policy entry OCID.
- security
Policy StringEntry Type - The type of the security policy deployment.
- target
Id String - An optional filter to return only resources that match the specified target id.
- security
Policy stringDeployment Id - The OCID of the security policy deployment resource.
- deployment
Status string - The current state of the security policy deployment.
- filters
Get
Security Policy Deployment Security Policy Entry States Filter[] - security
Policy stringEntry Id - An optional filter to return only resources that match the specified security policy entry OCID.
- security
Policy stringEntry Type - The type of the security policy deployment.
- target
Id string - An optional filter to return only resources that match the specified target id.
- security_
policy_ strdeployment_ id - The OCID of the security policy deployment resource.
- deployment_
status str - The current state of the security policy deployment.
- filters
Sequence[Get
Security Policy Deployment Security Policy Entry States Filter] - security_
policy_ strentry_ id - An optional filter to return only resources that match the specified security policy entry OCID.
- security_
policy_ strentry_ type - The type of the security policy deployment.
- target_
id str - An optional filter to return only resources that match the specified target id.
- security
Policy StringDeployment Id - The OCID of the security policy deployment resource.
- deployment
Status String - The current state of the security policy deployment.
- filters List<Property Map>
- security
Policy StringEntry Id - An optional filter to return only resources that match the specified security policy entry OCID.
- security
Policy StringEntry Type - The type of the security policy deployment.
- target
Id String - An optional filter to return only resources that match the specified target id.
getSecurityPolicyDeploymentSecurityPolicyEntryStates Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Security
Policy stringDeployment Id - The OCID of the security policy deployment associated.
- Security
Policy List<GetEntry State Collections Security Policy Deployment Security Policy Entry States Security Policy Entry State Collection> - The list of security_policy_entry_state_collection.
- Deployment
Status string - The current deployment status of the security policy deployment and the security policy entry associated.
- Filters
List<Get
Security Policy Deployment Security Policy Entry States Filter> - Security
Policy stringEntry Id - The OCID of the security policy entry type associated.
- Security
Policy stringEntry Type - Target
Id string - The OCID of the target on which the security policy is deployed.
- Id string
- The provider-assigned unique ID for this managed resource.
- Security
Policy stringDeployment Id - The OCID of the security policy deployment associated.
- Security
Policy []GetEntry State Collections Security Policy Deployment Security Policy Entry States Security Policy Entry State Collection - The list of security_policy_entry_state_collection.
- Deployment
Status string - The current deployment status of the security policy deployment and the security policy entry associated.
- Filters
[]Get
Security Policy Deployment Security Policy Entry States Filter - Security
Policy stringEntry Id - The OCID of the security policy entry type associated.
- Security
Policy stringEntry Type - Target
Id string - The OCID of the target on which the security policy is deployed.
- id String
- The provider-assigned unique ID for this managed resource.
- security
Policy StringDeployment Id - The OCID of the security policy deployment associated.
- security
Policy List<GetEntry State Collections Security Policy Deployment Security Policy Entry States Security Policy Entry State Collection> - The list of security_policy_entry_state_collection.
- deployment
Status String - The current deployment status of the security policy deployment and the security policy entry associated.
- filters
List<Get
Security Policy Deployment Security Policy Entry States Filter> - security
Policy StringEntry Id - The OCID of the security policy entry type associated.
- security
Policy StringEntry Type - target
Id String - The OCID of the target on which the security policy is deployed.
- id string
- The provider-assigned unique ID for this managed resource.
- security
Policy stringDeployment Id - The OCID of the security policy deployment associated.
- security
Policy GetEntry State Collections Security Policy Deployment Security Policy Entry States Security Policy Entry State Collection[] - The list of security_policy_entry_state_collection.
- deployment
Status string - The current deployment status of the security policy deployment and the security policy entry associated.
- filters
Get
Security Policy Deployment Security Policy Entry States Filter[] - security
Policy stringEntry Id - The OCID of the security policy entry type associated.
- security
Policy stringEntry Type - target
Id string - The OCID of the target on which the security policy is deployed.
- id str
- The provider-assigned unique ID for this managed resource.
- security_
policy_ strdeployment_ id - The OCID of the security policy deployment associated.
- security_
policy_ Sequence[Getentry_ state_ collections Security Policy Deployment Security Policy Entry States Security Policy Entry State Collection] - The list of security_policy_entry_state_collection.
- deployment_
status str - The current deployment status of the security policy deployment and the security policy entry associated.
- filters
Sequence[Get
Security Policy Deployment Security Policy Entry States Filter] - security_
policy_ strentry_ id - The OCID of the security policy entry type associated.
- security_
policy_ strentry_ type - target_
id str - The OCID of the target on which the security policy is deployed.
- id String
- The provider-assigned unique ID for this managed resource.
- security
Policy StringDeployment Id - The OCID of the security policy deployment associated.
- security
Policy List<Property Map>Entry State Collections - The list of security_policy_entry_state_collection.
- deployment
Status String - The current deployment status of the security policy deployment and the security policy entry associated.
- filters List<Property Map>
- security
Policy StringEntry Id - The OCID of the security policy entry type associated.
- security
Policy StringEntry Type - target
Id String - The OCID of the target on which the security policy is deployed.
Supporting Types
GetSecurityPolicyDeploymentSecurityPolicyEntryStatesFilter
GetSecurityPolicyDeploymentSecurityPolicyEntryStatesSecurityPolicyEntryStateCollection
GetSecurityPolicyDeploymentSecurityPolicyEntryStatesSecurityPolicyEntryStateCollectionItem
- Deployment
Status string - The current state of the security policy deployment.
- Deployment
Status stringDetails - Details about the current deployment status.
- Entry
Details List<GetSecurity Policy Deployment Security Policy Entry States Security Policy Entry State Collection Item Entry Detail> - Details specific to the security policy entry.
- Entry
Type string - The security policy entry type. Allowed values:
- FIREWALL_POLICY - The SQL Firewall policy entry type.
- AUDIT_POLICY - The audit policy entry type.
- CONFIG - Config changes deployment.
- Id string
- Unique id of the security policy entry state.
- Security
Policy stringDeployment Id - The OCID of the security policy deployment resource.
- Security
Policy stringEntry Id - An optional filter to return only resources that match the specified security policy entry OCID.
- Target
Id string - An optional filter to return only resources that match the specified target id.
- Deployment
Status string - The current state of the security policy deployment.
- Deployment
Status stringDetails - Details about the current deployment status.
- Entry
Details []GetSecurity Policy Deployment Security Policy Entry States Security Policy Entry State Collection Item Entry Detail - Details specific to the security policy entry.
- Entry
Type string - The security policy entry type. Allowed values:
- FIREWALL_POLICY - The SQL Firewall policy entry type.
- AUDIT_POLICY - The audit policy entry type.
- CONFIG - Config changes deployment.
- Id string
- Unique id of the security policy entry state.
- Security
Policy stringDeployment Id - The OCID of the security policy deployment resource.
- Security
Policy stringEntry Id - An optional filter to return only resources that match the specified security policy entry OCID.
- Target
Id string - An optional filter to return only resources that match the specified target id.
- deployment
Status String - The current state of the security policy deployment.
- deployment
Status StringDetails - Details about the current deployment status.
- entry
Details List<GetSecurity Policy Deployment Security Policy Entry States Security Policy Entry State Collection Item Entry Detail> - Details specific to the security policy entry.
- entry
Type String - The security policy entry type. Allowed values:
- FIREWALL_POLICY - The SQL Firewall policy entry type.
- AUDIT_POLICY - The audit policy entry type.
- CONFIG - Config changes deployment.
- id String
- Unique id of the security policy entry state.
- security
Policy StringDeployment Id - The OCID of the security policy deployment resource.
- security
Policy StringEntry Id - An optional filter to return only resources that match the specified security policy entry OCID.
- target
Id String - An optional filter to return only resources that match the specified target id.
- deployment
Status string - The current state of the security policy deployment.
- deployment
Status stringDetails - Details about the current deployment status.
- entry
Details GetSecurity Policy Deployment Security Policy Entry States Security Policy Entry State Collection Item Entry Detail[] - Details specific to the security policy entry.
- entry
Type string - The security policy entry type. Allowed values:
- FIREWALL_POLICY - The SQL Firewall policy entry type.
- AUDIT_POLICY - The audit policy entry type.
- CONFIG - Config changes deployment.
- id string
- Unique id of the security policy entry state.
- security
Policy stringDeployment Id - The OCID of the security policy deployment resource.
- security
Policy stringEntry Id - An optional filter to return only resources that match the specified security policy entry OCID.
- target
Id string - An optional filter to return only resources that match the specified target id.
- deployment_
status str - The current state of the security policy deployment.
- deployment_
status_ strdetails - Details about the current deployment status.
- entry_
details Sequence[GetSecurity Policy Deployment Security Policy Entry States Security Policy Entry State Collection Item Entry Detail] - Details specific to the security policy entry.
- entry_
type str - The security policy entry type. Allowed values:
- FIREWALL_POLICY - The SQL Firewall policy entry type.
- AUDIT_POLICY - The audit policy entry type.
- CONFIG - Config changes deployment.
- id str
- Unique id of the security policy entry state.
- security_
policy_ strdeployment_ id - The OCID of the security policy deployment resource.
- security_
policy_ strentry_ id - An optional filter to return only resources that match the specified security policy entry OCID.
- target_
id str - An optional filter to return only resources that match the specified target id.
- deployment
Status String - The current state of the security policy deployment.
- deployment
Status StringDetails - Details about the current deployment status.
- entry
Details List<Property Map> - Details specific to the security policy entry.
- entry
Type String - The security policy entry type. Allowed values:
- FIREWALL_POLICY - The SQL Firewall policy entry type.
- AUDIT_POLICY - The audit policy entry type.
- CONFIG - Config changes deployment.
- id String
- Unique id of the security policy entry state.
- security
Policy StringDeployment Id - The OCID of the security policy deployment resource.
- security
Policy StringEntry Id - An optional filter to return only resources that match the specified security policy entry OCID.
- target
Id String - An optional filter to return only resources that match the specified target id.
GetSecurityPolicyDeploymentSecurityPolicyEntryStatesSecurityPolicyEntryStateCollectionItemEntryDetail
- Datasafe
User stringExclusion Status - The status of Data Safe user exclusion in the audit policy.
- Entry
Type string - The security policy entry type. Allowed values:
- FIREWALL_POLICY - The SQL Firewall policy entry type.
- AUDIT_POLICY - The audit policy entry type.
- CONFIG - Config changes deployment.
- Exclude
Datasafe stringUser Failure Msg - Specifies why exclusion of the Data Safe user did not succeed.
- Time
Generated string - The time the the SQL Firewall policy was generated on the target database, in the format defined by RFC3339.
- Time
Status stringUpdated - The last date and time the status of the SQL Firewall policy was updated on the target database, in the format defined by RFC3339.
- Datasafe
User stringExclusion Status - The status of Data Safe user exclusion in the audit policy.
- Entry
Type string - The security policy entry type. Allowed values:
- FIREWALL_POLICY - The SQL Firewall policy entry type.
- AUDIT_POLICY - The audit policy entry type.
- CONFIG - Config changes deployment.
- Exclude
Datasafe stringUser Failure Msg - Specifies why exclusion of the Data Safe user did not succeed.
- Time
Generated string - The time the the SQL Firewall policy was generated on the target database, in the format defined by RFC3339.
- Time
Status stringUpdated - The last date and time the status of the SQL Firewall policy was updated on the target database, in the format defined by RFC3339.
- datasafe
User StringExclusion Status - The status of Data Safe user exclusion in the audit policy.
- entry
Type String - The security policy entry type. Allowed values:
- FIREWALL_POLICY - The SQL Firewall policy entry type.
- AUDIT_POLICY - The audit policy entry type.
- CONFIG - Config changes deployment.
- exclude
Datasafe StringUser Failure Msg - Specifies why exclusion of the Data Safe user did not succeed.
- time
Generated String - The time the the SQL Firewall policy was generated on the target database, in the format defined by RFC3339.
- time
Status StringUpdated - The last date and time the status of the SQL Firewall policy was updated on the target database, in the format defined by RFC3339.
- datasafe
User stringExclusion Status - The status of Data Safe user exclusion in the audit policy.
- entry
Type string - The security policy entry type. Allowed values:
- FIREWALL_POLICY - The SQL Firewall policy entry type.
- AUDIT_POLICY - The audit policy entry type.
- CONFIG - Config changes deployment.
- exclude
Datasafe stringUser Failure Msg - Specifies why exclusion of the Data Safe user did not succeed.
- time
Generated string - The time the the SQL Firewall policy was generated on the target database, in the format defined by RFC3339.
- time
Status stringUpdated - The last date and time the status of the SQL Firewall policy was updated on the target database, in the format defined by RFC3339.
- datasafe_
user_ strexclusion_ status - The status of Data Safe user exclusion in the audit policy.
- entry_
type str - The security policy entry type. Allowed values:
- FIREWALL_POLICY - The SQL Firewall policy entry type.
- AUDIT_POLICY - The audit policy entry type.
- CONFIG - Config changes deployment.
- exclude_
datasafe_ struser_ failure_ msg - Specifies why exclusion of the Data Safe user did not succeed.
- time_
generated str - The time the the SQL Firewall policy was generated on the target database, in the format defined by RFC3339.
- time_
status_ strupdated - The last date and time the status of the SQL Firewall policy was updated on the target database, in the format defined by RFC3339.
- datasafe
User StringExclusion Status - The status of Data Safe user exclusion in the audit policy.
- entry
Type String - The security policy entry type. Allowed values:
- FIREWALL_POLICY - The SQL Firewall policy entry type.
- AUDIT_POLICY - The audit policy entry type.
- CONFIG - Config changes deployment.
- exclude
Datasafe StringUser Failure Msg - Specifies why exclusion of the Data Safe user did not succeed.
- time
Generated String - The time the the SQL Firewall policy was generated on the target database, in the format defined by RFC3339.
- time
Status StringUpdated - The last date and time the status of the SQL Firewall policy was updated on the target database, in the format defined by RFC3339.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
published on Thursday, Mar 19, 2026 by Pulumi
