1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. UnsetSecurityAssessmentBaselineManagement
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

oci.DataSafe.UnsetSecurityAssessmentBaselineManagement

Explore with Pulumi AI

This resource provides the Unset Security Assessment Baseline management resource in Oracle Cloud Infrastructure Data Safe service.

Removes the baseline setting for the saved security assessment as the baseline in the compartment where the the specified assessment resides.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testUnsetSecurityAssessmentBaselineManagement = new oci.datasafe.UnsetSecurityAssessmentBaselineManagement("test_unset_security_assessment_baseline_management", {
    securityAssessmentId: testSetSecurityAssessmentBaselineManagement.securityAssessmentId,
    compartmentId: comaprtmentId,
});
Copy
import pulumi
import pulumi_oci as oci

test_unset_security_assessment_baseline_management = oci.data_safe.UnsetSecurityAssessmentBaselineManagement("test_unset_security_assessment_baseline_management",
    security_assessment_id=test_set_security_assessment_baseline_management["securityAssessmentId"],
    compartment_id=comaprtment_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.NewUnsetSecurityAssessmentBaselineManagement(ctx, "test_unset_security_assessment_baseline_management", &datasafe.UnsetSecurityAssessmentBaselineManagementArgs{
			SecurityAssessmentId: pulumi.Any(testSetSecurityAssessmentBaselineManagement.SecurityAssessmentId),
			CompartmentId:        pulumi.Any(comaprtmentId),
		})
		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 testUnsetSecurityAssessmentBaselineManagement = new Oci.DataSafe.UnsetSecurityAssessmentBaselineManagement("test_unset_security_assessment_baseline_management", new()
    {
        SecurityAssessmentId = testSetSecurityAssessmentBaselineManagement.SecurityAssessmentId,
        CompartmentId = comaprtmentId,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.UnsetSecurityAssessmentBaselineManagement;
import com.pulumi.oci.DataSafe.UnsetSecurityAssessmentBaselineManagementArgs;
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 testUnsetSecurityAssessmentBaselineManagement = new UnsetSecurityAssessmentBaselineManagement("testUnsetSecurityAssessmentBaselineManagement", UnsetSecurityAssessmentBaselineManagementArgs.builder()
            .securityAssessmentId(testSetSecurityAssessmentBaselineManagement.securityAssessmentId())
            .compartmentId(comaprtmentId)
            .build());

    }
}
Copy
resources:
  testUnsetSecurityAssessmentBaselineManagement:
    type: oci:DataSafe:UnsetSecurityAssessmentBaselineManagement
    name: test_unset_security_assessment_baseline_management
    properties:
      securityAssessmentId: ${testSetSecurityAssessmentBaselineManagement.securityAssessmentId}
      compartmentId: ${comaprtmentId}
Copy

Create UnsetSecurityAssessmentBaselineManagement Resource

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

Constructor syntax

new UnsetSecurityAssessmentBaselineManagement(name: string, args: UnsetSecurityAssessmentBaselineManagementArgs, opts?: CustomResourceOptions);
@overload
def UnsetSecurityAssessmentBaselineManagement(resource_name: str,
                                              args: UnsetSecurityAssessmentBaselineManagementArgs,
                                              opts: Optional[ResourceOptions] = None)

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

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. UnsetSecurityAssessmentBaselineManagementArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. UnsetSecurityAssessmentBaselineManagementArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. UnsetSecurityAssessmentBaselineManagementArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. UnsetSecurityAssessmentBaselineManagementArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. UnsetSecurityAssessmentBaselineManagementArgs
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 unsetSecurityAssessmentBaselineManagementResource = new Oci.DataSafe.UnsetSecurityAssessmentBaselineManagement("unsetSecurityAssessmentBaselineManagementResource", new()
{
    CompartmentId = "string",
    SecurityAssessmentId = "string",
});
Copy
example, err := datasafe.NewUnsetSecurityAssessmentBaselineManagement(ctx, "unsetSecurityAssessmentBaselineManagementResource", &datasafe.UnsetSecurityAssessmentBaselineManagementArgs{
	CompartmentId:        pulumi.String("string"),
	SecurityAssessmentId: pulumi.String("string"),
})
Copy
var unsetSecurityAssessmentBaselineManagementResource = new UnsetSecurityAssessmentBaselineManagement("unsetSecurityAssessmentBaselineManagementResource", UnsetSecurityAssessmentBaselineManagementArgs.builder()
    .compartmentId("string")
    .securityAssessmentId("string")
    .build());
Copy
unset_security_assessment_baseline_management_resource = oci.data_safe.UnsetSecurityAssessmentBaselineManagement("unsetSecurityAssessmentBaselineManagementResource",
    compartment_id="string",
    security_assessment_id="string")
Copy
const unsetSecurityAssessmentBaselineManagementResource = new oci.datasafe.UnsetSecurityAssessmentBaselineManagement("unsetSecurityAssessmentBaselineManagementResource", {
    compartmentId: "string",
    securityAssessmentId: "string",
});
Copy
type: oci:DataSafe:UnsetSecurityAssessmentBaselineManagement
properties:
    compartmentId: string
    securityAssessmentId: string
Copy

UnsetSecurityAssessmentBaselineManagement Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The UnsetSecurityAssessmentBaselineManagement resource accepts the following input properties:

CompartmentId
This property is required.
Changes to this property will trigger replacement.
string

The compartment OCID where the assessment resides.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

SecurityAssessmentId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the security assessment.
CompartmentId
This property is required.
Changes to this property will trigger replacement.
string

The compartment OCID where the assessment resides.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

SecurityAssessmentId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the security assessment.
compartmentId
This property is required.
Changes to this property will trigger replacement.
String

The compartment OCID where the assessment resides.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

securityAssessmentId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the security assessment.
compartmentId
This property is required.
Changes to this property will trigger replacement.
string

The compartment OCID where the assessment resides.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

securityAssessmentId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the security assessment.
compartment_id
This property is required.
Changes to this property will trigger replacement.
str

The compartment OCID where the assessment resides.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

security_assessment_id
This property is required.
Changes to this property will trigger replacement.
str
The OCID of the security assessment.
compartmentId
This property is required.
Changes to this property will trigger replacement.
String

The compartment OCID where the assessment resides.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

securityAssessmentId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the security assessment.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing UnsetSecurityAssessmentBaselineManagement Resource

Get an existing UnsetSecurityAssessmentBaselineManagement 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?: UnsetSecurityAssessmentBaselineManagementState, opts?: CustomResourceOptions): UnsetSecurityAssessmentBaselineManagement
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compartment_id: Optional[str] = None,
        security_assessment_id: Optional[str] = None) -> UnsetSecurityAssessmentBaselineManagement
