Keycloak v5.4.0 published on Monday, Dec 9, 2024 by Pulumi
keycloak.getRealmKeys
Explore with Pulumi AI
Use this data source to get the keys of a realm. Keys can be filtered by algorithm and status.
Remarks:
- A key must meet all filter criteria
- This data source may return more than one value.
- If no key matches the filter criteria, then an error will be returned.
Using getRealmKeys
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 getRealmKeys(args: GetRealmKeysArgs, opts?: InvokeOptions): Promise<GetRealmKeysResult>
function getRealmKeysOutput(args: GetRealmKeysOutputArgs, opts?: InvokeOptions): Output<GetRealmKeysResult>
def get_realm_keys(algorithms: Optional[Sequence[str]] = None,
realm_id: Optional[str] = None,
statuses: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> GetRealmKeysResult
def get_realm_keys_output(algorithms: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
realm_id: Optional[pulumi.Input[str]] = None,
statuses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRealmKeysResult]
func GetRealmKeys(ctx *Context, args *GetRealmKeysArgs, opts ...InvokeOption) (*GetRealmKeysResult, error)
func GetRealmKeysOutput(ctx *Context, args *GetRealmKeysOutputArgs, opts ...InvokeOption) GetRealmKeysResultOutput
> Note: This function is named GetRealmKeys
in the Go SDK.
public static class GetRealmKeys
{
public static Task<GetRealmKeysResult> InvokeAsync(GetRealmKeysArgs args, InvokeOptions? opts = null)
public static Output<GetRealmKeysResult> Invoke(GetRealmKeysInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRealmKeysResult> getRealmKeys(GetRealmKeysArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: keycloak:index/getRealmKeys:getRealmKeys
arguments:
# arguments dictionary
The following arguments are supported:
- Realm
Id string - The realm from which the keys will be retrieved.
- Algorithms List<string>
- When specified, keys will be filtered by algorithm. The algorithms can be any of
HS256
,RS256
,AES
, etc. - Statuses List<string>
- When specified, keys will be filtered by status. The statuses can be any of
ACTIVE
,DISABLED
andPASSIVE
.
- Realm
Id string - The realm from which the keys will be retrieved.
- Algorithms []string
- When specified, keys will be filtered by algorithm. The algorithms can be any of
HS256
,RS256
,AES
, etc. - Statuses []string
- When specified, keys will be filtered by status. The statuses can be any of
ACTIVE
,DISABLED
andPASSIVE
.
- realm
Id String - The realm from which the keys will be retrieved.
- algorithms List<String>
- When specified, keys will be filtered by algorithm. The algorithms can be any of
HS256
,RS256
,AES
, etc. - statuses List<String>
- When specified, keys will be filtered by status. The statuses can be any of
ACTIVE
,DISABLED
andPASSIVE
.
- realm
Id string - The realm from which the keys will be retrieved.
- algorithms string[]
- When specified, keys will be filtered by algorithm. The algorithms can be any of
HS256
,RS256
,AES
, etc. - statuses string[]
- When specified, keys will be filtered by status. The statuses can be any of
ACTIVE
,DISABLED
andPASSIVE
.
- realm_
id str - The realm from which the keys will be retrieved.
- algorithms Sequence[str]
- When specified, keys will be filtered by algorithm. The algorithms can be any of
HS256
,RS256
,AES
, etc. - statuses Sequence[str]
- When specified, keys will be filtered by status. The statuses can be any of
ACTIVE
,DISABLED
andPASSIVE
.
- realm
Id String - The realm from which the keys will be retrieved.
- algorithms List<String>
- When specified, keys will be filtered by algorithm. The algorithms can be any of
HS256
,RS256
,AES
, etc. - statuses List<String>
- When specified, keys will be filtered by status. The statuses can be any of
ACTIVE
,DISABLED
andPASSIVE
.
getRealmKeys Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Keys
List<Get
Realm Keys Key> - (Computed) A list of keys that match the filter criteria. Each key has the following attributes:
- Realm
Id string - Algorithms List<string>
- Statuses List<string>
- Key status (string)
- Id string
- The provider-assigned unique ID for this managed resource.
- Keys
[]Get
Realm Keys Key - (Computed) A list of keys that match the filter criteria. Each key has the following attributes:
- Realm
Id string - Algorithms []string
- Statuses []string
- Key status (string)
- id String
- The provider-assigned unique ID for this managed resource.
- keys
List<Get
Realm Keys Key> - (Computed) A list of keys that match the filter criteria. Each key has the following attributes:
- realm
Id String - algorithms List<String>
- statuses List<String>
- Key status (string)
- id string
- The provider-assigned unique ID for this managed resource.
- keys
Get
Realm Keys Key[] - (Computed) A list of keys that match the filter criteria. Each key has the following attributes:
- realm
Id string - algorithms string[]
- statuses string[]
- Key status (string)
- id str
- The provider-assigned unique ID for this managed resource.
- keys
Sequence[Get
Realm Keys Key] - (Computed) A list of keys that match the filter criteria. Each key has the following attributes:
- realm_
id str - algorithms Sequence[str]
- statuses Sequence[str]
- Key status (string)
- id String
- The provider-assigned unique ID for this managed resource.
- keys List<Property Map>
- (Computed) A list of keys that match the filter criteria. Each key has the following attributes:
- realm
Id String - algorithms List<String>
- statuses List<String>
- Key status (string)
Supporting Types
GetRealmKeysKey
- Algorithm string
- Key algorithm (string)
- Certificate string
- Key certificate (string)
- Kid string
- Key ID (string)
- Provider
Id string - Key provider ID (string)
- Provider
Priority int - Key provider priority (int64)
- Public
Key string - Key public key (string)
- Status string
- When specified, keys will be filtered by status. The statuses can be any of
ACTIVE
,DISABLED
andPASSIVE
. - Type string
- Key type (string)
- Algorithm string
- Key algorithm (string)
- Certificate string
- Key certificate (string)
- Kid string
- Key ID (string)
- Provider
Id string - Key provider ID (string)
- Provider
Priority int - Key provider priority (int64)
- Public
Key string - Key public key (string)
- Status string
- When specified, keys will be filtered by status. The statuses can be any of
ACTIVE
,DISABLED
andPASSIVE
. - Type string
- Key type (string)
- algorithm String
- Key algorithm (string)
- certificate String
- Key certificate (string)
- kid String
- Key ID (string)
- provider
Id String - Key provider ID (string)
- provider
Priority Integer - Key provider priority (int64)
- public
Key String - Key public key (string)
- status String
- When specified, keys will be filtered by status. The statuses can be any of
ACTIVE
,DISABLED
andPASSIVE
. - type String
- Key type (string)
- algorithm string
- Key algorithm (string)
- certificate string
- Key certificate (string)
- kid string
- Key ID (string)
- provider
Id string - Key provider ID (string)
- provider
Priority number - Key provider priority (int64)
- public
Key string - Key public key (string)
- status string
- When specified, keys will be filtered by status. The statuses can be any of
ACTIVE
,DISABLED
andPASSIVE
. - type string
- Key type (string)
- algorithm str
- Key algorithm (string)
- certificate str
- Key certificate (string)
- kid str
- Key ID (string)
- provider_
id str - Key provider ID (string)
- provider_
priority int - Key provider priority (int64)
- public_
key str - Key public key (string)
- status str
- When specified, keys will be filtered by status. The statuses can be any of
ACTIVE
,DISABLED
andPASSIVE
. - type str
- Key type (string)
- algorithm String
- Key algorithm (string)
- certificate String
- Key certificate (string)
- kid String
- Key ID (string)
- provider
Id String - Key provider ID (string)
- provider
Priority Number - Key provider priority (int64)
- public
Key String - Key public key (string)
- status String
- When specified, keys will be filtered by status. The statuses can be any of
ACTIVE
,DISABLED
andPASSIVE
. - type String
- Key type (string)
Package Details
- Repository
- Keycloak pulumi/pulumi-keycloak
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
keycloak
Terraform Provider.