get Group Lookup
Use this data source to look up the resource name of a Cloud Identity Group by its EntityKey, i.e. the group's email. https://cloud.google.com/identity/docs/concepts/overview#groups
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const group = gcp.cloudidentity.getGroupLookup({
groupKey: {
id: "my-group@example.com",
},
});
import pulumi
import pulumi_gcp as gcp
group = gcp.cloudidentity.get_group_lookup(group_key={
"id": "my-group@example.com",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var @group = Gcp.CloudIdentity.GetGroupLookup.Invoke(new()
{
GroupKey = new Gcp.CloudIdentity.Inputs.GetGroupLookupGroupKeyInputArgs
{
Id = "my-group@example.com",
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/cloudidentity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudidentity.GetGroupLookup(ctx, &cloudidentity.GetGroupLookupArgs{
GroupKey: cloudidentity.GetGroupLookupGroupKey{
Id: "my-group@example.com",
},
}, 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.gcp.cloudidentity.CloudidentityFunctions;
import com.pulumi.gcp.cloudidentity.inputs.GetGroupLookupArgs;
import com.pulumi.gcp.cloudidentity.inputs.GetGroupLookupGroupKeyArgs;
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 group = CloudidentityFunctions.getGroupLookup(GetGroupLookupArgs.builder()
.groupKey(GetGroupLookupGroupKeyArgs.builder()
.id("my-group@example.com")
.build())
.build());
}
}
variables:
group:
fn::invoke:
function: gcp:cloudidentity:getGroupLookup
arguments:
groupKey:
id: my-group@example.com
Return
A collection of values returned by getGroupLookup.
Parameters
A collection of arguments for invoking getGroupLookup.
Return
A collection of values returned by getGroupLookup.
Parameters
The EntityKey of the Group to lookup. A unique identifier for an entity in the Cloud Identity Groups API. An entity can represent either a group with an optional namespace or a user without a namespace. The combination of id and namespace must be unique; however, the same id can be used with different namespaces. Structure is documented below.
See also
Return
A collection of values returned by getGroupLookup.
Parameters
Builder for com.pulumi.gcp.cloudidentity.kotlin.inputs.GetGroupLookupPlainArgs.