Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Identity.getAuthenticationPolicy
Explore with Pulumi AI
This data source provides details about a specific Authentication Policy resource in Oracle Cloud Infrastructure Identity service.
Gets the authentication policy for the given tenancy. You must specify your tenant’s OCID as the value for the compartment ID (remember that the tenancy is simply the root compartment).
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAuthenticationPolicy = oci.Identity.getAuthenticationPolicy({
compartmentId: tenancyOcid,
});
import pulumi
import pulumi_oci as oci
test_authentication_policy = oci.Identity.get_authentication_policy(compartment_id=tenancy_ocid)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Identity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Identity.GetAuthenticationPolicy(ctx, &identity.GetAuthenticationPolicyArgs{
CompartmentId: tenancyOcid,
}, 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 testAuthenticationPolicy = Oci.Identity.GetAuthenticationPolicy.Invoke(new()
{
CompartmentId = tenancyOcid,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Identity.IdentityFunctions;
import com.pulumi.oci.Identity.inputs.GetAuthenticationPolicyArgs;
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 testAuthenticationPolicy = IdentityFunctions.getAuthenticationPolicy(GetAuthenticationPolicyArgs.builder()
.compartmentId(tenancyOcid)
.build());
}
}
variables:
testAuthenticationPolicy:
fn::invoke:
Function: oci:Identity:getAuthenticationPolicy
Arguments:
compartmentId: ${tenancyOcid}
Using getAuthenticationPolicy
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 getAuthenticationPolicy(args: GetAuthenticationPolicyArgs, opts?: InvokeOptions): Promise<GetAuthenticationPolicyResult>
function getAuthenticationPolicyOutput(args: GetAuthenticationPolicyOutputArgs, opts?: InvokeOptions): Output<GetAuthenticationPolicyResult>
def get_authentication_policy(compartment_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAuthenticationPolicyResult
def get_authentication_policy_output(compartment_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAuthenticationPolicyResult]
func GetAuthenticationPolicy(ctx *Context, args *GetAuthenticationPolicyArgs, opts ...InvokeOption) (*GetAuthenticationPolicyResult, error)
func GetAuthenticationPolicyOutput(ctx *Context, args *GetAuthenticationPolicyOutputArgs, opts ...InvokeOption) GetAuthenticationPolicyResultOutput
> Note: This function is named GetAuthenticationPolicy
in the Go SDK.
public static class GetAuthenticationPolicy
{
public static Task<GetAuthenticationPolicyResult> InvokeAsync(GetAuthenticationPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetAuthenticationPolicyResult> Invoke(GetAuthenticationPolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAuthenticationPolicyResult> getAuthenticationPolicy(GetAuthenticationPolicyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Identity/getAuthenticationPolicy:getAuthenticationPolicy
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment.
- Compartment
Id string - The OCID of the compartment.
- compartment
Id String - The OCID of the compartment.
- compartment
Id string - The OCID of the compartment.
- compartment_
id str - The OCID of the compartment.
- compartment
Id String - The OCID of the compartment.
getAuthenticationPolicy Result
The following output properties are available:
- Compartment
Id string - Compartment OCID.
- Id string
- Network
Policies List<GetAuthentication Policy Network Policy> - Network policy, Consists of a list of Network Source ids.
- Password
Policies List<GetAuthentication Policy Password Policy> - Password policy, currently set for the given compartment.
- Compartment
Id string - Compartment OCID.
- Id string
- Network
Policies []GetAuthentication Policy Network Policy - Network policy, Consists of a list of Network Source ids.
- Password
Policies []GetAuthentication Policy Password Policy - Password policy, currently set for the given compartment.
- compartment
Id String - Compartment OCID.
- id String
- network
Policies List<GetAuthentication Policy Network Policy> - Network policy, Consists of a list of Network Source ids.
- password
Policies List<GetAuthentication Policy Password Policy> - Password policy, currently set for the given compartment.
- compartment
Id string - Compartment OCID.
- id string
- network
Policies GetAuthentication Policy Network Policy[] - Network policy, Consists of a list of Network Source ids.
- password
Policies GetAuthentication Policy Password Policy[] - Password policy, currently set for the given compartment.
- compartment_
id str - Compartment OCID.
- id str
- network_
policies Sequence[identity.Get Authentication Policy Network Policy] - Network policy, Consists of a list of Network Source ids.
- password_
policies Sequence[identity.Get Authentication Policy Password Policy] - Password policy, currently set for the given compartment.
- compartment
Id String - Compartment OCID.
- id String
- network
Policies List<Property Map> - Network policy, Consists of a list of Network Source ids.
- password
Policies List<Property Map> - Password policy, currently set for the given compartment.
Supporting Types
GetAuthenticationPolicyNetworkPolicy
- Network
Source List<string>Ids - Network Source ids
- Network
Source []stringIds - Network Source ids
- network
Source List<String>Ids - Network Source ids
- network
Source string[]Ids - Network Source ids
- network_
source_ Sequence[str]ids - Network Source ids
- network
Source List<String>Ids - Network Source ids
GetAuthenticationPolicyPasswordPolicy
- Is
Lowercase boolCharacters Required - At least one lower case character required.
- Is
Numeric boolCharacters Required - At least one numeric character required.
- Is
Special boolCharacters Required - At least one special character required.
- Is
Uppercase boolCharacters Required - At least one uppercase character required.
- Is
Username boolContainment Allowed - User name is allowed to be part of the password.
- Minimum
Password intLength - Minimum password length required.
- Is
Lowercase boolCharacters Required - At least one lower case character required.
- Is
Numeric boolCharacters Required - At least one numeric character required.
- Is
Special boolCharacters Required - At least one special character required.
- Is
Uppercase boolCharacters Required - At least one uppercase character required.
- Is
Username boolContainment Allowed - User name is allowed to be part of the password.
- Minimum
Password intLength - Minimum password length required.
- is
Lowercase BooleanCharacters Required - At least one lower case character required.
- is
Numeric BooleanCharacters Required - At least one numeric character required.
- is
Special BooleanCharacters Required - At least one special character required.
- is
Uppercase BooleanCharacters Required - At least one uppercase character required.
- is
Username BooleanContainment Allowed - User name is allowed to be part of the password.
- minimum
Password IntegerLength - Minimum password length required.
- is
Lowercase booleanCharacters Required - At least one lower case character required.
- is
Numeric booleanCharacters Required - At least one numeric character required.
- is
Special booleanCharacters Required - At least one special character required.
- is
Uppercase booleanCharacters Required - At least one uppercase character required.
- is
Username booleanContainment Allowed - User name is allowed to be part of the password.
- minimum
Password numberLength - Minimum password length required.
- is_
lowercase_ boolcharacters_ required - At least one lower case character required.
- is_
numeric_ boolcharacters_ required - At least one numeric character required.
- is_
special_ boolcharacters_ required - At least one special character required.
- is_
uppercase_ boolcharacters_ required - At least one uppercase character required.
- is_
username_ boolcontainment_ allowed - User name is allowed to be part of the password.
- minimum_
password_ intlength - Minimum password length required.
- is
Lowercase BooleanCharacters Required - At least one lower case character required.
- is
Numeric BooleanCharacters Required - At least one numeric character required.
- is
Special BooleanCharacters Required - At least one special character required.
- is
Uppercase BooleanCharacters Required - At least one uppercase character required.
- is
Username BooleanContainment Allowed - User name is allowed to be part of the password.
- minimum
Password NumberLength - Minimum password length required.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.