DefaultGroups
# keycloak..DefaultGroups
Allows for managing a realm’s default groups.
Note that you should not use keycloak..DefaultGroups with a group with memberships managed
by keycloak..GroupMemberships.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as keycloak from "@pulumi/keycloak";
const realm = new keycloak.Realm("realm", {
enabled: true,
realm: "my-realm",
});
const group = new keycloak.Group("group", {
realmId: realm.id,
});
const defaultDefaultGroups = new keycloak.DefaultGroups("default", {
groupIds: [group.id],
realmId: realm.id,
});import pulumi
import pulumi_keycloak as keycloak
realm = keycloak.Realm("realm",
enabled=True,
realm="my-realm")
group = keycloak.Group("group", realm_id=realm.id)
default = keycloak.DefaultGroups("default",
group_ids=[group.id],
realm_id=realm.id)using Pulumi;
using Keycloak = Pulumi.Keycloak;
class MyStack : Stack
{
public MyStack()
{
var realm = new Keycloak.Realm("realm", new Keycloak.RealmArgs
{
Enabled = true,
Realm = "my-realm",
});
var @group = new Keycloak.Group("group", new Keycloak.GroupArgs
{
RealmId = realm.Id,
});
var @default = new Keycloak.DefaultGroups("default", new Keycloak.DefaultGroupsArgs
{
GroupIds =
{
@group.Id,
},
RealmId = realm.Id,
});
}
}
Argument Reference
The following arguments are supported:
realm_id- (Required) The realm this group exists in.group_ids- (Required) A set of group ids that should be default groups on the realm referenced byrealm_id.
Create a DefaultGroups Resource
new DefaultGroups(name: string, args: DefaultGroupsArgs, opts?: CustomResourceOptions);def DefaultGroups(resource_name, opts=None, group_ids=None, realm_id=None, __props__=None);func NewDefaultGroups(ctx *Context, name string, args DefaultGroupsArgs, opts ...ResourceOption) (*DefaultGroups, error)public DefaultGroups(string name, DefaultGroupsArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args DefaultGroupsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DefaultGroupsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DefaultGroupsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
DefaultGroups Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The DefaultGroups resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the DefaultGroups resource produces the following output properties:
Look up an Existing DefaultGroups Resource
Get an existing DefaultGroups resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DefaultGroupsState, opts?: CustomResourceOptions): DefaultGroupsstatic get(resource_name, id, opts=None, group_ids=None, realm_id=None, __props__=None);func GetDefaultGroups(ctx *Context, name string, id IDInput, state *DefaultGroupsState, opts ...ResourceOption) (*DefaultGroups, error)public static DefaultGroups Get(string name, Input<string> id, DefaultGroupsState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
Package Details
- Repository
- https://github.com/pulumi/pulumi-keycloak
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
keycloakTerraform Provider.