1. Packages
  2. Athenz Provider
  3. API Docs
  4. getGroup
athenz 1.0.45 published on Tuesday, Apr 15, 2025 by athenz

athenz.getGroup

Explore with Pulumi AI

athenz logo
athenz 1.0.45 published on Tuesday, Apr 15, 2025 by athenz

    athenz.Group provides details about a specific Athenz group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as athenz from "@pulumi/athenz";
    
    const config = new pulumi.Config();
    const groupName = config.require("groupName");
    const selected = athenz.getGroup({
        name: groupName,
        domain: "some_domain",
    });
    
    import pulumi
    import pulumi_athenz as athenz
    
    config = pulumi.Config()
    group_name = config.require("groupName")
    selected = athenz.get_group(name=group_name,
        domain="some_domain")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/athenz/athenz"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		groupName := cfg.Require("groupName")
    		_, err := athenz.LookupGroup(ctx, &athenz.LookupGroupArgs{
    			Name:   groupName,
    			Domain: "some_domain",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Athenz = Pulumi.Athenz;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var groupName = config.Require("groupName");
        var selected = Athenz.GetGroup.Invoke(new()
        {
            Name = groupName,
            Domain = "some_domain",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.athenz.AthenzFunctions;
    import com.pulumi.athenz.inputs.GetGroupArgs;
    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) {
            final var config = ctx.config();
            final var groupName = config.get("groupName");
            final var selected = AthenzFunctions.getGroup(GetGroupArgs.builder()
                .name(groupName)
                .domain("some_domain")
                .build());
    
        }
    }
    
    configuration:
      groupName:
        type: string
    variables:
      selected:
        fn::invoke:
          function: athenz:getGroup
          arguments:
            name: ${groupName}
            domain: some_domain
    

    Using getGroup

    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 getGroup(args: GetGroupArgs, opts?: InvokeOptions): Promise<GetGroupResult>
    function getGroupOutput(args: GetGroupOutputArgs, opts?: InvokeOptions): Output<GetGroupResult>
    def get_group(audit_enabled: Optional[bool] = None,
                  delete_protection: Optional[bool] = None,
                  domain: Optional[str] = None,
                  id: Optional[str] = None,
                  last_reviewed_date: Optional[str] = None,
                  members: Optional[Sequence[GetGroupMember]] = None,
                  name: Optional[str] = None,
                  notify_details: Optional[str] = None,
                  notify_roles: Optional[str] = None,
                  principal_domain_filter: Optional[str] = None,
                  review_enabled: Optional[bool] = None,
                  self_renew: Optional[bool] = None,
                  self_renew_mins: Optional[float] = None,
                  self_serve: Optional[bool] = None,
                  settings: Optional[GetGroupSettings] = None,
                  tags: Optional[Mapping[str, str]] = None,
                  user_authority_expiration: Optional[str] = None,
                  user_authority_filter: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetGroupResult
    def get_group_output(audit_enabled: Optional[pulumi.Input[bool]] = None,
                  delete_protection: Optional[pulumi.Input[bool]] = None,
                  domain: Optional[pulumi.Input[str]] = None,
                  id: Optional[pulumi.Input[str]] = None,
                  last_reviewed_date: Optional[pulumi.Input[str]] = None,
                  members: Optional[pulumi.Input[Sequence[pulumi.Input[GetGroupMemberArgs]]]] = None,
                  name: Optional[pulumi.Input[str]] = None,
                  notify_details: Optional[pulumi.Input[str]] = None,
                  notify_roles: Optional[pulumi.Input[str]] = None,
                  principal_domain_filter: Optional[pulumi.Input[str]] = None,
                  review_enabled: Optional[pulumi.Input[bool]] = None,
                  self_renew: Optional[pulumi.Input[bool]] = None,
                  self_renew_mins: Optional[pulumi.Input[float]] = None,
                  self_serve: Optional[pulumi.Input[bool]] = None,
                  settings: Optional[pulumi.Input[GetGroupSettingsArgs]] = None,
                  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                  user_authority_expiration: Optional[pulumi.Input[str]] = None,
                  user_authority_filter: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetGroupResult]
    func LookupGroup(ctx *Context, args *LookupGroupArgs, opts ...InvokeOption) (*LookupGroupResult, error)
    func LookupGroupOutput(ctx *Context, args *LookupGroupOutputArgs, opts ...InvokeOption) LookupGroupResultOutput

    > Note: This function is named LookupGroup in the Go SDK.

    public static class GetGroup 
    {
        public static Task<GetGroupResult> InvokeAsync(GetGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetGroupResult> Invoke(GetGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGroupResult> getGroup(GetGroupArgs args, InvokeOptions options)
    public static Output<GetGroupResult> getGroup(GetGroupArgs args, InvokeOptions options)
    
    fn::invoke:
      function: athenz:index/getGroup:getGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Domain string
    • The Athenz domain name.
    Name string
    • The name of the specific Athenz group.
    AuditEnabled bool
    audit enabled flag for the group
    DeleteProtection bool
    If true, ask for delete confirmation in audit and review enabled groups
    Id string
    The ID of this resource.
    LastReviewedDate string
    Last reviewed date for the group
    Members List<GetGroupMember>
    Users or services to be added as members
    NotifyDetails string
    Set of instructions included in notifications for review and audit enabled groups
    NotifyRoles string
    comma seperated list of roles whose members should be notified for member review/approval
    PrincipalDomainFilter string
    comma seperated list of domains to enforce principal membership
    ReviewEnabled bool
    Flag indicates whether group updates require another review and approval
    SelfRenew bool
    Flag indicates whether to allow expired members to renew their membership
    SelfRenewMins double
    Number of minutes members can renew their membership if self review option is enabled
    SelfServe bool
    Flag indicates whether group allows self-service. Users can add themselves in the group, but it has to be approved by domain admins to be effective.
    Settings GetGroupSettings
    Advanced settings
    Tags Dictionary<string, string>
    map of group tags
    UserAuthorityExpiration string
    expiration enforced by a user authority configured attribute
    UserAuthorityFilter string
    membership filtered based on user authority configured attributes
    Domain string
    • The Athenz domain name.
    Name string
    • The name of the specific Athenz group.
    AuditEnabled bool
    audit enabled flag for the group
    DeleteProtection bool
    If true, ask for delete confirmation in audit and review enabled groups
    Id string
    The ID of this resource.
    LastReviewedDate string
    Last reviewed date for the group
    Members []GetGroupMember
    Users or services to be added as members
    NotifyDetails string
    Set of instructions included in notifications for review and audit enabled groups
    NotifyRoles string
    comma seperated list of roles whose members should be notified for member review/approval
    PrincipalDomainFilter string
    comma seperated list of domains to enforce principal membership
    ReviewEnabled bool
    Flag indicates whether group updates require another review and approval
    SelfRenew bool
    Flag indicates whether to allow expired members to renew their membership
    SelfRenewMins float64
    Number of minutes members can renew their membership if self review option is enabled
    SelfServe bool
    Flag indicates whether group allows self-service. Users can add themselves in the group, but it has to be approved by domain admins to be effective.
    Settings GetGroupSettings
    Advanced settings
    Tags map[string]string
    map of group tags
    UserAuthorityExpiration string
    expiration enforced by a user authority configured attribute
    UserAuthorityFilter string
    membership filtered based on user authority configured attributes
    domain String
    • The Athenz domain name.
    name String
    • The name of the specific Athenz group.
    auditEnabled Boolean
    audit enabled flag for the group
    deleteProtection Boolean
    If true, ask for delete confirmation in audit and review enabled groups
    id String
    The ID of this resource.
    lastReviewedDate String
    Last reviewed date for the group
    members List<GetGroupMember>
    Users or services to be added as members
    notifyDetails String
    Set of instructions included in notifications for review and audit enabled groups
    notifyRoles String
    comma seperated list of roles whose members should be notified for member review/approval
    principalDomainFilter String
    comma seperated list of domains to enforce principal membership
    reviewEnabled Boolean
    Flag indicates whether group updates require another review and approval
    selfRenew Boolean
    Flag indicates whether to allow expired members to renew their membership
    selfRenewMins Double
    Number of minutes members can renew their membership if self review option is enabled
    selfServe Boolean
    Flag indicates whether group allows self-service. Users can add themselves in the group, but it has to be approved by domain admins to be effective.
    settings GetGroupSettings
    Advanced settings
    tags Map<String,String>
    map of group tags
    userAuthorityExpiration String
    expiration enforced by a user authority configured attribute
    userAuthorityFilter String
    membership filtered based on user authority configured attributes
    domain string
    • The Athenz domain name.
    name string
    • The name of the specific Athenz group.
    auditEnabled boolean
    audit enabled flag for the group
    deleteProtection boolean
    If true, ask for delete confirmation in audit and review enabled groups
    id string
    The ID of this resource.
    lastReviewedDate string
    Last reviewed date for the group
    members GetGroupMember[]
    Users or services to be added as members
    notifyDetails string
    Set of instructions included in notifications for review and audit enabled groups
    notifyRoles string
    comma seperated list of roles whose members should be notified for member review/approval
    principalDomainFilter string
    comma seperated list of domains to enforce principal membership
    reviewEnabled boolean
    Flag indicates whether group updates require another review and approval
    selfRenew boolean
    Flag indicates whether to allow expired members to renew their membership
    selfRenewMins number
    Number of minutes members can renew their membership if self review option is enabled
    selfServe boolean
    Flag indicates whether group allows self-service. Users can add themselves in the group, but it has to be approved by domain admins to be effective.
    settings GetGroupSettings
    Advanced settings
    tags {[key: string]: string}
    map of group tags
    userAuthorityExpiration string
    expiration enforced by a user authority configured attribute
    userAuthorityFilter string
    membership filtered based on user authority configured attributes
    domain str
    • The Athenz domain name.
    name str
    • The name of the specific Athenz group.
    audit_enabled bool
    audit enabled flag for the group
    delete_protection bool
    If true, ask for delete confirmation in audit and review enabled groups
    id str
    The ID of this resource.
    last_reviewed_date str
    Last reviewed date for the group
    members Sequence[GetGroupMember]
    Users or services to be added as members
    notify_details str
    Set of instructions included in notifications for review and audit enabled groups
    notify_roles str
    comma seperated list of roles whose members should be notified for member review/approval
    principal_domain_filter str
    comma seperated list of domains to enforce principal membership
    review_enabled bool
    Flag indicates whether group updates require another review and approval
    self_renew bool
    Flag indicates whether to allow expired members to renew their membership
    self_renew_mins float
    Number of minutes members can renew their membership if self review option is enabled
    self_serve bool
    Flag indicates whether group allows self-service. Users can add themselves in the group, but it has to be approved by domain admins to be effective.
    settings GetGroupSettings
    Advanced settings
    tags Mapping[str, str]
    map of group tags
    user_authority_expiration str
    expiration enforced by a user authority configured attribute
    user_authority_filter str
    membership filtered based on user authority configured attributes
    domain String
    • The Athenz domain name.
    name String
    • The name of the specific Athenz group.
    auditEnabled Boolean
    audit enabled flag for the group
    deleteProtection Boolean
    If true, ask for delete confirmation in audit and review enabled groups
    id String
    The ID of this resource.
    lastReviewedDate String
    Last reviewed date for the group
    members List<Property Map>
    Users or services to be added as members
    notifyDetails String
    Set of instructions included in notifications for review and audit enabled groups
    notifyRoles String
    comma seperated list of roles whose members should be notified for member review/approval
    principalDomainFilter String
    comma seperated list of domains to enforce principal membership
    reviewEnabled Boolean
    Flag indicates whether group updates require another review and approval
    selfRenew Boolean
    Flag indicates whether to allow expired members to renew their membership
    selfRenewMins Number
    Number of minutes members can renew their membership if self review option is enabled
    selfServe Boolean
    Flag indicates whether group allows self-service. Users can add themselves in the group, but it has to be approved by domain admins to be effective.
    settings Property Map
    Advanced settings
    tags Map<String>
    map of group tags
    userAuthorityExpiration String
    expiration enforced by a user authority configured attribute
    userAuthorityFilter String
    membership filtered based on user authority configured attributes

    getGroup Result

    The following output properties are available:

    Domain string
    • The Athenz domain name.
    Id string
    The ID of this resource.
    Name string
    • The name of the specific Athenz group.
    AuditEnabled bool
    audit enabled flag for the group
    DeleteProtection bool
    If true, ask for delete confirmation in audit and review enabled groups
    LastReviewedDate string
    Last reviewed date for the group
    Members List<GetGroupMember>
    Users or services to be added as members
    NotifyDetails string
    Set of instructions included in notifications for review and audit enabled groups
    NotifyRoles string
    comma seperated list of roles whose members should be notified for member review/approval
    PrincipalDomainFilter string
    comma seperated list of domains to enforce principal membership
    ReviewEnabled bool
    Flag indicates whether group updates require another review and approval
    SelfRenew bool
    Flag indicates whether to allow expired members to renew their membership
    SelfRenewMins double
    Number of minutes members can renew their membership if self review option is enabled
    SelfServe bool
    Flag indicates whether group allows self-service. Users can add themselves in the group, but it has to be approved by domain admins to be effective.
    Settings GetGroupSettings
    Advanced settings
    Tags Dictionary<string, string>
    map of group tags
    UserAuthorityExpiration string
    expiration enforced by a user authority configured attribute
    UserAuthorityFilter string
    membership filtered based on user authority configured attributes
    Domain string
    • The Athenz domain name.
    Id string
    The ID of this resource.
    Name string
    • The name of the specific Athenz group.
    AuditEnabled bool
    audit enabled flag for the group
    DeleteProtection bool
    If true, ask for delete confirmation in audit and review enabled groups
    LastReviewedDate string
    Last reviewed date for the group
    Members []GetGroupMember
    Users or services to be added as members
    NotifyDetails string
    Set of instructions included in notifications for review and audit enabled groups
    NotifyRoles string
    comma seperated list of roles whose members should be notified for member review/approval
    PrincipalDomainFilter string
    comma seperated list of domains to enforce principal membership
    ReviewEnabled bool
    Flag indicates whether group updates require another review and approval
    SelfRenew bool
    Flag indicates whether to allow expired members to renew their membership
    SelfRenewMins float64
    Number of minutes members can renew their membership if self review option is enabled
    SelfServe bool
    Flag indicates whether group allows self-service. Users can add themselves in the group, but it has to be approved by domain admins to be effective.
    Settings GetGroupSettings
    Advanced settings
    Tags map[string]string
    map of group tags
    UserAuthorityExpiration string
    expiration enforced by a user authority configured attribute
    UserAuthorityFilter string
    membership filtered based on user authority configured attributes
    domain String
    • The Athenz domain name.
    id String
    The ID of this resource.
    name String
    • The name of the specific Athenz group.
    auditEnabled Boolean
    audit enabled flag for the group
    deleteProtection Boolean
    If true, ask for delete confirmation in audit and review enabled groups
    lastReviewedDate String
    Last reviewed date for the group
    members List<GetGroupMember>
    Users or services to be added as members
    notifyDetails String
    Set of instructions included in notifications for review and audit enabled groups
    notifyRoles String
    comma seperated list of roles whose members should be notified for member review/approval
    principalDomainFilter String
    comma seperated list of domains to enforce principal membership
    reviewEnabled Boolean
    Flag indicates whether group updates require another review and approval
    selfRenew Boolean
    Flag indicates whether to allow expired members to renew their membership
    selfRenewMins Double
    Number of minutes members can renew their membership if self review option is enabled
    selfServe Boolean
    Flag indicates whether group allows self-service. Users can add themselves in the group, but it has to be approved by domain admins to be effective.
    settings GetGroupSettings
    Advanced settings
    tags Map<String,String>
    map of group tags
    userAuthorityExpiration String
    expiration enforced by a user authority configured attribute
    userAuthorityFilter String
    membership filtered based on user authority configured attributes
    domain string
    • The Athenz domain name.
    id string
    The ID of this resource.
    name string
    • The name of the specific Athenz group.
    auditEnabled boolean
    audit enabled flag for the group
    deleteProtection boolean
    If true, ask for delete confirmation in audit and review enabled groups
    lastReviewedDate string
    Last reviewed date for the group
    members GetGroupMember[]
    Users or services to be added as members
    notifyDetails string
    Set of instructions included in notifications for review and audit enabled groups
    notifyRoles string
    comma seperated list of roles whose members should be notified for member review/approval
    principalDomainFilter string
    comma seperated list of domains to enforce principal membership
    reviewEnabled boolean
    Flag indicates whether group updates require another review and approval
    selfRenew boolean
    Flag indicates whether to allow expired members to renew their membership
    selfRenewMins number
    Number of minutes members can renew their membership if self review option is enabled
    selfServe boolean
    Flag indicates whether group allows self-service. Users can add themselves in the group, but it has to be approved by domain admins to be effective.
    settings GetGroupSettings
    Advanced settings
    tags {[key: string]: string}
    map of group tags
    userAuthorityExpiration string
    expiration enforced by a user authority configured attribute
    userAuthorityFilter string
    membership filtered based on user authority configured attributes
    domain str
    • The Athenz domain name.
    id str
    The ID of this resource.
    name str
    • The name of the specific Athenz group.
    audit_enabled bool
    audit enabled flag for the group
    delete_protection bool
    If true, ask for delete confirmation in audit and review enabled groups
    last_reviewed_date str
    Last reviewed date for the group
    members Sequence[GetGroupMember]
    Users or services to be added as members
    notify_details str
    Set of instructions included in notifications for review and audit enabled groups
    notify_roles str
    comma seperated list of roles whose members should be notified for member review/approval
    principal_domain_filter str
    comma seperated list of domains to enforce principal membership
    review_enabled bool
    Flag indicates whether group updates require another review and approval
    self_renew bool
    Flag indicates whether to allow expired members to renew their membership
    self_renew_mins float
    Number of minutes members can renew their membership if self review option is enabled
    self_serve bool
    Flag indicates whether group allows self-service. Users can add themselves in the group, but it has to be approved by domain admins to be effective.
    settings GetGroupSettings
    Advanced settings
    tags Mapping[str, str]
    map of group tags
    user_authority_expiration str
    expiration enforced by a user authority configured attribute
    user_authority_filter str
    membership filtered based on user authority configured attributes
    domain String
    • The Athenz domain name.
    id String
    The ID of this resource.
    name String
    • The name of the specific Athenz group.
    auditEnabled Boolean
    audit enabled flag for the group
    deleteProtection Boolean
    If true, ask for delete confirmation in audit and review enabled groups
    lastReviewedDate String
    Last reviewed date for the group
    members List<Property Map>
    Users or services to be added as members
    notifyDetails String
    Set of instructions included in notifications for review and audit enabled groups
    notifyRoles String
    comma seperated list of roles whose members should be notified for member review/approval
    principalDomainFilter String
    comma seperated list of domains to enforce principal membership
    reviewEnabled Boolean
    Flag indicates whether group updates require another review and approval
    selfRenew Boolean
    Flag indicates whether to allow expired members to renew their membership
    selfRenewMins Number
    Number of minutes members can renew their membership if self review option is enabled
    selfServe Boolean
    Flag indicates whether group allows self-service. Users can add themselves in the group, but it has to be approved by domain admins to be effective.
    settings Property Map
    Advanced settings
    tags Map<String>
    map of group tags
    userAuthorityExpiration String
    expiration enforced by a user authority configured attribute
    userAuthorityFilter String
    membership filtered based on user authority configured attributes

    Supporting Types

    GetGroupMember

    Name string
    Expiration string
    Name string
    Expiration string
    name String
    expiration String
    name string
    expiration string
    name String
    expiration String

    GetGroupSettings

    MaxMembers double
    Max number of principals in the group
    ServiceExpiryDays double
    all services in the group will have specified max expiry days
    UserExpiryDays double
    all user members in the group will have specified max expiry days
    MaxMembers float64
    Max number of principals in the group
    ServiceExpiryDays float64
    all services in the group will have specified max expiry days
    UserExpiryDays float64
    all user members in the group will have specified max expiry days
    maxMembers Double
    Max number of principals in the group
    serviceExpiryDays Double
    all services in the group will have specified max expiry days
    userExpiryDays Double
    all user members in the group will have specified max expiry days
    maxMembers number
    Max number of principals in the group
    serviceExpiryDays number
    all services in the group will have specified max expiry days
    userExpiryDays number
    all user members in the group will have specified max expiry days
    max_members float
    Max number of principals in the group
    service_expiry_days float
    all services in the group will have specified max expiry days
    user_expiry_days float
    all user members in the group will have specified max expiry days
    maxMembers Number
    Max number of principals in the group
    serviceExpiryDays Number
    all services in the group will have specified max expiry days
    userExpiryDays Number
    all user members in the group will have specified max expiry days

    Package Details

    Repository
    athenz athenz/terraform-provider-athenz
    License
    Notes
    This Pulumi package is based on the athenz Terraform Provider.
    athenz logo
    athenz 1.0.45 published on Tuesday, Apr 15, 2025 by athenz