1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. UnsetSecurityAssessmentBaselineManagement
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.DataSafe.UnsetSecurityAssessmentBaselineManagement

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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,
    });
    
    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)
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      testUnsetSecurityAssessmentBaselineManagement:
        type: oci:DataSafe:UnsetSecurityAssessmentBaselineManagement
        name: test_unset_security_assessment_baseline_management
        properties:
          securityAssessmentId: ${testSetSecurityAssessmentBaselineManagement.securityAssessmentId}
          compartmentId: ${comaprtmentId}
    

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

    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 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 string
    The OCID of the security assessment.
    CompartmentId 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 string
    The OCID of the security assessment.
    compartmentId 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 String
    The OCID of the security assessment.
    compartmentId 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 string
    The OCID of the security assessment.
    compartment_id 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 str
    The OCID of the security assessment.
    compartmentId 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 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)
    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 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 string
    The OCID of the security assessment.
    CompartmentId 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 string
    The OCID of the security assessment.
    compartmentId 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 String
    The OCID of the security assessment.
    compartmentId 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 string
    The OCID of the security assessment.
    compartment_id 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 str
    The OCID of the security assessment.
    compartmentId 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 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"
    

    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.17.0 published on Friday, Nov 15, 2024 by Pulumi