ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getIamAccountSettings
Explore with Pulumi AI
Retrieve information about an existing iam_account_settings
data sources. For more information, about IAM account settings, refer to setting up your IBM Cloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const iamAccountSettings = ibm.getIamAccountSettings({});
import pulumi
import pulumi_ibm as ibm
iam_account_settings = ibm.get_iam_account_settings()
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.LookupIamAccountSettings(ctx, &ibm.LookupIamAccountSettingsArgs{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var iamAccountSettings = Ibm.GetIamAccountSettings.Invoke();
});
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.GetIamAccountSettingsArgs;
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 iamAccountSettings = IbmFunctions.getIamAccountSettings();
}
}
variables:
iamAccountSettings:
fn::invoke:
function: ibm:getIamAccountSettings
arguments: {}
Using getIamAccountSettings
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 getIamAccountSettings(args: GetIamAccountSettingsArgs, opts?: InvokeOptions): Promise<GetIamAccountSettingsResult>
function getIamAccountSettingsOutput(args: GetIamAccountSettingsOutputArgs, opts?: InvokeOptions): Output<GetIamAccountSettingsResult>
def get_iam_account_settings(id: Optional[str] = None,
include_history: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetIamAccountSettingsResult
def get_iam_account_settings_output(id: Optional[pulumi.Input[str]] = None,
include_history: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIamAccountSettingsResult]
func LookupIamAccountSettings(ctx *Context, args *LookupIamAccountSettingsArgs, opts ...InvokeOption) (*LookupIamAccountSettingsResult, error)
func LookupIamAccountSettingsOutput(ctx *Context, args *LookupIamAccountSettingsOutputArgs, opts ...InvokeOption) LookupIamAccountSettingsResultOutput
> Note: This function is named LookupIamAccountSettings
in the Go SDK.
public static class GetIamAccountSettings
{
public static Task<GetIamAccountSettingsResult> InvokeAsync(GetIamAccountSettingsArgs args, InvokeOptions? opts = null)
public static Output<GetIamAccountSettingsResult> Invoke(GetIamAccountSettingsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIamAccountSettingsResult> getIamAccountSettings(GetIamAccountSettingsArgs args, InvokeOptions options)
public static Output<GetIamAccountSettingsResult> getIamAccountSettings(GetIamAccountSettingsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIamAccountSettings:getIamAccountSettings
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- (String) The unique identifier of an iam_account_settings.
- Include
History bool - Defines if the entity history is included in the response.
- Id string
- (String) The unique identifier of an iam_account_settings.
- Include
History bool - Defines if the entity history is included in the response.
- id String
- (String) The unique identifier of an iam_account_settings.
- include
History Boolean - Defines if the entity history is included in the response.
- id string
- (String) The unique identifier of an iam_account_settings.
- include
History boolean - Defines if the entity history is included in the response.
- id str
- (String) The unique identifier of an iam_account_settings.
- include_
history bool - Defines if the entity history is included in the response.
- id String
- (String) The unique identifier of an iam_account_settings.
- include
History Boolean - Defines if the entity history is included in the response.
getIamAccountSettings Result
The following output properties are available:
- Account
Id string - (String) The unique ID of an account.
- Allowed
Ip stringAddresses - (String) Defines the IP addresses and subnets from which IAM tokens is created for an account.
- Entity
Tag string - (String) The version of an account settings.
- Histories
List<Get
Iam Account Settings History> - (String) The history of an account settings. Nested history blocks have the following structure.
Nested scheme for
history
: - Id string
- (String) The unique identifier of an iam_account_settings.
- Max
Sessions stringPer Identity - (Integer) Defines the maximum allowed sessions per identity required by an account.
- Mfa string
- (String) Defines the MFA requirement for the user. Valid values are NONE No MFA trait set. TOTP For all non-federated IBMID users TOTP4ALL For all users. LEVEL1 The Email based MFA for all users. LEVEL2 TOTP based MFA for all users. LEVEL3 U2F MFA for all users.
- Restrict
Create stringPlatform Apikey - (String) Defines whether creating platform API keys is access controlled. Valid values are RESTRICTED to apply access control. NOT_RESTRICTED to remove access control. NOT_SET to
unset
a previous set value. - Restrict
Create stringService Id - (String) Defines whether creating a service ID is access controlled. Valid values are RESTRICTED to apply access control. NOT_RESTRICTED to remove access control. NOT_SET to
unset
a previous set value. - Session
Expiration stringIn Seconds - (String) Defines the session expiration in seconds for the account. Valid values are Any whole number between between
900
and86400
, and NOT_SET to unset account setting and use the service default. - Session
Invalidation stringIn Seconds - (String) Defines the period of time in seconds in which a session is invalid due to inactivity. Valid values are Any whole number between
900
and7200
, and NOT_SET to unset account setting and use the service default. - System
Access stringToken Expiration In Seconds - (String) Defines the access token expiration in seconds. Valid values: * Any whole number between '900' and '3600' * NOT_SET - To unset account setting and use service default.
- Constraints: The default value is
3600
.
- Constraints: The default value is
- System
Refresh stringToken Expiration In Seconds - (String) Defines the refresh token expiration in seconds. Valid values: * Any whole number between '900' and '2592000' * NOT_SET - To unset account setting and use service default.
- Constraints: The default value is
2592000
.
- Constraints: The default value is
- User
Mfas List<GetIam Account Settings User Mfa> - (List) List of users that are exempted from the MFA requirement of the account.
Nested scheme for
user_mfa
: - Include
History bool
- Account
Id string - (String) The unique ID of an account.
- Allowed
Ip stringAddresses - (String) Defines the IP addresses and subnets from which IAM tokens is created for an account.
- Entity
Tag string - (String) The version of an account settings.
- Histories
[]Get
Iam Account Settings History - (String) The history of an account settings. Nested history blocks have the following structure.
Nested scheme for
history
: - Id string
- (String) The unique identifier of an iam_account_settings.
- Max
Sessions stringPer Identity - (Integer) Defines the maximum allowed sessions per identity required by an account.
- Mfa string
- (String) Defines the MFA requirement for the user. Valid values are NONE No MFA trait set. TOTP For all non-federated IBMID users TOTP4ALL For all users. LEVEL1 The Email based MFA for all users. LEVEL2 TOTP based MFA for all users. LEVEL3 U2F MFA for all users.
- Restrict
Create stringPlatform Apikey - (String) Defines whether creating platform API keys is access controlled. Valid values are RESTRICTED to apply access control. NOT_RESTRICTED to remove access control. NOT_SET to
unset
a previous set value. - Restrict
Create stringService Id - (String) Defines whether creating a service ID is access controlled. Valid values are RESTRICTED to apply access control. NOT_RESTRICTED to remove access control. NOT_SET to
unset
a previous set value. - Session
Expiration stringIn Seconds - (String) Defines the session expiration in seconds for the account. Valid values are Any whole number between between
900
and86400
, and NOT_SET to unset account setting and use the service default. - Session
Invalidation stringIn Seconds - (String) Defines the period of time in seconds in which a session is invalid due to inactivity. Valid values are Any whole number between
900
and7200
, and NOT_SET to unset account setting and use the service default. - System
Access stringToken Expiration In Seconds - (String) Defines the access token expiration in seconds. Valid values: * Any whole number between '900' and '3600' * NOT_SET - To unset account setting and use service default.
- Constraints: The default value is
3600
.
- Constraints: The default value is
- System
Refresh stringToken Expiration In Seconds - (String) Defines the refresh token expiration in seconds. Valid values: * Any whole number between '900' and '2592000' * NOT_SET - To unset account setting and use service default.
- Constraints: The default value is
2592000
.
- Constraints: The default value is
- User
Mfas []GetIam Account Settings User Mfa - (List) List of users that are exempted from the MFA requirement of the account.
Nested scheme for
user_mfa
: - Include
History bool
- account
Id String - (String) The unique ID of an account.
- allowed
Ip StringAddresses - (String) Defines the IP addresses and subnets from which IAM tokens is created for an account.
- entity
Tag String - (String) The version of an account settings.
- histories
List<Get
Iam Account Settings History> - (String) The history of an account settings. Nested history blocks have the following structure.
Nested scheme for
history
: - id String
- (String) The unique identifier of an iam_account_settings.
- max
Sessions StringPer Identity - (Integer) Defines the maximum allowed sessions per identity required by an account.
- mfa String
- (String) Defines the MFA requirement for the user. Valid values are NONE No MFA trait set. TOTP For all non-federated IBMID users TOTP4ALL For all users. LEVEL1 The Email based MFA for all users. LEVEL2 TOTP based MFA for all users. LEVEL3 U2F MFA for all users.
- restrict
Create StringPlatform Apikey - (String) Defines whether creating platform API keys is access controlled. Valid values are RESTRICTED to apply access control. NOT_RESTRICTED to remove access control. NOT_SET to
unset
a previous set value. - restrict
Create StringService Id - (String) Defines whether creating a service ID is access controlled. Valid values are RESTRICTED to apply access control. NOT_RESTRICTED to remove access control. NOT_SET to
unset
a previous set value. - session
Expiration StringIn Seconds - (String) Defines the session expiration in seconds for the account. Valid values are Any whole number between between
900
and86400
, and NOT_SET to unset account setting and use the service default. - session
Invalidation StringIn Seconds - (String) Defines the period of time in seconds in which a session is invalid due to inactivity. Valid values are Any whole number between
900
and7200
, and NOT_SET to unset account setting and use the service default. - system
Access StringToken Expiration In Seconds - (String) Defines the access token expiration in seconds. Valid values: * Any whole number between '900' and '3600' * NOT_SET - To unset account setting and use service default.
- Constraints: The default value is
3600
.
- Constraints: The default value is
- system
Refresh StringToken Expiration In Seconds - (String) Defines the refresh token expiration in seconds. Valid values: * Any whole number between '900' and '2592000' * NOT_SET - To unset account setting and use service default.
- Constraints: The default value is
2592000
.
- Constraints: The default value is
- user
Mfas List<GetIam Account Settings User Mfa> - (List) List of users that are exempted from the MFA requirement of the account.
Nested scheme for
user_mfa
: - include
History Boolean
- account
Id string - (String) The unique ID of an account.
- allowed
Ip stringAddresses - (String) Defines the IP addresses and subnets from which IAM tokens is created for an account.
- entity
Tag string - (String) The version of an account settings.
- histories
Get
Iam Account Settings History[] - (String) The history of an account settings. Nested history blocks have the following structure.
Nested scheme for
history
: - id string
- (String) The unique identifier of an iam_account_settings.
- max
Sessions stringPer Identity - (Integer) Defines the maximum allowed sessions per identity required by an account.
- mfa string
- (String) Defines the MFA requirement for the user. Valid values are NONE No MFA trait set. TOTP For all non-federated IBMID users TOTP4ALL For all users. LEVEL1 The Email based MFA for all users. LEVEL2 TOTP based MFA for all users. LEVEL3 U2F MFA for all users.
- restrict
Create stringPlatform Apikey - (String) Defines whether creating platform API keys is access controlled. Valid values are RESTRICTED to apply access control. NOT_RESTRICTED to remove access control. NOT_SET to
unset
a previous set value. - restrict
Create stringService Id - (String) Defines whether creating a service ID is access controlled. Valid values are RESTRICTED to apply access control. NOT_RESTRICTED to remove access control. NOT_SET to
unset
a previous set value. - session
Expiration stringIn Seconds - (String) Defines the session expiration in seconds for the account. Valid values are Any whole number between between
900
and86400
, and NOT_SET to unset account setting and use the service default. - session
Invalidation stringIn Seconds - (String) Defines the period of time in seconds in which a session is invalid due to inactivity. Valid values are Any whole number between
900
and7200
, and NOT_SET to unset account setting and use the service default. - system
Access stringToken Expiration In Seconds - (String) Defines the access token expiration in seconds. Valid values: * Any whole number between '900' and '3600' * NOT_SET - To unset account setting and use service default.
- Constraints: The default value is
3600
.
- Constraints: The default value is
- system
Refresh stringToken Expiration In Seconds - (String) Defines the refresh token expiration in seconds. Valid values: * Any whole number between '900' and '2592000' * NOT_SET - To unset account setting and use service default.
- Constraints: The default value is
2592000
.
- Constraints: The default value is
- user
Mfas GetIam Account Settings User Mfa[] - (List) List of users that are exempted from the MFA requirement of the account.
Nested scheme for
user_mfa
: - include
History boolean
- account_
id str - (String) The unique ID of an account.
- allowed_
ip_ straddresses - (String) Defines the IP addresses and subnets from which IAM tokens is created for an account.
- entity_
tag str - (String) The version of an account settings.
- histories
Sequence[Get
Iam Account Settings History] - (String) The history of an account settings. Nested history blocks have the following structure.
Nested scheme for
history
: - id str
- (String) The unique identifier of an iam_account_settings.
- max_
sessions_ strper_ identity - (Integer) Defines the maximum allowed sessions per identity required by an account.
- mfa str
- (String) Defines the MFA requirement for the user. Valid values are NONE No MFA trait set. TOTP For all non-federated IBMID users TOTP4ALL For all users. LEVEL1 The Email based MFA for all users. LEVEL2 TOTP based MFA for all users. LEVEL3 U2F MFA for all users.
- restrict_
create_ strplatform_ apikey - (String) Defines whether creating platform API keys is access controlled. Valid values are RESTRICTED to apply access control. NOT_RESTRICTED to remove access control. NOT_SET to
unset
a previous set value. - restrict_
create_ strservice_ id - (String) Defines whether creating a service ID is access controlled. Valid values are RESTRICTED to apply access control. NOT_RESTRICTED to remove access control. NOT_SET to
unset
a previous set value. - session_
expiration_ strin_ seconds - (String) Defines the session expiration in seconds for the account. Valid values are Any whole number between between
900
and86400
, and NOT_SET to unset account setting and use the service default. - session_
invalidation_ strin_ seconds - (String) Defines the period of time in seconds in which a session is invalid due to inactivity. Valid values are Any whole number between
900
and7200
, and NOT_SET to unset account setting and use the service default. - system_
access_ strtoken_ expiration_ in_ seconds - (String) Defines the access token expiration in seconds. Valid values: * Any whole number between '900' and '3600' * NOT_SET - To unset account setting and use service default.
- Constraints: The default value is
3600
.
- Constraints: The default value is
- system_
refresh_ strtoken_ expiration_ in_ seconds - (String) Defines the refresh token expiration in seconds. Valid values: * Any whole number between '900' and '2592000' * NOT_SET - To unset account setting and use service default.
- Constraints: The default value is
2592000
.
- Constraints: The default value is
- user_
mfas Sequence[GetIam Account Settings User Mfa] - (List) List of users that are exempted from the MFA requirement of the account.
Nested scheme for
user_mfa
: - include_
history bool
- account
Id String - (String) The unique ID of an account.
- allowed
Ip StringAddresses - (String) Defines the IP addresses and subnets from which IAM tokens is created for an account.
- entity
Tag String - (String) The version of an account settings.
- histories List<Property Map>
- (String) The history of an account settings. Nested history blocks have the following structure.
Nested scheme for
history
: - id String
- (String) The unique identifier of an iam_account_settings.
- max
Sessions StringPer Identity - (Integer) Defines the maximum allowed sessions per identity required by an account.
- mfa String
- (String) Defines the MFA requirement for the user. Valid values are NONE No MFA trait set. TOTP For all non-federated IBMID users TOTP4ALL For all users. LEVEL1 The Email based MFA for all users. LEVEL2 TOTP based MFA for all users. LEVEL3 U2F MFA for all users.
- restrict
Create StringPlatform Apikey - (String) Defines whether creating platform API keys is access controlled. Valid values are RESTRICTED to apply access control. NOT_RESTRICTED to remove access control. NOT_SET to
unset
a previous set value. - restrict
Create StringService Id - (String) Defines whether creating a service ID is access controlled. Valid values are RESTRICTED to apply access control. NOT_RESTRICTED to remove access control. NOT_SET to
unset
a previous set value. - session
Expiration StringIn Seconds - (String) Defines the session expiration in seconds for the account. Valid values are Any whole number between between
900
and86400
, and NOT_SET to unset account setting and use the service default. - session
Invalidation StringIn Seconds - (String) Defines the period of time in seconds in which a session is invalid due to inactivity. Valid values are Any whole number between
900
and7200
, and NOT_SET to unset account setting and use the service default. - system
Access StringToken Expiration In Seconds - (String) Defines the access token expiration in seconds. Valid values: * Any whole number between '900' and '3600' * NOT_SET - To unset account setting and use service default.
- Constraints: The default value is
3600
.
- Constraints: The default value is
- system
Refresh StringToken Expiration In Seconds - (String) Defines the refresh token expiration in seconds. Valid values: * Any whole number between '900' and '2592000' * NOT_SET - To unset account setting and use service default.
- Constraints: The default value is
2592000
.
- Constraints: The default value is
- user
Mfas List<Property Map> - (List) List of users that are exempted from the MFA requirement of the account.
Nested scheme for
user_mfa
: - include
History Boolean
Supporting Types
GetIamAccountSettingsHistory
- Action string
- (String) The action of the history entry.
- Iam
Id string - (String) The iam_id of the user.
- Iam
Id stringAccount - (String) The account of an identity that trigger an action.-
params
- (String) The parameters of the history entry. - Message string
- (String) The message that summarizes the executed action.
- Params List<string>
- (String) Params of the history entry.
- Timestamp string
- (String) The timestamp when an action is triggered.
- Action string
- (String) The action of the history entry.
- Iam
Id string - (String) The iam_id of the user.
- Iam
Id stringAccount - (String) The account of an identity that trigger an action.-
params
- (String) The parameters of the history entry. - Message string
- (String) The message that summarizes the executed action.
- Params []string
- (String) Params of the history entry.
- Timestamp string
- (String) The timestamp when an action is triggered.
- action String
- (String) The action of the history entry.
- iam
Id String - (String) The iam_id of the user.
- iam
Id StringAccount - (String) The account of an identity that trigger an action.-
params
- (String) The parameters of the history entry. - message String
- (String) The message that summarizes the executed action.
- params List<String>
- (String) Params of the history entry.
- timestamp String
- (String) The timestamp when an action is triggered.
- action string
- (String) The action of the history entry.
- iam
Id string - (String) The iam_id of the user.
- iam
Id stringAccount - (String) The account of an identity that trigger an action.-
params
- (String) The parameters of the history entry. - message string
- (String) The message that summarizes the executed action.
- params string[]
- (String) Params of the history entry.
- timestamp string
- (String) The timestamp when an action is triggered.
- action str
- (String) The action of the history entry.
- iam_
id str - (String) The iam_id of the user.
- iam_
id_ straccount - (String) The account of an identity that trigger an action.-
params
- (String) The parameters of the history entry. - message str
- (String) The message that summarizes the executed action.
- params Sequence[str]
- (String) Params of the history entry.
- timestamp str
- (String) The timestamp when an action is triggered.
- action String
- (String) The action of the history entry.
- iam
Id String - (String) The iam_id of the user.
- iam
Id StringAccount - (String) The account of an identity that trigger an action.-
params
- (String) The parameters of the history entry. - message String
- (String) The message that summarizes the executed action.
- params List<String>
- (String) Params of the history entry.
- timestamp String
- (String) The timestamp when an action is triggered.
GetIamAccountSettingsUserMfa
- Iam
Id string - (String) The iam_id of the user.
- Mfa string
- (String) Defines the MFA requirement for the user. Valid values are NONE No MFA trait set. TOTP For all non-federated IBMID users TOTP4ALL For all users. LEVEL1 The Email based MFA for all users. LEVEL2 TOTP based MFA for all users. LEVEL3 U2F MFA for all users.
- Iam
Id string - (String) The iam_id of the user.
- Mfa string
- (String) Defines the MFA requirement for the user. Valid values are NONE No MFA trait set. TOTP For all non-federated IBMID users TOTP4ALL For all users. LEVEL1 The Email based MFA for all users. LEVEL2 TOTP based MFA for all users. LEVEL3 U2F MFA for all users.
- iam
Id String - (String) The iam_id of the user.
- mfa String
- (String) Defines the MFA requirement for the user. Valid values are NONE No MFA trait set. TOTP For all non-federated IBMID users TOTP4ALL For all users. LEVEL1 The Email based MFA for all users. LEVEL2 TOTP based MFA for all users. LEVEL3 U2F MFA for all users.
- iam
Id string - (String) The iam_id of the user.
- mfa string
- (String) Defines the MFA requirement for the user. Valid values are NONE No MFA trait set. TOTP For all non-federated IBMID users TOTP4ALL For all users. LEVEL1 The Email based MFA for all users. LEVEL2 TOTP based MFA for all users. LEVEL3 U2F MFA for all users.
- iam_
id str - (String) The iam_id of the user.
- mfa str
- (String) Defines the MFA requirement for the user. Valid values are NONE No MFA trait set. TOTP For all non-federated IBMID users TOTP4ALL For all users. LEVEL1 The Email based MFA for all users. LEVEL2 TOTP based MFA for all users. LEVEL3 U2F MFA for all users.
- iam
Id String - (String) The iam_id of the user.
- mfa String
- (String) Defines the MFA requirement for the user. Valid values are NONE No MFA trait set. TOTP For all non-federated IBMID users TOTP4ALL For all users. LEVEL1 The Email based MFA for all users. LEVEL2 TOTP based MFA for all users. LEVEL3 U2F MFA for all users.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.