Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DataSafe.getUserAssessment
Explore with Pulumi AI
This data source provides details about a specific User Assessment resource in Oracle Cloud Infrastructure Data Safe service.
Gets a user assessment by identifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testUserAssessment = oci.DataSafe.getUserAssessment({
    userAssessmentId: testUserAssessmentOciDataSafeUserAssessment.id,
});
import pulumi
import pulumi_oci as oci
test_user_assessment = oci.DataSafe.get_user_assessment(user_assessment_id=test_user_assessment_oci_data_safe_user_assessment["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/datasafe"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datasafe.GetUserAssessment(ctx, &datasafe.GetUserAssessmentArgs{
			UserAssessmentId: testUserAssessmentOciDataSafeUserAssessment.Id,
		}, 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 testUserAssessment = Oci.DataSafe.GetUserAssessment.Invoke(new()
    {
        UserAssessmentId = testUserAssessmentOciDataSafeUserAssessment.Id,
    });
});
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.GetUserAssessmentArgs;
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 testUserAssessment = DataSafeFunctions.getUserAssessment(GetUserAssessmentArgs.builder()
            .userAssessmentId(testUserAssessmentOciDataSafeUserAssessment.id())
            .build());
    }
}
variables:
  testUserAssessment:
    fn::invoke:
      function: oci:DataSafe:getUserAssessment
      arguments:
        userAssessmentId: ${testUserAssessmentOciDataSafeUserAssessment.id}
Using getUserAssessment
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 getUserAssessment(args: GetUserAssessmentArgs, opts?: InvokeOptions): Promise<GetUserAssessmentResult>
function getUserAssessmentOutput(args: GetUserAssessmentOutputArgs, opts?: InvokeOptions): Output<GetUserAssessmentResult>def get_user_assessment(user_assessment_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetUserAssessmentResult
def get_user_assessment_output(user_assessment_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetUserAssessmentResult]func LookupUserAssessment(ctx *Context, args *LookupUserAssessmentArgs, opts ...InvokeOption) (*LookupUserAssessmentResult, error)
func LookupUserAssessmentOutput(ctx *Context, args *LookupUserAssessmentOutputArgs, opts ...InvokeOption) LookupUserAssessmentResultOutput> Note: This function is named LookupUserAssessment in the Go SDK.
public static class GetUserAssessment 
{
    public static Task<GetUserAssessmentResult> InvokeAsync(GetUserAssessmentArgs args, InvokeOptions? opts = null)
    public static Output<GetUserAssessmentResult> Invoke(GetUserAssessmentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetUserAssessmentResult> getUserAssessment(GetUserAssessmentArgs args, InvokeOptions options)
public static Output<GetUserAssessmentResult> getUserAssessment(GetUserAssessmentArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DataSafe/getUserAssessment:getUserAssessment
  arguments:
    # arguments dictionaryThe following arguments are supported:
- UserAssessment stringId 
- The OCID of the user assessment.
- UserAssessment stringId 
- The OCID of the user assessment.
- userAssessment StringId 
- The OCID of the user assessment.
- userAssessment stringId 
- The OCID of the user assessment.
- user_assessment_ strid 
- The OCID of the user assessment.
- userAssessment StringId 
- The OCID of the user assessment.
getUserAssessment Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment that contains the user assessment.
- 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
- The display name of the user assessment.
- 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 Assessment Ignored Target> 
- List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
- IsAssessment boolScheduled 
- Indicates whether the assessment is scheduled to run.
- IsBaseline bool
- Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
- 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
- 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
- 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:
- UserAssessment stringId 
- CompartmentId string
- The OCID of the compartment that contains the user assessment.
- 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
- The display name of the user assessment.
- 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 Assessment Ignored Target 
- List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
- IsAssessment boolScheduled 
- Indicates whether the assessment is scheduled to run.
- IsBaseline bool
- Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
- 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
- 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
- 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:
- UserAssessment stringId 
- compartmentId String
- The OCID of the compartment that contains the user assessment.
- 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
- The display name of the user assessment.
- 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 Assessment Ignored Target> 
- List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
- isAssessment BooleanScheduled 
- Indicates whether the assessment is scheduled to run.
- isBaseline Boolean
- Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
- 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
- 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
- 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:
- userAssessment StringId 
- compartmentId string
- The OCID of the compartment that contains the user assessment.
- {[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
- The display name of the user assessment.
- {[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 Assessment Ignored Target[] 
- List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
- isAssessment booleanScheduled 
- Indicates whether the assessment is scheduled to run.
- isBaseline boolean
- Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
- 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
- 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
- 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:
- userAssessment stringId 
- compartment_id str
- The OCID of the compartment that contains the user assessment.
- 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
- The display name of the user assessment.
- 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 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
- Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
- 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
- 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
- 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:
- user_assessment_ strid 
- compartmentId String
- The OCID of the compartment that contains the user assessment.
- 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
- The display name of the user assessment.
- 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
- Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
- 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
- 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
- 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:
- userAssessment StringId 
Supporting Types
GetUserAssessmentIgnoredTarget    
- LifecycleState string
- TargetId string
- UserAssessment stringId 
- The OCID of the user assessment.
- LifecycleState string
- TargetId string
- UserAssessment stringId 
- The OCID of the user assessment.
- lifecycleState String
- targetId String
- userAssessment StringId 
- The OCID of the user assessment.
- lifecycleState string
- targetId string
- userAssessment stringId 
- The OCID of the user assessment.
- lifecycle_state str
- target_id str
- user_assessment_ strid 
- The OCID of the user assessment.
- lifecycleState String
- targetId String
- userAssessment StringId 
- The OCID of the user assessment.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.