1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getUserAssessment
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.DataSafe.getUserAssessment

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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,
    });
    
    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DataSafe/getUserAssessment:getUserAssessment
      arguments:
        # arguments dictionary

    The following arguments are supported:

    UserAssessmentId string
    The OCID of the user assessment.
    UserAssessmentId string
    The OCID of the user assessment.
    userAssessmentId String
    The OCID of the user assessment.
    userAssessmentId string
    The OCID of the user assessment.
    user_assessment_id str
    The OCID of the user assessment.
    userAssessmentId 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 string
    TargetId string
    UserAssessmentId string
    The OCID of the user assessment.
    LifecycleState string
    TargetId string
    UserAssessmentId string
    The OCID of the user assessment.
    lifecycleState String
    targetId String
    userAssessmentId String
    The OCID of the user assessment.
    lifecycleState string
    targetId string
    userAssessmentId string
    The OCID of the user assessment.
    lifecycle_state str
    target_id str
    user_assessment_id str
    The OCID of the user assessment.
    lifecycleState String
    targetId String
    userAssessmentId 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.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi