Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 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 GetUserAssessment(ctx *Context, args *GetUserAssessmentArgs, opts ...InvokeOption) (*GetUserAssessmentResult, error)
func GetUserAssessmentOutput(ctx *Context, args *GetUserAssessmentOutputArgs, opts ...InvokeOption) GetUserAssessmentResultOutput> Note: This function is named GetUserAssessment 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:
- User
Assessment stringId  - The OCID of the user assessment.
 
- User
Assessment stringId  - The OCID of the user assessment.
 
- user
Assessment StringId  - The OCID of the user assessment.
 
- user
Assessment stringId  - The OCID of the user assessment.
 
- user_
assessment_ strid  - The OCID of the user assessment.
 
- user
Assessment StringId  - The OCID of the user assessment.
 
getUserAssessment Result
The following output properties are available:
- Compartment
Id 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.
 - Display
Name 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.
 - Ignored
Assessment List<string>Ids  - List containing maps as values. Example: 
{"Operations": [ {"CostCenter": "42"} ] } - Ignored
Targets List<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 stringBaseline Id  - The OCID of the last user assessment baseline against which the latest assessment was compared.
 - Lifecycle
Details string - Details about the current state of the user assessment.
 - Schedule string
 - Schedule of the assessment that runs periodically in this specified format: ;
 - Schedule
Assessment 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"} - Target
Id string - Target
Ids List<string> - Array of database target OCIDs.
 - Time
Created string - The date and time the user assessment was created, in the format defined by RFC3339.
 - Time
Last stringAssessed  - The date and time the user assessment was last executed, in the format defined by RFC3339.
 - Time
Updated string - The date and time the user assessment was last updated, in the format defined by RFC3339.
 - Triggered
By 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:
 - User
Assessment stringId  
- Compartment
Id 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.
 - Display
Name 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.
 - Ignored
Assessment []stringIds  - List containing maps as values. Example: 
{"Operations": [ {"CostCenter": "42"} ] } - Ignored
Targets []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 stringBaseline Id  - The OCID of the last user assessment baseline against which the latest assessment was compared.
 - Lifecycle
Details string - Details about the current state of the user assessment.
 - Schedule string
 - Schedule of the assessment that runs periodically in this specified format: ;
 - Schedule
Assessment 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"} - Target
Id string - Target
Ids []string - Array of database target OCIDs.
 - Time
Created string - The date and time the user assessment was created, in the format defined by RFC3339.
 - Time
Last stringAssessed  - The date and time the user assessment was last executed, in the format defined by RFC3339.
 - Time
Updated string - The date and time the user assessment was last updated, in the format defined by RFC3339.
 - Triggered
By 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:
 - User
Assessment stringId  
- compartment
Id 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.
 - display
Name 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.
 - ignored
Assessment List<String>Ids  - List containing maps as values. Example: 
{"Operations": [ {"CostCenter": "42"} ] } - ignored
Targets List<GetUser Assessment Ignored Target>  - List containing maps as values. Example: 
{"Operations": [ {"CostCenter": "42"} ] } - is
Assessment BooleanScheduled  - Indicates whether the assessment is scheduled to run.
 - is
Baseline Boolean - Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
 - is
Deviated BooleanFrom Baseline  - Indicates if the user assessment deviates from the baseline.
 - last
Compared StringBaseline Id  - The OCID of the last user assessment baseline against which the latest assessment was compared.
 - lifecycle
Details String - Details about the current state of the user assessment.
 - schedule String
 - Schedule of the assessment that runs periodically in this specified format: ;
 - schedule
Assessment 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"} - target
Id String - target
Ids List<String> - Array of database target OCIDs.
 - time
Created String - The date and time the user assessment was created, in the format defined by RFC3339.
 - time
Last StringAssessed  - The date and time the user assessment was last executed, in the format defined by RFC3339.
 - time
Updated String - The date and time the user assessment was last updated, in the format defined by RFC3339.
 - triggered
By 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:
 - user
Assessment StringId  
- compartment
Id 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.
 - display
Name 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.
 - ignored
Assessment string[]Ids  - List containing maps as values. Example: 
{"Operations": [ {"CostCenter": "42"} ] } - ignored
Targets GetUser Assessment Ignored Target[]  - List containing maps as values. Example: 
{"Operations": [ {"CostCenter": "42"} ] } - is
Assessment booleanScheduled  - Indicates whether the assessment is scheduled to run.
 - is
Baseline boolean - Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
 - is
Deviated booleanFrom Baseline  - Indicates if the user assessment deviates from the baseline.
 - last
Compared stringBaseline Id  - The OCID of the last user assessment baseline against which the latest assessment was compared.
 - lifecycle
Details string - Details about the current state of the user assessment.
 - schedule string
 - Schedule of the assessment that runs periodically in this specified format: ;
 - schedule
Assessment 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"} - target
Id string - target
Ids string[] - Array of database target OCIDs.
 - time
Created string - The date and time the user assessment was created, in the format defined by RFC3339.
 - time
Last stringAssessed  - The date and time the user assessment was last executed, in the format defined by RFC3339.
 - time
Updated string - The date and time the user assessment was last updated, in the format defined by RFC3339.
 - triggered
By 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:
 - user
Assessment 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[datasafe.Get 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 - 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  
- compartment
Id 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.
 - display
Name 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.
 - ignored
Assessment List<String>Ids  - List containing maps as values. Example: 
{"Operations": [ {"CostCenter": "42"} ] } - ignored
Targets List<Property Map> - List containing maps as values. Example: 
{"Operations": [ {"CostCenter": "42"} ] } - is
Assessment BooleanScheduled  - Indicates whether the assessment is scheduled to run.
 - is
Baseline Boolean - Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
 - is
Deviated BooleanFrom Baseline  - Indicates if the user assessment deviates from the baseline.
 - last
Compared StringBaseline Id  - The OCID of the last user assessment baseline against which the latest assessment was compared.
 - lifecycle
Details String - Details about the current state of the user assessment.
 - schedule String
 - Schedule of the assessment that runs periodically in this specified format: ;
 - schedule
Assessment 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"} - target
Id String - target
Ids List<String> - Array of database target OCIDs.
 - time
Created String - The date and time the user assessment was created, in the format defined by RFC3339.
 - time
Last StringAssessed  - The date and time the user assessment was last executed, in the format defined by RFC3339.
 - time
Updated String - The date and time the user assessment was last updated, in the format defined by RFC3339.
 - triggered
By 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:
 - user
Assessment StringId  
Supporting Types
GetUserAssessmentIgnoredTarget    
- Lifecycle
State string - Target
Id string - User
Assessment stringId  - The OCID of the user assessment.
 
- Lifecycle
State string - Target
Id string - User
Assessment stringId  - The OCID of the user assessment.
 
- lifecycle
State String - target
Id String - user
Assessment StringId  - The OCID of the user assessment.
 
- lifecycle
State string - target
Id string - user
Assessment stringId  - The OCID of the user assessment.
 
- lifecycle_
state str - target_
id str - user_
assessment_ strid  - The OCID of the user assessment.
 
- lifecycle
State String - target
Id String - user
Assessment 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.