1. Packages
  2. Ibm Provider
  3. API Docs
  4. getAppidPasswordRegex
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getAppidPasswordRegex

Explore with Pulumi AI

Retrieve an IBM Cloud AppID Password Regex configuration. For more information, see defining password policies

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const rgx = ibm.getAppidPasswordRegex({
    tenantId: _var.tenant_id,
});
Copy
import pulumi
import pulumi_ibm as ibm

rgx = ibm.get_appid_password_regex(tenant_id=var["tenant_id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ibm.LookupAppidPasswordRegex(ctx, &ibm.LookupAppidPasswordRegexArgs{
			TenantId: _var.Tenant_id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var rgx = Ibm.GetAppidPasswordRegex.Invoke(new()
    {
        TenantId = @var.Tenant_id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetAppidPasswordRegexArgs;
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 rgx = IbmFunctions.getAppidPasswordRegex(GetAppidPasswordRegexArgs.builder()
            .tenantId(var_.tenant_id())
            .build());

    }
}
Copy
variables:
  rgx:
    fn::invoke:
      function: ibm:getAppidPasswordRegex
      arguments:
        tenantId: ${var.tenant_id}
Copy

Using getAppidPasswordRegex

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 getAppidPasswordRegex(args: GetAppidPasswordRegexArgs, opts?: InvokeOptions): Promise<GetAppidPasswordRegexResult>
function getAppidPasswordRegexOutput(args: GetAppidPasswordRegexOutputArgs, opts?: InvokeOptions): Output<GetAppidPasswordRegexResult>
Copy
def get_appid_password_regex(id: Optional[str] = None,
                             tenant_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetAppidPasswordRegexResult
def get_appid_password_regex_output(id: Optional[pulumi.Input[str]] = None,
                             tenant_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetAppidPasswordRegexResult]
Copy
func LookupAppidPasswordRegex(ctx *Context, args *LookupAppidPasswordRegexArgs, opts ...InvokeOption) (*LookupAppidPasswordRegexResult, error)
func LookupAppidPasswordRegexOutput(ctx *Context, args *LookupAppidPasswordRegexOutputArgs, opts ...InvokeOption) LookupAppidPasswordRegexResultOutput
Copy

> Note: This function is named LookupAppidPasswordRegex in the Go SDK.

public static class GetAppidPasswordRegex 
{
    public static Task<GetAppidPasswordRegexResult> InvokeAsync(GetAppidPasswordRegexArgs args, InvokeOptions? opts = null)
    public static Output<GetAppidPasswordRegexResult> Invoke(GetAppidPasswordRegexInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAppidPasswordRegexResult> getAppidPasswordRegex(GetAppidPasswordRegexArgs args, InvokeOptions options)
public static Output<GetAppidPasswordRegexResult> getAppidPasswordRegex(GetAppidPasswordRegexArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getAppidPasswordRegex:getAppidPasswordRegex
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

TenantId This property is required. string
The AppID instance GUID
Id string
TenantId This property is required. string
The AppID instance GUID
Id string
tenantId This property is required. String
The AppID instance GUID
id String
tenantId This property is required. string
The AppID instance GUID
id string
tenant_id This property is required. str
The AppID instance GUID
id str
tenantId This property is required. String
The AppID instance GUID
id String

getAppidPasswordRegex Result

The following output properties are available:

Base64EncodedRegex string
(String) The regex expression rule for acceptable password encoded in base64
ErrorMessage string
(String) Custom error message
Id string
Regex string
(String) The escaped regex expression rule for acceptable password
TenantId string
Base64EncodedRegex string
(String) The regex expression rule for acceptable password encoded in base64
ErrorMessage string
(String) Custom error message
Id string
Regex string
(String) The escaped regex expression rule for acceptable password
TenantId string
base64EncodedRegex String
(String) The regex expression rule for acceptable password encoded in base64
errorMessage String
(String) Custom error message
id String
regex String
(String) The escaped regex expression rule for acceptable password
tenantId String
base64EncodedRegex string
(String) The regex expression rule for acceptable password encoded in base64
errorMessage string
(String) Custom error message
id string
regex string
(String) The escaped regex expression rule for acceptable password
tenantId string
base64_encoded_regex str
(String) The regex expression rule for acceptable password encoded in base64
error_message str
(String) Custom error message
id str
regex str
(String) The escaped regex expression rule for acceptable password
tenant_id str
base64EncodedRegex String
(String) The regex expression rule for acceptable password encoded in base64
errorMessage String
(String) Custom error message
id String
regex String
(String) The escaped regex expression rule for acceptable password
tenantId String

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.