1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. MaskingPolicyHealthReportManagement
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.DataSafe.MaskingPolicyHealthReportManagement

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This resource provides Pre-masking Report Management resource in Oracle Cloud Infrastructure Data Safe service.

    Gets the details of the specified pre-masking health report.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testPreMaskingReportManagement = new oci.datasafe.MaskingPolicyHealthReportManagement("test_pre_masking_report_management", {
        targetId: testTargetDatabase.id,
        maskingPolicyId: testMaskingPolicy.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_pre_masking_report_management = oci.data_safe.MaskingPolicyHealthReportManagement("test_pre_masking_report_management",
        target_id=test_target_database["id"],
        masking_policy_id=test_masking_policy["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.NewMaskingPolicyHealthReportManagement(ctx, "test_pre_masking_report_management", &DataSafe.MaskingPolicyHealthReportManagementArgs{
    			TargetId:        pulumi.Any(testTargetDatabase.Id),
    			MaskingPolicyId: pulumi.Any(testMaskingPolicy.Id),
    		})
    		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 testPreMaskingReportManagement = new Oci.DataSafe.MaskingPolicyHealthReportManagement("test_pre_masking_report_management", new()
        {
            TargetId = testTargetDatabase.Id,
            MaskingPolicyId = testMaskingPolicy.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DataSafe.MaskingPolicyHealthReportManagement;
    import com.pulumi.oci.DataSafe.MaskingPolicyHealthReportManagementArgs;
    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) {
            var testPreMaskingReportManagement = new MaskingPolicyHealthReportManagement("testPreMaskingReportManagement", MaskingPolicyHealthReportManagementArgs.builder()
                .targetId(testTargetDatabase.id())
                .maskingPolicyId(testMaskingPolicy.id())
                .build());
    
        }
    }
    
    resources:
      testPreMaskingReportManagement:
        type: oci:DataSafe:MaskingPolicyHealthReportManagement
        name: test_pre_masking_report_management
        properties:
          targetId: ${testTargetDatabase.id}
          maskingPolicyId: ${testMaskingPolicy.id}
    

    Create MaskingPolicyHealthReportManagement Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MaskingPolicyHealthReportManagement(name: string, args?: MaskingPolicyHealthReportManagementArgs, opts?: CustomResourceOptions);
    @overload
    def MaskingPolicyHealthReportManagement(resource_name: str,
                                            args: Optional[MaskingPolicyHealthReportManagementArgs] = None,
                                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def MaskingPolicyHealthReportManagement(resource_name: str,
                                            opts: Optional[ResourceOptions] = None,
                                            compartment_id: Optional[str] = None,
                                            masking_policy_id: Optional[str] = None,
                                            target_id: Optional[str] = None)
    func NewMaskingPolicyHealthReportManagement(ctx *Context, name string, args *MaskingPolicyHealthReportManagementArgs, opts ...ResourceOption) (*MaskingPolicyHealthReportManagement, error)
    public MaskingPolicyHealthReportManagement(string name, MaskingPolicyHealthReportManagementArgs? args = null, CustomResourceOptions? opts = null)
    public MaskingPolicyHealthReportManagement(String name, MaskingPolicyHealthReportManagementArgs args)
    public MaskingPolicyHealthReportManagement(String name, MaskingPolicyHealthReportManagementArgs args, CustomResourceOptions options)
    
    type: oci:DataSafe:MaskingPolicyHealthReportManagement
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args MaskingPolicyHealthReportManagementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args MaskingPolicyHealthReportManagementArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args MaskingPolicyHealthReportManagementArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MaskingPolicyHealthReportManagementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MaskingPolicyHealthReportManagementArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var maskingPolicyHealthReportManagementResource = new Oci.DataSafe.MaskingPolicyHealthReportManagement("maskingPolicyHealthReportManagementResource", new()
    {
        CompartmentId = "string",
        MaskingPolicyId = "string",
        TargetId = "string",
    });
    
    example, err := DataSafe.NewMaskingPolicyHealthReportManagement(ctx, "maskingPolicyHealthReportManagementResource", &DataSafe.MaskingPolicyHealthReportManagementArgs{
    	CompartmentId:   pulumi.String("string"),
    	MaskingPolicyId: pulumi.String("string"),
    	TargetId:        pulumi.String("string"),
    })
    
    var maskingPolicyHealthReportManagementResource = new MaskingPolicyHealthReportManagement("maskingPolicyHealthReportManagementResource", MaskingPolicyHealthReportManagementArgs.builder()
        .compartmentId("string")
        .maskingPolicyId("string")
        .targetId("string")
        .build());
    
    masking_policy_health_report_management_resource = oci.data_safe.MaskingPolicyHealthReportManagement("maskingPolicyHealthReportManagementResource",
        compartment_id="string",
        masking_policy_id="string",
        target_id="string")
    
    const maskingPolicyHealthReportManagementResource = new oci.datasafe.MaskingPolicyHealthReportManagement("maskingPolicyHealthReportManagementResource", {
        compartmentId: "string",
        maskingPolicyId: "string",
        targetId: "string",
    });
    
    type: oci:DataSafe:MaskingPolicyHealthReportManagement
    properties:
        compartmentId: string
        maskingPolicyId: string
        targetId: string
    

    MaskingPolicyHealthReportManagement Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The MaskingPolicyHealthReportManagement resource accepts the following input properties:

    CompartmentId string
    The OCID of the compartment that contains the masking report.
    MaskingPolicyId string
    The OCID of the masking policy.
    TargetId string
    The OCID of the target database masked.
    CompartmentId string
    The OCID of the compartment that contains the masking report.
    MaskingPolicyId string
    The OCID of the masking policy.
    TargetId string
    The OCID of the target database masked.
    compartmentId String
    The OCID of the compartment that contains the masking report.
    maskingPolicyId String
    The OCID of the masking policy.
    targetId String
    The OCID of the target database masked.
    compartmentId string
    The OCID of the compartment that contains the masking report.
    maskingPolicyId string
    The OCID of the masking policy.
    targetId string
    The OCID of the target database masked.
    compartment_id str
    The OCID of the compartment that contains the masking report.
    masking_policy_id str
    The OCID of the masking policy.
    target_id str
    The OCID of the target database masked.
    compartmentId String
    The OCID of the compartment that contains the masking report.
    maskingPolicyId String
    The OCID of the masking policy.
    targetId String
    The OCID of the target database masked.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MaskingPolicyHealthReportManagement resource produces the following output properties:

    DefinedTags Dictionary<string, string>
    Description string
    Description for the pre-masking report,
    DisplayName string
    The display name of the pre-masking report,
    FreeformTags Dictionary<string, string>
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current state of the pre-masking report.
    TimeCreated string
    The date and time the pre-masking report was created, in the format defined by RFC3339,
    TimeUpdated string
    The date and time the pre-masking report was updated, in the format defined by RFC3339,
    DefinedTags map[string]string
    Description string
    Description for the pre-masking report,
    DisplayName string
    The display name of the pre-masking report,
    FreeformTags map[string]string
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current state of the pre-masking report.
    TimeCreated string
    The date and time the pre-masking report was created, in the format defined by RFC3339,
    TimeUpdated string
    The date and time the pre-masking report was updated, in the format defined by RFC3339,
    definedTags Map<String,String>
    description String
    Description for the pre-masking report,
    displayName String
    The display name of the pre-masking report,
    freeformTags Map<String,String>
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current state of the pre-masking report.
    timeCreated String
    The date and time the pre-masking report was created, in the format defined by RFC3339,
    timeUpdated String
    The date and time the pre-masking report was updated, in the format defined by RFC3339,
    definedTags {[key: string]: string}
    description string
    Description for the pre-masking report,
    displayName string
    The display name of the pre-masking report,
    freeformTags {[key: string]: string}
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The current state of the pre-masking report.
    timeCreated string
    The date and time the pre-masking report was created, in the format defined by RFC3339,
    timeUpdated string
    The date and time the pre-masking report was updated, in the format defined by RFC3339,
    defined_tags Mapping[str, str]
    description str
    Description for the pre-masking report,
    display_name str
    The display name of the pre-masking report,
    freeform_tags Mapping[str, str]
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    The current state of the pre-masking report.
    time_created str
    The date and time the pre-masking report was created, in the format defined by RFC3339,
    time_updated str
    The date and time the pre-masking report was updated, in the format defined by RFC3339,
    definedTags Map<String>
    description String
    Description for the pre-masking report,
    displayName String
    The display name of the pre-masking report,
    freeformTags Map<String>
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current state of the pre-masking report.
    timeCreated String
    The date and time the pre-masking report was created, in the format defined by RFC3339,
    timeUpdated String
    The date and time the pre-masking report was updated, in the format defined by RFC3339,

    Look up Existing MaskingPolicyHealthReportManagement Resource

    Get an existing MaskingPolicyHealthReportManagement resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: MaskingPolicyHealthReportManagementState, opts?: CustomResourceOptions): MaskingPolicyHealthReportManagement
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            masking_policy_id: Optional[str] = None,
            state: Optional[str] = None,
            target_id: Optional[str] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None) -> MaskingPolicyHealthReportManagement
    func GetMaskingPolicyHealthReportManagement(ctx *Context, name string, id IDInput, state *MaskingPolicyHealthReportManagementState, opts ...ResourceOption) (*MaskingPolicyHealthReportManagement, error)
    public static MaskingPolicyHealthReportManagement Get(string name, Input<string> id, MaskingPolicyHealthReportManagementState? state, CustomResourceOptions? opts = null)
    public static MaskingPolicyHealthReportManagement get(String name, Output<String> id, MaskingPolicyHealthReportManagementState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CompartmentId string
    The OCID of the compartment that contains the masking report.
    DefinedTags Dictionary<string, string>
    Description string
    Description for the pre-masking report,
    DisplayName string
    The display name of the pre-masking report,
    FreeformTags Dictionary<string, string>
    MaskingPolicyId string
    The OCID of the masking policy.
    State string
    The current state of the pre-masking report.
    TargetId string
    The OCID of the target database masked.
    TimeCreated string
    The date and time the pre-masking report was created, in the format defined by RFC3339,
    TimeUpdated string
    The date and time the pre-masking report was updated, in the format defined by RFC3339,
    CompartmentId string
    The OCID of the compartment that contains the masking report.
    DefinedTags map[string]string
    Description string
    Description for the pre-masking report,
    DisplayName string
    The display name of the pre-masking report,
    FreeformTags map[string]string
    MaskingPolicyId string
    The OCID of the masking policy.
    State string
    The current state of the pre-masking report.
    TargetId string
    The OCID of the target database masked.
    TimeCreated string
    The date and time the pre-masking report was created, in the format defined by RFC3339,
    TimeUpdated string
    The date and time the pre-masking report was updated, in the format defined by RFC3339,
    compartmentId String
    The OCID of the compartment that contains the masking report.
    definedTags Map<String,String>
    description String
    Description for the pre-masking report,
    displayName String
    The display name of the pre-masking report,
    freeformTags Map<String,String>
    maskingPolicyId String
    The OCID of the masking policy.
    state String
    The current state of the pre-masking report.
    targetId String
    The OCID of the target database masked.
    timeCreated String
    The date and time the pre-masking report was created, in the format defined by RFC3339,
    timeUpdated String
    The date and time the pre-masking report was updated, in the format defined by RFC3339,
    compartmentId string
    The OCID of the compartment that contains the masking report.
    definedTags {[key: string]: string}
    description string
    Description for the pre-masking report,
    displayName string
    The display name of the pre-masking report,
    freeformTags {[key: string]: string}
    maskingPolicyId string
    The OCID of the masking policy.
    state string
    The current state of the pre-masking report.
    targetId string
    The OCID of the target database masked.
    timeCreated string
    The date and time the pre-masking report was created, in the format defined by RFC3339,
    timeUpdated string
    The date and time the pre-masking report was updated, in the format defined by RFC3339,
    compartment_id str
    The OCID of the compartment that contains the masking report.
    defined_tags Mapping[str, str]
    description str
    Description for the pre-masking report,
    display_name str
    The display name of the pre-masking report,
    freeform_tags Mapping[str, str]
    masking_policy_id str
    The OCID of the masking policy.
    state str
    The current state of the pre-masking report.
    target_id str
    The OCID of the target database masked.
    time_created str
    The date and time the pre-masking report was created, in the format defined by RFC3339,
    time_updated str
    The date and time the pre-masking report was updated, in the format defined by RFC3339,
    compartmentId String
    The OCID of the compartment that contains the masking report.
    definedTags Map<String>
    description String
    Description for the pre-masking report,
    displayName String
    The display name of the pre-masking report,
    freeformTags Map<String>
    maskingPolicyId String
    The OCID of the masking policy.
    state String
    The current state of the pre-masking report.
    targetId String
    The OCID of the target database masked.
    timeCreated String
    The date and time the pre-masking report was created, in the format defined by RFC3339,
    timeUpdated String
    The date and time the pre-masking report was updated, in the format defined by RFC3339,

    Import

    Import is not supported for this resource.

    To learn more about importing existing cloud resources, see Importing resources.

    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 v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi