oci.DataSafe.getUserAssessmentPasswordExpiryDateAnalytics
Explore with Pulumi AI
This data source provides the list of User Assessment Password Expiry Date Analytics in Oracle Cloud Infrastructure Data Safe service.
Gets a list of count of the users with password expiry dates in next 30 days, between next 30-90 days, and beyond 90 days based on specified user assessment. It internally uses the aforementioned userAnalytics api.
When you perform the ListPasswordExpiryDateAnalytics 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 READ 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.
To use ListPasswordExpiryDateAnalytics 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 testUserAssessmentPasswordExpiryDateAnalytics = oci.DataSafe.getUserAssessmentPasswordExpiryDateAnalytics({
userAssessmentId: testUserAssessment.id,
accessLevel: userAssessmentPasswordExpiryDateAnalyticAccessLevel,
compartmentIdInSubtree: userAssessmentPasswordExpiryDateAnalyticCompartmentIdInSubtree,
timePasswordExpiryLessThan: userAssessmentPasswordExpiryDateAnalyticTimePasswordExpiryLessThan,
userCategory: userAssessmentPasswordExpiryDateAnalyticUserCategory,
});
import pulumi
import pulumi_oci as oci
test_user_assessment_password_expiry_date_analytics = oci.DataSafe.get_user_assessment_password_expiry_date_analytics(user_assessment_id=test_user_assessment["id"],
access_level=user_assessment_password_expiry_date_analytic_access_level,
compartment_id_in_subtree=user_assessment_password_expiry_date_analytic_compartment_id_in_subtree,
time_password_expiry_less_than=user_assessment_password_expiry_date_analytic_time_password_expiry_less_than,
user_category=user_assessment_password_expiry_date_analytic_user_category)
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.GetUserAssessmentPasswordExpiryDateAnalytics(ctx, &datasafe.GetUserAssessmentPasswordExpiryDateAnalyticsArgs{
UserAssessmentId: testUserAssessment.Id,
AccessLevel: pulumi.StringRef(userAssessmentPasswordExpiryDateAnalyticAccessLevel),
CompartmentIdInSubtree: pulumi.BoolRef(userAssessmentPasswordExpiryDateAnalyticCompartmentIdInSubtree),
TimePasswordExpiryLessThan: pulumi.StringRef(userAssessmentPasswordExpiryDateAnalyticTimePasswordExpiryLessThan),
UserCategory: pulumi.StringRef(userAssessmentPasswordExpiryDateAnalyticUserCategory),
}, 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 testUserAssessmentPasswordExpiryDateAnalytics = Oci.DataSafe.GetUserAssessmentPasswordExpiryDateAnalytics.Invoke(new()
{
UserAssessmentId = testUserAssessment.Id,
AccessLevel = userAssessmentPasswordExpiryDateAnalyticAccessLevel,
CompartmentIdInSubtree = userAssessmentPasswordExpiryDateAnalyticCompartmentIdInSubtree,
TimePasswordExpiryLessThan = userAssessmentPasswordExpiryDateAnalyticTimePasswordExpiryLessThan,
UserCategory = userAssessmentPasswordExpiryDateAnalyticUserCategory,
});
});
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.GetUserAssessmentPasswordExpiryDateAnalyticsArgs;
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 testUserAssessmentPasswordExpiryDateAnalytics = DataSafeFunctions.getUserAssessmentPasswordExpiryDateAnalytics(GetUserAssessmentPasswordExpiryDateAnalyticsArgs.builder()
.userAssessmentId(testUserAssessment.id())
.accessLevel(userAssessmentPasswordExpiryDateAnalyticAccessLevel)
.compartmentIdInSubtree(userAssessmentPasswordExpiryDateAnalyticCompartmentIdInSubtree)
.timePasswordExpiryLessThan(userAssessmentPasswordExpiryDateAnalyticTimePasswordExpiryLessThan)
.userCategory(userAssessmentPasswordExpiryDateAnalyticUserCategory)
.build());
}
}
variables:
testUserAssessmentPasswordExpiryDateAnalytics:
fn::invoke:
function: oci:DataSafe:getUserAssessmentPasswordExpiryDateAnalytics
arguments:
userAssessmentId: ${testUserAssessment.id}
accessLevel: ${userAssessmentPasswordExpiryDateAnalyticAccessLevel}
compartmentIdInSubtree: ${userAssessmentPasswordExpiryDateAnalyticCompartmentIdInSubtree}
timePasswordExpiryLessThan: ${userAssessmentPasswordExpiryDateAnalyticTimePasswordExpiryLessThan}
userCategory: ${userAssessmentPasswordExpiryDateAnalyticUserCategory}
Using getUserAssessmentPasswordExpiryDateAnalytics
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 getUserAssessmentPasswordExpiryDateAnalytics(args: GetUserAssessmentPasswordExpiryDateAnalyticsArgs, opts?: InvokeOptions): Promise<GetUserAssessmentPasswordExpiryDateAnalyticsResult>
function getUserAssessmentPasswordExpiryDateAnalyticsOutput(args: GetUserAssessmentPasswordExpiryDateAnalyticsOutputArgs, opts?: InvokeOptions): Output<GetUserAssessmentPasswordExpiryDateAnalyticsResult>
def get_user_assessment_password_expiry_date_analytics(access_level: Optional[str] = None,
compartment_id_in_subtree: Optional[bool] = None,
filters: Optional[Sequence[_datasafe.GetUserAssessmentPasswordExpiryDateAnalyticsFilter]] = None,
time_password_expiry_less_than: Optional[str] = None,
user_assessment_id: Optional[str] = None,
user_category: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserAssessmentPasswordExpiryDateAnalyticsResult
def get_user_assessment_password_expiry_date_analytics_output(access_level: Optional[pulumi.Input[str]] = None,
compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datasafe.GetUserAssessmentPasswordExpiryDateAnalyticsFilterArgs]]]] = None,
time_password_expiry_less_than: Optional[pulumi.Input[str]] = None,
user_assessment_id: Optional[pulumi.Input[str]] = None,
user_category: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserAssessmentPasswordExpiryDateAnalyticsResult]
func GetUserAssessmentPasswordExpiryDateAnalytics(ctx *Context, args *GetUserAssessmentPasswordExpiryDateAnalyticsArgs, opts ...InvokeOption) (*GetUserAssessmentPasswordExpiryDateAnalyticsResult, error)
func GetUserAssessmentPasswordExpiryDateAnalyticsOutput(ctx *Context, args *GetUserAssessmentPasswordExpiryDateAnalyticsOutputArgs, opts ...InvokeOption) GetUserAssessmentPasswordExpiryDateAnalyticsResultOutput
> Note: This function is named GetUserAssessmentPasswordExpiryDateAnalytics
in the Go SDK.
public static class GetUserAssessmentPasswordExpiryDateAnalytics
{
public static Task<GetUserAssessmentPasswordExpiryDateAnalyticsResult> InvokeAsync(GetUserAssessmentPasswordExpiryDateAnalyticsArgs args, InvokeOptions? opts = null)
public static Output<GetUserAssessmentPasswordExpiryDateAnalyticsResult> Invoke(GetUserAssessmentPasswordExpiryDateAnalyticsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUserAssessmentPasswordExpiryDateAnalyticsResult> getUserAssessmentPasswordExpiryDateAnalytics(GetUserAssessmentPasswordExpiryDateAnalyticsArgs args, InvokeOptions options)
public static Output<GetUserAssessmentPasswordExpiryDateAnalyticsResult> getUserAssessmentPasswordExpiryDateAnalytics(GetUserAssessmentPasswordExpiryDateAnalyticsArgs args, InvokeOptions options)
fn::invoke:
function: oci:DataSafe/getUserAssessmentPasswordExpiryDateAnalytics:getUserAssessmentPasswordExpiryDateAnalytics
arguments:
# arguments dictionary
The following arguments are supported:
- 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 Password Expiry Date Analytics Filter> - Time
Password stringExpiry Less Than - A filter to return users whose password expiry date in the database is less than the date and time specified, in the format defined by RFC3339. Example: 2016-12-19T16:39:57.600Z
- User
Category string - A filter to return only items that match the specified user category.
- 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 Password Expiry Date Analytics Filter - Time
Password stringExpiry Less Than - A filter to return users whose password expiry date in the database is less than the date and time specified, in the format defined by RFC3339. Example: 2016-12-19T16:39:57.600Z
- User
Category string - A filter to return only items that match the specified user category.
- 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 Password Expiry Date Analytics Filter> - time
Password StringExpiry Less Than - A filter to return users whose password expiry date in the database is less than the date and time specified, in the format defined by RFC3339. Example: 2016-12-19T16:39:57.600Z
- user
Category String - A filter to return only items that match the specified user category.
- 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 Password Expiry Date Analytics Filter[] - time
Password stringExpiry Less Than - A filter to return users whose password expiry date in the database is less than the date and time specified, in the format defined by RFC3339. Example: 2016-12-19T16:39:57.600Z
- user
Category string - A filter to return only items that match the specified user category.
- 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 Password Expiry Date Analytics Filter] - time_
password_ strexpiry_ less_ than - A filter to return users whose password expiry date in the database is less than the date and time specified, in the format defined by RFC3339. Example: 2016-12-19T16:39:57.600Z
- user_
category str - A filter to return only items that match the specified user category.
- 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>
- time
Password StringExpiry Less Than - A filter to return users whose password expiry date in the database is less than the date and time specified, in the format defined by RFC3339. Example: 2016-12-19T16:39:57.600Z
- user
Category String - A filter to return only items that match the specified user category.
getUserAssessmentPasswordExpiryDateAnalytics Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- User
Aggregations List<GetUser Assessment Password Expiry Date Analytics User Aggregation> - The list of user_aggregations.
- User
Assessment stringId - Access
Level string - Compartment
Id boolIn Subtree - Filters
List<Get
User Assessment Password Expiry Date Analytics Filter> - Time
Password stringExpiry Less Than - User
Category string
- Id string
- The provider-assigned unique ID for this managed resource.
- User
Aggregations []GetUser Assessment Password Expiry Date Analytics User Aggregation - The list of user_aggregations.
- User
Assessment stringId - Access
Level string - Compartment
Id boolIn Subtree - Filters
[]Get
User Assessment Password Expiry Date Analytics Filter - Time
Password stringExpiry Less Than - User
Category string
- id String
- The provider-assigned unique ID for this managed resource.
- user
Aggregations List<GetUser Assessment Password Expiry Date Analytics User Aggregation> - The list of user_aggregations.
- user
Assessment StringId - access
Level String - compartment
Id BooleanIn Subtree - filters
List<Get
User Assessment Password Expiry Date Analytics Filter> - time
Password StringExpiry Less Than - user
Category String
- id string
- The provider-assigned unique ID for this managed resource.
- user
Aggregations GetUser Assessment Password Expiry Date Analytics User Aggregation[] - The list of user_aggregations.
- user
Assessment stringId - access
Level string - compartment
Id booleanIn Subtree - filters
Get
User Assessment Password Expiry Date Analytics Filter[] - time
Password stringExpiry Less Than - user
Category string
- id str
- The provider-assigned unique ID for this managed resource.
- user_
aggregations Sequence[datasafe.Get User Assessment Password Expiry Date Analytics User Aggregation] - The list of user_aggregations.
- user_
assessment_ strid - access_
level str - compartment_
id_ boolin_ subtree - filters
Sequence[datasafe.
Get User Assessment Password Expiry Date Analytics Filter] - time_
password_ strexpiry_ less_ than - user_
category str
- id String
- The provider-assigned unique ID for this managed resource.
- user
Aggregations List<Property Map> - The list of user_aggregations.
- user
Assessment StringId - access
Level String - compartment
Id BooleanIn Subtree - filters List<Property Map>
- time
Password StringExpiry Less Than - user
Category String
Supporting Types
GetUserAssessmentPasswordExpiryDateAnalyticsFilter
GetUserAssessmentPasswordExpiryDateAnalyticsUserAggregation
- Items
List<Get
User Assessment Password Expiry Date Analytics User Aggregation Item> - List containing maps as values. Example:
{"Operations": [ {"CostCenter": "42"} ] }
- Items
[]Get
User Assessment Password Expiry Date Analytics User Aggregation Item - List containing maps as values. Example:
{"Operations": [ {"CostCenter": "42"} ] }
- items
List<Get
User Assessment Password Expiry Date Analytics User Aggregation Item> - List containing maps as values. Example:
{"Operations": [ {"CostCenter": "42"} ] }
- items
Get
User Assessment Password Expiry Date Analytics User Aggregation Item[] - List containing maps as values. Example:
{"Operations": [ {"CostCenter": "42"} ] }
- items
Sequence[datasafe.
Get User Assessment Password Expiry Date Analytics User Aggregation Item] - List containing maps as values. Example:
{"Operations": [ {"CostCenter": "42"} ] }
- items List<Property Map>
- List containing maps as values. Example:
{"Operations": [ {"CostCenter": "42"} ] }
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.