1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getUserAssessmentComparison
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.DataSafe.getUserAssessmentComparison

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    This data source provides details about a specific User Assessment Comparison resource in Oracle Cloud Infrastructure Data Safe service.

    Gets the details of the comparison report for the user assessments submitted for comparison.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testUserAssessmentComparison = oci.DataSafe.getUserAssessmentComparison({
        comparisonUserAssessmentId: testUserAssessment.id,
        userAssessmentId: testUserAssessment.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_user_assessment_comparison = oci.DataSafe.get_user_assessment_comparison(comparison_user_assessment_id=test_user_assessment["id"],
        user_assessment_id=test_user_assessment["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/DataSafe"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DataSafe.GetUserAssessmentComparison(ctx, &datasafe.GetUserAssessmentComparisonArgs{
    			ComparisonUserAssessmentId: testUserAssessment.Id,
    			UserAssessmentId:           testUserAssessment.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 testUserAssessmentComparison = Oci.DataSafe.GetUserAssessmentComparison.Invoke(new()
        {
            ComparisonUserAssessmentId = testUserAssessment.Id,
            UserAssessmentId = testUserAssessment.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.GetUserAssessmentComparisonArgs;
    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 testUserAssessmentComparison = DataSafeFunctions.getUserAssessmentComparison(GetUserAssessmentComparisonArgs.builder()
                .comparisonUserAssessmentId(testUserAssessment.id())
                .userAssessmentId(testUserAssessment.id())
                .build());
    
        }
    }
    
    variables:
      testUserAssessmentComparison:
        fn::invoke:
          Function: oci:DataSafe:getUserAssessmentComparison
          Arguments:
            comparisonUserAssessmentId: ${testUserAssessment.id}
            userAssessmentId: ${testUserAssessment.id}
    

    Using getUserAssessmentComparison

    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 getUserAssessmentComparison(args: GetUserAssessmentComparisonArgs, opts?: InvokeOptions): Promise<GetUserAssessmentComparisonResult>
    function getUserAssessmentComparisonOutput(args: GetUserAssessmentComparisonOutputArgs, opts?: InvokeOptions): Output<GetUserAssessmentComparisonResult>
    def get_user_assessment_comparison(comparison_user_assessment_id: Optional[str] = None,
                                       user_assessment_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetUserAssessmentComparisonResult
    def get_user_assessment_comparison_output(comparison_user_assessment_id: Optional[pulumi.Input[str]] = None,
                                       user_assessment_id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetUserAssessmentComparisonResult]
    func GetUserAssessmentComparison(ctx *Context, args *GetUserAssessmentComparisonArgs, opts ...InvokeOption) (*GetUserAssessmentComparisonResult, error)
    func GetUserAssessmentComparisonOutput(ctx *Context, args *GetUserAssessmentComparisonOutputArgs, opts ...InvokeOption) GetUserAssessmentComparisonResultOutput

    > Note: This function is named GetUserAssessmentComparison in the Go SDK.

    public static class GetUserAssessmentComparison 
    {
        public static Task<GetUserAssessmentComparisonResult> InvokeAsync(GetUserAssessmentComparisonArgs args, InvokeOptions? opts = null)
        public static Output<GetUserAssessmentComparisonResult> Invoke(GetUserAssessmentComparisonInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetUserAssessmentComparisonResult> getUserAssessmentComparison(GetUserAssessmentComparisonArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DataSafe/getUserAssessmentComparison:getUserAssessmentComparison
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ComparisonUserAssessmentId string
    The OCID of the baseline user assessment.
    UserAssessmentId string
    The OCID of the user assessment.
    ComparisonUserAssessmentId string
    The OCID of the baseline user assessment.
    UserAssessmentId string
    The OCID of the user assessment.
    comparisonUserAssessmentId String
    The OCID of the baseline user assessment.
    userAssessmentId String
    The OCID of the user assessment.
    comparisonUserAssessmentId string
    The OCID of the baseline user assessment.
    userAssessmentId string
    The OCID of the user assessment.
    comparison_user_assessment_id str
    The OCID of the baseline user assessment.
    user_assessment_id str
    The OCID of the user assessment.
    comparisonUserAssessmentId String
    The OCID of the baseline user assessment.
    userAssessmentId String
    The OCID of the user assessment.

    getUserAssessmentComparison Result

    The following output properties are available:

    ComparisonUserAssessmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current state of the user assessment comparison.
    Summaries List<GetUserAssessmentComparisonSummary>
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    TimeCreated string
    The date and time the user assessment comparison was created, in the format defined by RFC3339.
    UserAssessmentId string
    ComparisonUserAssessmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current state of the user assessment comparison.
    Summaries []GetUserAssessmentComparisonSummary
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    TimeCreated string
    The date and time the user assessment comparison was created, in the format defined by RFC3339.
    UserAssessmentId string
    comparisonUserAssessmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current state of the user assessment comparison.
    summaries List<GetUserAssessmentComparisonSummary>
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    timeCreated String
    The date and time the user assessment comparison was created, in the format defined by RFC3339.
    userAssessmentId String
    comparisonUserAssessmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The current state of the user assessment comparison.
    summaries GetUserAssessmentComparisonSummary[]
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    timeCreated string
    The date and time the user assessment comparison was created, in the format defined by RFC3339.
    userAssessmentId string
    comparison_user_assessment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    The current state of the user assessment comparison.
    summaries Sequence[datasafe.GetUserAssessmentComparisonSummary]
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    time_created str
    The date and time the user assessment comparison was created, in the format defined by RFC3339.
    user_assessment_id str
    comparisonUserAssessmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current state of the user assessment comparison.
    summaries List<Property Map>
    List containing maps as values. Example: {"Operations": [ {"CostCenter": "42"} ] }
    timeCreated String
    The date and time the user assessment comparison was created, in the format defined by RFC3339.
    userAssessmentId String

    Supporting Types

    GetUserAssessmentComparisonSummary

    GetUserAssessmentComparisonSummaryBaseline

    TargetId string
    UserAssessmentId string
    The OCID of the user assessment.
    TargetId string
    UserAssessmentId string
    The OCID of the user assessment.
    targetId String
    userAssessmentId String
    The OCID of the user assessment.
    targetId string
    userAssessmentId string
    The OCID of the user assessment.
    target_id str
    user_assessment_id str
    The OCID of the user assessment.
    targetId String
    userAssessmentId String
    The OCID of the user assessment.

    GetUserAssessmentComparisonSummaryCurrent

    TargetId string
    UserAssessmentId string
    The OCID of the user assessment.
    TargetId string
    UserAssessmentId string
    The OCID of the user assessment.
    targetId String
    userAssessmentId String
    The OCID of the user assessment.
    targetId string
    userAssessmentId string
    The OCID of the user assessment.
    target_id str
    user_assessment_id str
    The OCID of the user assessment.
    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 v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi