Google Cloud (GCP) Classic
getGroups
Use this data source to get list of the Cloud Identity Groups under a customer or namespace.
https://cloud.google.com/identity/docs/concepts/overview#groups
Example Usage
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var groups = Output.Create(Gcp.CloudIdentity.GetGroups.InvokeAsync(new Gcp.CloudIdentity.GetGroupsArgs
{
Parent = "customers/A01b123xz",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudidentity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudidentity.GetGroups(ctx, &cloudidentity.GetGroupsArgs{
Parent: "customers/A01b123xz",
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var groups = Output.of(CloudidentityFunctions.getGroups(GetGroupsArgs.builder()
.parent("customers/A01b123xz")
.build()));
}
}
import pulumi
import pulumi_gcp as gcp
groups = gcp.cloudidentity.get_groups(parent="customers/A01b123xz")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const groups = pulumi.output(gcp.cloudidentity.getGroups({
parent: "customers/A01b123xz",
}));
variables:
groups:
Fn::Invoke:
Function: gcp:cloudidentity:getGroups
Arguments:
parent: customers/A01b123xz
Using getGroups
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 getGroups(args: GetGroupsArgs, opts?: InvokeOptions): Promise<GetGroupsResult>
function getGroupsOutput(args: GetGroupsOutputArgs, opts?: InvokeOptions): Output<GetGroupsResult>
def get_groups(parent: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGroupsResult
def get_groups_output(parent: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGroupsResult]
func GetGroups(ctx *Context, args *GetGroupsArgs, opts ...InvokeOption) (*GetGroupsResult, error)
func GetGroupsOutput(ctx *Context, args *GetGroupsOutputArgs, opts ...InvokeOption) GetGroupsResultOutput
> Note: This function is named GetGroups
in the Go SDK.
public static class GetGroups
{
public static Task<GetGroupsResult> InvokeAsync(GetGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetGroupsResult> Invoke(GetGroupsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGroupsResult> getGroups(GetGroupsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: gcp:cloudidentity/getGroups:getGroups
Arguments:
# Arguments dictionary
The following arguments are supported:
- Parent string
The parent resource under which to list all Groups. Must be of the form identitysources/{identity_source_id} for external- identity-mapped groups or customers/{customer_id} for Google Groups.
- Parent string
The parent resource under which to list all Groups. Must be of the form identitysources/{identity_source_id} for external- identity-mapped groups or customers/{customer_id} for Google Groups.
- parent String
The parent resource under which to list all Groups. Must be of the form identitysources/{identity_source_id} for external- identity-mapped groups or customers/{customer_id} for Google Groups.
- parent string
The parent resource under which to list all Groups. Must be of the form identitysources/{identity_source_id} for external- identity-mapped groups or customers/{customer_id} for Google Groups.
- parent str
The parent resource under which to list all Groups. Must be of the form identitysources/{identity_source_id} for external- identity-mapped groups or customers/{customer_id} for Google Groups.
- parent String
The parent resource under which to list all Groups. Must be of the form identitysources/{identity_source_id} for external- identity-mapped groups or customers/{customer_id} for Google Groups.
getGroups Result
The following output properties are available:
- Groups
List<Get
Groups Group> The list of groups under the provided customer or namespace. Structure is documented below.
- Id string
The provider-assigned unique ID for this managed resource.
- Parent string
- Groups
[]Get
Groups Group The list of groups under the provided customer or namespace. Structure is documented below.
- Id string
The provider-assigned unique ID for this managed resource.
- Parent string
- groups
List
Groups Group> The list of groups under the provided customer or namespace. Structure is documented below.
- id String
The provider-assigned unique ID for this managed resource.
- parent String
- groups
Get
Groups Group[] The list of groups under the provided customer or namespace. Structure is documented below.
- id string
The provider-assigned unique ID for this managed resource.
- parent string
- groups
Sequence[Get
Groups Group] The list of groups under the provided customer or namespace. Structure is documented below.
- id str
The provider-assigned unique ID for this managed resource.
- parent str
Supporting Types
GetGroupsGroup
- Create
Time string - Description string
- Display
Name string - Group
Keys List<GetGroups Group Group Key> - Initial
Group stringConfig - Labels Dictionary<string, string>
- Name string
- Parent string
The parent resource under which to list all Groups. Must be of the form identitysources/{identity_source_id} for external- identity-mapped groups or customers/{customer_id} for Google Groups.
- Update
Time string
- Create
Time string - Description string
- Display
Name string - Group
Keys []GetGroups Group Group Key - Initial
Group stringConfig - Labels map[string]string
- Name string
- Parent string
The parent resource under which to list all Groups. Must be of the form identitysources/{identity_source_id} for external- identity-mapped groups or customers/{customer_id} for Google Groups.
- Update
Time string
- create
Time String - description String
- display
Name String - group
Keys ListGroups Group Group Key> - initial
Group StringConfig - labels
Map
- name String
- parent String
The parent resource under which to list all Groups. Must be of the form identitysources/{identity_source_id} for external- identity-mapped groups or customers/{customer_id} for Google Groups.
- update
Time String
- create
Time string - description string
- display
Name string - group
Keys GetGroups Group Group Key[] - initial
Group stringConfig - labels {[key: string]: string}
- name string
- parent string
The parent resource under which to list all Groups. Must be of the form identitysources/{identity_source_id} for external- identity-mapped groups or customers/{customer_id} for Google Groups.
- update
Time string
- create_
time str - description str
- display_
name str - group_
keys Sequence[GetGroups Group Group Key] - initial_
group_ strconfig - labels Mapping[str, str]
- name str
- parent str
The parent resource under which to list all Groups. Must be of the form identitysources/{identity_source_id} for external- identity-mapped groups or customers/{customer_id} for Google Groups.
- update_
time str
- create
Time String - description String
- display
Name String - group
Keys List - initial
Group StringConfig - labels
Map
- name String
- parent String
The parent resource under which to list all Groups. Must be of the form identitysources/{identity_source_id} for external- identity-mapped groups or customers/{customer_id} for Google Groups.
- update
Time String
GetGroupsGroupGroupKey
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
google-beta
Terraform Provider.