Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.DataSafe.getSecurityPolicyReport
Explore with Pulumi AI
This data source provides details about a specific Security Policy Report resource in Oracle Cloud Infrastructure Data Safe service.
Gets a security policy report by the specified OCID of the security policy report resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSecurityPolicyReport = oci.DataSafe.getSecurityPolicyReport({
    securityPolicyReportId: testSecurityPolicyReportOciDataSafeSecurityPolicyReport.id,
});
import pulumi
import pulumi_oci as oci
test_security_policy_report = oci.DataSafe.get_security_policy_report(security_policy_report_id=test_security_policy_report_oci_data_safe_security_policy_report["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/DataSafe"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := DataSafe.GetSecurityPolicyReport(ctx, &datasafe.GetSecurityPolicyReportArgs{
			SecurityPolicyReportId: testSecurityPolicyReportOciDataSafeSecurityPolicyReport.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 testSecurityPolicyReport = Oci.DataSafe.GetSecurityPolicyReport.Invoke(new()
    {
        SecurityPolicyReportId = testSecurityPolicyReportOciDataSafeSecurityPolicyReport.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.GetSecurityPolicyReportArgs;
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 testSecurityPolicyReport = DataSafeFunctions.getSecurityPolicyReport(GetSecurityPolicyReportArgs.builder()
            .securityPolicyReportId(testSecurityPolicyReportOciDataSafeSecurityPolicyReport.id())
            .build());
    }
}
variables:
  testSecurityPolicyReport:
    fn::invoke:
      Function: oci:DataSafe:getSecurityPolicyReport
      Arguments:
        securityPolicyReportId: ${testSecurityPolicyReportOciDataSafeSecurityPolicyReport.id}
Using getSecurityPolicyReport
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 getSecurityPolicyReport(args: GetSecurityPolicyReportArgs, opts?: InvokeOptions): Promise<GetSecurityPolicyReportResult>
function getSecurityPolicyReportOutput(args: GetSecurityPolicyReportOutputArgs, opts?: InvokeOptions): Output<GetSecurityPolicyReportResult>def get_security_policy_report(security_policy_report_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetSecurityPolicyReportResult
def get_security_policy_report_output(security_policy_report_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetSecurityPolicyReportResult]func GetSecurityPolicyReport(ctx *Context, args *GetSecurityPolicyReportArgs, opts ...InvokeOption) (*GetSecurityPolicyReportResult, error)
func GetSecurityPolicyReportOutput(ctx *Context, args *GetSecurityPolicyReportOutputArgs, opts ...InvokeOption) GetSecurityPolicyReportResultOutput> Note: This function is named GetSecurityPolicyReport in the Go SDK.
public static class GetSecurityPolicyReport 
{
    public static Task<GetSecurityPolicyReportResult> InvokeAsync(GetSecurityPolicyReportArgs args, InvokeOptions? opts = null)
    public static Output<GetSecurityPolicyReportResult> Invoke(GetSecurityPolicyReportInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSecurityPolicyReportResult> getSecurityPolicyReport(GetSecurityPolicyReportArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:DataSafe/getSecurityPolicyReport:getSecurityPolicyReport
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Security
Policy stringReport Id  - The OCID of the security policy report resource.
 
- Security
Policy stringReport Id  - The OCID of the security policy report resource.
 
- security
Policy StringReport Id  - The OCID of the security policy report resource.
 
- security
Policy stringReport Id  - The OCID of the security policy report resource.
 
- security_
policy_ strreport_ id  - The OCID of the security policy report resource.
 
- security
Policy StringReport Id  - The OCID of the security policy report resource.
 
getSecurityPolicyReport Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment that contains the security policy report.
 - 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 security policy report.
 - Display
Name string - The display name of the security policy report.
 - 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 provider-assigned unique ID for this managed resource.
 - Lifecycle
Details string - Details about the current state of the security policy report.
 - Security
Policy stringReport Id  - State string
 - The current state of the security policy report.
 - 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"} - Target
Id string - The OCID of the of the target database.
 - Time
Created string - The date and time the security policy report was created, in the format defined by RFC3339.
 - Time
Updated string - The date and time the security policy report was last updated, in the format defined by RFC3339.
 
- Compartment
Id string - The OCID of the compartment that contains the security policy report.
 - 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 security policy report.
 - Display
Name string - The display name of the security policy report.
 - 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 provider-assigned unique ID for this managed resource.
 - Lifecycle
Details string - Details about the current state of the security policy report.
 - Security
Policy stringReport Id  - State string
 - The current state of the security policy report.
 - 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"} - Target
Id string - The OCID of the of the target database.
 - Time
Created string - The date and time the security policy report was created, in the format defined by RFC3339.
 - Time
Updated string - The date and time the security policy report was last updated, in the format defined by RFC3339.
 
- compartment
Id String - The OCID of the compartment that contains the security policy report.
 - 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 security policy report.
 - display
Name String - The display name of the security policy report.
 - 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 provider-assigned unique ID for this managed resource.
 - lifecycle
Details String - Details about the current state of the security policy report.
 - security
Policy StringReport Id  - state String
 - The current state of the security policy report.
 - 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"} - target
Id String - The OCID of the of the target database.
 - time
Created String - The date and time the security policy report was created, in the format defined by RFC3339.
 - time
Updated String - The date and time the security policy report was last updated, in the format defined by RFC3339.
 
- compartment
Id string - The OCID of the compartment that contains the security policy report.
 - {[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 security policy report.
 - display
Name string - The display name of the security policy report.
 - {[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 provider-assigned unique ID for this managed resource.
 - lifecycle
Details string - Details about the current state of the security policy report.
 - security
Policy stringReport Id  - state string
 - The current state of the security policy report.
 - {[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"} - target
Id string - The OCID of the of the target database.
 - time
Created string - The date and time the security policy report was created, in the format defined by RFC3339.
 - time
Updated string - The date and time the security policy report was last updated, in the format defined by RFC3339.
 
- compartment_
id str - The OCID of the compartment that contains the security policy report.
 - 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 security policy report.
 - display_
name str - The display name of the security policy report.
 - 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 provider-assigned unique ID for this managed resource.
 - lifecycle_
details str - Details about the current state of the security policy report.
 - security_
policy_ strreport_ id  - state str
 - The current state of the security policy report.
 - 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"} - target_
id str - The OCID of the of the target database.
 - time_
created str - The date and time the security policy report was created, in the format defined by RFC3339.
 - time_
updated str - The date and time the security policy report was last updated, in the format defined by RFC3339.
 
- compartment
Id String - The OCID of the compartment that contains the security policy report.
 - 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 security policy report.
 - display
Name String - The display name of the security policy report.
 - 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 provider-assigned unique ID for this managed resource.
 - lifecycle
Details String - Details about the current state of the security policy report.
 - security
Policy StringReport Id  - state String
 - The current state of the security policy report.
 - 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"} - target
Id String - The OCID of the of the target database.
 - time
Created String - The date and time the security policy report was created, in the format defined by RFC3339.
 - time
Updated String - The date and time the security policy report was last updated, 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.