oci.DataSafe.MaskingPolicyHealthReportManagement
Explore with Pulumi AI
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/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:
- Compartment
Id string - The OCID of the compartment that contains the masking report.
- Masking
Policy stringId - The OCID of the masking policy.
- Target
Id string - The OCID of the target database masked.
- Compartment
Id string - The OCID of the compartment that contains the masking report.
- Masking
Policy stringId - The OCID of the masking policy.
- Target
Id string - The OCID of the target database masked.
- compartment
Id String - The OCID of the compartment that contains the masking report.
- masking
Policy StringId - The OCID of the masking policy.
- target
Id String - The OCID of the target database masked.
- compartment
Id string - The OCID of the compartment that contains the masking report.
- masking
Policy stringId - The OCID of the masking policy.
- target
Id string - The OCID of the target database masked.
- compartment_
id str - The OCID of the compartment that contains the masking report.
- masking_
policy_ strid - The OCID of the masking policy.
- target_
id str - The OCID of the target database masked.
- compartment
Id String - The OCID of the compartment that contains the masking report.
- masking
Policy StringId - The OCID of the masking policy.
- target
Id 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:
- Dictionary<string, object>
- Description string
- Description for the pre-masking report,
- Display
Name string - The display name of the pre-masking report,
- Dictionary<string, object>
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current state of the pre-masking report.
- Time
Created string - The date and time the pre-masking report was created, in the format defined by RFC3339,
- Time
Updated string - The date and time the pre-masking report was updated, in the format defined by RFC3339,
- map[string]interface{}
- Description string
- Description for the pre-masking report,
- Display
Name string - The display name of the pre-masking report,
- map[string]interface{}
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current state of the pre-masking report.
- Time
Created string - The date and time the pre-masking report was created, in the format defined by RFC3339,
- Time
Updated string - The date and time the pre-masking report was updated, in the format defined by RFC3339,
- Map<String,Object>
- description String
- Description for the pre-masking report,
- display
Name String - The display name of the pre-masking report,
- Map<String,Object>
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The current state of the pre-masking report.
- time
Created String - The date and time the pre-masking report was created, in the format defined by RFC3339,
- time
Updated String - The date and time the pre-masking report was updated, in the format defined by RFC3339,
- {[key: string]: any}
- description string
- Description for the pre-masking report,
- display
Name string - The display name of the pre-masking report,
- {[key: string]: any}
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- The current state of the pre-masking report.
- time
Created string - The date and time the pre-masking report was created, in the format defined by RFC3339,
- time
Updated string - The date and time the pre-masking report was updated, in the format defined by RFC3339,
- Mapping[str, Any]
- description str
- Description for the pre-masking report,
- display_
name str - The display name of the pre-masking report,
- Mapping[str, Any]
- 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,
- Map<Any>
- description String
- Description for the pre-masking report,
- display
Name String - The display name of the pre-masking report,
- Map<Any>
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The current state of the pre-masking report.
- time
Created String - The date and time the pre-masking report was created, in the format defined by RFC3339,
- time
Updated 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, Any]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = 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.
- Compartment
Id string - The OCID of the compartment that contains the masking report.
- Dictionary<string, object>
- Description string
- Description for the pre-masking report,
- Display
Name string - The display name of the pre-masking report,
- Dictionary<string, object>
- Masking
Policy stringId - The OCID of the masking policy.
- State string
- The current state of the pre-masking report.
- Target
Id string - The OCID of the target database masked.
- Time
Created string - The date and time the pre-masking report was created, in the format defined by RFC3339,
- Time
Updated string - The date and time the pre-masking report was updated, in the format defined by RFC3339,
- Compartment
Id string - The OCID of the compartment that contains the masking report.
- map[string]interface{}
- Description string
- Description for the pre-masking report,
- Display
Name string - The display name of the pre-masking report,
- map[string]interface{}
- Masking
Policy stringId - The OCID of the masking policy.
- State string
- The current state of the pre-masking report.
- Target
Id string - The OCID of the target database masked.
- Time
Created string - The date and time the pre-masking report was created, in the format defined by RFC3339,
- Time
Updated string - The date and time the pre-masking report was updated, in the format defined by RFC3339,
- compartment
Id String - The OCID of the compartment that contains the masking report.
- Map<String,Object>
- description String
- Description for the pre-masking report,
- display
Name String - The display name of the pre-masking report,
- Map<String,Object>
- masking
Policy StringId - The OCID of the masking policy.
- state String
- The current state of the pre-masking report.
- target
Id String - The OCID of the target database masked.
- time
Created String - The date and time the pre-masking report was created, in the format defined by RFC3339,
- time
Updated String - The date and time the pre-masking report was updated, in the format defined by RFC3339,
- compartment
Id string - The OCID of the compartment that contains the masking report.
- {[key: string]: any}
- description string
- Description for the pre-masking report,
- display
Name string - The display name of the pre-masking report,
- {[key: string]: any}
- masking
Policy stringId - The OCID of the masking policy.
- state string
- The current state of the pre-masking report.
- target
Id string - The OCID of the target database masked.
- time
Created string - The date and time the pre-masking report was created, in the format defined by RFC3339,
- time
Updated 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.
- Mapping[str, Any]
- description str
- Description for the pre-masking report,
- display_
name str - The display name of the pre-masking report,
- Mapping[str, Any]
- masking_
policy_ strid - 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,
- compartment
Id String - The OCID of the compartment that contains the masking report.
- Map<Any>
- description String
- Description for the pre-masking report,
- display
Name String - The display name of the pre-masking report,
- Map<Any>
- masking
Policy StringId - The OCID of the masking policy.
- state String
- The current state of the pre-masking report.
- target
Id String - The OCID of the target database masked.
- time
Created String - The date and time the pre-masking report was created, in the format defined by RFC3339,
- time
Updated 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.