1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getUserAssessments
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.DataSafe.getUserAssessments

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This data source provides the list of User Assessments in Oracle Cloud Infrastructure Data Safe service.

    Gets a list of user assessments.

    The ListUserAssessments operation returns only the assessments in the specified compartmentId. The list does not include any subcompartments of the compartmentId passed.

    The parameter accessLevel specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if Principal doesn’t have access to even one of the child compartments. This is valid only when compartmentIdInSubtree is set to true.

    The parameter compartmentIdInSubtree applies when you perform ListUserAssessments on the compartmentId passed and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter compartmentIdInSubtree to true and accessLevel to ACCESSIBLE.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testUserAssessments = oci.DataSafe.getUserAssessments({
        compartmentId: _var.compartment_id,
        accessLevel: _var.user_assessment_access_level,
        compartmentIdInSubtree: _var.user_assessment_compartment_id_in_subtree,
        displayName: _var.user_assessment_display_name,
        isBaseline: _var.user_assessment_is_baseline,
        isScheduleAssessment: _var.user_assessment_is_schedule_assessment,
        scheduleUserAssessmentId: oci_data_safe_user_assessment.test_user_assessment.id,
        state: _var.user_assessment_state,
        targetId: oci_cloud_guard_target.test_target.id,
        timeCreatedGreaterThanOrEqualTo: _var.user_assessment_time_created_greater_than_or_equal_to,
        timeCreatedLessThan: _var.user_assessment_time_created_less_than,
        triggeredBy: _var.user_assessment_triggered_by,
        type: _var.user_assessment_type,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_user_assessments = oci.DataSafe.get_user_assessments(compartment_id=var["compartment_id"],
        access_level=var["user_assessment_access_level"],
        compartment_id_in_subtree=var["user_assessment_compartment_id_in_subtree"],
        display_name=var["user_assessment_display_name"],
        is_baseline=var["user_assessment_is_baseline"],
        is_schedule_assessment=var["user_assessment_is_schedule_assessment"],
        schedule_user_assessment_id=oci_data_safe_user_assessment["test_user_assessment"]["id"],
        state=var["user_assessment_state"],
        target_id=oci_cloud_guard_target["test_target"]["id"],
        time_created_greater_than_or_equal_to=var["user_assessment_time_created_greater_than_or_equal_to"],
        time_created_less_than=var["user_assessment_time_created_less_than"],
        triggered_by=var["user_assessment_triggered_by"],
        type=var["user_assessment_type"])
    
    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.GetUserAssessments(ctx, &datasafe.GetUserAssessmentsArgs{
    			CompartmentId:                   _var.Compartment_id,
    			AccessLevel:                     pulumi.StringRef(_var.User_assessment_access_level),
    			CompartmentIdInSubtree:          pulumi.BoolRef(_var.User_assessment_compartment_id_in_subtree),
    			DisplayName:                     pulumi.StringRef(_var.User_assessment_display_name),
    			IsBaseline:                      pulumi.BoolRef(_var.User_assessment_is_baseline),
    			IsScheduleAssessment:            pulumi.BoolRef(_var.User_assessment_is_schedule_assessment),
    			ScheduleUserAssessmentId:        pulumi.StringRef(oci_data_safe_user_assessment.Test_user_assessment.Id),
    			State:                           pulumi.StringRef(_var.User_assessment_state),
    			TargetId:                        pulumi.StringRef(oci_cloud_guard_target.Test_target.Id),
    			TimeCreatedGreaterThanOrEqualTo: pulumi.StringRef(_var.User_assessment_time_created_greater_than_or_equal_to),
    			TimeCreatedLessThan:             pulumi.StringRef(_var.User_assessment_time_created_less_than),
    			TriggeredBy:                     pulumi.StringRef(_var.User_assessment_triggered_by),
    			Type:                            pulumi.StringRef(_var.User_assessment_type),
    		}, 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 testUserAssessments = Oci.DataSafe.GetUserAssessments.Invoke(new()
        {
            CompartmentId = @var.Compartment_id,
            AccessLevel = @var.User_assessment_access_level,
            CompartmentIdInSubtree = @var.User_assessment_compartment_id_in_subtree,
            DisplayName = @var.User_assessment_display_name,
            IsBaseline = @var.User_assessment_is_baseline,
            IsScheduleAssessment = @var.User_assessment_is_schedule_assessment,
            ScheduleUserAssessmentId = oci_data_safe_user_assessment.Test_user_assessment.Id,
            State = @var.User_assessment_state,
            TargetId = oci_cloud_guard_target.Test_target.Id,
            TimeCreatedGreaterThanOrEqualTo = @var.User_assessment_time_created_greater_than_or_equal_to,
            TimeCreatedLessThan = @var.User_assessment_time_created_less_than,
            TriggeredBy = @var.User_assessment_triggered_by,
            Type = @var.User_assessment_type,
        });
    
    });
    
    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.GetUserAssessmentsArgs;
    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 testUserAssessments = DataSafeFunctions.getUserAssessments(GetUserAssessmentsArgs.builder()
                .compartmentId(var_.compartment_id())
                .accessLevel(var_.user_assessment_access_level())
                .compartmentIdInSubtree(var_.user_assessment_compartment_id_in_subtree())
                .displayName(var_.user_assessment_display_name())
                .isBaseline(var_.user_assessment_is_baseline())
                .isScheduleAssessment(var_.user_assessment_is_schedule_assessment())
                .scheduleUserAssessmentId(oci_data_safe_user_assessment.test_user_assessment().id())
                .state(var_.user_assessment_state())
                .targetId(oci_cloud_guard_target.test_target().id())
                .timeCreatedGreaterThanOrEqualTo(var_.user_assessment_time_created_greater_than_or_equal_to())
                .timeCreatedLessThan(var_.user_assessment_time_created_less_than())
                .triggeredBy(var_.user_assessment_triggered_by())
                .type(var_.user_assessment_type())
                .build());
    
        }
    }
    
    variables:
      testUserAssessments:
        fn::invoke:
          Function: oci:DataSafe:getUserAssessments
          Arguments:
            compartmentId: ${var.compartment_id}
            accessLevel: ${var.user_assessment_access_level}
            compartmentIdInSubtree: ${var.user_assessment_compartment_id_in_subtree}
            displayName: ${var.user_assessment_display_name}
            isBaseline: ${var.user_assessment_is_baseline}
            isScheduleAssessment: ${var.user_assessment_is_schedule_assessment}
            scheduleUserAssessmentId: ${oci_data_safe_user_assessment.test_user_assessment.id}
            state: ${var.user_assessment_state}
            targetId: ${oci_cloud_guard_target.test_target.id}
            timeCreatedGreaterThanOrEqualTo: ${var.user_assessment_time_created_greater_than_or_equal_to}
            timeCreatedLessThan: ${var.user_assessment_time_created_less_than}
            triggeredBy: ${var.user_assessment_triggered_by}
            type: ${var.user_assessment_type}
    

    Using getUserAssessments

    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 getUserAssessments(args: GetUserAssessmentsArgs, opts?: InvokeOptions): Promise<GetUserAssessmentsResult>
    function getUserAssessmentsOutput(args: GetUserAssessmentsOutputArgs, opts?: InvokeOptions): Output<GetUserAssessmentsResult>
    def get_user_assessments(access_level: Optional[str] = None,
                             compartment_id: Optional[str] = None,
                             compartment_id_in_subtree: Optional[bool] = None,
                             display_name: Optional[str] = None,
                             filters: Optional[Sequence[_datasafe.GetUserAssessmentsFilter]] = None,
                             is_baseline: Optional[bool] = None,
                             is_schedule_assessment: Optional[bool] = None,
                             schedule_user_assessment_id: Optional[str] = None,
                             state: Optional[str] = None,
                             target_id: Optional[str] = None,
                             time_created_greater_than_or_equal_to: Optional[str] = None,
                             time_created_less_than: Optional[str] = None,
                             triggered_by: Optional[str] = None,
                             type: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetUserAssessmentsResult
    def get_user_assessments_output(access_level: Optional[pulumi.Input[str]] = None,
                             compartment_id: Optional[pulumi.Input[str]] = None,
                             compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
                             display_name: Optional[pulumi.Input[str]] = None,
                             filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datasafe.GetUserAssessmentsFilterArgs]]]] = None,
                             is_baseline: Optional[pulumi.Input[bool]] = None,
                             is_schedule_assessment: Optional[pulumi.Input[bool]] = None,
                             schedule_user_assessment_id: Optional[pulumi.Input[str]] = None,
                             state: Optional[pulumi.Input[str]] = None,
                             target_id: Optional[pulumi.Input[str]] = None,
                             time_created_greater_than_or_equal_to: Optional[pulumi.Input[str]] = None,
                             time_created_less_than: Optional[pulumi.Input[str]] = None,
                             triggered_by: Optional[pulumi.Input[str]] = None,
                             type: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetUserAssessmentsResult]
    func GetUserAssessments(ctx *Context, args *GetUserAssessmentsArgs, opts ...InvokeOption) (*GetUserAssessmentsResult, error)
    func GetUserAssessmentsOutput(ctx *Context, args *GetUserAssessmentsOutputArgs, opts ...InvokeOption) GetUserAssessmentsResultOutput

    > Note: This function is named GetUserAssessments in the Go SDK.

    public static class GetUserAssessments 
    {
        public static Task<GetUserAssessmentsResult> InvokeAsync(GetUserAssessmentsArgs args, InvokeOptions? opts = null)
        public static Output<GetUserAssessmentsResult> Invoke(GetUserAssessmentsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetUserAssessmentsResult> getUserAssessments(GetUserAssessmentsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DataSafe/getUserAssessments:getUserAssessments
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    A filter to return only resources that match the specified compartment OCID.
    AccessLevel string
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    CompartmentIdInSubtree bool
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
    DisplayName string
    A filter to return only resources that match the specified display name.
    Filters List<GetUserAssessmentsFilter>
    IsBaseline bool
    A filter to return only user assessments that are set as baseline.
    IsScheduleAssessment bool
    A filter to return only user assessments of type SAVE_SCHEDULE.
    ScheduleUserAssessmentId string
    The OCID of the user assessment of type SAVE_SCHEDULE.
    State string
    The current state of the user assessment.
    TargetId string
    A filter to return only items related to a specific target OCID.
    TimeCreatedGreaterThanOrEqualTo string

    A filter to return only user assessments that were created after the specified date and time, as defined by RFC3339. Using timeCreatedGreaterThanOrEqualTo parameter retrieves all assessments created after that date.

    Example: 2016-12-19T16:39:57.600Z

    TimeCreatedLessThan string

    Search for resources that were created before a specific date. Specifying this parameter corresponding timeCreatedLessThan parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.

    Example: 2016-12-19T16:39:57.600Z

    TriggeredBy string
    A filter to return user assessments that were created by either the system or by a user only.
    Type string
    A filter to return only items that match the specified assessment type.
    CompartmentId string
    A filter to return only resources that match the specified compartment OCID.
    AccessLevel string
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    CompartmentIdInSubtree bool
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
    DisplayName string
    A filter to return only resources that match the specified display name.
    Filters []GetUserAssessmentsFilter
    IsBaseline bool
    A filter to return only user assessments that are set as baseline.
    IsScheduleAssessment bool
    A filter to return only user assessments of type SAVE_SCHEDULE.
    ScheduleUserAssessmentId string
    The OCID of the user assessment of type SAVE_SCHEDULE.
    State string
    The current state of the user assessment.
    TargetId string
    A filter to return only items related to a specific target OCID.
    TimeCreatedGreaterThanOrEqualTo string

    A filter to return only user assessments that were created after the specified date and time, as defined by RFC3339. Using timeCreatedGreaterThanOrEqualTo parameter retrieves all assessments created after that date.

    Example: 2016-12-19T16:39:57.600Z

    TimeCreatedLessThan string

    Search for resources that were created before a specific date. Specifying this parameter corresponding timeCreatedLessThan parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.

    Example: 2016-12-19T16:39:57.600Z

    TriggeredBy string
    A filter to return user assessments that were created by either the system or by a user only.
    Type string
    A filter to return only items that match the specified assessment type.
    compartmentId String
    A filter to return only resources that match the specified compartment OCID.
    accessLevel String
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    compartmentIdInSubtree Boolean
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
    displayName String
    A filter to return only resources that match the specified display name.
    filters List<GetUserAssessmentsFilter>
    isBaseline Boolean
    A filter to return only user assessments that are set as baseline.
    isScheduleAssessment Boolean
    A filter to return only user assessments of type SAVE_SCHEDULE.
    scheduleUserAssessmentId String
    The OCID of the user assessment of type SAVE_SCHEDULE.
    state String
    The current state of the user assessment.
    targetId String
    A filter to return only items related to a specific target OCID.
    timeCreatedGreaterThanOrEqualTo String

    A filter to return only user assessments that were created after the specified date and time, as defined by RFC3339. Using timeCreatedGreaterThanOrEqualTo parameter retrieves all assessments created after that date.

    Example: 2016-12-19T16:39:57.600Z

    timeCreatedLessThan String

    Search for resources that were created before a specific date. Specifying this parameter corresponding timeCreatedLessThan parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.

    Example: 2016-12-19T16:39:57.600Z

    triggeredBy String
    A filter to return user assessments that were created by either the system or by a user only.
    type String
    A filter to return only items that match the specified assessment type.
    compartmentId string
    A filter to return only resources that match the specified compartment OCID.
    accessLevel string
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    compartmentIdInSubtree boolean
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
    displayName string
    A filter to return only resources that match the specified display name.
    filters GetUserAssessmentsFilter[]
    isBaseline boolean
    A filter to return only user assessments that are set as baseline.
    isScheduleAssessment boolean
    A filter to return only user assessments of type SAVE_SCHEDULE.
    scheduleUserAssessmentId string
    The OCID of the user assessment of type SAVE_SCHEDULE.
    state string
    The current state of the user assessment.
    targetId string
    A filter to return only items related to a specific target OCID.
    timeCreatedGreaterThanOrEqualTo string

    A filter to return only user assessments that were created after the specified date and time, as defined by RFC3339. Using timeCreatedGreaterThanOrEqualTo parameter retrieves all assessments created after that date.

    Example: 2016-12-19T16:39:57.600Z

    timeCreatedLessThan string

    Search for resources that were created before a specific date. Specifying this parameter corresponding timeCreatedLessThan parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.

    Example: 2016-12-19T16:39:57.600Z

    triggeredBy string
    A filter to return user assessments that were created by either the system or by a user only.
    type string
    A filter to return only items that match the specified assessment type.
    compartment_id str
    A filter to return only resources that match the specified compartment OCID.
    access_level str
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    compartment_id_in_subtree bool
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
    display_name str
    A filter to return only resources that match the specified display name.
    filters Sequence[datasafe.GetUserAssessmentsFilter]
    is_baseline bool
    A filter to return only user assessments that are set as baseline.
    is_schedule_assessment bool
    A filter to return only user assessments of type SAVE_SCHEDULE.
    schedule_user_assessment_id str
    The OCID of the user assessment of type SAVE_SCHEDULE.
    state str
    The current state of the user assessment.
    target_id str
    A filter to return only items related to a specific target OCID.
    time_created_greater_than_or_equal_to str

    A filter to return only user assessments that were created after the specified date and time, as defined by RFC3339. Using timeCreatedGreaterThanOrEqualTo parameter retrieves all assessments created after that date.

    Example: 2016-12-19T16:39:57.600Z

    time_created_less_than str

    Search for resources that were created before a specific date. Specifying this parameter corresponding timeCreatedLessThan parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.

    Example: 2016-12-19T16:39:57.600Z

    triggered_by str
    A filter to return user assessments that were created by either the system or by a user only.
    type str
    A filter to return only items that match the specified assessment type.
    compartmentId String
    A filter to return only resources that match the specified compartment OCID.
    accessLevel String
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    compartmentIdInSubtree Boolean
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
    displayName String
    A filter to return only resources that match the specified display name.
    filters List<Property Map>
    isBaseline Boolean
    A filter to return only user assessments that are set as baseline.
    isScheduleAssessment Boolean
    A filter to return only user assessments of type SAVE_SCHEDULE.
    scheduleUserAssessmentId String
    The OCID of the user assessment of type SAVE_SCHEDULE.
    state String
    The current state of the user assessment.
    targetId String
    A filter to return only items related to a specific target OCID.
    timeCreatedGreaterThanOrEqualTo String

    A filter to return only user assessments that were created after the specified date and time, as defined by RFC3339. Using timeCreatedGreaterThanOrEqualTo parameter retrieves all assessments created after that date.

    Example: 2016-12-19T16:39:57.600Z

    timeCreatedLessThan String

    Search for resources that were created before a specific date. Specifying this parameter corresponding timeCreatedLessThan parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.

    Example: 2016-12-19T16:39:57.600Z

    triggeredBy String
    A filter to return user assessments that were created by either the system or by a user only.
    type String
    A filter to return only items that match the specified assessment type.

    getUserAssessments Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment that contains the user assessment.
    Id string
    The provider-assigned unique ID for this managed resource.
    IgnoredTargets List<GetUserAssessmentsIgnoredTarget>
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    UserAssessments List<GetUserAssessmentsUserAssessment>
    The list of user_assessments.
    AccessLevel string
    CompartmentIdInSubtree bool
    DisplayName string
    The display name of the user assessment.
    Filters List<GetUserAssessmentsFilter>
    IsBaseline bool
    Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
    IsScheduleAssessment bool
    ScheduleUserAssessmentId string
    State string
    The current state of the user assessment.
    TargetId string
    TimeCreatedGreaterThanOrEqualTo string
    TimeCreatedLessThan string
    TriggeredBy string
    Indicates whether the user assessment was created by the system or the user.
    Type string
    The type of the user assessment. The possible types are:
    CompartmentId string
    The OCID of the compartment that contains the user assessment.
    Id string
    The provider-assigned unique ID for this managed resource.
    IgnoredTargets []GetUserAssessmentsIgnoredTarget
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    UserAssessments []GetUserAssessmentsUserAssessment
    The list of user_assessments.
    AccessLevel string
    CompartmentIdInSubtree bool
    DisplayName string
    The display name of the user assessment.
    Filters []GetUserAssessmentsFilter
    IsBaseline bool
    Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
    IsScheduleAssessment bool
    ScheduleUserAssessmentId string
    State string
    The current state of the user assessment.
    TargetId string
    TimeCreatedGreaterThanOrEqualTo string
    TimeCreatedLessThan string
    TriggeredBy string
    Indicates whether the user assessment was created by the system or the user.
    Type string
    The type of the user assessment. The possible types are:
    compartmentId String
    The OCID of the compartment that contains the user assessment.
    id String
    The provider-assigned unique ID for this managed resource.
    ignoredTargets List<GetUserAssessmentsIgnoredTarget>
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    userAssessments List<GetUserAssessmentsUserAssessment>
    The list of user_assessments.
    accessLevel String
    compartmentIdInSubtree Boolean
    displayName String
    The display name of the user assessment.
    filters List<GetUserAssessmentsFilter>
    isBaseline Boolean
    Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
    isScheduleAssessment Boolean
    scheduleUserAssessmentId String
    state String
    The current state of the user assessment.
    targetId String
    timeCreatedGreaterThanOrEqualTo String
    timeCreatedLessThan String
    triggeredBy String
    Indicates whether the user assessment was created by the system or the user.
    type String
    The type of the user assessment. The possible types are:
    compartmentId string
    The OCID of the compartment that contains the user assessment.
    id string
    The provider-assigned unique ID for this managed resource.
    ignoredTargets GetUserAssessmentsIgnoredTarget[]
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    userAssessments GetUserAssessmentsUserAssessment[]
    The list of user_assessments.
    accessLevel string
    compartmentIdInSubtree boolean
    displayName string
    The display name of the user assessment.
    filters GetUserAssessmentsFilter[]
    isBaseline boolean
    Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
    isScheduleAssessment boolean
    scheduleUserAssessmentId string
    state string
    The current state of the user assessment.
    targetId string
    timeCreatedGreaterThanOrEqualTo string
    timeCreatedLessThan string
    triggeredBy string
    Indicates whether the user assessment was created by the system or the user.
    type string
    The type of the user assessment. The possible types are:
    compartment_id str
    The OCID of the compartment that contains the user assessment.
    id str
    The provider-assigned unique ID for this managed resource.
    ignored_targets Sequence[datasafe.GetUserAssessmentsIgnoredTarget]
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    user_assessments Sequence[datasafe.GetUserAssessmentsUserAssessment]
    The list of user_assessments.
    access_level str
    compartment_id_in_subtree bool
    display_name str
    The display name of the user assessment.
    filters Sequence[datasafe.GetUserAssessmentsFilter]
    is_baseline bool
    Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
    is_schedule_assessment bool
    schedule_user_assessment_id str
    state str
    The current state of the user assessment.
    target_id str
    time_created_greater_than_or_equal_to str
    time_created_less_than str
    triggered_by str
    Indicates whether the user assessment was created by the system or the user.
    type str
    The type of the user assessment. The possible types are:
    compartmentId String
    The OCID of the compartment that contains the user assessment.
    id String
    The provider-assigned unique ID for this managed resource.
    ignoredTargets List<Property Map>
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    userAssessments List<Property Map>
    The list of user_assessments.
    accessLevel String
    compartmentIdInSubtree Boolean
    displayName String
    The display name of the user assessment.
    filters List<Property Map>
    isBaseline Boolean
    Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
    isScheduleAssessment Boolean
    scheduleUserAssessmentId String
    state String
    The current state of the user assessment.
    targetId String
    timeCreatedGreaterThanOrEqualTo String
    timeCreatedLessThan String
    triggeredBy String
    Indicates whether the user assessment was created by the system or the user.
    type String
    The type of the user assessment. The possible types are:

    Supporting Types

    GetUserAssessmentsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetUserAssessmentsIgnoredTarget

    LifecycleState string
    TargetId string
    A filter to return only items related to a specific target OCID.
    UserAssessmentId string
    LifecycleState string
    TargetId string
    A filter to return only items related to a specific target OCID.
    UserAssessmentId string
    lifecycleState String
    targetId String
    A filter to return only items related to a specific target OCID.
    userAssessmentId String
    lifecycleState string
    targetId string
    A filter to return only items related to a specific target OCID.
    userAssessmentId string
    lifecycle_state str
    target_id str
    A filter to return only items related to a specific target OCID.
    user_assessment_id str
    lifecycleState String
    targetId String
    A filter to return only items related to a specific target OCID.
    userAssessmentId String

    GetUserAssessmentsUserAssessment

    CompartmentId string
    A filter to return only resources that match the specified compartment OCID.
    DefinedTags Dictionary<string, object>
    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 user assessment.
    DisplayName string
    A filter to return only resources that match the specified display name.
    FreeformTags Dictionary<string, object>
    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 OCID of the user assessment.
    IgnoredAssessmentIds List<string>
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    IgnoredTargets List<GetUserAssessmentsUserAssessmentIgnoredTarget>
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    IsBaseline bool
    A filter to return only user assessments that are set as baseline.
    IsDeviatedFromBaseline bool
    Indicates if the user assessment deviates from the baseline.
    LastComparedBaselineId string
    The OCID of the last user assessment baseline against which the latest assessment was compared.
    LifecycleDetails string
    Details about the current state of the user assessment.
    Schedule string
    Schedule of the assessment that runs periodically in this specified format: ;
    ScheduleAssessmentId string
    The OCID of the user assessment that is responsible for creating this scheduled save assessment.
    State string
    The current state of the user assessment.
    Statistics string
    Map that contains maps of values. Example: {"Operations": {"CostCenter": "42"}}
    SystemTags Dictionary<string, object>
    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"}
    TargetId string
    A filter to return only items related to a specific target OCID.
    TargetIds List<string>
    Array of database target OCIDs.
    TimeCreated string
    The date and time the user assessment was created, in the format defined by RFC3339.
    TimeLastAssessed string
    The date and time the user assessment was last executed, in the format defined by RFC3339.
    TimeUpdated string
    The date and time the user assessment was last updated, in the format defined by RFC3339.
    TriggeredBy string
    A filter to return user assessments that were created by either the system or by a user only.
    Type string
    A filter to return only items that match the specified assessment type.
    CompartmentId string
    A filter to return only resources that match the specified compartment OCID.
    DefinedTags map[string]interface{}
    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 user assessment.
    DisplayName string
    A filter to return only resources that match the specified display name.
    FreeformTags map[string]interface{}
    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 OCID of the user assessment.
    IgnoredAssessmentIds []string
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    IgnoredTargets []GetUserAssessmentsUserAssessmentIgnoredTarget
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    IsBaseline bool
    A filter to return only user assessments that are set as baseline.
    IsDeviatedFromBaseline bool
    Indicates if the user assessment deviates from the baseline.
    LastComparedBaselineId string
    The OCID of the last user assessment baseline against which the latest assessment was compared.
    LifecycleDetails string
    Details about the current state of the user assessment.
    Schedule string
    Schedule of the assessment that runs periodically in this specified format: ;
    ScheduleAssessmentId string
    The OCID of the user assessment that is responsible for creating this scheduled save assessment.
    State string
    The current state of the user assessment.
    Statistics string
    Map that contains maps of values. Example: {"Operations": {"CostCenter": "42"}}
    SystemTags map[string]interface{}
    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"}
    TargetId string
    A filter to return only items related to a specific target OCID.
    TargetIds []string
    Array of database target OCIDs.
    TimeCreated string
    The date and time the user assessment was created, in the format defined by RFC3339.
    TimeLastAssessed string
    The date and time the user assessment was last executed, in the format defined by RFC3339.
    TimeUpdated string
    The date and time the user assessment was last updated, in the format defined by RFC3339.
    TriggeredBy string
    A filter to return user assessments that were created by either the system or by a user only.
    Type string
    A filter to return only items that match the specified assessment type.
    compartmentId String
    A filter to return only resources that match the specified compartment OCID.
    definedTags Map<String,Object>
    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 user assessment.
    displayName String
    A filter to return only resources that match the specified display name.
    freeformTags Map<String,Object>
    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 OCID of the user assessment.
    ignoredAssessmentIds List<String>
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    ignoredTargets List<GetUserAssessmentsUserAssessmentIgnoredTarget>
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    isBaseline Boolean
    A filter to return only user assessments that are set as baseline.
    isDeviatedFromBaseline Boolean
    Indicates if the user assessment deviates from the baseline.
    lastComparedBaselineId String
    The OCID of the last user assessment baseline against which the latest assessment was compared.
    lifecycleDetails String
    Details about the current state of the user assessment.
    schedule String
    Schedule of the assessment that runs periodically in this specified format: ;
    scheduleAssessmentId String
    The OCID of the user assessment that is responsible for creating this scheduled save assessment.
    state String
    The current state of the user assessment.
    statistics String
    Map that contains maps of values. Example: {"Operations": {"CostCenter": "42"}}
    systemTags Map<String,Object>
    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"}
    targetId String
    A filter to return only items related to a specific target OCID.
    targetIds List<String>
    Array of database target OCIDs.
    timeCreated String
    The date and time the user assessment was created, in the format defined by RFC3339.
    timeLastAssessed String
    The date and time the user assessment was last executed, in the format defined by RFC3339.
    timeUpdated String
    The date and time the user assessment was last updated, in the format defined by RFC3339.
    triggeredBy String
    A filter to return user assessments that were created by either the system or by a user only.
    type String
    A filter to return only items that match the specified assessment type.
    compartmentId string
    A filter to return only resources that match the specified compartment OCID.
    definedTags {[key: string]: any}
    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 user assessment.
    displayName string
    A filter to return only resources that match the specified display name.
    freeformTags {[key: string]: any}
    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 OCID of the user assessment.
    ignoredAssessmentIds string[]
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    ignoredTargets GetUserAssessmentsUserAssessmentIgnoredTarget[]
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    isBaseline boolean
    A filter to return only user assessments that are set as baseline.
    isDeviatedFromBaseline boolean
    Indicates if the user assessment deviates from the baseline.
    lastComparedBaselineId string
    The OCID of the last user assessment baseline against which the latest assessment was compared.
    lifecycleDetails string
    Details about the current state of the user assessment.
    schedule string
    Schedule of the assessment that runs periodically in this specified format: ;
    scheduleAssessmentId string
    The OCID of the user assessment that is responsible for creating this scheduled save assessment.
    state string
    The current state of the user assessment.
    statistics string
    Map that contains maps of values. Example: {"Operations": {"CostCenter": "42"}}
    systemTags {[key: string]: any}
    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"}
    targetId string
    A filter to return only items related to a specific target OCID.
    targetIds string[]
    Array of database target OCIDs.
    timeCreated string
    The date and time the user assessment was created, in the format defined by RFC3339.
    timeLastAssessed string
    The date and time the user assessment was last executed, in the format defined by RFC3339.
    timeUpdated string
    The date and time the user assessment was last updated, in the format defined by RFC3339.
    triggeredBy string
    A filter to return user assessments that were created by either the system or by a user only.
    type string
    A filter to return only items that match the specified assessment type.
    compartment_id str
    A filter to return only resources that match the specified compartment OCID.
    defined_tags Mapping[str, Any]
    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 user assessment.
    display_name str
    A filter to return only resources that match the specified display name.
    freeform_tags Mapping[str, Any]
    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 OCID of the user assessment.
    ignored_assessment_ids Sequence[str]
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    ignored_targets Sequence[datasafe.GetUserAssessmentsUserAssessmentIgnoredTarget]
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    is_baseline bool
    A filter to return only user assessments that are set as baseline.
    is_deviated_from_baseline bool
    Indicates if the user assessment deviates from the baseline.
    last_compared_baseline_id str
    The OCID of the last user assessment baseline against which the latest assessment was compared.
    lifecycle_details str
    Details about the current state of the user assessment.
    schedule str
    Schedule of the assessment that runs periodically in this specified format: ;
    schedule_assessment_id str
    The OCID of the user assessment that is responsible for creating this scheduled save assessment.
    state str
    The current state of the user assessment.
    statistics str
    Map that contains maps of values. Example: {"Operations": {"CostCenter": "42"}}
    system_tags Mapping[str, Any]
    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
    A filter to return only items related to a specific target OCID.
    target_ids Sequence[str]
    Array of database target OCIDs.
    time_created str
    The date and time the user assessment was created, in the format defined by RFC3339.
    time_last_assessed str
    The date and time the user assessment was last executed, in the format defined by RFC3339.
    time_updated str
    The date and time the user assessment was last updated, in the format defined by RFC3339.
    triggered_by str
    A filter to return user assessments that were created by either the system or by a user only.
    type str
    A filter to return only items that match the specified assessment type.
    compartmentId String
    A filter to return only resources that match the specified compartment OCID.
    definedTags Map<Any>
    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 user assessment.
    displayName String
    A filter to return only resources that match the specified display name.
    freeformTags Map<Any>
    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 OCID of the user assessment.
    ignoredAssessmentIds List<String>
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    ignoredTargets List<Property Map>
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    isBaseline Boolean
    A filter to return only user assessments that are set as baseline.
    isDeviatedFromBaseline Boolean
    Indicates if the user assessment deviates from the baseline.
    lastComparedBaselineId String
    The OCID of the last user assessment baseline against which the latest assessment was compared.
    lifecycleDetails String
    Details about the current state of the user assessment.
    schedule String
    Schedule of the assessment that runs periodically in this specified format: ;
    scheduleAssessmentId String
    The OCID of the user assessment that is responsible for creating this scheduled save assessment.
    state String
    The current state of the user assessment.
    statistics String
    Map that contains maps of values. Example: {"Operations": {"CostCenter": "42"}}
    systemTags Map<Any>
    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"}
    targetId String
    A filter to return only items related to a specific target OCID.
    targetIds List<String>
    Array of database target OCIDs.
    timeCreated String
    The date and time the user assessment was created, in the format defined by RFC3339.
    timeLastAssessed String
    The date and time the user assessment was last executed, in the format defined by RFC3339.
    timeUpdated String
    The date and time the user assessment was last updated, in the format defined by RFC3339.
    triggeredBy String
    A filter to return user assessments that were created by either the system or by a user only.
    type String
    A filter to return only items that match the specified assessment type.

    GetUserAssessmentsUserAssessmentIgnoredTarget

    LifecycleState string
    TargetId string
    A filter to return only items related to a specific target OCID.
    UserAssessmentId string
    LifecycleState string
    TargetId string
    A filter to return only items related to a specific target OCID.
    UserAssessmentId string
    lifecycleState String
    targetId String
    A filter to return only items related to a specific target OCID.
    userAssessmentId String
    lifecycleState string
    targetId string
    A filter to return only items related to a specific target OCID.
    userAssessmentId string
    lifecycle_state str
    target_id str
    A filter to return only items related to a specific target OCID.
    user_assessment_id str
    lifecycleState String
    targetId String
    A filter to return only items related to a specific target OCID.
    userAssessmentId String

    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 v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi