Okta v4.9.2 published on Tuesday, Jun 25, 2024 by Pulumi
okta.group.getGroup
Explore with Pulumi AI
Get a group from Okta.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const example = okta.group.getGroup({
name: "Example App",
});
import pulumi
import pulumi_okta as okta
example = okta.group.get_group(name="Example App")
package main
import (
"github.com/pulumi/pulumi-okta/sdk/v4/go/okta/group"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := group.LookupGroup(ctx, &group.LookupGroupArgs{
Name: pulumi.StringRef("Example App"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Okta = Pulumi.Okta;
return await Deployment.RunAsync(() =>
{
var example = Okta.Group.GetGroup.Invoke(new()
{
Name = "Example App",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.group.GroupFunctions;
import com.pulumi.okta.group.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 example = GroupFunctions.getGroup(GetGroupArgs.builder()
.name("Example App")
.build());
}
}
variables:
example:
fn::invoke:
Function: okta:group:getGroup
Arguments:
name: Example App
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(delay_read_seconds: Optional[str] = None,
id: Optional[str] = None,
include_users: Optional[bool] = None,
name: Optional[str] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGroupResult
def get_group_output(delay_read_seconds: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
include_users: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
type: 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: okta:group/getGroup:getGroup
arguments:
# arguments dictionary
The following arguments are supported:
- Delay
Read stringSeconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- Id string
- ID of group.
- Include
Users bool - Fetch group users, having default off cuts down on API calls.
- Name string
- Name of group.
- Type string
- Delay
Read stringSeconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- Id string
- ID of group.
- Include
Users bool - Fetch group users, having default off cuts down on API calls.
- Name string
- Name of group.
- Type string
- delay
Read StringSeconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- id String
- ID of group.
- include
Users Boolean - Fetch group users, having default off cuts down on API calls.
- name String
- Name of group.
- type String
- delay
Read stringSeconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- id string
- ID of group.
- include
Users boolean - Fetch group users, having default off cuts down on API calls.
- name string
- Name of group.
- type string
- delay_
read_ strseconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- id str
- ID of group.
- include_
users bool - Fetch group users, having default off cuts down on API calls.
- name str
- Name of group.
- type str
- delay
Read StringSeconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- id String
- ID of group.
- include
Users Boolean - Fetch group users, having default off cuts down on API calls.
- name String
- Name of group.
- type String
getGroup Result
The following output properties are available:
- Description string
- Description of group.
- Id string
- ID of group.
- Name string
- Name of group.
- Users List<string>
- Users associated with the group. This can also be done per user.
- Delay
Read stringSeconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- Include
Users bool - Fetch group users, having default off cuts down on API calls.
- Type string
- Description string
- Description of group.
- Id string
- ID of group.
- Name string
- Name of group.
- Users []string
- Users associated with the group. This can also be done per user.
- Delay
Read stringSeconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- Include
Users bool - Fetch group users, having default off cuts down on API calls.
- Type string
- description String
- Description of group.
- id String
- ID of group.
- name String
- Name of group.
- users List<String>
- Users associated with the group. This can also be done per user.
- delay
Read StringSeconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- include
Users Boolean - Fetch group users, having default off cuts down on API calls.
- type String
- description string
- Description of group.
- id string
- ID of group.
- name string
- Name of group.
- users string[]
- Users associated with the group. This can also be done per user.
- delay
Read stringSeconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- include
Users boolean - Fetch group users, having default off cuts down on API calls.
- type string
- description str
- Description of group.
- id str
- ID of group.
- name str
- Name of group.
- users Sequence[str]
- Users associated with the group. This can also be done per user.
- delay_
read_ strseconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- include_
users bool - Fetch group users, having default off cuts down on API calls.
- type str
- description String
- Description of group.
- id String
- ID of group.
- name String
- Name of group.
- users List<String>
- Users associated with the group. This can also be done per user.
- delay
Read StringSeconds - Force delay of the group read by N seconds. Useful when eventual consistency of group information needs to be allowed for; for instance, when group rules are known to have been applied.
- include
Users Boolean - Fetch group users, having default off cuts down on API calls.
- type String
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
okta
Terraform Provider.