1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getSecurityPolicyDeploymentSecurityPolicyEntryStates
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.DataSafe.getSecurityPolicyDeploymentSecurityPolicyEntryStates

Explore with Pulumi AI

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,
});
Copy
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"])
Copy
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.GetSecurityPolicyDeploymentSecurityPolicyEntryStates(ctx, &datasafe.GetSecurityPolicyDeploymentSecurityPolicyEntryStatesArgs{
			SecurityPolicyDeploymentId: testSecurityPolicyDeployment.Id,
			DeploymentStatus:           pulumi.StringRef(securityPolicyDeploymentSecurityPolicyEntryStateDeploymentStatus),
			SecurityPolicyEntryId:      pulumi.StringRef(testSecurityPolicyEntry.Id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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,
    });

});
Copy
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())
            .build());

    }
}
Copy
variables:
  testSecurityPolicyDeploymentSecurityPolicyEntryStates:
    fn::invoke:
      function: oci:DataSafe:getSecurityPolicyDeploymentSecurityPolicyEntryStates
      arguments:
        securityPolicyDeploymentId: ${testSecurityPolicyDeployment.id}
        deploymentStatus: ${securityPolicyDeploymentSecurityPolicyEntryStateDeploymentStatus}
        securityPolicyEntryId: ${testSecurityPolicyEntry.id}
Copy

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>
Copy
def get_security_policy_deployment_security_policy_entry_states(deployment_status: Optional[str] = None,
                                                                filters: Optional[Sequence[_datasafe.GetSecurityPolicyDeploymentSecurityPolicyEntryStatesFilter]] = None,
                                                                security_policy_deployment_id: Optional[str] = None,
                                                                security_policy_entry_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[_datasafe.GetSecurityPolicyDeploymentSecurityPolicyEntryStatesFilterArgs]]]] = None,
                                                                security_policy_deployment_id: Optional[pulumi.Input[str]] = None,
                                                                security_policy_entry_id: Optional[pulumi.Input[str]] = None,
                                                                opts: Optional[InvokeOptions] = None) -> Output[GetSecurityPolicyDeploymentSecurityPolicyEntryStatesResult]
