1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getSecurityPolicyDeploymentSecurityPolicyEntryState
Oracle Cloud Infrastructure v3.8.0 published on Thursday, Sep 18, 2025 by Pulumi

oci.DataSafe.getSecurityPolicyDeploymentSecurityPolicyEntryState

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.8.0 published on Thursday, Sep 18, 2025 by Pulumi

    This data source provides details about a specific Security Policy Deployment Security Policy Entry State resource in Oracle Cloud Infrastructure Data Safe service.

    Gets a security policy entity states by identifier.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSecurityPolicyDeploymentSecurityPolicyEntryState = oci.DataSafe.getSecurityPolicyDeploymentSecurityPolicyEntryState({
        securityPolicyDeploymentId: testSecurityPolicyDeployment.id,
        securityPolicyEntryStateId: testSecurityPolicyEntryState.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_security_policy_deployment_security_policy_entry_state = oci.DataSafe.get_security_policy_deployment_security_policy_entry_state(security_policy_deployment_id=test_security_policy_deployment["id"],
        security_policy_entry_state_id=test_security_policy_entry_state["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/datasafe"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := datasafe.GetSecurityPolicyDeploymentSecurityPolicyEntryState(ctx, &datasafe.GetSecurityPolicyDeploymentSecurityPolicyEntryStateArgs{
    			SecurityPolicyDeploymentId: testSecurityPolicyDeployment.Id,
    			SecurityPolicyEntryStateId: testSecurityPolicyEntryState.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 testSecurityPolicyDeploymentSecurityPolicyEntryState = Oci.DataSafe.GetSecurityPolicyDeploymentSecurityPolicyEntryState.Invoke(new()
        {
            SecurityPolicyDeploymentId = testSecurityPolicyDeployment.Id,
            SecurityPolicyEntryStateId = testSecurityPolicyEntryState.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.GetSecurityPolicyDeploymentSecurityPolicyEntryStateArgs;
    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 testSecurityPolicyDeploymentSecurityPolicyEntryState = DataSafeFunctions.getSecurityPolicyDeploymentSecurityPolicyEntryState(GetSecurityPolicyDeploymentSecurityPolicyEntryStateArgs.builder()
                .securityPolicyDeploymentId(testSecurityPolicyDeployment.id())
                .securityPolicyEntryStateId(testSecurityPolicyEntryState.id())
                .build());
    
        }
    }
    
    variables:
      testSecurityPolicyDeploymentSecurityPolicyEntryState:
        fn::invoke:
          function: oci:DataSafe:getSecurityPolicyDeploymentSecurityPolicyEntryState
          arguments:
            securityPolicyDeploymentId: ${testSecurityPolicyDeployment.id}
            securityPolicyEntryStateId: ${testSecurityPolicyEntryState.id}
    

    Using getSecurityPolicyDeploymentSecurityPolicyEntryState

    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 getSecurityPolicyDeploymentSecurityPolicyEntryState(args: GetSecurityPolicyDeploymentSecurityPolicyEntryStateArgs, opts?: InvokeOptions): Promise<GetSecurityPolicyDeploymentSecurityPolicyEntryStateResult>
    function getSecurityPolicyDeploymentSecurityPolicyEntryStateOutput(args: GetSecurityPolicyDeploymentSecurityPolicyEntryStateOutputArgs, opts?: InvokeOptions): Output<GetSecurityPolicyDeploymentSecurityPolicyEntryStateResult>
    def get_security_policy_deployment_security_policy_entry_state(security_policy_deployment_id: Optional[str] = None,
                                                                   security_policy_entry_state_id: Optional[str] = None,
                                                                   opts: Optional[InvokeOptions] = None) -> GetSecurityPolicyDeploymentSecurityPolicyEntryStateResult
    def get_security_policy_deployment_security_policy_entry_state_output(security_policy_deployment_id: Optional[pulumi.Input[str]] = None,
                                                                   security_policy_entry_state_id: Optional[pulumi.Input[str]] = None,
                                                                   opts: Optional[InvokeOptions] = None) -> Output[GetSecurityPolicyDeploymentSecurityPolicyEntryStateResult]
    func GetSecurityPolicyDeploymentSecurityPolicyEntryState(ctx *Context, args *GetSecurityPolicyDeploymentSecurityPolicyEntryStateArgs, opts ...InvokeOption) (*GetSecurityPolicyDeploymentSecurityPolicyEntryStateResult, error)
    func GetSecurityPolicyDeploymentSecurityPolicyEntryStateOutput(ctx *Context, args *GetSecurityPolicyDeploymentSecurityPolicyEntryStateOutputArgs, opts ...InvokeOption) GetSecurityPolicyDeploymentSecurityPolicyEntryStateResultOutput

    > Note: This function is named GetSecurityPolicyDeploymentSecurityPolicyEntryState in the Go SDK.

    public static class GetSecurityPolicyDeploymentSecurityPolicyEntryState 
    {
        public static Task<GetSecurityPolicyDeploymentSecurityPolicyEntryStateResult> InvokeAsync(GetSecurityPolicyDeploymentSecurityPolicyEntryStateArgs args, InvokeOptions? opts = null)
        public static Output<GetSecurityPolicyDeploymentSecurityPolicyEntryStateResult> Invoke(GetSecurityPolicyDeploymentSecurityPolicyEntryStateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSecurityPolicyDeploymentSecurityPolicyEntryStateResult> getSecurityPolicyDeploymentSecurityPolicyEntryState(GetSecurityPolicyDeploymentSecurityPolicyEntryStateArgs args, InvokeOptions options)
    public static Output<GetSecurityPolicyDeploymentSecurityPolicyEntryStateResult> getSecurityPolicyDeploymentSecurityPolicyEntryState(GetSecurityPolicyDeploymentSecurityPolicyEntryStateArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DataSafe/getSecurityPolicyDeploymentSecurityPolicyEntryState:getSecurityPolicyDeploymentSecurityPolicyEntryState
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SecurityPolicyDeploymentId string
    The OCID of the security policy deployment resource.
    SecurityPolicyEntryStateId string
    Unique security policy entry state identifier. The unique id for a given security policy entry state can be obtained from the list api by passing the OCID of the corresponding security policy deployment resource as the query parameter.
    SecurityPolicyDeploymentId string
    The OCID of the security policy deployment resource.
    SecurityPolicyEntryStateId string
    Unique security policy entry state identifier. The unique id for a given security policy entry state can be obtained from the list api by passing the OCID of the corresponding security policy deployment resource as the query parameter.
    securityPolicyDeploymentId String
    The OCID of the security policy deployment resource.
    securityPolicyEntryStateId String
    Unique security policy entry state identifier. The unique id for a given security policy entry state can be obtained from the list api by passing the OCID of the corresponding security policy deployment resource as the query parameter.
    securityPolicyDeploymentId string
    The OCID of the security policy deployment resource.
    securityPolicyEntryStateId string
    Unique security policy entry state identifier. The unique id for a given security policy entry state can be obtained from the list api by passing the OCID of the corresponding security policy deployment resource as the query parameter.
    security_policy_deployment_id str
    The OCID of the security policy deployment resource.
    security_policy_entry_state_id str
    Unique security policy entry state identifier. The unique id for a given security policy entry state can be obtained from the list api by passing the OCID of the corresponding security policy deployment resource as the query parameter.
    securityPolicyDeploymentId String
    The OCID of the security policy deployment resource.
    securityPolicyEntryStateId String
    Unique security policy entry state identifier. The unique id for a given security policy entry state can be obtained from the list api by passing the OCID of the corresponding security policy deployment resource as the query parameter.

    getSecurityPolicyDeploymentSecurityPolicyEntryState Result

    The following output properties are available:

    DeploymentStatus string
    The current deployment status of the security policy deployment and the security policy entry associated.
    DeploymentStatusDetails string
    Details about the current deployment status.
    EntryDetails List<GetSecurityPolicyDeploymentSecurityPolicyEntryStateEntryDetail>
    Details specific to the security policy entry.
    EntryType 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
    The provider-assigned unique ID for this managed resource.
    SecurityPolicyDeploymentId string
    The OCID of the security policy deployment associated.
    SecurityPolicyEntryId string
    The OCID of the security policy entry type associated.
    SecurityPolicyEntryStateId string
    TargetId string
    The OCID of the target on which the security policy is deployed.
    DeploymentStatus string
    The current deployment status of the security policy deployment and the security policy entry associated.
    DeploymentStatusDetails string
    Details about the current deployment status.
    EntryDetails []GetSecurityPolicyDeploymentSecurityPolicyEntryStateEntryDetail
    Details specific to the security policy entry.
    EntryType 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
    The provider-assigned unique ID for this managed resource.
    SecurityPolicyDeploymentId string
    The OCID of the security policy deployment associated.
    SecurityPolicyEntryId string
    The OCID of the security policy entry type associated.
    SecurityPolicyEntryStateId string
    TargetId string
    The OCID of the target on which the security policy is deployed.
    deploymentStatus String
    The current deployment status of the security policy deployment and the security policy entry associated.
    deploymentStatusDetails String
    Details about the current deployment status.
    entryDetails List<GetSecurityPolicyDeploymentSecurityPolicyEntryStateEntryDetail>
    Details specific to the security policy entry.
    entryType 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
    The provider-assigned unique ID for this managed resource.
    securityPolicyDeploymentId String
    The OCID of the security policy deployment associated.
    securityPolicyEntryId String
    The OCID of the security policy entry type associated.
    securityPolicyEntryStateId String
    targetId String
    The OCID of the target on which the security policy is deployed.
    deploymentStatus string
    The current deployment status of the security policy deployment and the security policy entry associated.
    deploymentStatusDetails string
    Details about the current deployment status.
    entryDetails GetSecurityPolicyDeploymentSecurityPolicyEntryStateEntryDetail[]
    Details specific to the security policy entry.
    entryType 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
    The provider-assigned unique ID for this managed resource.
    securityPolicyDeploymentId string
    The OCID of the security policy deployment associated.
    securityPolicyEntryId string
    The OCID of the security policy entry type associated.
    securityPolicyEntryStateId string
    targetId string
    The OCID of the target on which the security policy is deployed.
    deployment_status str
    The current deployment status of the security policy deployment and the security policy entry associated.
    deployment_status_details str
    Details about the current deployment status.
    entry_details Sequence[GetSecurityPolicyDeploymentSecurityPolicyEntryStateEntryDetail]
    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
    The provider-assigned unique ID for this managed resource.
    security_policy_deployment_id str
    The OCID of the security policy deployment associated.
    security_policy_entry_id str
    The OCID of the security policy entry type associated.
    security_policy_entry_state_id str
    target_id str
    The OCID of the target on which the security policy is deployed.
    deploymentStatus String
    The current deployment status of the security policy deployment and the security policy entry associated.
    deploymentStatusDetails String
    Details about the current deployment status.
    entryDetails List<Property Map>
    Details specific to the security policy entry.
    entryType 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
    The provider-assigned unique ID for this managed resource.
    securityPolicyDeploymentId String
    The OCID of the security policy deployment associated.
    securityPolicyEntryId String
    The OCID of the security policy entry type associated.
    securityPolicyEntryStateId String
    targetId String
    The OCID of the target on which the security policy is deployed.

    Supporting Types

    GetSecurityPolicyDeploymentSecurityPolicyEntryStateEntryDetail

    DatasafeUserExclusionStatus string
    The status of Data Safe user exclusion in the audit policy.
    EntryType 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.
    ExcludeDatasafeUserFailureMsg string
    Specifies why exclusion of the Data Safe user did not succeed.
    TimeGenerated string
    The time the the SQL Firewall policy was generated on the target database, in the format defined by RFC3339.
    TimeStatusUpdated string
    The last date and time the status of the SQL Firewall policy was updated on the target database, in the format defined by RFC3339.
    DatasafeUserExclusionStatus string
    The status of Data Safe user exclusion in the audit policy.
    EntryType 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.
    ExcludeDatasafeUserFailureMsg string
    Specifies why exclusion of the Data Safe user did not succeed.
    TimeGenerated string
    The time the the SQL Firewall policy was generated on the target database, in the format defined by RFC3339.
    TimeStatusUpdated string
    The last date and time the status of the SQL Firewall policy was updated on the target database, in the format defined by RFC3339.
    datasafeUserExclusionStatus String
    The status of Data Safe user exclusion in the audit policy.
    entryType 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.
    excludeDatasafeUserFailureMsg String
    Specifies why exclusion of the Data Safe user did not succeed.
    timeGenerated String
    The time the the SQL Firewall policy was generated on the target database, in the format defined by RFC3339.
    timeStatusUpdated String
    The last date and time the status of the SQL Firewall policy was updated on the target database, in the format defined by RFC3339.
    datasafeUserExclusionStatus string
    The status of Data Safe user exclusion in the audit policy.
    entryType 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.
    excludeDatasafeUserFailureMsg string
    Specifies why exclusion of the Data Safe user did not succeed.
    timeGenerated string
    The time the the SQL Firewall policy was generated on the target database, in the format defined by RFC3339.
    timeStatusUpdated string
    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_exclusion_status str
    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_user_failure_msg str
    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_updated str
    The last date and time the status of the SQL Firewall policy was updated on the target database, in the format defined by RFC3339.
    datasafeUserExclusionStatus String
    The status of Data Safe user exclusion in the audit policy.
    entryType 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.
    excludeDatasafeUserFailureMsg String
    Specifies why exclusion of the Data Safe user did not succeed.
    timeGenerated String
    The time the the SQL Firewall policy was generated on the target database, in the format defined by RFC3339.
    timeStatusUpdated String
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v3.8.0 published on Thursday, Sep 18, 2025 by Pulumi