vault.identity.GroupMemberEntityIds
Explore with Pulumi AI
Manages member entities for an Identity Group for Vault. The Identity secrets engine is the identity management solution for Vault.
Example Usage
Exclusive Member Entities
using System.Collections.Generic;
using Pulumi;
using Vault = Pulumi.Vault;
return await Deployment.RunAsync(() =>
{
var @internal = new Vault.Identity.Group("internal", new()
{
Type = "internal",
ExternalMemberEntityIds = true,
Metadata =
{
{ "version", "2" },
},
});
var user = new Vault.Identity.Entity("user");
var members = new Vault.Identity.GroupMemberEntityIds("members", new()
{
Exclusive = true,
MemberEntityIds = new[]
{
user.Id,
},
GroupId = @internal.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-vault/sdk/v5/go/vault/identity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
internal, err := identity.NewGroup(ctx, "internal", &identity.GroupArgs{
Type: pulumi.String("internal"),
ExternalMemberEntityIds: pulumi.Bool(true),
Metadata: pulumi.StringMap{
"version": pulumi.String("2"),
},
})
if err != nil {
return err
}
user, err := identity.NewEntity(ctx, "user", nil)
if err != nil {
return err
}
_, err = identity.NewGroupMemberEntityIds(ctx, "members", &identity.GroupMemberEntityIdsArgs{
Exclusive: pulumi.Bool(true),
MemberEntityIds: pulumi.StringArray{
user.ID(),
},
GroupId: internal.ID(),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vault.identity.Group;
import com.pulumi.vault.identity.GroupArgs;
import com.pulumi.vault.identity.Entity;
import com.pulumi.vault.identity.GroupMemberEntityIds;
import com.pulumi.vault.identity.GroupMemberEntityIdsArgs;
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) {
var internal = new Group("internal", GroupArgs.builder()
.type("internal")
.externalMemberEntityIds(true)
.metadata(Map.of("version", "2"))
.build());
var user = new Entity("user");
var members = new GroupMemberEntityIds("members", GroupMemberEntityIdsArgs.builder()
.exclusive(true)
.memberEntityIds(user.id())
.groupId(internal.id())
.build());
}
}
import pulumi
import pulumi_vault as vault
internal = vault.identity.Group("internal",
type="internal",
external_member_entity_ids=True,
metadata={
"version": "2",
})
user = vault.identity.Entity("user")
members = vault.identity.GroupMemberEntityIds("members",
exclusive=True,
member_entity_ids=[user.id],
group_id=internal.id)
import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const internal = new vault.identity.Group("internal", {
type: "internal",
externalMemberEntityIds: true,
metadata: {
version: "2",
},
});
const user = new vault.identity.Entity("user", {});
const members = new vault.identity.GroupMemberEntityIds("members", {
exclusive: true,
memberEntityIds: [user.id],
groupId: internal.id,
});
resources:
internal:
type: vault:identity:Group
properties:
type: internal
externalMemberEntityIds: true
metadata:
version: 2
user:
type: vault:identity:Entity
members:
type: vault:identity:GroupMemberEntityIds
properties:
exclusive: true
memberEntityIds:
- ${user.id}
groupId: ${internal.id}
Non-exclusive Member Entities
using System.Collections.Generic;
using Pulumi;
using Vault = Pulumi.Vault;
return await Deployment.RunAsync(() =>
{
var @internal = new Vault.Identity.Group("internal", new()
{
Type = "internal",
ExternalMemberEntityIds = true,
Metadata =
{
{ "version", "2" },
},
});
var testUser = new Vault.Identity.Entity("testUser");
var secondTestUser = new Vault.Identity.Entity("secondTestUser");
var devUser = new Vault.Identity.Entity("devUser");
var test = new Vault.Identity.GroupMemberEntityIds("test", new()
{
MemberEntityIds = new[]
{
testUser.Id,
secondTestUser.Id,
},
Exclusive = false,
GroupId = @internal.Id,
});
var others = new Vault.Identity.GroupMemberEntityIds("others", new()
{
MemberEntityIds = new[]
{
devUser.Id,
},
Exclusive = false,
GroupId = @internal.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-vault/sdk/v5/go/vault/identity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
internal, err := identity.NewGroup(ctx, "internal", &identity.GroupArgs{
Type: pulumi.String("internal"),
ExternalMemberEntityIds: pulumi.Bool(true),
Metadata: pulumi.StringMap{
"version": pulumi.String("2"),
},
})
if err != nil {
return err
}
testUser, err := identity.NewEntity(ctx, "testUser", nil)
if err != nil {
return err
}
secondTestUser, err := identity.NewEntity(ctx, "secondTestUser", nil)
if err != nil {
return err
}
devUser, err := identity.NewEntity(ctx, "devUser", nil)
if err != nil {
return err
}
_, err = identity.NewGroupMemberEntityIds(ctx, "test", &identity.GroupMemberEntityIdsArgs{
MemberEntityIds: pulumi.StringArray{
testUser.ID(),
secondTestUser.ID(),
},
Exclusive: pulumi.Bool(false),
GroupId: internal.ID(),
})
if err != nil {
return err
}
_, err = identity.NewGroupMemberEntityIds(ctx, "others", &identity.GroupMemberEntityIdsArgs{
MemberEntityIds: pulumi.StringArray{
devUser.ID(),
},
Exclusive: pulumi.Bool(false),
GroupId: internal.ID(),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vault.identity.Group;
import com.pulumi.vault.identity.GroupArgs;
import com.pulumi.vault.identity.Entity;
import com.pulumi.vault.identity.GroupMemberEntityIds;
import com.pulumi.vault.identity.GroupMemberEntityIdsArgs;
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) {
var internal = new Group("internal", GroupArgs.builder()
.type("internal")
.externalMemberEntityIds(true)
.metadata(Map.of("version", "2"))
.build());
var testUser = new Entity("testUser");
var secondTestUser = new Entity("secondTestUser");
var devUser = new Entity("devUser");
var test = new GroupMemberEntityIds("test", GroupMemberEntityIdsArgs.builder()
.memberEntityIds(
testUser.id(),
secondTestUser.id())
.exclusive(false)
.groupId(internal.id())
.build());
var others = new GroupMemberEntityIds("others", GroupMemberEntityIdsArgs.builder()
.memberEntityIds(devUser.id())
.exclusive(false)
.groupId(internal.id())
.build());
}
}
import pulumi
import pulumi_vault as vault
internal = vault.identity.Group("internal",
type="internal",
external_member_entity_ids=True,
metadata={
"version": "2",
})
test_user = vault.identity.Entity("testUser")
second_test_user = vault.identity.Entity("secondTestUser")
dev_user = vault.identity.Entity("devUser")
test = vault.identity.GroupMemberEntityIds("test",
member_entity_ids=[
test_user.id,
second_test_user.id,
],
exclusive=False,
group_id=internal.id)
others = vault.identity.GroupMemberEntityIds("others",
member_entity_ids=[dev_user.id],
exclusive=False,
group_id=internal.id)
import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const internal = new vault.identity.Group("internal", {
type: "internal",
externalMemberEntityIds: true,
metadata: {
version: "2",
},
});
const testUser = new vault.identity.Entity("testUser", {});
const secondTestUser = new vault.identity.Entity("secondTestUser", {});
const devUser = new vault.identity.Entity("devUser", {});
const test = new vault.identity.GroupMemberEntityIds("test", {
memberEntityIds: [
testUser.id,
secondTestUser.id,
],
exclusive: false,
groupId: internal.id,
});
const others = new vault.identity.GroupMemberEntityIds("others", {
memberEntityIds: [devUser.id],
exclusive: false,
groupId: internal.id,
});
resources:
internal:
type: vault:identity:Group
properties:
type: internal
externalMemberEntityIds: true
metadata:
version: 2
testUser:
type: vault:identity:Entity
secondTestUser:
type: vault:identity:Entity
devUser:
type: vault:identity:Entity
test:
type: vault:identity:GroupMemberEntityIds
properties:
memberEntityIds:
- ${testUser.id}
- ${secondTestUser.id}
exclusive: false
groupId: ${internal.id}
others:
type: vault:identity:GroupMemberEntityIds
properties:
memberEntityIds:
- ${devUser.id}
exclusive: false
groupId: ${internal.id}
Create GroupMemberEntityIds Resource
new GroupMemberEntityIds(name: string, args: GroupMemberEntityIdsArgs, opts?: CustomResourceOptions);
@overload
def GroupMemberEntityIds(resource_name: str,
opts: Optional[ResourceOptions] = None,
exclusive: Optional[bool] = None,
group_id: Optional[str] = None,
member_entity_ids: Optional[Sequence[str]] = None,
namespace: Optional[str] = None)
@overload
def GroupMemberEntityIds(resource_name: str,
args: GroupMemberEntityIdsArgs,
opts: Optional[ResourceOptions] = None)
func NewGroupMemberEntityIds(ctx *Context, name string, args GroupMemberEntityIdsArgs, opts ...ResourceOption) (*GroupMemberEntityIds, error)
public GroupMemberEntityIds(string name, GroupMemberEntityIdsArgs args, CustomResourceOptions? opts = null)
public GroupMemberEntityIds(String name, GroupMemberEntityIdsArgs args)
public GroupMemberEntityIds(String name, GroupMemberEntityIdsArgs args, CustomResourceOptions options)
type: vault:identity:GroupMemberEntityIds
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GroupMemberEntityIdsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args GroupMemberEntityIdsArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args GroupMemberEntityIdsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GroupMemberEntityIdsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GroupMemberEntityIdsArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
GroupMemberEntityIds Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The GroupMemberEntityIds resource accepts the following input properties:
- Group
Id string Group ID to assign member entities to.
- Exclusive bool
Defaults to
true
.- Member
Entity List<string>Ids List of member entities that belong to the group
- Namespace string
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.
- Group
Id string Group ID to assign member entities to.
- Exclusive bool
Defaults to
true
.- Member
Entity []stringIds List of member entities that belong to the group
- Namespace string
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.
- group
Id String Group ID to assign member entities to.
- exclusive Boolean
Defaults to
true
.- member
Entity List<String>Ids List of member entities that belong to the group
- namespace String
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.
- group
Id string Group ID to assign member entities to.
- exclusive boolean
Defaults to
true
.- member
Entity string[]Ids List of member entities that belong to the group
- namespace string
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.
- group_
id str Group ID to assign member entities to.
- exclusive bool
Defaults to
true
.- member_
entity_ Sequence[str]ids List of member entities that belong to the group
- namespace str
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.
- group
Id String Group ID to assign member entities to.
- exclusive Boolean
Defaults to
true
.- member
Entity List<String>Ids List of member entities that belong to the group
- namespace String
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.
Outputs
All input properties are implicitly available as output properties. Additionally, the GroupMemberEntityIds resource produces the following output properties:
- Group
Name string The name of the group that are assigned the member entities.
Deprecated: The value for group_name may not always be accurate usedata.vault_identity_group.*.group_name
, orvault_identity_group.*.group_name
instead.The value for group_name may not always be accurate, use "data.vault_identity_group..group_name", "vault_identity_group..group_name" instead
- Id string
The provider-assigned unique ID for this managed resource.
- Group
Name string The name of the group that are assigned the member entities.
Deprecated: The value for group_name may not always be accurate usedata.vault_identity_group.*.group_name
, orvault_identity_group.*.group_name
instead.The value for group_name may not always be accurate, use "data.vault_identity_group..group_name", "vault_identity_group..group_name" instead
- Id string
The provider-assigned unique ID for this managed resource.
- group
Name String The name of the group that are assigned the member entities.
Deprecated: The value for group_name may not always be accurate usedata.vault_identity_group.*.group_name
, orvault_identity_group.*.group_name
instead.The value for group_name may not always be accurate, use "data.vault_identity_group..group_name", "vault_identity_group..group_name" instead
- id String
The provider-assigned unique ID for this managed resource.
- group
Name string The name of the group that are assigned the member entities.
Deprecated: The value for group_name may not always be accurate usedata.vault_identity_group.*.group_name
, orvault_identity_group.*.group_name
instead.The value for group_name may not always be accurate, use "data.vault_identity_group..group_name", "vault_identity_group..group_name" instead
- id string
The provider-assigned unique ID for this managed resource.
- group_
name str The name of the group that are assigned the member entities.
Deprecated: The value for group_name may not always be accurate usedata.vault_identity_group.*.group_name
, orvault_identity_group.*.group_name
instead.The value for group_name may not always be accurate, use "data.vault_identity_group..group_name", "vault_identity_group..group_name" instead
- id str
The provider-assigned unique ID for this managed resource.
- group
Name String The name of the group that are assigned the member entities.
Deprecated: The value for group_name may not always be accurate usedata.vault_identity_group.*.group_name
, orvault_identity_group.*.group_name
instead.The value for group_name may not always be accurate, use "data.vault_identity_group..group_name", "vault_identity_group..group_name" instead
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing GroupMemberEntityIds Resource
Get an existing GroupMemberEntityIds 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?: GroupMemberEntityIdsState, opts?: CustomResourceOptions): GroupMemberEntityIds
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
exclusive: Optional[bool] = None,
group_id: Optional[str] = None,
group_name: Optional[str] = None,
member_entity_ids: Optional[Sequence[str]] = None,
namespace: Optional[str] = None) -> GroupMemberEntityIds
func GetGroupMemberEntityIds(ctx *Context, name string, id IDInput, state *GroupMemberEntityIdsState, opts ...ResourceOption) (*GroupMemberEntityIds, error)
public static GroupMemberEntityIds Get(string name, Input<string> id, GroupMemberEntityIdsState? state, CustomResourceOptions? opts = null)
public static GroupMemberEntityIds get(String name, Output<String> id, GroupMemberEntityIdsState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Exclusive bool
Defaults to
true
.- Group
Id string Group ID to assign member entities to.
- Group
Name string The name of the group that are assigned the member entities.
Deprecated: The value for group_name may not always be accurate usedata.vault_identity_group.*.group_name
, orvault_identity_group.*.group_name
instead.The value for group_name may not always be accurate, use "data.vault_identity_group..group_name", "vault_identity_group..group_name" instead
- Member
Entity List<string>Ids List of member entities that belong to the group
- Namespace string
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.
- Exclusive bool
Defaults to
true
.- Group
Id string Group ID to assign member entities to.
- Group
Name string The name of the group that are assigned the member entities.
Deprecated: The value for group_name may not always be accurate usedata.vault_identity_group.*.group_name
, orvault_identity_group.*.group_name
instead.The value for group_name may not always be accurate, use "data.vault_identity_group..group_name", "vault_identity_group..group_name" instead
- Member
Entity []stringIds List of member entities that belong to the group
- Namespace string
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.
- exclusive Boolean
Defaults to
true
.- group
Id String Group ID to assign member entities to.
- group
Name String The name of the group that are assigned the member entities.
Deprecated: The value for group_name may not always be accurate usedata.vault_identity_group.*.group_name
, orvault_identity_group.*.group_name
instead.The value for group_name may not always be accurate, use "data.vault_identity_group..group_name", "vault_identity_group..group_name" instead
- member
Entity List<String>Ids List of member entities that belong to the group
- namespace String
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.
- exclusive boolean
Defaults to
true
.- group
Id string Group ID to assign member entities to.
- group
Name string The name of the group that are assigned the member entities.
Deprecated: The value for group_name may not always be accurate usedata.vault_identity_group.*.group_name
, orvault_identity_group.*.group_name
instead.The value for group_name may not always be accurate, use "data.vault_identity_group..group_name", "vault_identity_group..group_name" instead
- member
Entity string[]Ids List of member entities that belong to the group
- namespace string
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.
- exclusive bool
Defaults to
true
.- group_
id str Group ID to assign member entities to.
- group_
name str The name of the group that are assigned the member entities.
Deprecated: The value for group_name may not always be accurate usedata.vault_identity_group.*.group_name
, orvault_identity_group.*.group_name
instead.The value for group_name may not always be accurate, use "data.vault_identity_group..group_name", "vault_identity_group..group_name" instead
- member_
entity_ Sequence[str]ids List of member entities that belong to the group
- namespace str
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.
- exclusive Boolean
Defaults to
true
.- group
Id String Group ID to assign member entities to.
- group
Name String The name of the group that are assigned the member entities.
Deprecated: The value for group_name may not always be accurate usedata.vault_identity_group.*.group_name
, orvault_identity_group.*.group_name
instead.The value for group_name may not always be accurate, use "data.vault_identity_group..group_name", "vault_identity_group..group_name" instead
- member
Entity List<String>Ids List of member entities that belong to the group
- namespace String
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.
Package Details
- Repository
- Vault pulumi/pulumi-vault
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
vault
Terraform Provider.