Skip to content
DocsTry Aspire
DocsTry

KeycloakResource

Handle
📦 Aspire.Hosting.Keycloak v13.4.0-preview.1.26281.18
interface KeycloakResource
extends IComputeResource,
IResource,
IResourceWithArgs,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport,
IResourceWithServiceDiscovery {
readonly adminPasswordParameter: ParameterResource;
readonly adminUserNameParameter: ParameterResource;
withDataBindMount(source: string): KeycloakResource;
withDataVolume(name?: string): KeycloakResource;
withDisabledFeatures(features: string[]): KeycloakResource;
withEnabledFeatures(features: string[]): KeycloakResource;
withOtlpExporter(protocol?: OtlpProtocol): KeycloakResource;
withRealmImport(importPath: string): KeycloakResource;
}

Properties

propertyadminPasswordParameterParameterResourceget
Gets the parameter that contains the Keycloak admin password.
propertyadminUserNameParameterParameterResourceget
Gets the parameter that contains the Keycloak admin.

Methods

methodwithDataBindMountbuilder
Adds a bind mount for the data folder to a Keycloak container resource.
withDataBindMount(source: string): KeycloakResource
sourcestring
KeycloakResource
methodwithDataVolumebuilder
Adds a named volume for the data folder to a Keycloak container resource.
withDataVolume(name?: string): KeycloakResource
namestringoptional
KeycloakResource
Additional feature names to disable for the keycloak resource
withDisabledFeatures(features: string[]): KeycloakResource
featuresstring[]
KeycloakResource
methodwithEnabledFeaturesbuilder
Additional feature names to enable for the keycloak resource
withEnabledFeatures(features: string[]): KeycloakResource
featuresstring[]
KeycloakResource
methodwithOtlpExporterbuilder
Configures the OTLP exporter for Keycloak
withOtlpExporter(protocol?: OtlpProtocol): KeycloakResource
protocolOtlpProtocoloptional
KeycloakResource
methodwithRealmImportbuilder
Adds a realm import to a Keycloak container resource.
withRealmImport(importPath: string): KeycloakResource
importPathstring
KeycloakResource