1. Packages
  2. Okta
  3. API Docs
  4. getAppGroupAssignments
Okta v4.8.0 published on Saturday, Mar 2, 2024 by Pulumi

okta.getAppGroupAssignments

Explore with Pulumi AI

okta logo
Okta v4.8.0 published on Saturday, Mar 2, 2024 by Pulumi

    Use this data source to retrieve the list of groups assigned to the given Okta application (by ID).

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Okta = Pulumi.Okta;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Okta.GetAppGroupAssignments.Invoke(new()
        {
            Id = okta_app_oauth.Test.Id,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-okta/sdk/v4/go/okta"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := okta.LookupAppGroupAssignments(ctx, &okta.LookupAppGroupAssignmentsArgs{
    			Id: okta_app_oauth.Test.Id,
    		}, nil)
    		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.okta.OktaFunctions;
    import com.pulumi.okta.inputs.GetAppGroupAssignmentsArgs;
    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 test = OktaFunctions.getAppGroupAssignments(GetAppGroupAssignmentsArgs.builder()
                .id(okta_app_oauth.test().id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_okta as okta
    
    test = okta.get_app_group_assignments(id=okta_app_oauth["test"]["id"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as okta from "@pulumi/okta";
    
    const test = okta.getAppGroupAssignments({
        id: okta_app_oauth.test.id,
    });
    
    variables:
      test:
        fn::invoke:
          Function: okta:getAppGroupAssignments
          Arguments:
            id: ${okta_app_oauth.test.id}
    

    Using getAppGroupAssignments

    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 getAppGroupAssignments(args: GetAppGroupAssignmentsArgs, opts?: InvokeOptions): Promise<GetAppGroupAssignmentsResult>
    function getAppGroupAssignmentsOutput(args: GetAppGroupAssignmentsOutputArgs, opts?: InvokeOptions): Output<GetAppGroupAssignmentsResult>
    def get_app_group_assignments(id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetAppGroupAssignmentsResult
    def get_app_group_assignments_output(id: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetAppGroupAssignmentsResult]
    func LookupAppGroupAssignments(ctx *Context, args *LookupAppGroupAssignmentsArgs, opts ...InvokeOption) (*LookupAppGroupAssignmentsResult, error)
    func LookupAppGroupAssignmentsOutput(ctx *Context, args *LookupAppGroupAssignmentsOutputArgs, opts ...InvokeOption) LookupAppGroupAssignmentsResultOutput

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

    public static class GetAppGroupAssignments 
    {
        public static Task<GetAppGroupAssignmentsResult> InvokeAsync(GetAppGroupAssignmentsArgs args, InvokeOptions? opts = null)
        public static Output<GetAppGroupAssignmentsResult> Invoke(GetAppGroupAssignmentsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAppGroupAssignmentsResult> getAppGroupAssignments(GetAppGroupAssignmentsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: okta:index/getAppGroupAssignments:getAppGroupAssignments
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of the Okta application you want to retrieve the groups for.
    Id string
    The ID of the Okta application you want to retrieve the groups for.
    id String
    The ID of the Okta application you want to retrieve the groups for.
    id string
    The ID of the Okta application you want to retrieve the groups for.
    id str
    The ID of the Okta application you want to retrieve the groups for.
    id String
    The ID of the Okta application you want to retrieve the groups for.

    getAppGroupAssignments Result

    The following output properties are available:

    Groups List<string>
    List of groups IDs assigned to the application.
    Id string
    ID of application.
    Groups []string
    List of groups IDs assigned to the application.
    Id string
    ID of application.
    groups List<String>
    List of groups IDs assigned to the application.
    id String
    ID of application.
    groups string[]
    List of groups IDs assigned to the application.
    id string
    ID of application.
    groups Sequence[str]
    List of groups IDs assigned to the application.
    id str
    ID of application.
    groups List<String>
    List of groups IDs assigned to the application.
    id String
    ID of application.

    Package Details

    Repository
    Okta pulumi/pulumi-okta
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the okta Terraform Provider.
    okta logo
    Okta v4.8.0 published on Saturday, Mar 2, 2024 by Pulumi