Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.DataSafe.getUserAssessmentComparison
Explore with Pulumi AI
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:
- Comparison
User stringAssessment Id - The OCID of the baseline user assessment.
- User
Assessment stringId - The OCID of the user assessment.
- Comparison
User stringAssessment Id - The OCID of the baseline user assessment.
- User
Assessment stringId - The OCID of the user assessment.
- comparison
User StringAssessment Id - The OCID of the baseline user assessment.
- user
Assessment StringId - The OCID of the user assessment.
- comparison
User stringAssessment Id - The OCID of the baseline user assessment.
- user
Assessment stringId - The OCID of the user assessment.
- comparison_
user_ strassessment_ id - The OCID of the baseline user assessment.
- user_
assessment_ strid - The OCID of the user assessment.
- comparison
User StringAssessment Id - The OCID of the baseline user assessment.
- user
Assessment StringId - The OCID of the user assessment.
getUserAssessmentComparison Result
The following output properties are available:
- Comparison
User stringAssessment Id - Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current state of the user assessment comparison.
- Summaries
List<Get
User Assessment Comparison Summary> - List containing maps as values. Example:
{"Operations": [ {"CostCenter": "42"} ] }
- Time
Created string - The date and time the user assessment comparison was created, in the format defined by RFC3339.
- User
Assessment stringId
- Comparison
User stringAssessment Id - Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current state of the user assessment comparison.
- Summaries
[]Get
User Assessment Comparison Summary - List containing maps as values. Example:
{"Operations": [ {"CostCenter": "42"} ] }
- Time
Created string - The date and time the user assessment comparison was created, in the format defined by RFC3339.
- User
Assessment stringId
- comparison
User StringAssessment Id - id String
- The provider-assigned unique ID for this managed resource.
- state String
- The current state of the user assessment comparison.
- summaries
List<Get
User Assessment Comparison Summary> - List containing maps as values. Example:
{"Operations": [ {"CostCenter": "42"} ] }
- time
Created String - The date and time the user assessment comparison was created, in the format defined by RFC3339.
- user
Assessment StringId
- comparison
User stringAssessment Id - id string
- The provider-assigned unique ID for this managed resource.
- state string
- The current state of the user assessment comparison.
- summaries
Get
User Assessment Comparison Summary[] - List containing maps as values. Example:
{"Operations": [ {"CostCenter": "42"} ] }
- time
Created string - The date and time the user assessment comparison was created, in the format defined by RFC3339.
- user
Assessment stringId
- comparison_
user_ strassessment_ id - id str
- The provider-assigned unique ID for this managed resource.
- state str
- The current state of the user assessment comparison.
- summaries
Sequence[datasafe.
Get User Assessment Comparison Summary] - 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_ strid
- comparison
User StringAssessment Id - 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"} ] }
- time
Created String - The date and time the user assessment comparison was created, in the format defined by RFC3339.
- user
Assessment StringId
Supporting Types
GetUserAssessmentComparisonSummary
GetUserAssessmentComparisonSummaryBaseline
- Target
Id string - User
Assessment stringId - The OCID of the user assessment.
- Target
Id string - User
Assessment stringId - The OCID of the user assessment.
- target
Id String - user
Assessment StringId - The OCID of the user assessment.
- target
Id string - user
Assessment stringId - The OCID of the user assessment.
- target_
id str - user_
assessment_ strid - The OCID of the user assessment.
- target
Id String - user
Assessment StringId - The OCID of the user assessment.
GetUserAssessmentComparisonSummaryCurrent
- Target
Id string - User
Assessment stringId - The OCID of the user assessment.
- Target
Id string - User
Assessment stringId - The OCID of the user assessment.
- target
Id String - user
Assessment StringId - The OCID of the user assessment.
- target
Id string - user
Assessment stringId - The OCID of the user assessment.
- target_
id str - user_
assessment_ strid - The OCID of the user assessment.
- 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
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi