hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software
hsdp.getIamGroup
Explore with Pulumi AI
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software
Retrieve details of an existing group
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as hsdp from "@pulumi/hsdp";
const someGroup = hsdp.getIamGroup({
managingOrganizationId: _var.org_id,
name: "GROUP NAME",
});
import pulumi
import pulumi_hsdp as hsdp
some_group = hsdp.get_iam_group(managing_organization_id=var["org_id"],
name="GROUP NAME")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/hsdp/hsdp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hsdp.LookupIamGroup(ctx, &hsdp.LookupIamGroupArgs{
ManagingOrganizationId: _var.Org_id,
Name: "GROUP NAME",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Hsdp = Pulumi.Hsdp;
return await Deployment.RunAsync(() =>
{
var someGroup = Hsdp.GetIamGroup.Invoke(new()
{
ManagingOrganizationId = @var.Org_id,
Name = "GROUP NAME",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.hsdp.HsdpFunctions;
import com.pulumi.hsdp.inputs.GetIamGroupArgs;
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 someGroup = HsdpFunctions.getIamGroup(GetIamGroupArgs.builder()
.managingOrganizationId(var_.org_id())
.name("GROUP NAME")
.build());
}
}
variables:
someGroup:
fn::invoke:
function: hsdp:getIamGroup
arguments:
managingOrganizationId: ${var.org_id}
name: GROUP NAME
import * as pulumi from "@pulumi/pulumi";
export const groupGuid = data.hsdp_iam_group.id;
import pulumi
pulumi.export("groupGuid", data["hsdp_iam_group"]["id"])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ctx.Export("groupGuid", data.Hsdp_iam_group.Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() =>
{
return new Dictionary<string, object?>
{
["groupGuid"] = data.Hsdp_iam_group.Id,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
ctx.export("groupGuid", data.hsdp_iam_group().id());
}
}
outputs:
groupGuid: ${data.hsdp_iam_group.id}
Using getIamGroup
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 getIamGroup(args: GetIamGroupArgs, opts?: InvokeOptions): Promise<GetIamGroupResult>
function getIamGroupOutput(args: GetIamGroupOutputArgs, opts?: InvokeOptions): Output<GetIamGroupResult>
def get_iam_group(id: Optional[str] = None,
managing_organization_id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIamGroupResult
def get_iam_group_output(id: Optional[pulumi.Input[str]] = None,
managing_organization_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIamGroupResult]
func LookupIamGroup(ctx *Context, args *LookupIamGroupArgs, opts ...InvokeOption) (*LookupIamGroupResult, error)
func LookupIamGroupOutput(ctx *Context, args *LookupIamGroupOutputArgs, opts ...InvokeOption) LookupIamGroupResultOutput
> Note: This function is named LookupIamGroup
in the Go SDK.
public static class GetIamGroup
{
public static Task<GetIamGroupResult> InvokeAsync(GetIamGroupArgs args, InvokeOptions? opts = null)
public static Output<GetIamGroupResult> Invoke(GetIamGroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIamGroupResult> getIamGroup(GetIamGroupArgs args, InvokeOptions options)
public static Output<GetIamGroupResult> getIamGroup(GetIamGroupArgs args, InvokeOptions options)
fn::invoke:
function: hsdp:index/getIamGroup:getIamGroup
arguments:
# arguments dictionary
The following arguments are supported:
- Managing
Organization stringId - the UUID of the managing organization of the group to lookup0
- Name string
- The name of the group to look up
- Id string
- The group GUID
- Managing
Organization stringId - the UUID of the managing organization of the group to lookup0
- Name string
- The name of the group to look up
- Id string
- The group GUID
- managing
Organization StringId - the UUID of the managing organization of the group to lookup0
- name String
- The name of the group to look up
- id String
- The group GUID
- managing
Organization stringId - the UUID of the managing organization of the group to lookup0
- name string
- The name of the group to look up
- id string
- The group GUID
- managing_
organization_ strid - the UUID of the managing organization of the group to lookup0
- name str
- The name of the group to look up
- id str
- The group GUID
- managing
Organization StringId - the UUID of the managing organization of the group to lookup0
- name String
- The name of the group to look up
- id String
- The group GUID
getIamGroup Result
The following output properties are available:
- Description string
- The description of the group
- Devices List<string>
- list(string) The list of devices in this group
- Id string
- The group GUID
- Managing
Organization stringId - Name string
- Services List<string>
- list(string) The list of services in this group
- Users List<string>
- list(string) The list of users in this group
- Description string
- The description of the group
- Devices []string
- list(string) The list of devices in this group
- Id string
- The group GUID
- Managing
Organization stringId - Name string
- Services []string
- list(string) The list of services in this group
- Users []string
- list(string) The list of users in this group
- description String
- The description of the group
- devices List<String>
- list(string) The list of devices in this group
- id String
- The group GUID
- managing
Organization StringId - name String
- services List<String>
- list(string) The list of services in this group
- users List<String>
- list(string) The list of users in this group
- description string
- The description of the group
- devices string[]
- list(string) The list of devices in this group
- id string
- The group GUID
- managing
Organization stringId - name string
- services string[]
- list(string) The list of services in this group
- users string[]
- list(string) The list of users in this group
- description str
- The description of the group
- devices Sequence[str]
- list(string) The list of devices in this group
- id str
- The group GUID
- managing_
organization_ strid - name str
- services Sequence[str]
- list(string) The list of services in this group
- users Sequence[str]
- list(string) The list of users in this group
- description String
- The description of the group
- devices List<String>
- list(string) The list of devices in this group
- id String
- The group GUID
- managing
Organization StringId - name String
- services List<String>
- list(string) The list of services in this group
- users List<String>
- list(string) The list of users in this group
Package Details
- Repository
- hsdp philips-software/terraform-provider-hsdp
- License
- Notes
- This Pulumi package is based on the
hsdp
Terraform Provider.
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software