func GetUnsetSecurityAssessmentBaselineManagement(ctx *Context, name string, id IDInput, state *UnsetSecurityAssessmentBaselineManagementState, opts ...ResourceOption) (*UnsetSecurityAssessmentBaselineManagement, error)
public static UnsetSecurityAssessmentBaselineManagement Get(string name, Input<string> id, UnsetSecurityAssessmentBaselineManagementState? state, CustomResourceOptions? opts = null)
public static UnsetSecurityAssessmentBaselineManagement get(String name, Output<String> id, UnsetSecurityAssessmentBaselineManagementState state, CustomResourceOptions options)
resources:  _:    type: oci:DataSafe:UnsetSecurityAssessmentBaselineManagement    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. string

The compartment OCID where the assessment resides.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

SecurityAssessmentId Changes to this property will trigger replacement. string
The OCID of the security assessment.
CompartmentId Changes to this property will trigger replacement. string

The compartment OCID where the assessment resides.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

SecurityAssessmentId Changes to this property will trigger replacement. string
The OCID of the security assessment.
compartmentId Changes to this property will trigger replacement. String

The compartment OCID where the assessment resides.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

securityAssessmentId Changes to this property will trigger replacement. String
The OCID of the security assessment.
compartmentId Changes to this property will trigger replacement. string

The compartment OCID where the assessment resides.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

securityAssessmentId Changes to this property will trigger replacement. string
The OCID of the security assessment.
compartment_id Changes to this property will trigger replacement. str

The compartment OCID where the assessment resides.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

security_assessment_id Changes to this property will trigger replacement. str
The OCID of the security assessment.
compartmentId Changes to this property will trigger replacement. String

The compartment OCID where the assessment resides.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

securityAssessmentId Changes to this property will trigger replacement. String
The OCID of the security assessment.

Import

UnsetSecurityAssessmentBaselineManagement can be imported using the id, e.g.

$ pulumi import oci:DataSafe/unsetSecurityAssessmentBaselineManagement:UnsetSecurityAssessmentBaselineManagement test_unset_security_assessment_baseline_management "id"
Copy

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.