oci.DataSafe.getUserAssessmentProfileAnalytics
Explore with Pulumi AI
This data source provides the list of User Assessment Profile Analytics in Oracle Cloud Infrastructure Data Safe service.
Gets a list of aggregated user profile details in the specified compartment. This provides information about the overall profiles available. For example, the user profile details include how many users have the profile assigned and do how many use password verification function. This data is especially useful content for dashboards or to support analytics.
When you perform the ListProfileAnalytics operation, if the parameter compartmentIdInSubtree is set to “true,” and if the parameter accessLevel is set to ACCESSIBLE, then the operation returns compartments in which the requestor has INSPECT permissions on at least one resource, directly or indirectly (in subcompartments). If the operation is performed at the root compartment and the requestor does not have access to at least one subcompartment of the compartment specified by compartmentId, then “Not Authorized” is returned.
The parameter compartmentIdInSubtree applies when you perform ListProfileAnalytics on the compartmentId passed and when it is set to true, the entire hierarchy of compartments can be returned.
To use ListProfileAnalytics to get a full list of all compartments and subcompartments in the tenancy from the 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 testUserAssessmentProfileAnalytics = oci.DataSafe.getUserAssessmentProfileAnalytics({
compartmentId: compartmentId,
userAssessmentId: testUserAssessment.id,
accessLevel: userAssessmentProfileAnalyticAccessLevel,
compartmentIdInSubtree: userAssessmentProfileAnalyticCompartmentIdInSubtree,
profileName: testProfile.name,
targetId: testTarget.id,
});
import pulumi
import pulumi_oci as oci
test_user_assessment_profile_analytics = oci.DataSafe.get_user_assessment_profile_analytics(compartment_id=compartment_id,
user_assessment_id=test_user_assessment["id"],
access_level=user_assessment_profile_analytic_access_level,
compartment_id_in_subtree=user_assessment_profile_analytic_compartment_id_in_subtree,
profile_name=test_profile["name"],
target_id=test_target["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.GetUserAssessmentProfileAnalytics(ctx, &datasafe.GetUserAssessmentProfileAnalyticsArgs{
CompartmentId: compartmentId,
UserAssessmentId: testUserAssessment.Id,
AccessLevel: pulumi.StringRef(userAssessmentProfileAnalyticAccessLevel),
CompartmentIdInSubtree: pulumi.BoolRef(userAssessmentProfileAnalyticCompartmentIdInSubtree),
ProfileName: pulumi.StringRef(testProfile.Name),
TargetId: pulumi.StringRef(testTarget.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 testUserAssessmentProfileAnalytics = Oci.DataSafe.GetUserAssessmentProfileAnalytics.Invoke(new()
{
CompartmentId = compartmentId,
UserAssessmentId = testUserAssessment.Id,
AccessLevel = userAssessmentProfileAnalyticAccessLevel,
CompartmentIdInSubtree = userAssessmentProfileAnalyticCompartmentIdInSubtree,
ProfileName = testProfile.Name,
TargetId = testTarget.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.GetUserAssessmentProfileAnalyticsArgs;
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 testUserAssessmentProfileAnalytics = DataSafeFunctions.getUserAssessmentProfileAnalytics(GetUserAssessmentProfileAnalyticsArgs.builder()
.compartmentId(compartmentId)
.userAssessmentId(testUserAssessment.id())
.accessLevel(userAssessmentProfileAnalyticAccessLevel)
.compartmentIdInSubtree(userAssessmentProfileAnalyticCompartmentIdInSubtree)
.profileName(testProfile.name())
.targetId(testTarget.id())
.build());
}
}
variables:
testUserAssessmentProfileAnalytics:
fn::invoke:
Function: oci:DataSafe:getUserAssessmentProfileAnalytics
Arguments:
compartmentId: ${compartmentId}
userAssessmentId: ${testUserAssessment.id}
accessLevel: ${userAssessmentProfileAnalyticAccessLevel}
compartmentIdInSubtree: ${userAssessmentProfileAnalyticCompartmentIdInSubtree}
profileName: ${testProfile.name}
targetId: ${testTarget.id}
Using getUserAssessmentProfileAnalytics
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 getUserAssessmentProfileAnalytics(args: GetUserAssessmentProfileAnalyticsArgs, opts?: InvokeOptions): Promise<GetUserAssessmentProfileAnalyticsResult>
function getUserAssessmentProfileAnalyticsOutput(args: GetUserAssessmentProfileAnalyticsOutputArgs, opts?: InvokeOptions): Output<GetUserAssessmentProfileAnalyticsResult>
def get_user_assessment_profile_analytics(access_level: Optional[str] = None,
compartment_id: Optional[str] = None,
compartment_id_in_subtree: Optional[bool] = None,
filters: Optional[Sequence[_datasafe.GetUserAssessmentProfileAnalyticsFilter]] = None,
profile_name: Optional[str] = None,
target_id: Optional[str] = None,
user_assessment_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserAssessmentProfileAnalyticsResult
def get_user_assessment_profile_analytics_output(access_level: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datasafe.GetUserAssessmentProfileAnalyticsFilterArgs]]]] = None,
profile_name: Optional[pulumi.Input[str]] = None,
target_id: Optional[pulumi.Input[str]] = None,
user_assessment_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserAssessmentProfileAnalyticsResult]
func GetUserAssessmentProfileAnalytics(ctx *Context, args *GetUserAssessmentProfileAnalyticsArgs, opts ...InvokeOption) (*GetUserAssessmentProfileAnalyticsResult, error)
func GetUserAssessmentProfileAnalyticsOutput(ctx *Context, args *GetUserAssessmentProfileAnalyticsOutputArgs, opts ...InvokeOption) GetUserAssessmentProfileAnalyticsResultOutput
> Note: This function is named GetUserAssessmentProfileAnalytics
in the Go SDK.
public static class GetUserAssessmentProfileAnalytics
{
public static Task<GetUserAssessmentProfileAnalyticsResult> InvokeAsync(GetUserAssessmentProfileAnalyticsArgs args, InvokeOptions? opts = null)
public static Output<GetUserAssessmentProfileAnalyticsResult> Invoke(GetUserAssessmentProfileAnalyticsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUserAssessmentProfileAnalyticsResult> getUserAssessmentProfileAnalytics(GetUserAssessmentProfileAnalyticsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DataSafe/getUserAssessmentProfileAnalytics:getUserAssessmentProfileAnalytics
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- User
Assessment stringId - The OCID of the user assessment.
- 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.
- Filters
List<Get
User Assessment Profile Analytics Filter> - Profile
Name string - A filter to return only items that match the specified profile name.
- Target
Id string - A filter to return only items related to a specific target OCID.
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- User
Assessment stringId - The OCID of the user assessment.
- 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.
- Filters
[]Get
User Assessment Profile Analytics Filter - Profile
Name string - A filter to return only items that match the specified profile name.
- Target
Id string - A filter to return only items related to a specific target OCID.
- compartment
Id String - A filter to return only resources that match the specified compartment OCID.
- user
Assessment StringId - The OCID of the user assessment.
- 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.
- filters
List<Get
User Assessment Profile Analytics Filter> - profile
Name String - A filter to return only items that match the specified profile name.
- target
Id String - A filter to return only items related to a specific target OCID.
- compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- user
Assessment stringId - The OCID of the user assessment.
- 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.
- filters
Get
User Assessment Profile Analytics Filter[] - profile
Name string - A filter to return only items that match the specified profile name.
- target
Id string - A filter to return only items related to a specific target OCID.
- compartment_
id str - A filter to return only resources that match the specified compartment OCID.
- user_
assessment_ strid - The OCID of the user assessment.
- 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.
- filters
Sequence[datasafe.
Get User Assessment Profile Analytics Filter] - profile_
name str - A filter to return only items that match the specified profile name.
- target_
id str - A filter to return only items related to a specific target OCID.
- compartment
Id String - A filter to return only resources that match the specified compartment OCID.
- user
Assessment StringId - The OCID of the user assessment.
- 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.
- filters List<Property Map>
- profile
Name String - A filter to return only items that match the specified profile name.
- target
Id String - A filter to return only items related to a specific target OCID.
getUserAssessmentProfileAnalytics Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Profile
Aggregations List<GetUser Assessment Profile Analytics Profile Aggregation> - The list of profile_aggregations.
- User
Assessment stringId - Access
Level string - Compartment
Id boolIn Subtree - Filters
List<Get
User Assessment Profile Analytics Filter> - Profile
Name string - Target
Id string
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Profile
Aggregations []GetUser Assessment Profile Analytics Profile Aggregation - The list of profile_aggregations.
- User
Assessment stringId - Access
Level string - Compartment
Id boolIn Subtree - Filters
[]Get
User Assessment Profile Analytics Filter - Profile
Name string - Target
Id string
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- profile
Aggregations List<GetUser Assessment Profile Analytics Profile Aggregation> - The list of profile_aggregations.
- user
Assessment StringId - access
Level String - compartment
Id BooleanIn Subtree - filters
List<Get
User Assessment Profile Analytics Filter> - profile
Name String - target
Id String
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- profile
Aggregations GetUser Assessment Profile Analytics Profile Aggregation[] - The list of profile_aggregations.
- user
Assessment stringId - access
Level string - compartment
Id booleanIn Subtree - filters
Get
User Assessment Profile Analytics Filter[] - profile
Name string - target
Id string
- compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- profile_
aggregations Sequence[datasafe.Get User Assessment Profile Analytics Profile Aggregation] - The list of profile_aggregations.
- user_
assessment_ strid - access_
level str - compartment_
id_ boolin_ subtree - filters
Sequence[datasafe.
Get User Assessment Profile Analytics Filter] - profile_
name str - target_
id str
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- profile
Aggregations List<Property Map> - The list of profile_aggregations.
- user
Assessment StringId - access
Level String - compartment
Id BooleanIn Subtree - filters List<Property Map>
- profile
Name String - target
Id String
Supporting Types
GetUserAssessmentProfileAnalyticsFilter
GetUserAssessmentProfileAnalyticsProfileAggregation
- Dictionary<string, object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Dictionary<string, object>
- 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"}
- Items List<object>
- The array of profile aggregation data.
- map[string]interface{}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- map[string]interface{}
- 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"}
- Items []interface{}
- The array of profile aggregation data.
- Map<String,Object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Map<String,Object>
- 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"}
- items List<Object>
- The array of profile aggregation data.
- {[key: string]: any}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- {[key: string]: any}
- 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"}
- items any[]
- The array of profile aggregation data.
- Mapping[str, Any]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Mapping[str, Any]
- 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"}
- items Sequence[Any]
- The array of profile aggregation data.
- Map<Any>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Map<Any>
- 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"}
- items List<Any>
- The array of profile aggregation data.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.