Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs
harness.platform.getUsergroup
Explore with Pulumi AI
Data source for retrieving a Harness User Group.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() => 
{
    var exampleById = Harness.Platform.GetUsergroup.Invoke(new()
    {
        Identifier = "identifier",
        OrgId = "org_id",
        ProjectId = "project_id",
    });
    var exampleByName = Harness.Platform.GetUsergroup.Invoke(new()
    {
        Name = "name",
        OrgId = "org_id",
        ProjectId = "project_id",
    });
});
package main
import (
	"github.com/lbrlabs/pulumi-harness/sdk/go/harness/platform"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := platform.LookupUsergroup(ctx, &platform.LookupUsergroupArgs{
			Identifier: pulumi.StringRef("identifier"),
			OrgId:      pulumi.StringRef("org_id"),
			ProjectId:  pulumi.StringRef("project_id"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = platform.LookupUsergroup(ctx, &platform.LookupUsergroupArgs{
			Name:      pulumi.StringRef("name"),
			OrgId:     pulumi.StringRef("org_id"),
			ProjectId: pulumi.StringRef("project_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.harness.platform.PlatformFunctions;
import com.pulumi.harness.platform.inputs.GetUsergroupArgs;
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 exampleById = PlatformFunctions.getUsergroup(GetUsergroupArgs.builder()
            .identifier("identifier")
            .orgId("org_id")
            .projectId("project_id")
            .build());
        final var exampleByName = PlatformFunctions.getUsergroup(GetUsergroupArgs.builder()
            .name("name")
            .orgId("org_id")
            .projectId("project_id")
            .build());
    }
}
import pulumi
import pulumi_harness as harness
example_by_id = harness.platform.get_usergroup(identifier="identifier",
    org_id="org_id",
    project_id="project_id")
example_by_name = harness.platform.get_usergroup(name="name",
    org_id="org_id",
    project_id="project_id")
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const exampleById = harness.platform.getUsergroup({
    identifier: "identifier",
    orgId: "org_id",
    projectId: "project_id",
});
const exampleByName = harness.platform.getUsergroup({
    name: "name",
    orgId: "org_id",
    projectId: "project_id",
});
variables:
  exampleById:
    fn::invoke:
      Function: harness:platform:getUsergroup
      Arguments:
        identifier: identifier
        orgId: org_id
        projectId: project_id
  exampleByName:
    fn::invoke:
      Function: harness:platform:getUsergroup
      Arguments:
        name: name
        orgId: org_id
        projectId: project_id
Using getUsergroup
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 getUsergroup(args: GetUsergroupArgs, opts?: InvokeOptions): Promise<GetUsergroupResult>
function getUsergroupOutput(args: GetUsergroupOutputArgs, opts?: InvokeOptions): Output<GetUsergroupResult>def get_usergroup(identifier: Optional[str] = None,
                  name: Optional[str] = None,
                  notification_configs: Optional[Sequence[GetUsergroupNotificationConfig]] = None,
                  org_id: Optional[str] = None,
                  project_id: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetUsergroupResult
def get_usergroup_output(identifier: Optional[pulumi.Input[str]] = None,
                  name: Optional[pulumi.Input[str]] = None,
                  notification_configs: Optional[pulumi.Input[Sequence[pulumi.Input[GetUsergroupNotificationConfigArgs]]]] = None,
                  org_id: Optional[pulumi.Input[str]] = None,
                  project_id: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetUsergroupResult]func LookupUsergroup(ctx *Context, args *LookupUsergroupArgs, opts ...InvokeOption) (*LookupUsergroupResult, error)
func LookupUsergroupOutput(ctx *Context, args *LookupUsergroupOutputArgs, opts ...InvokeOption) LookupUsergroupResultOutput> Note: This function is named LookupUsergroup in the Go SDK.
public static class GetUsergroup 
{
    public static Task<GetUsergroupResult> InvokeAsync(GetUsergroupArgs args, InvokeOptions? opts = null)
    public static Output<GetUsergroupResult> Invoke(GetUsergroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetUsergroupResult> getUsergroup(GetUsergroupArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: harness:platform/getUsergroup:getUsergroup
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Identifier string
 - Unique identifier of the resource.
 - Name string
 - Name of the resource.
 - Notification
Configs List<Lbrlabs.Pulumi Package. Harness. Platform. Inputs. Get Usergroup Notification Config>  - List of notification settings.
 - Org
Id string - Unique identifier of the organization.
 - Project
Id string - Unique identifier of the project.
 
- Identifier string
 - Unique identifier of the resource.
 - Name string
 - Name of the resource.
 - Notification
Configs []GetUsergroup Notification Config  - List of notification settings.
 - Org
Id string - Unique identifier of the organization.
 - Project
Id string - Unique identifier of the project.
 
- identifier String
 - Unique identifier of the resource.
 - name String
 - Name of the resource.
 - notification
Configs List<GetUsergroup Notification Config>  - List of notification settings.
 - org
Id String - Unique identifier of the organization.
 - project
Id String - Unique identifier of the project.
 
- identifier string
 - Unique identifier of the resource.
 - name string
 - Name of the resource.
 - notification
Configs GetUsergroup Notification Config[]  - List of notification settings.
 - org
Id string - Unique identifier of the organization.
 - project
Id string - Unique identifier of the project.
 
- identifier str
 - Unique identifier of the resource.
 - name str
 - Name of the resource.
 - notification_
configs Sequence[GetUsergroup Notification Config]  - List of notification settings.
 - org_
id str - Unique identifier of the organization.
 - project_
id str - Unique identifier of the project.
 
- identifier String
 - Unique identifier of the resource.
 - name String
 - Name of the resource.
 - notification
Configs List<Property Map> - List of notification settings.
 - org
Id String - Unique identifier of the organization.
 - project
Id String - Unique identifier of the project.
 
getUsergroup Result
The following output properties are available:
- Description string
 - Description of the resource.
 - Externally
Managed bool - Whether the user group is externally managed.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Linked
Sso stringDisplay Name  - Name of the linked SSO.
 - Linked
Sso stringId  - The SSO account ID that the user group is linked to.
 - Linked
Sso stringType  - Type of linked SSO.
 - Sso
Group stringId  - Identifier of the userGroup in SSO.
 - Sso
Group stringName  - Name of the SSO userGroup.
 - Sso
Linked bool - Whether sso is linked or not.
 - List<string>
 - Tags to associate with the resource.
 - Users List<string>
 - List of users in the UserGroup.
 - Identifier string
 - Unique identifier of the resource.
 - Name string
 - Name of the resource.
 - Notification
Configs List<Lbrlabs.Pulumi Package. Harness. Platform. Outputs. Get Usergroup Notification Config>  - List of notification settings.
 - Org
Id string - Unique identifier of the organization.
 - Project
Id string - Unique identifier of the project.
 
- Description string
 - Description of the resource.
 - Externally
Managed bool - Whether the user group is externally managed.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Linked
Sso stringDisplay Name  - Name of the linked SSO.
 - Linked
Sso stringId  - The SSO account ID that the user group is linked to.
 - Linked
Sso stringType  - Type of linked SSO.
 - Sso
Group stringId  - Identifier of the userGroup in SSO.
 - Sso
Group stringName  - Name of the SSO userGroup.
 - Sso
Linked bool - Whether sso is linked or not.
 - []string
 - Tags to associate with the resource.
 - Users []string
 - List of users in the UserGroup.
 - Identifier string
 - Unique identifier of the resource.
 - Name string
 - Name of the resource.
 - Notification
Configs []GetUsergroup Notification Config  - List of notification settings.
 - Org
Id string - Unique identifier of the organization.
 - Project
Id string - Unique identifier of the project.
 
- description String
 - Description of the resource.
 - externally
Managed Boolean - Whether the user group is externally managed.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - linked
Sso StringDisplay Name  - Name of the linked SSO.
 - linked
Sso StringId  - The SSO account ID that the user group is linked to.
 - linked
Sso StringType  - Type of linked SSO.
 - sso
Group StringId  - Identifier of the userGroup in SSO.
 - sso
Group StringName  - Name of the SSO userGroup.
 - sso
Linked Boolean - Whether sso is linked or not.
 - List<String>
 - Tags to associate with the resource.
 - users List<String>
 - List of users in the UserGroup.
 - identifier String
 - Unique identifier of the resource.
 - name String
 - Name of the resource.
 - notification
Configs List<GetUsergroup Notification Config>  - List of notification settings.
 - org
Id String - Unique identifier of the organization.
 - project
Id String - Unique identifier of the project.
 
- description string
 - Description of the resource.
 - externally
Managed boolean - Whether the user group is externally managed.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - linked
Sso stringDisplay Name  - Name of the linked SSO.
 - linked
Sso stringId  - The SSO account ID that the user group is linked to.
 - linked
Sso stringType  - Type of linked SSO.
 - sso
Group stringId  - Identifier of the userGroup in SSO.
 - sso
Group stringName  - Name of the SSO userGroup.
 - sso
Linked boolean - Whether sso is linked or not.
 - string[]
 - Tags to associate with the resource.
 - users string[]
 - List of users in the UserGroup.
 - identifier string
 - Unique identifier of the resource.
 - name string
 - Name of the resource.
 - notification
Configs GetUsergroup Notification Config[]  - List of notification settings.
 - org
Id string - Unique identifier of the organization.
 - project
Id string - Unique identifier of the project.
 
- description str
 - Description of the resource.
 - externally_
managed bool - Whether the user group is externally managed.
 - id str
 - The provider-assigned unique ID for this managed resource.
 - linked_
sso_ strdisplay_ name  - Name of the linked SSO.
 - linked_
sso_ strid  - The SSO account ID that the user group is linked to.
 - linked_
sso_ strtype  - Type of linked SSO.
 - sso_
group_ strid  - Identifier of the userGroup in SSO.
 - sso_
group_ strname  - Name of the SSO userGroup.
 - sso_
linked bool - Whether sso is linked or not.
 - Sequence[str]
 - Tags to associate with the resource.
 - users Sequence[str]
 - List of users in the UserGroup.
 - identifier str
 - Unique identifier of the resource.
 - name str
 - Name of the resource.
 - notification_
configs Sequence[GetUsergroup Notification Config]  - List of notification settings.
 - org_
id str - Unique identifier of the organization.
 - project_
id str - Unique identifier of the project.
 
- description String
 - Description of the resource.
 - externally
Managed Boolean - Whether the user group is externally managed.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - linked
Sso StringDisplay Name  - Name of the linked SSO.
 - linked
Sso StringId  - The SSO account ID that the user group is linked to.
 - linked
Sso StringType  - Type of linked SSO.
 - sso
Group StringId  - Identifier of the userGroup in SSO.
 - sso
Group StringName  - Name of the SSO userGroup.
 - sso
Linked Boolean - Whether sso is linked or not.
 - List<String>
 - Tags to associate with the resource.
 - users List<String>
 - List of users in the UserGroup.
 - identifier String
 - Unique identifier of the resource.
 - name String
 - Name of the resource.
 - notification
Configs List<Property Map> - List of notification settings.
 - org
Id String - Unique identifier of the organization.
 - project
Id String - Unique identifier of the project.
 
Supporting Types
GetUsergroupNotificationConfig   
- Group
Email string - Group email.
 - Microsoft
Teams stringWebhook Url  - Url of Microsoft teams webhook.
 - Pager
Duty stringKey  - Pager duty key.
 - Send
Email boolTo All Users  - Send email to all the group members.
 - Slack
Webhook stringUrl  - Url of slack webhook.
 - Type string
 - Can be one of EMAIL, SLACK, PAGERDUTY, MSTEAMS.
 
- Group
Email string - Group email.
 - Microsoft
Teams stringWebhook Url  - Url of Microsoft teams webhook.
 - Pager
Duty stringKey  - Pager duty key.
 - Send
Email boolTo All Users  - Send email to all the group members.
 - Slack
Webhook stringUrl  - Url of slack webhook.
 - Type string
 - Can be one of EMAIL, SLACK, PAGERDUTY, MSTEAMS.
 
- group
Email String - Group email.
 - microsoft
Teams StringWebhook Url  - Url of Microsoft teams webhook.
 - pager
Duty StringKey  - Pager duty key.
 - send
Email BooleanTo All Users  - Send email to all the group members.
 - slack
Webhook StringUrl  - Url of slack webhook.
 - type String
 - Can be one of EMAIL, SLACK, PAGERDUTY, MSTEAMS.
 
- group
Email string - Group email.
 - microsoft
Teams stringWebhook Url  - Url of Microsoft teams webhook.
 - pager
Duty stringKey  - Pager duty key.
 - send
Email booleanTo All Users  - Send email to all the group members.
 - slack
Webhook stringUrl  - Url of slack webhook.
 - type string
 - Can be one of EMAIL, SLACK, PAGERDUTY, MSTEAMS.
 
- group_
email str - Group email.
 - microsoft_
teams_ strwebhook_ url  - Url of Microsoft teams webhook.
 - pager_
duty_ strkey  - Pager duty key.
 - send_
email_ boolto_ all_ users  - Send email to all the group members.
 - slack_
webhook_ strurl  - Url of slack webhook.
 - type str
 - Can be one of EMAIL, SLACK, PAGERDUTY, MSTEAMS.
 
- group
Email String - Group email.
 - microsoft
Teams StringWebhook Url  - Url of Microsoft teams webhook.
 - pager
Duty StringKey  - Pager duty key.
 - send
Email BooleanTo All Users  - Send email to all the group members.
 - slack
Webhook StringUrl  - Url of slack webhook.
 - type String
 - Can be one of EMAIL, SLACK, PAGERDUTY, MSTEAMS.
 
Package Details
- Repository
 - harness lbrlabs/pulumi-harness
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
harnessTerraform Provider.