GetRealm
# keycloak..Realm data source
This data source can be used to fetch properties of a Keycloak realm for usage with other resources.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as keycloak from "@pulumi/keycloak";
const realm = keycloak.getRealm({
realm: "my-realm",
});
const group = new keycloak.Role("group", {realmId: data.keycloak_realm.id});import pulumi
import pulumi_keycloak as keycloak
realm = keycloak.get_realm(realm="my-realm")
group = keycloak.Role("group", realm_id=data["keycloak..Realm"]["id"])using Pulumi;
using Keycloak = Pulumi.Keycloak;
class MyStack : Stack
{
public MyStack()
{
var realm = Output.Create(Keycloak.GetRealm.InvokeAsync(new Keycloak.GetRealmArgs
{
Realm = "my-realm",
}));
var @group = new Keycloak.Role("group", new Keycloak.RoleArgs
{
RealmId = data.Keycloak_realm.Id,
});
}
}
Argument Reference
The following arguments are supported:
realm- (Required) The realm name.
Attributes Reference
See the docs for the keycloak..Realm resource for details on the exported attributes.
Using GetRealm
function getRealm(args: GetRealmArgs, opts?: InvokeOptions): Promise<GetRealmResult>function get_realm(attributes=None, display_name_html=None, internationalizations=None, realm=None, security_defenses=None, smtp_servers=None, opts=None)func LookupRealm(ctx *Context, args *LookupRealmArgs, opts ...InvokeOption) (*LookupRealmResult, error)Note: This function is named
LookupRealmin the Go SDK.
public static class GetRealm {
public static Task<GetRealmResult> InvokeAsync(GetRealmArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetRealm Result
The following output properties are available:
- Access
Code stringLifespan - Access
Code stringLifespan Login - Access
Code stringLifespan User Action - Access
Token stringLifespan - Access
Token stringLifespan For Implicit Flow - Account
Theme string - Action
Token stringGenerated By Admin Lifespan - Action
Token stringGenerated By User Lifespan - Admin
Theme string - Attributes Dictionary<string, object>
- Browser
Flow string - Client
Authentication stringFlow - Direct
Grant stringFlow - Display
Name string - Docker
Authentication stringFlow - Duplicate
Emails boolAllowed - Edit
Username boolAllowed - Email
Theme string - Enabled bool
- Id string
The provider-assigned unique ID for this managed resource.
- Internal
Id string - Internationalizations
List<Get
Realm Internationalization> - Login
Theme string - Login
With boolEmail Allowed - Offline
Session stringIdle Timeout - Offline
Session stringMax Lifespan - Password
Policy string - Realm string
- Refresh
Token intMax Reuse - Registration
Allowed bool - Registration
Email boolAs Username - Registration
Flow string - Remember
Me bool - Reset
Credentials stringFlow - Reset
Password boolAllowed - Security
Defenses List<GetRealm Security Defense> - Smtp
Servers List<GetRealm Smtp Server> - Ssl
Required string - Sso
Session stringIdle Timeout - Sso
Session stringMax Lifespan - User
Managed boolAccess - Verify
Email bool - Display
Name stringHtml
- Access
Code stringLifespan - Access
Code stringLifespan Login - Access
Code stringLifespan User Action - Access
Token stringLifespan - Access
Token stringLifespan For Implicit Flow - Account
Theme string - Action
Token stringGenerated By Admin Lifespan - Action
Token stringGenerated By User Lifespan - Admin
Theme string - Attributes map[string]interface{}
- Browser
Flow string - Client
Authentication stringFlow - Direct
Grant stringFlow - Display
Name string - Docker
Authentication stringFlow - Duplicate
Emails boolAllowed - Edit
Username boolAllowed - Email
Theme string - Enabled bool
- Id string
The provider-assigned unique ID for this managed resource.
- Internal
Id string - Internationalizations
[]Get
Realm Internationalization - Login
Theme string - Login
With boolEmail Allowed - Offline
Session stringIdle Timeout - Offline
Session stringMax Lifespan - Password
Policy string - Realm string
- Refresh
Token intMax Reuse - Registration
Allowed bool - Registration
Email boolAs Username - Registration
Flow string - Remember
Me bool - Reset
Credentials stringFlow - Reset
Password boolAllowed - Security
Defenses []GetRealm Security Defense - Smtp
Servers []GetRealm Smtp Server - Ssl
Required string - Sso
Session stringIdle Timeout - Sso
Session stringMax Lifespan - User
Managed boolAccess - Verify
Email bool - Display
Name stringHtml
- access
Code stringLifespan - access
Code stringLifespan Login - access
Code stringLifespan User Action - access
Token stringLifespan - access
Token stringLifespan For Implicit Flow - account
Theme string - action
Token stringGenerated By Admin Lifespan - action
Token stringGenerated By User Lifespan - admin
Theme string - attributes {[key: string]: any}
- browser
Flow string - client
Authentication stringFlow - direct
Grant stringFlow - display
Name string - docker
Authentication stringFlow - duplicate
Emails booleanAllowed - edit
Username booleanAllowed - email
Theme string - enabled boolean
- id string
The provider-assigned unique ID for this managed resource.
- internal
Id string - internationalizations
Get
Realm Internationalization[] - login
Theme string - login
With booleanEmail Allowed - offline
Session stringIdle Timeout - offline
Session stringMax Lifespan - password
Policy string - realm string
- refresh
Token numberMax Reuse - registration
Allowed boolean - registration
Email booleanAs Username - registration
Flow string - remember
Me boolean - reset
Credentials stringFlow - reset
Password booleanAllowed - security
Defenses GetRealm Security Defense[] - smtp
Servers GetRealm Smtp Server[] - ssl
Required string - sso
Session stringIdle Timeout - sso
Session stringMax Lifespan - user
Managed booleanAccess - verify
Email boolean - display
Name stringHtml
- access_
code_ strlifespan - access_
code_ strlifespan_ login - access_
code_ strlifespan_ user_ action - access_
token_ strlifespan - access_
token_ strlifespan_ for_ implicit_ flow - account_
theme str - action_
token_ strgenerated_ by_ admin_ lifespan - action_
token_ strgenerated_ by_ user_ lifespan - admin_
theme str - attributes Dict[str, Any]
- browser_
flow str - client_
authentication_ strflow - direct_
grant_ strflow - display_
name str - docker_
authentication_ strflow - duplicate_
emails_ boolallowed - edit_
username_ boolallowed - email_
theme str - enabled bool
- id str
The provider-assigned unique ID for this managed resource.
- internal_
id str - internationalizations
List[Get
Realm Internationalization] - login_
theme str - login_
with_ boolemail_ allowed - offline_
session_ stridle_ timeout - offline_
session_ strmax_ lifespan - password_
policy str - realm str
- refresh_
token_ floatmax_ reuse - registration_
allowed bool - registration_
email_ boolas_ username - registration_
flow str - remember_
me bool - reset_
credentials_ strflow - reset_
password_ boolallowed - security_
defenses List[GetRealm Security Defense] - smtp_
servers List[GetRealm Smtp Server] - ssl_
required str - sso_
session_ stridle_ timeout - sso_
session_ strmax_ lifespan - user_
managed_ boolaccess - verify_
email bool - display_
name_ strhtml
Supporting Types
GetRealmInternationalization
GetRealmSecurityDefense
GetRealmSecurityDefenseBruteForceDetection
GetRealmSecurityDefenseHeader
GetRealmSmtpServer
GetRealmSmtpServerAuth
Package Details
- Repository
- https://github.com/pulumi/pulumi-keycloak
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
keycloakTerraform Provider.