1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getUserAssessment
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.DataSafe.getUserAssessment

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

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,
});
Copy
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"])
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testUserAssessment:
    fn::invoke:
      function: oci:DataSafe:getUserAssessment
      arguments:
        userAssessmentId: ${testUserAssessmentOciDataSafeUserAssessment.id}
Copy

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>
Copy
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]
Copy
func GetUserAssessment(ctx *Context, args *GetUserAssessmentArgs, opts ...InvokeOption) (*GetUserAssessmentResult, error)
func GetUserAssessmentOutput(ctx *Context, args *GetUserAssessmentOutputArgs, opts ...InvokeOption) GetUserAssessmentResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetUserAssessmentResult> getUserAssessment(GetUserAssessmentArgs args, InvokeOptions options)
public static Output<GetUserAssessmentResult> getUserAssessment(GetUserAssessmentArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:DataSafe/getUserAssessment:getUserAssessment
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

UserAssessmentId This property is required. string
The OCID of the user assessment.
UserAssessmentId This property is required. string
The OCID of the user assessment.
userAssessmentId This property is required. String
The OCID of the user assessment.
userAssessmentId This property is required. string
The OCID of the user assessment.
user_assessment_id This property is required. str
The OCID of the user assessment.
userAssessmentId This property is required. String
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.
DefinedTags 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.
FreeformTags 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.
IgnoredAssessmentIds List<string>
List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
IgnoredTargets List<GetUserAssessmentIgnoredTarget>
List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
IsAssessmentScheduled bool
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.
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, 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.
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
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:
UserAssessmentId string
CompartmentId string
The OCID of the compartment that contains the user assessment.
DefinedTags 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.
FreeformTags 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.
IgnoredAssessmentIds []string
List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
IgnoredTargets []GetUserAssessmentIgnoredTarget
List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
IsAssessmentScheduled bool
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.
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]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.
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
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:
UserAssessmentId string
compartmentId String
The OCID of the compartment that contains the user assessment.
definedTags 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.
freeformTags 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.
ignoredAssessmentIds List<String>
List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
ignoredTargets List<GetUserAssessmentIgnoredTarget>
List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
isAssessmentScheduled Boolean
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.
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,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.
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
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:
userAssessmentId String
compartmentId string
The OCID of the compartment that contains the user assessment.
definedTags {[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.
freeformTags {[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.
ignoredAssessmentIds string[]
List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
ignoredTargets GetUserAssessmentIgnoredTarget[]
List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
isAssessmentScheduled boolean
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.
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]: 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.
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
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:
userAssessmentId string
compartment_id str
The OCID of the compartment that contains the user assessment.
defined_tags 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.
freeform_tags 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_ids Sequence[str]
List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
ignored_targets Sequence[datasafe.GetUserAssessmentIgnoredTarget]
List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
is_assessment_scheduled bool
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_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, 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_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
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_id str
compartmentId String
The OCID of the compartment that contains the user assessment.
definedTags 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.
freeformTags 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.
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"} ] }
isAssessmentScheduled Boolean
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.
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>
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.
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
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:
userAssessmentId String

Supporting Types

GetUserAssessmentIgnoredTarget

LifecycleState This property is required. string
TargetId This property is required. string
UserAssessmentId This property is required. string
The OCID of the user assessment.
LifecycleState This property is required. string
TargetId This property is required. string
UserAssessmentId This property is required. string
The OCID of the user assessment.
lifecycleState This property is required. String
targetId This property is required. String
userAssessmentId This property is required. String
The OCID of the user assessment.
lifecycleState This property is required. string
targetId This property is required. string
userAssessmentId This property is required. string
The OCID of the user assessment.
lifecycle_state This property is required. str
target_id This property is required. str
user_assessment_id This property is required. str
The OCID of the user assessment.
lifecycleState This property is required. String
targetId This property is required. String
userAssessmentId This property is required. String
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 oci Terraform Provider.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi