oci.DataSafe.getUserAssessments
Explore with Pulumi AI
This data source provides the list of User Assessments in Oracle Cloud Infrastructure Data Safe service.
Gets a list of user assessments.
The ListUserAssessments operation returns only the assessments in the specified compartmentId
.
The list does not include any subcompartments of the compartmentId passed.
The parameter accessLevel
specifies whether to return only those compartments for which the
requestor has INSPECT permissions on at least one resource directly
or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if
Principal doesn’t have access to even one of the child compartments. This is valid only when
compartmentIdInSubtree
is set to true
.
The parameter compartmentIdInSubtree
applies when you perform ListUserAssessments on the
compartmentId
passed and when it is set to true, the entire hierarchy of compartments can be returned.
To get a full list of all compartments and subcompartments in the tenancy (root compartment),
set the parameter compartmentIdInSubtree
to true and accessLevel
to ACCESSIBLE.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testUserAssessments = oci.DataSafe.getUserAssessments({
compartmentId: compartmentId,
accessLevel: userAssessmentAccessLevel,
compartmentIdInSubtree: userAssessmentCompartmentIdInSubtree,
displayName: userAssessmentDisplayName,
isBaseline: userAssessmentIsBaseline,
isScheduleAssessment: userAssessmentIsScheduleAssessment,
scheduleUserAssessmentId: testUserAssessment.id,
state: userAssessmentState,
targetId: testTarget.id,
timeCreatedGreaterThanOrEqualTo: userAssessmentTimeCreatedGreaterThanOrEqualTo,
timeCreatedLessThan: userAssessmentTimeCreatedLessThan,
triggeredBy: userAssessmentTriggeredBy,
type: userAssessmentType,
});
import pulumi
import pulumi_oci as oci
test_user_assessments = oci.DataSafe.get_user_assessments(compartment_id=compartment_id,
access_level=user_assessment_access_level,
compartment_id_in_subtree=user_assessment_compartment_id_in_subtree,
display_name=user_assessment_display_name,
is_baseline=user_assessment_is_baseline,
is_schedule_assessment=user_assessment_is_schedule_assessment,
schedule_user_assessment_id=test_user_assessment["id"],
state=user_assessment_state,
target_id=test_target["id"],
time_created_greater_than_or_equal_to=user_assessment_time_created_greater_than_or_equal_to,
time_created_less_than=user_assessment_time_created_less_than,
triggered_by=user_assessment_triggered_by,
type=user_assessment_type)
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.GetUserAssessments(ctx, &datasafe.GetUserAssessmentsArgs{
CompartmentId: compartmentId,
AccessLevel: pulumi.StringRef(userAssessmentAccessLevel),
CompartmentIdInSubtree: pulumi.BoolRef(userAssessmentCompartmentIdInSubtree),
DisplayName: pulumi.StringRef(userAssessmentDisplayName),
IsBaseline: pulumi.BoolRef(userAssessmentIsBaseline),
IsScheduleAssessment: pulumi.BoolRef(userAssessmentIsScheduleAssessment),
ScheduleUserAssessmentId: pulumi.StringRef(testUserAssessment.Id),
State: pulumi.StringRef(userAssessmentState),
TargetId: pulumi.StringRef(testTarget.Id),
TimeCreatedGreaterThanOrEqualTo: pulumi.StringRef(userAssessmentTimeCreatedGreaterThanOrEqualTo),
TimeCreatedLessThan: pulumi.StringRef(userAssessmentTimeCreatedLessThan),
TriggeredBy: pulumi.StringRef(userAssessmentTriggeredBy),
Type: pulumi.StringRef(userAssessmentType),
}, 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 testUserAssessments = Oci.DataSafe.GetUserAssessments.Invoke(new()
{
CompartmentId = compartmentId,
AccessLevel = userAssessmentAccessLevel,
CompartmentIdInSubtree = userAssessmentCompartmentIdInSubtree,
DisplayName = userAssessmentDisplayName,
IsBaseline = userAssessmentIsBaseline,
IsScheduleAssessment = userAssessmentIsScheduleAssessment,
ScheduleUserAssessmentId = testUserAssessment.Id,
State = userAssessmentState,
TargetId = testTarget.Id,
TimeCreatedGreaterThanOrEqualTo = userAssessmentTimeCreatedGreaterThanOrEqualTo,
TimeCreatedLessThan = userAssessmentTimeCreatedLessThan,
TriggeredBy = userAssessmentTriggeredBy,
Type = userAssessmentType,
});
});
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.GetUserAssessmentsArgs;
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 testUserAssessments = DataSafeFunctions.getUserAssessments(GetUserAssessmentsArgs.builder()
.compartmentId(compartmentId)
.accessLevel(userAssessmentAccessLevel)
.compartmentIdInSubtree(userAssessmentCompartmentIdInSubtree)
.displayName(userAssessmentDisplayName)
.isBaseline(userAssessmentIsBaseline)
.isScheduleAssessment(userAssessmentIsScheduleAssessment)
.scheduleUserAssessmentId(testUserAssessment.id())
.state(userAssessmentState)
.targetId(testTarget.id())
.timeCreatedGreaterThanOrEqualTo(userAssessmentTimeCreatedGreaterThanOrEqualTo)
.timeCreatedLessThan(userAssessmentTimeCreatedLessThan)
.triggeredBy(userAssessmentTriggeredBy)
.type(userAssessmentType)
.build());
}
}
variables:
testUserAssessments:
fn::invoke:
Function: oci:DataSafe:getUserAssessments
Arguments:
compartmentId: ${compartmentId}
accessLevel: ${userAssessmentAccessLevel}
compartmentIdInSubtree: ${userAssessmentCompartmentIdInSubtree}
displayName: ${userAssessmentDisplayName}
isBaseline: ${userAssessmentIsBaseline}
isScheduleAssessment: ${userAssessmentIsScheduleAssessment}
scheduleUserAssessmentId: ${testUserAssessment.id}
state: ${userAssessmentState}
targetId: ${testTarget.id}
timeCreatedGreaterThanOrEqualTo: ${userAssessmentTimeCreatedGreaterThanOrEqualTo}
timeCreatedLessThan: ${userAssessmentTimeCreatedLessThan}
triggeredBy: ${userAssessmentTriggeredBy}
type: ${userAssessmentType}
Using getUserAssessments
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 getUserAssessments(args: GetUserAssessmentsArgs, opts?: InvokeOptions): Promise<GetUserAssessmentsResult>
function getUserAssessmentsOutput(args: GetUserAssessmentsOutputArgs, opts?: InvokeOptions): Output<GetUserAssessmentsResult>
def get_user_assessments(access_level: Optional[str] = None,
compartment_id: Optional[str] = None,
compartment_id_in_subtree: Optional[bool] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_datasafe.GetUserAssessmentsFilter]] = None,
is_baseline: Optional[bool] = None,
is_schedule_assessment: Optional[bool] = None,
schedule_user_assessment_id: Optional[str] = None,
state: Optional[str] = None,
target_id: Optional[str] = None,
time_created_greater_than_or_equal_to: Optional[str] = None,
time_created_less_than: Optional[str] = None,
triggered_by: Optional[str] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserAssessmentsResult
def get_user_assessments_output(access_level: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datasafe.GetUserAssessmentsFilterArgs]]]] = None,
is_baseline: Optional[pulumi.Input[bool]] = None,
is_schedule_assessment: Optional[pulumi.Input[bool]] = None,
schedule_user_assessment_id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
target_id: Optional[pulumi.Input[str]] = None,
time_created_greater_than_or_equal_to: Optional[pulumi.Input[str]] = None,
time_created_less_than: Optional[pulumi.Input[str]] = None,
triggered_by: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserAssessmentsResult]
func GetUserAssessments(ctx *Context, args *GetUserAssessmentsArgs, opts ...InvokeOption) (*GetUserAssessmentsResult, error)
func GetUserAssessmentsOutput(ctx *Context, args *GetUserAssessmentsOutputArgs, opts ...InvokeOption) GetUserAssessmentsResultOutput
> Note: This function is named GetUserAssessments
in the Go SDK.
public static class GetUserAssessments
{
public static Task<GetUserAssessmentsResult> InvokeAsync(GetUserAssessmentsArgs args, InvokeOptions? opts = null)
public static Output<GetUserAssessmentsResult> Invoke(GetUserAssessmentsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUserAssessmentsResult> getUserAssessments(GetUserAssessmentsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DataSafe/getUserAssessments:getUserAssessments
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- Access
Level string - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- Compartment
Id boolIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
- Display
Name string - A filter to return only resources that match the specified display name.
- Filters
List<Get
User Assessments Filter> - Is
Baseline bool - A filter to return only user assessments that are set as baseline.
- Is
Schedule boolAssessment - A filter to return only user assessments of type SAVE_SCHEDULE.
- Schedule
User stringAssessment Id - The OCID of the user assessment of type SAVE_SCHEDULE.
- State string
- The current state of the user assessment.
- Target
Id string - A filter to return only items related to a specific target OCID.
- Time
Created stringGreater Than Or Equal To A filter to return only user assessments that were created after the specified date and time, as defined by RFC3339. Using timeCreatedGreaterThanOrEqualTo parameter retrieves all assessments created after that date.
Example: 2016-12-19T16:39:57.600Z
- Time
Created stringLess Than Search for resources that were created before a specific date. Specifying this parameter corresponding
timeCreatedLessThan
parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.Example: 2016-12-19T16:39:57.600Z
- Triggered
By string - A filter to return user assessments that were created by either the system or by a user only.
- Type string
- A filter to return only items that match the specified assessment type.
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- Access
Level string - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- Compartment
Id boolIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
- Display
Name string - A filter to return only resources that match the specified display name.
- Filters
[]Get
User Assessments Filter - Is
Baseline bool - A filter to return only user assessments that are set as baseline.
- Is
Schedule boolAssessment - A filter to return only user assessments of type SAVE_SCHEDULE.
- Schedule
User stringAssessment Id - The OCID of the user assessment of type SAVE_SCHEDULE.
- State string
- The current state of the user assessment.
- Target
Id string - A filter to return only items related to a specific target OCID.
- Time
Created stringGreater Than Or Equal To A filter to return only user assessments that were created after the specified date and time, as defined by RFC3339. Using timeCreatedGreaterThanOrEqualTo parameter retrieves all assessments created after that date.
Example: 2016-12-19T16:39:57.600Z
- Time
Created stringLess Than Search for resources that were created before a specific date. Specifying this parameter corresponding
timeCreatedLessThan
parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.Example: 2016-12-19T16:39:57.600Z
- Triggered
By string - A filter to return user assessments that were created by either the system or by a user only.
- Type string
- A filter to return only items that match the specified assessment type.
- compartment
Id String - A filter to return only resources that match the specified compartment OCID.
- access
Level String - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- compartment
Id BooleanIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
- display
Name String - A filter to return only resources that match the specified display name.
- filters
List<Get
User Assessments Filter> - is
Baseline Boolean - A filter to return only user assessments that are set as baseline.
- is
Schedule BooleanAssessment - A filter to return only user assessments of type SAVE_SCHEDULE.
- schedule
User StringAssessment Id - The OCID of the user assessment of type SAVE_SCHEDULE.
- state String
- The current state of the user assessment.
- target
Id String - A filter to return only items related to a specific target OCID.
- time
Created StringGreater Than Or Equal To A filter to return only user assessments that were created after the specified date and time, as defined by RFC3339. Using timeCreatedGreaterThanOrEqualTo parameter retrieves all assessments created after that date.
Example: 2016-12-19T16:39:57.600Z
- time
Created StringLess Than Search for resources that were created before a specific date. Specifying this parameter corresponding
timeCreatedLessThan
parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.Example: 2016-12-19T16:39:57.600Z
- triggered
By String - A filter to return user assessments that were created by either the system or by a user only.
- type String
- A filter to return only items that match the specified assessment type.
- compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- access
Level string - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- compartment
Id booleanIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
- display
Name string - A filter to return only resources that match the specified display name.
- filters
Get
User Assessments Filter[] - is
Baseline boolean - A filter to return only user assessments that are set as baseline.
- is
Schedule booleanAssessment - A filter to return only user assessments of type SAVE_SCHEDULE.
- schedule
User stringAssessment Id - The OCID of the user assessment of type SAVE_SCHEDULE.
- state string
- The current state of the user assessment.
- target
Id string - A filter to return only items related to a specific target OCID.
- time
Created stringGreater Than Or Equal To A filter to return only user assessments that were created after the specified date and time, as defined by RFC3339. Using timeCreatedGreaterThanOrEqualTo parameter retrieves all assessments created after that date.
Example: 2016-12-19T16:39:57.600Z
- time
Created stringLess Than Search for resources that were created before a specific date. Specifying this parameter corresponding
timeCreatedLessThan
parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.Example: 2016-12-19T16:39:57.600Z
- triggered
By string - A filter to return user assessments that were created by either the system or by a user only.
- type string
- A filter to return only items that match the specified assessment type.
- compartment_
id str - A filter to return only resources that match the specified compartment OCID.
- access_
level str - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- compartment_
id_ boolin_ subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
- display_
name str - A filter to return only resources that match the specified display name.
- filters
Sequence[datasafe.
Get User Assessments Filter] - is_
baseline bool - A filter to return only user assessments that are set as baseline.
- is_
schedule_ boolassessment - A filter to return only user assessments of type SAVE_SCHEDULE.
- schedule_
user_ strassessment_ id - The OCID of the user assessment of type SAVE_SCHEDULE.
- state str
- The current state of the user assessment.
- target_
id str - A filter to return only items related to a specific target OCID.
- time_
created_ strgreater_ than_ or_ equal_ to A filter to return only user assessments that were created after the specified date and time, as defined by RFC3339. Using timeCreatedGreaterThanOrEqualTo parameter retrieves all assessments created after that date.
Example: 2016-12-19T16:39:57.600Z
- time_
created_ strless_ than Search for resources that were created before a specific date. Specifying this parameter corresponding
timeCreatedLessThan
parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.Example: 2016-12-19T16:39:57.600Z
- triggered_
by str - A filter to return user assessments that were created by either the system or by a user only.
- type str
- A filter to return only items that match the specified assessment type.
- compartment
Id String - A filter to return only resources that match the specified compartment OCID.
- access
Level String - Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
- compartment
Id BooleanIn Subtree - Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
- display
Name String - A filter to return only resources that match the specified display name.
- filters List<Property Map>
- is
Baseline Boolean - A filter to return only user assessments that are set as baseline.
- is
Schedule BooleanAssessment - A filter to return only user assessments of type SAVE_SCHEDULE.
- schedule
User StringAssessment Id - The OCID of the user assessment of type SAVE_SCHEDULE.
- state String
- The current state of the user assessment.
- target
Id String - A filter to return only items related to a specific target OCID.
- time
Created StringGreater Than Or Equal To A filter to return only user assessments that were created after the specified date and time, as defined by RFC3339. Using timeCreatedGreaterThanOrEqualTo parameter retrieves all assessments created after that date.
Example: 2016-12-19T16:39:57.600Z
- time
Created StringLess Than Search for resources that were created before a specific date. Specifying this parameter corresponding
timeCreatedLessThan
parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.Example: 2016-12-19T16:39:57.600Z
- triggered
By String - A filter to return user assessments that were created by either the system or by a user only.
- type String
- A filter to return only items that match the specified assessment type.
getUserAssessments Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment that contains the user assessment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ignored
Targets List<GetUser Assessments Ignored Target> - List containing maps as values. Example:
{"Operations": [ {"CostCenter": "42"} ] }
- User
Assessments List<GetUser Assessments User Assessment> - The list of user_assessments.
- Access
Level string - Compartment
Id boolIn Subtree - Display
Name string - The display name of the user assessment.
- Filters
List<Get
User Assessments Filter> - Is
Baseline bool - Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
- Is
Schedule boolAssessment - Schedule
User stringAssessment Id - State string
- The current state of the user assessment.
- Target
Id string - Time
Created stringGreater Than Or Equal To - Time
Created stringLess Than - 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:
- Compartment
Id string - The OCID of the compartment that contains the user assessment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ignored
Targets []GetUser Assessments Ignored Target - List containing maps as values. Example:
{"Operations": [ {"CostCenter": "42"} ] }
- User
Assessments []GetUser Assessments User Assessment - The list of user_assessments.
- Access
Level string - Compartment
Id boolIn Subtree - Display
Name string - The display name of the user assessment.
- Filters
[]Get
User Assessments Filter - Is
Baseline bool - Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
- Is
Schedule boolAssessment - Schedule
User stringAssessment Id - State string
- The current state of the user assessment.
- Target
Id string - Time
Created stringGreater Than Or Equal To - Time
Created stringLess Than - 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:
- compartment
Id String - The OCID of the compartment that contains the user assessment.
- id String
- The provider-assigned unique ID for this managed resource.
- ignored
Targets List<GetUser Assessments Ignored Target> - List containing maps as values. Example:
{"Operations": [ {"CostCenter": "42"} ] }
- user
Assessments List<GetUser Assessments User Assessment> - The list of user_assessments.
- access
Level String - compartment
Id BooleanIn Subtree - display
Name String - The display name of the user assessment.
- filters
List<Get
User Assessments Filter> - is
Baseline Boolean - Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
- is
Schedule BooleanAssessment - schedule
User StringAssessment Id - state String
- The current state of the user assessment.
- target
Id String - time
Created StringGreater Than Or Equal To - time
Created StringLess Than - 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:
- compartment
Id string - The OCID of the compartment that contains the user assessment.
- id string
- The provider-assigned unique ID for this managed resource.
- ignored
Targets GetUser Assessments Ignored Target[] - List containing maps as values. Example:
{"Operations": [ {"CostCenter": "42"} ] }
- user
Assessments GetUser Assessments User Assessment[] - The list of user_assessments.
- access
Level string - compartment
Id booleanIn Subtree - display
Name string - The display name of the user assessment.
- filters
Get
User Assessments Filter[] - is
Baseline boolean - Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
- is
Schedule booleanAssessment - schedule
User stringAssessment Id - state string
- The current state of the user assessment.
- target
Id string - time
Created stringGreater Than Or Equal To - time
Created stringLess Than - 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:
- compartment_
id str - The OCID of the compartment that contains the user assessment.
- id str
- The provider-assigned unique ID for this managed resource.
- ignored_
targets Sequence[datasafe.Get User Assessments Ignored Target] - List containing maps as values. Example:
{"Operations": [ {"CostCenter": "42"} ] }
- user_
assessments Sequence[datasafe.Get User Assessments User Assessment] - The list of user_assessments.
- access_
level str - compartment_
id_ boolin_ subtree - display_
name str - The display name of the user assessment.
- filters
Sequence[datasafe.
Get User Assessments Filter] - is_
baseline bool - Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
- is_
schedule_ boolassessment - schedule_
user_ strassessment_ id - state str
- The current state of the user assessment.
- target_
id str - time_
created_ strgreater_ than_ or_ equal_ to - time_
created_ strless_ than - 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:
- compartment
Id String - The OCID of the compartment that contains the user assessment.
- id String
- The provider-assigned unique ID for this managed resource.
- ignored
Targets List<Property Map> - List containing maps as values. Example:
{"Operations": [ {"CostCenter": "42"} ] }
- user
Assessments List<Property Map> - The list of user_assessments.
- access
Level String - compartment
Id BooleanIn Subtree - display
Name String - The display name of the user assessment.
- filters List<Property Map>
- is
Baseline Boolean - Indicates if the user assessment is set as a baseline. This is applicable only to saved user assessments.
- is
Schedule BooleanAssessment - schedule
User StringAssessment Id - state String
- The current state of the user assessment.
- target
Id String - time
Created StringGreater Than Or Equal To - time
Created StringLess Than - 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:
Supporting Types
GetUserAssessmentsFilter
GetUserAssessmentsIgnoredTarget
- Lifecycle
State string - Target
Id string - A filter to return only items related to a specific target OCID.
- User
Assessment stringId
- Lifecycle
State string - Target
Id string - A filter to return only items related to a specific target OCID.
- User
Assessment stringId
- lifecycle
State String - target
Id String - A filter to return only items related to a specific target OCID.
- user
Assessment StringId
- lifecycle
State string - target
Id string - A filter to return only items related to a specific target OCID.
- user
Assessment stringId
- lifecycle_
state str - target_
id str - A filter to return only items related to a specific target OCID.
- user_
assessment_ strid
- lifecycle
State String - target
Id String - A filter to return only items related to a specific target OCID.
- user
Assessment StringId
GetUserAssessmentsUserAssessment
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- 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 - A filter to return only resources that match the specified display name.
- 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 Assessments 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 - A filter to return only user assessments that are set as baseline.
- 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 - A filter to return only items related to a specific target OCID.
- 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 - A filter to return user assessments that were created by either the system or by a user only.
- Type string
- A filter to return only items that match the specified assessment type.
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- 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 - A filter to return only resources that match the specified display name.
- 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 Assessments 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 - A filter to return only user assessments that are set as baseline.
- 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 - A filter to return only items related to a specific target OCID.
- 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 - A filter to return user assessments that were created by either the system or by a user only.
- Type string
- A filter to return only items that match the specified assessment type.
- compartment
Id String - A filter to return only resources that match the specified compartment OCID.
- 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 - A filter to return only resources that match the specified display name.
- 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 Assessments User 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 - A filter to return only user assessments that are set as baseline.
- 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 - A filter to return only items related to a specific target OCID.
- 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 - A filter to return user assessments that were created by either the system or by a user only.
- type String
- A filter to return only items that match the specified assessment type.
- compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- {[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 - A filter to return only resources that match the specified display name.
- {[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 Assessments User 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 - A filter to return only user assessments that are set as baseline.
- 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 - A filter to return only items related to a specific target OCID.
- 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 - A filter to return user assessments that were created by either the system or by a user only.
- type string
- A filter to return only items that match the specified assessment type.
- compartment_
id str - A filter to return only resources that match the specified compartment OCID.
- 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 - A filter to return only resources that match the specified display name.
- 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 Assessments 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 - A filter to return only user assessments that are set as baseline.
- 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 - A filter to return only items related to a specific target OCID.
- 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 - A filter to return user assessments that were created by either the system or by a user only.
- type str
- A filter to return only items that match the specified assessment type.
- compartment
Id String - A filter to return only resources that match the specified compartment OCID.
- 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 - A filter to return only resources that match the specified display name.
- 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 - A filter to return only user assessments that are set as baseline.
- 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 - A filter to return only items related to a specific target OCID.
- 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 - A filter to return user assessments that were created by either the system or by a user only.
- type String
- A filter to return only items that match the specified assessment type.
GetUserAssessmentsUserAssessmentIgnoredTarget
- Lifecycle
State string - Target
Id string - A filter to return only items related to a specific target OCID.
- User
Assessment stringId
- Lifecycle
State string - Target
Id string - A filter to return only items related to a specific target OCID.
- User
Assessment stringId
- lifecycle
State String - target
Id String - A filter to return only items related to a specific target OCID.
- user
Assessment StringId
- lifecycle
State string - target
Id string - A filter to return only items related to a specific target OCID.
- user
Assessment stringId
- lifecycle_
state str - target_
id str - A filter to return only items related to a specific target OCID.
- user_
assessment_ strid
- lifecycle
State String - target
Id String - A filter to return only items related to a specific target OCID.
- user
Assessment StringId
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.