1. Packages
  2. GitHub
  3. API Docs
  4. getOrganizationTeamSyncGroups
GitHub v6.2.2 published on Tuesday, Jun 18, 2024 by Pulumi

github.getOrganizationTeamSyncGroups

Explore with Pulumi AI

github logo
GitHub v6.2.2 published on Tuesday, Jun 18, 2024 by Pulumi

    Use this data source to retrieve the identity provider (IdP) groups for an organization.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as github from "@pulumi/github";
    
    const test = github.getOrganizationTeamSyncGroups({});
    
    import pulumi
    import pulumi_github as github
    
    test = github.get_organization_team_sync_groups()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-github/sdk/v6/go/github"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := github.GetOrganizationTeamSyncGroups(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Github = Pulumi.Github;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Github.GetOrganizationTeamSyncGroups.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.github.GithubFunctions;
    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 = GithubFunctions.getOrganizationTeamSyncGroups();
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          Function: github:getOrganizationTeamSyncGroups
          Arguments: {}
    

    Using getOrganizationTeamSyncGroups

    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 getOrganizationTeamSyncGroups(opts?: InvokeOptions): Promise<GetOrganizationTeamSyncGroupsResult>
    function getOrganizationTeamSyncGroupsOutput(opts?: InvokeOptions): Output<GetOrganizationTeamSyncGroupsResult>
    def get_organization_team_sync_groups(opts: Optional[InvokeOptions] = None) -> GetOrganizationTeamSyncGroupsResult
    def get_organization_team_sync_groups_output(opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationTeamSyncGroupsResult]
    func GetOrganizationTeamSyncGroups(ctx *Context, opts ...InvokeOption) (*GetOrganizationTeamSyncGroupsResult, error)
    func GetOrganizationTeamSyncGroupsOutput(ctx *Context, opts ...InvokeOption) GetOrganizationTeamSyncGroupsResultOutput

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

    public static class GetOrganizationTeamSyncGroups 
    {
        public static Task<GetOrganizationTeamSyncGroupsResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetOrganizationTeamSyncGroupsResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOrganizationTeamSyncGroupsResult> getOrganizationTeamSyncGroups(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: github:index/getOrganizationTeamSyncGroups:getOrganizationTeamSyncGroups
      arguments:
        # arguments dictionary

    getOrganizationTeamSyncGroups Result

    The following output properties are available:

    Groups List<GetOrganizationTeamSyncGroupsGroup>
    An Array of GitHub Identity Provider Groups. Each group block consists of the fields documented below.
    Id string
    The provider-assigned unique ID for this managed resource.
    Groups []GetOrganizationTeamSyncGroupsGroup
    An Array of GitHub Identity Provider Groups. Each group block consists of the fields documented below.
    Id string
    The provider-assigned unique ID for this managed resource.
    groups List<GetOrganizationTeamSyncGroupsGroup>
    An Array of GitHub Identity Provider Groups. Each group block consists of the fields documented below.
    id String
    The provider-assigned unique ID for this managed resource.
    groups GetOrganizationTeamSyncGroupsGroup[]
    An Array of GitHub Identity Provider Groups. Each group block consists of the fields documented below.
    id string
    The provider-assigned unique ID for this managed resource.
    groups Sequence[GetOrganizationTeamSyncGroupsGroup]
    An Array of GitHub Identity Provider Groups. Each group block consists of the fields documented below.
    id str
    The provider-assigned unique ID for this managed resource.
    groups List<Property Map>
    An Array of GitHub Identity Provider Groups. Each group block consists of the fields documented below.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    GetOrganizationTeamSyncGroupsGroup

    GroupDescription string
    The description of the IdP group.
    GroupId string
    The ID of the IdP group.
    GroupName string
    The name of the IdP group.
    GroupDescription string
    The description of the IdP group.
    GroupId string
    The ID of the IdP group.
    GroupName string
    The name of the IdP group.
    groupDescription String
    The description of the IdP group.
    groupId String
    The ID of the IdP group.
    groupName String
    The name of the IdP group.
    groupDescription string
    The description of the IdP group.
    groupId string
    The ID of the IdP group.
    groupName string
    The name of the IdP group.
    group_description str
    The description of the IdP group.
    group_id str
    The ID of the IdP group.
    group_name str
    The name of the IdP group.
    groupDescription String
    The description of the IdP group.
    groupId String
    The ID of the IdP group.
    groupName String
    The name of the IdP group.

    Package Details

    Repository
    GitHub pulumi/pulumi-github
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the github Terraform Provider.
    github logo
    GitHub v6.2.2 published on Tuesday, Jun 18, 2024 by Pulumi