oci.DataSafe.getUserAssessments
Explore with Pulumi AI
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: compartmentId,
    accessLevel: userAssessmentAccessLevel,
    compartmentIdInSubtree: userAssessmentCompartmentIdInSubtree,
    displayName: userAssessmentDisplayName,
    isBaseline: userAssessmentIsBaseline,
    isScheduleAssessment: userAssessmentIsScheduleAssessment,
    scheduleUserAssessmentId: testUserAssessment.id,
    state: userAssessmentState,
    targetId: testTarget.id,
    timeCreatedGreaterThanOrEqualTo: userAssessmentTimeCreatedGreaterThanOrEqualTo,
    timeCreatedLessThan: userAssessmentTimeCreatedLessThan,
    triggeredBy: userAssessmentTriggeredBy,
    type: userAssessmentType,
});
import pulumi
import pulumi_oci as oci
test_user_assessments = oci.DataSafe.get_user_assessments(compartment_id=compartment_id,
    access_level=user_assessment_access_level,
    compartment_id_in_subtree=user_assessment_compartment_id_in_subtree,
    display_name=user_assessment_display_name,
    is_baseline=user_assessment_is_baseline,
    is_schedule_assessment=user_assessment_is_schedule_assessment,
    schedule_user_assessment_id=test_user_assessment["id"],
    state=user_assessment_state,
    target_id=test_target["id"],
    time_created_greater_than_or_equal_to=user_assessment_time_created_greater_than_or_equal_to,
    time_created_less_than=user_assessment_time_created_less_than,
    triggered_by=user_assessment_triggered_by,
    type=user_assessment_type)
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.GetUserAssessments(ctx, &datasafe.GetUserAssessmentsArgs{
			CompartmentId:                   compartmentId,
			AccessLevel:                     pulumi.StringRef(userAssessmentAccessLevel),
			CompartmentIdInSubtree:          pulumi.BoolRef(userAssessmentCompartmentIdInSubtree),
			DisplayName:                     pulumi.StringRef(userAssessmentDisplayName),
			IsBaseline:                      pulumi.BoolRef(userAssessmentIsBaseline),
			IsScheduleAssessment:            pulumi.BoolRef(userAssessmentIsScheduleAssessment),
			ScheduleUserAssessmentId:        pulumi.StringRef(testUserAssessment.Id),
			State:                           pulumi.StringRef(userAssessmentState),
			TargetId:                        pulumi.StringRef(testTarget.Id),
			TimeCreatedGreaterThanOrEqualTo: pulumi.StringRef(userAssessmentTimeCreatedGreaterThanOrEqualTo),
			TimeCreatedLessThan:             pulumi.StringRef(userAssessmentTimeCreatedLessThan),
			TriggeredBy:                     pulumi.StringRef(userAssessmentTriggeredBy),
			Type:                            pulumi.StringRef(userAssessmentType),
		}, 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 = compartmentId,
        AccessLevel = userAssessmentAccessLevel,
        CompartmentIdInSubtree = userAssessmentCompartmentIdInSubtree,
        DisplayName = userAssessmentDisplayName,
        IsBaseline = userAssessmentIsBaseline,
        IsScheduleAssessment = userAssessmentIsScheduleAssessment,
        ScheduleUserAssessmentId = testUserAssessment.Id,
        State = userAssessmentState,
        TargetId = testTarget.Id,
        TimeCreatedGreaterThanOrEqualTo = userAssessmentTimeCreatedGreaterThanOrEqualTo,
        TimeCreatedLessThan = userAssessmentTimeCreatedLessThan,
        TriggeredBy = userAssessmentTriggeredBy,
        Type = userAssessmentType,
    });
});
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(compartmentId)
            .accessLevel(userAssessmentAccessLevel)
            .compartmentIdInSubtree(userAssessmentCompartmentIdInSubtree)
            .displayName(userAssessmentDisplayName)
            .isBaseline(userAssessmentIsBaseline)
            .isScheduleAssessment(userAssessmentIsScheduleAssessment)
            .scheduleUserAssessmentId(testUserAssessment.id())
            .state(userAssessmentState)
            .targetId(testTarget.id())
            .timeCreatedGreaterThanOrEqualTo(userAssessmentTimeCreatedGreaterThanOrEqualTo)
            .timeCreatedLessThan(userAssessmentTimeCreatedLessThan)
            .triggeredBy(userAssessmentTriggeredBy)
            .type(userAssessmentType)
            .build());
    }
}
variables:
  testUserAssessments:
    fn::invoke:
      function: oci:DataSafe:getUserAssessments
      arguments:
        compartmentId: ${compartmentId}
        accessLevel: ${userAssessmentAccessLevel}
        compartmentIdInSubtree: ${userAssessmentCompartmentIdInSubtree}
        displayName: ${userAssessmentDisplayName}
        isBaseline: ${userAssessmentIsBaseline}
        isScheduleAssessment: ${userAssessmentIsScheduleAssessment}
        scheduleUserAssessmentId: ${testUserAssessment.id}
        state: ${userAssessmentState}
        targetId: ${testTarget.id}
        timeCreatedGreaterThanOrEqualTo: ${userAssessmentTimeCreatedGreaterThanOrEqualTo}
        timeCreatedLessThan: ${userAssessmentTimeCreatedLessThan}
        triggeredBy: ${userAssessmentTriggeredBy}
        type: ${userAssessmentType}
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[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[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)
public static Output<GetUserAssessmentsResult> getUserAssessments(GetUserAssessmentsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DataSafe/getUserAssessments:getUserAssessments
  arguments:
    # arguments dictionaryThe 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.
- CompartmentId boolIn Subtree 
- 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<GetUser Assessments Filter> 
- IsBaseline bool
- A filter to return only user assessments that are set as baseline.
- IsSchedule boolAssessment 
- A filter to return only user assessments of type SAVE_SCHEDULE.
- ScheduleUser stringAssessment Id 
- 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.
- TimeCreated stringGreater Than Or Equal To 
- 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 
- TimeCreated stringLess Than 
- Search for resources that were created before a specific date. Specifying this parameter corresponding - timeCreatedLessThanparameter 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.
- CompartmentId boolIn Subtree 
- 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
[]GetUser Assessments Filter 
- IsBaseline bool
- A filter to return only user assessments that are set as baseline.
- IsSchedule boolAssessment 
- A filter to return only user assessments of type SAVE_SCHEDULE.
- ScheduleUser stringAssessment Id 
- 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.
- TimeCreated stringGreater Than Or Equal To 
- 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 
- TimeCreated stringLess Than 
- Search for resources that were created before a specific date. Specifying this parameter corresponding - timeCreatedLessThanparameter 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.
- compartmentId BooleanIn Subtree 
- 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<GetUser Assessments Filter> 
- isBaseline Boolean
- A filter to return only user assessments that are set as baseline.
- isSchedule BooleanAssessment 
- A filter to return only user assessments of type SAVE_SCHEDULE.
- scheduleUser StringAssessment Id 
- 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.
- timeCreated StringGreater Than Or Equal To 
- 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 
- timeCreated StringLess Than 
- Search for resources that were created before a specific date. Specifying this parameter corresponding - timeCreatedLessThanparameter 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.
- compartmentId booleanIn Subtree 
- 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
GetUser Assessments Filter[] 
- isBaseline boolean
- A filter to return only user assessments that are set as baseline.
- isSchedule booleanAssessment 
- A filter to return only user assessments of type SAVE_SCHEDULE.
- scheduleUser stringAssessment Id 
- 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.
- timeCreated stringGreater Than Or Equal To 
- 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 
- timeCreated stringLess Than 
- Search for resources that were created before a specific date. Specifying this parameter corresponding - timeCreatedLessThanparameter 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_ boolin_ subtree 
- 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[GetUser Assessments Filter] 
- is_baseline bool
- A filter to return only user assessments that are set as baseline.
- is_schedule_ boolassessment 
- A filter to return only user assessments of type SAVE_SCHEDULE.
- schedule_user_ strassessment_ id 
- 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_ strgreater_ than_ or_ equal_ to 
- 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_ strless_ than 
- Search for resources that were created before a specific date. Specifying this parameter corresponding - timeCreatedLessThanparameter 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.
- compartmentId BooleanIn Subtree 
- 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.
- isSchedule BooleanAssessment 
- A filter to return only user assessments of type SAVE_SCHEDULE.
- scheduleUser StringAssessment Id 
- 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.
- timeCreated StringGreater Than Or Equal To 
- 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 
- timeCreated StringLess Than 
- Search for resources that were created before a specific date. Specifying this parameter corresponding - timeCreatedLessThanparameter 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<GetUser Assessments Ignored Target> 
- List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
- UserAssessments List<GetUser Assessments User Assessment> 
- The list of user_assessments.
- AccessLevel string
- CompartmentId boolIn Subtree 
- DisplayName string
- The display name of the user assessment.
- Filters
List<GetUser Assessments Filter> 
- IsBaseline bool
- Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
- IsSchedule boolAssessment 
- ScheduleUser stringAssessment Id 
- State string
- The current state of the user assessment.
- TargetId string
- TimeCreated stringGreater Than Or Equal To 
- TimeCreated stringLess Than 
- 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 []GetUser Assessments Ignored Target 
- List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
- UserAssessments []GetUser Assessments User Assessment 
- The list of user_assessments.
- AccessLevel string
- CompartmentId boolIn Subtree 
- DisplayName string
- The display name of the user assessment.
- Filters
[]GetUser Assessments Filter 
- IsBaseline bool
- Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
- IsSchedule boolAssessment 
- ScheduleUser stringAssessment Id 
- State string
- The current state of the user assessment.
- TargetId string
- TimeCreated stringGreater Than Or Equal To 
- TimeCreated stringLess Than 
- 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<GetUser Assessments Ignored Target> 
- List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
- userAssessments List<GetUser Assessments User Assessment> 
- The list of user_assessments.
- accessLevel String
- compartmentId BooleanIn Subtree 
- displayName String
- The display name of the user assessment.
- filters
List<GetUser Assessments Filter> 
- isBaseline Boolean
- Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
- isSchedule BooleanAssessment 
- scheduleUser StringAssessment Id 
- state String
- The current state of the user assessment.
- targetId String
- timeCreated StringGreater Than Or Equal To 
- timeCreated StringLess Than 
- 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 GetUser Assessments Ignored Target[] 
- List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
- userAssessments GetUser Assessments User Assessment[] 
- The list of user_assessments.
- accessLevel string
- compartmentId booleanIn Subtree 
- displayName string
- The display name of the user assessment.
- filters
GetUser Assessments Filter[] 
- isBaseline boolean
- Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
- isSchedule booleanAssessment 
- scheduleUser stringAssessment Id 
- state string
- The current state of the user assessment.
- targetId string
- timeCreated stringGreater Than Or Equal To 
- timeCreated stringLess Than 
- 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[GetUser Assessments Ignored Target] 
- List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
- user_assessments Sequence[GetUser Assessments User Assessment] 
- The list of user_assessments.
- access_level str
- compartment_id_ boolin_ subtree 
- display_name str
- The display name of the user assessment.
- filters
Sequence[GetUser Assessments Filter] 
- is_baseline bool
- Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
- is_schedule_ boolassessment 
- schedule_user_ strassessment_ id 
- state str
- The current state of the user assessment.
- target_id str
- time_created_ strgreater_ than_ or_ equal_ to 
- time_created_ strless_ than 
- 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
- compartmentId BooleanIn Subtree 
- 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.
- isSchedule BooleanAssessment 
- scheduleUser StringAssessment Id 
- state String
- The current state of the user assessment.
- targetId String
- timeCreated StringGreater Than Or Equal To 
- timeCreated StringLess Than 
- 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   
GetUserAssessmentsIgnoredTarget    
- LifecycleState string
- TargetId string
- A filter to return only items related to a specific target OCID.
- UserAssessment stringId 
- LifecycleState string
- TargetId string
- A filter to return only items related to a specific target OCID.
- UserAssessment stringId 
- lifecycleState String
- targetId String
- A filter to return only items related to a specific target OCID.
- userAssessment StringId 
- lifecycleState string
- targetId string
- A filter to return only items related to a specific target OCID.
- userAssessment stringId 
- lifecycle_state str
- target_id str
- A filter to return only items related to a specific target OCID.
- user_assessment_ strid 
- lifecycleState String
- targetId String
- A filter to return only items related to a specific target OCID.
- userAssessment StringId 
GetUserAssessmentsUserAssessment    
- CompartmentId string
- A filter to return only resources that match the specified compartment OCID.
- Dictionary<string, string>
- 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.
- Dictionary<string, string>
- 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.
- IgnoredAssessment List<string>Ids 
- List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
- IgnoredTargets List<GetUser Assessments User Assessment Ignored Target> 
- List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
- IsAssessment boolScheduled 
- Indicates whether the assessment is scheduled to run.
- IsBaseline bool
- A filter to return only user assessments that are set as baseline.
- IsDeviated boolFrom Baseline 
- Indicates if the user assessment deviates from the baseline.
- LastCompared stringBaseline Id 
- 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: ;
- ScheduleAssessment stringId 
- 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"}}
- Dictionary<string, string>
- 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.
- TimeLast stringAssessed 
- 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.
- map[string]string
- 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.
- map[string]string
- 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.
- IgnoredAssessment []stringIds 
- List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
- IgnoredTargets []GetUser Assessments User Assessment Ignored Target 
- List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
- IsAssessment boolScheduled 
- Indicates whether the assessment is scheduled to run.
- IsBaseline bool
- A filter to return only user assessments that are set as baseline.
- IsDeviated boolFrom Baseline 
- Indicates if the user assessment deviates from the baseline.
- LastCompared stringBaseline Id 
- 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: ;
- ScheduleAssessment stringId 
- 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"}}
- map[string]string
- 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.
- TimeLast stringAssessed 
- 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.
- Map<String,String>
- 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.
- Map<String,String>
- 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.
- ignoredAssessment List<String>Ids 
- List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
- ignoredTargets List<GetUser Assessments User Assessment Ignored Target> 
- List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
- isAssessment BooleanScheduled 
- Indicates whether the assessment is scheduled to run.
- isBaseline Boolean
- A filter to return only user assessments that are set as baseline.
- isDeviated BooleanFrom Baseline 
- Indicates if the user assessment deviates from the baseline.
- lastCompared StringBaseline Id 
- 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: ;
- scheduleAssessment StringId 
- 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"}}
- Map<String,String>
- 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.
- timeLast StringAssessed 
- 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.
- {[key: string]: string}
- 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.
- {[key: string]: string}
- 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.
- ignoredAssessment string[]Ids 
- List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
- ignoredTargets GetUser Assessments User Assessment Ignored Target[] 
- List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
- isAssessment booleanScheduled 
- Indicates whether the assessment is scheduled to run.
- isBaseline boolean
- A filter to return only user assessments that are set as baseline.
- isDeviated booleanFrom Baseline 
- Indicates if the user assessment deviates from the baseline.
- lastCompared stringBaseline Id 
- 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: ;
- scheduleAssessment stringId 
- 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"}}
- {[key: string]: string}
- 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.
- timeLast stringAssessed 
- 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.
- Mapping[str, str]
- 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.
- Mapping[str, str]
- 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_ Sequence[str]ids 
- List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
- ignored_targets Sequence[GetUser Assessments User Assessment Ignored Target] 
- List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
- is_assessment_ boolscheduled 
- Indicates whether the assessment is scheduled to run.
- is_baseline bool
- A filter to return only user assessments that are set as baseline.
- is_deviated_ boolfrom_ baseline 
- Indicates if the user assessment deviates from the baseline.
- last_compared_ strbaseline_ id 
- 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_ strid 
- 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"}}
- Mapping[str, str]
- 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_ strassessed 
- 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.
- Map<String>
- 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.
- Map<String>
- 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.
- ignoredAssessment List<String>Ids 
- List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
- ignoredTargets List<Property Map>
- List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
- isAssessment BooleanScheduled 
- Indicates whether the assessment is scheduled to run.
- isBaseline Boolean
- A filter to return only user assessments that are set as baseline.
- isDeviated BooleanFrom Baseline 
- Indicates if the user assessment deviates from the baseline.
- lastCompared StringBaseline Id 
- 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: ;
- scheduleAssessment StringId 
- 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"}}
- Map<String>
- 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.
- timeLast StringAssessed 
- 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.
- UserAssessment stringId 
- LifecycleState string
- TargetId string
- A filter to return only items related to a specific target OCID.
- UserAssessment stringId 
- lifecycleState String
- targetId String
- A filter to return only items related to a specific target OCID.
- userAssessment StringId 
- lifecycleState string
- targetId string
- A filter to return only items related to a specific target OCID.
- userAssessment stringId 
- lifecycle_state str
- target_id str
- A filter to return only items related to a specific target OCID.
- user_assessment_ strid 
- lifecycleState String
- targetId String
- A filter to return only items related to a specific target OCID.
- userAssessment StringId 
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.