Copy
func GetSecurityPolicyDeploymentSecurityPolicyEntryStates(ctx *Context, args *GetSecurityPolicyDeploymentSecurityPolicyEntryStatesArgs, opts ...InvokeOption) (*GetSecurityPolicyDeploymentSecurityPolicyEntryStatesResult, error)
func GetSecurityPolicyDeploymentSecurityPolicyEntryStatesOutput(ctx *Context, args *GetSecurityPolicyDeploymentSecurityPolicyEntryStatesOutputArgs, opts ...InvokeOption) GetSecurityPolicyDeploymentSecurityPolicyEntryStatesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetSecurityPolicyDeploymentSecurityPolicyEntryStatesResult> getSecurityPolicyDeploymentSecurityPolicyEntryStates(GetSecurityPolicyDeploymentSecurityPolicyEntryStatesArgs args, InvokeOptions options)
public static Output<GetSecurityPolicyDeploymentSecurityPolicyEntryStatesResult> getSecurityPolicyDeploymentSecurityPolicyEntryStates(GetSecurityPolicyDeploymentSecurityPolicyEntryStatesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:DataSafe/getSecurityPolicyDeploymentSecurityPolicyEntryStates:getSecurityPolicyDeploymentSecurityPolicyEntryStates
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

SecurityPolicyDeploymentId This property is required. string
The OCID of the security policy deployment resource.
DeploymentStatus string
The current state of the security policy deployment.
Filters Changes to this property will trigger replacement. List<GetSecurityPolicyDeploymentSecurityPolicyEntryStatesFilter>
SecurityPolicyEntryId string
An optional filter to return only resources that match the specified security policy entry OCID.
SecurityPolicyDeploymentId This property is required. string
The OCID of the security policy deployment resource.
DeploymentStatus string
The current state of the security policy deployment.
Filters Changes to this property will trigger replacement. []GetSecurityPolicyDeploymentSecurityPolicyEntryStatesFilter
SecurityPolicyEntryId string
An optional filter to return only resources that match the specified security policy entry OCID.
securityPolicyDeploymentId This property is required. String
The OCID of the security policy deployment resource.
deploymentStatus String
The current state of the security policy deployment.
filters Changes to this property will trigger replacement. List<GetSecurityPolicyDeploymentSecurityPolicyEntryStatesFilter>
securityPolicyEntryId String
An optional filter to return only resources that match the specified security policy entry OCID.
securityPolicyDeploymentId This property is required. string
The OCID of the security policy deployment resource.
deploymentStatus string
The current state of the security policy deployment.
filters Changes to this property will trigger replacement. GetSecurityPolicyDeploymentSecurityPolicyEntryStatesFilter[]
securityPolicyEntryId string
An optional filter to return only resources that match the specified security policy entry OCID.
security_policy_deployment_id This property is required. str
The OCID of the security policy deployment resource.
deployment_status str
The current state of the security policy deployment.
filters Changes to this property will trigger replacement. Sequence[datasafe.GetSecurityPolicyDeploymentSecurityPolicyEntryStatesFilter]
security_policy_entry_id str
An optional filter to return only resources that match the specified security policy entry OCID.
securityPolicyDeploymentId This property is required. String
The OCID of the security policy deployment resource.
deploymentStatus String
The current state of the security policy deployment.
filters Changes to this property will trigger replacement. List<Property Map>
securityPolicyEntryId String
An optional filter to return only resources that match the specified security policy entry OCID.

getSecurityPolicyDeploymentSecurityPolicyEntryStates Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
SecurityPolicyDeploymentId string
The OCID of the security policy deployment associated.
SecurityPolicyEntryStateCollections List<GetSecurityPolicyDeploymentSecurityPolicyEntryStatesSecurityPolicyEntryStateCollection>
The list of security_policy_entry_state_collection.
DeploymentStatus string
The current deployment status of the security policy deployment and the security policy entry associated.
Filters List<GetSecurityPolicyDeploymentSecurityPolicyEntryStatesFilter>
SecurityPolicyEntryId string
The OCID of the security policy entry type associated.
Id string
The provider-assigned unique ID for this managed resource.
SecurityPolicyDeploymentId string
The OCID of the security policy deployment associated.
SecurityPolicyEntryStateCollections []GetSecurityPolicyDeploymentSecurityPolicyEntryStatesSecurityPolicyEntryStateCollection
The list of security_policy_entry_state_collection.
DeploymentStatus string
The current deployment status of the security policy deployment and the security policy entry associated.
Filters []GetSecurityPolicyDeploymentSecurityPolicyEntryStatesFilter
SecurityPolicyEntryId string
The OCID of the security policy entry type associated.
id String
The provider-assigned unique ID for this managed resource.
securityPolicyDeploymentId String
The OCID of the security policy deployment associated.
securityPolicyEntryStateCollections List<GetSecurityPolicyDeploymentSecurityPolicyEntryStatesSecurityPolicyEntryStateCollection>
The list of security_policy_entry_state_collection.
deploymentStatus String
The current deployment status of the security policy deployment and the security policy entry associated.
filters List<GetSecurityPolicyDeploymentSecurityPolicyEntryStatesFilter>
securityPolicyEntryId String
The OCID of the security policy entry type associated.
id string
The provider-assigned unique ID for this managed resource.
securityPolicyDeploymentId string
The OCID of the security policy deployment associated.
securityPolicyEntryStateCollections GetSecurityPolicyDeploymentSecurityPolicyEntryStatesSecurityPolicyEntryStateCollection[]
The list of security_policy_entry_state_collection.
deploymentStatus string
The current deployment status of the security policy deployment and the security policy entry associated.
filters GetSecurityPolicyDeploymentSecurityPolicyEntryStatesFilter[]
securityPolicyEntryId string
The OCID of the security policy entry type associated.
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_state_collections Sequence[datasafe.GetSecurityPolicyDeploymentSecurityPolicyEntryStatesSecurityPolicyEntryStateCollection]
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[datasafe.GetSecurityPolicyDeploymentSecurityPolicyEntryStatesFilter]
security_policy_entry_id str
The OCID of the security policy entry type associated.
id String
The provider-assigned unique ID for this managed resource.
securityPolicyDeploymentId String
The OCID of the security policy deployment associated.
securityPolicyEntryStateCollections List<Property Map>
The list of security_policy_entry_state_collection.
deploymentStatus String
The current deployment status of the security policy deployment and the security policy entry associated.
filters List<Property Map>
securityPolicyEntryId String
The OCID of the security policy entry type associated.

Supporting Types

GetSecurityPolicyDeploymentSecurityPolicyEntryStatesFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetSecurityPolicyDeploymentSecurityPolicyEntryStatesSecurityPolicyEntryStateCollection

items This property is required. List<Property Map>

GetSecurityPolicyDeploymentSecurityPolicyEntryStatesSecurityPolicyEntryStateCollectionItem

DeploymentStatus This property is required. string
The current state of the security policy deployment.
EntryDetails This property is required. List<GetSecurityPolicyDeploymentSecurityPolicyEntryStatesSecurityPolicyEntryStateCollectionItemEntryDetail>
Details specific to the security policy entry.
Id This property is required. string
Unique id of the security policy entry state.
SecurityPolicyDeploymentId This property is required. string
The OCID of the security policy deployment resource.
SecurityPolicyEntryId This property is required. string
An optional filter to return only resources that match the specified security policy entry OCID.
DeploymentStatus This property is required. string
The current state of the security policy deployment.
EntryDetails This property is required. []GetSecurityPolicyDeploymentSecurityPolicyEntryStatesSecurityPolicyEntryStateCollectionItemEntryDetail
Details specific to the security policy entry.
Id This property is required. string
Unique id of the security policy entry state.
SecurityPolicyDeploymentId This property is required. string
The OCID of the security policy deployment resource.
SecurityPolicyEntryId This property is required. string
An optional filter to return only resources that match the specified security policy entry OCID.
deploymentStatus This property is required. String
The current state of the security policy deployment.
entryDetails This property is required. List<GetSecurityPolicyDeploymentSecurityPolicyEntryStatesSecurityPolicyEntryStateCollectionItemEntryDetail>
Details specific to the security policy entry.
id This property is required. String
Unique id of the security policy entry state.
securityPolicyDeploymentId This property is required. String
The OCID of the security policy deployment resource.
securityPolicyEntryId This property is required. String
An optional filter to return only resources that match the specified security policy entry OCID.
deploymentStatus This property is required. string
The current state of the security policy deployment.
entryDetails This property is required. GetSecurityPolicyDeploymentSecurityPolicyEntryStatesSecurityPolicyEntryStateCollectionItemEntryDetail[]
Details specific to the security policy entry.
id This property is required. string
Unique id of the security policy entry state.
securityPolicyDeploymentId This property is required. string
The OCID of the security policy deployment resource.
securityPolicyEntryId This property is required. string
An optional filter to return only resources that match the specified security policy entry OCID.
deployment_status This property is required. str
The current state of the security policy deployment.
entry_details This property is required. Sequence[datasafe.GetSecurityPolicyDeploymentSecurityPolicyEntryStatesSecurityPolicyEntryStateCollectionItemEntryDetail]
Details specific to the security policy entry.
id This property is required. str
Unique id of the security policy entry state.
security_policy_deployment_id This property is required. str
The OCID of the security policy deployment resource.
security_policy_entry_id This property is required. str
An optional filter to return only resources that match the specified security policy entry OCID.
deploymentStatus This property is required. String
The current state of the security policy deployment.
entryDetails This property is required. List<Property Map>
Details specific to the security policy entry.
id This property is required. String
Unique id of the security policy entry state.
securityPolicyDeploymentId This property is required. String
The OCID of the security policy deployment resource.
securityPolicyEntryId This property is required. String
An optional filter to return only resources that match the specified security policy entry OCID.

GetSecurityPolicyDeploymentSecurityPolicyEntryStatesSecurityPolicyEntryStateCollectionItemEntryDetail

EntryType This property is required. string
The security policy entry type. Allowed values:

  • FIREWALL_POLICY - The SQL Firewall policy entry type.
TimeGenerated This property is required. string
The time the the SQL Firewall policy was generated on the target database, in the format defined by RFC3339.
TimeStatusUpdated This property is required. 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.
EntryType This property is required. string
The security policy entry type. Allowed values:

  • FIREWALL_POLICY - The SQL Firewall policy entry type.
TimeGenerated This property is required. string
The time the the SQL Firewall policy was generated on the target database, in the format defined by RFC3339.
TimeStatusUpdated This property is required. 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.
entryType This property is required. String
The security policy entry type. Allowed values:

  • FIREWALL_POLICY - The SQL Firewall policy entry type.
timeGenerated This property is required. String
The time the the SQL Firewall policy was generated on the target database, in the format defined by RFC3339.
timeStatusUpdated This property is required. 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.
entryType This property is required. string
The security policy entry type. Allowed values:

  • FIREWALL_POLICY - The SQL Firewall policy entry type.
timeGenerated This property is required. string
The time the the SQL Firewall policy was generated on the target database, in the format defined by RFC3339.
timeStatusUpdated This property is required. 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.
entry_type This property is required. str
The security policy entry type. Allowed values:

  • FIREWALL_POLICY - The SQL Firewall policy entry type.
time_generated This property is required. str
The time the the SQL Firewall policy was generated on the target database, in the format defined by RFC3339.
time_status_updated This property is required. 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.
entryType This property is required. String
The security policy entry type. Allowed values:

  • FIREWALL_POLICY - The SQL Firewall policy entry type.
timeGenerated This property is required. String
The time the the SQL Firewall policy was generated on the target database, in the format defined by RFC3339.
timeStatusUpdated This property is required. 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.