Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine
volcengine.cloud_identity.Groups
Explore with Pulumi AI
Use this data source to query detailed information of cloud identity groups
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooGroup: volcengine.cloud_identity.Group[] = [];
for (const range = {value: 0}; range.value < 2; range.value++) {
    fooGroup.push(new volcengine.cloud_identity.Group(`fooGroup-${range.value}`, {
        description: "tf",
        displayName: `tf-test-group-${range.value}`,
        groupName: `acc-test-group-${range.value}`,
        joinType: "Manual",
    }));
}
const fooGroups = volcengine.cloud_identity.Groups({
    groupName: "acc-test-group",
    joinType: "Manual",
});
import pulumi
import pulumi_volcengine as volcengine
foo_group = []
for range in [{"value": i} for i in range(0, 2)]:
    foo_group.append(volcengine.cloud_identity.Group(f"fooGroup-{range['value']}",
        description="tf",
        display_name=f"tf-test-group-{range['value']}",
        group_name=f"acc-test-group-{range['value']}",
        join_type="Manual"))
foo_groups = volcengine.cloud_identity.groups(group_name="acc-test-group",
    join_type="Manual")
package main
import (
	"fmt"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cloud_identity"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		var fooGroup []*cloud_identity.Group
		for index := 0; index < 2; index++ {
			key0 := index
			val0 := index
			__res, err := cloud_identity.NewGroup(ctx, fmt.Sprintf("fooGroup-%v", key0), &cloud_identity.GroupArgs{
				Description: pulumi.String("tf"),
				DisplayName: pulumi.String(fmt.Sprintf("tf-test-group-%v", val0)),
				GroupName:   pulumi.String(fmt.Sprintf("acc-test-group-%v", val0)),
				JoinType:    pulumi.String("Manual"),
			})
			if err != nil {
				return err
			}
			fooGroup = append(fooGroup, __res)
		}
		_, err = cloud_identity.Groups(ctx, &cloud_identity.GroupsArgs{
			GroupName: pulumi.StringRef("acc-test-group"),
			JoinType:  pulumi.StringRef("Manual"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() => 
{
    var fooGroup = new List<Volcengine.Cloud_identity.Group>();
    for (var rangeIndex = 0; rangeIndex < 2; rangeIndex++)
    {
        var range = new { Value = rangeIndex };
        fooGroup.Add(new Volcengine.Cloud_identity.Group($"fooGroup-{range.Value}", new()
        {
            Description = "tf",
            DisplayName = $"tf-test-group-{range.Value}",
            GroupName = $"acc-test-group-{range.Value}",
            JoinType = "Manual",
        }));
    }
    var fooGroups = Volcengine.Cloud_identity.Groups.Invoke(new()
    {
        GroupName = "acc-test-group",
        JoinType = "Manual",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.cloud_identity.Group;
import com.pulumi.volcengine.cloud_identity.GroupArgs;
import com.pulumi.volcengine.cloud_identity.Cloud_identityFunctions;
import com.pulumi.volcengine.cloud_identity.inputs.GroupsArgs;
import com.pulumi.codegen.internal.KeyedValue;
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) {
        for (var i = 0; i < 2; i++) {
            new Group("fooGroup-" + i, GroupArgs.builder()            
                .description("tf")
                .displayName(String.format("tf-test-group-%s", range.value()))
                .groupName(String.format("acc-test-group-%s", range.value()))
                .joinType("Manual")
                .build());
        
}
        final var fooGroups = Cloud_identityFunctions.Groups(GroupsArgs.builder()
            .groupName("acc-test-group")
            .joinType("Manual")
            .build());
    }
}
resources:
  fooGroup:
    type: volcengine:cloud_identity:Group
    properties:
      description: tf
      displayName: tf-test-group-${range.value}
      groupName: acc-test-group-${range.value}
      joinType: Manual
    options: {}
variables:
  fooGroups:
    fn::invoke:
      Function: volcengine:cloud_identity:Groups
      Arguments:
        groupName: acc-test-group
        joinType: Manual
Using Groups
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 groups(args: GroupsArgs, opts?: InvokeOptions): Promise<GroupsResult>
function groupsOutput(args: GroupsOutputArgs, opts?: InvokeOptions): Output<GroupsResult>def groups(display_name: Optional[str] = None,
           group_name: Optional[str] = None,
           join_type: Optional[str] = None,
           name_regex: Optional[str] = None,
           output_file: Optional[str] = None,
           opts: Optional[InvokeOptions] = None) -> GroupsResult
def groups_output(display_name: Optional[pulumi.Input[str]] = None,
           group_name: Optional[pulumi.Input[str]] = None,
           join_type: Optional[pulumi.Input[str]] = None,
           name_regex: Optional[pulumi.Input[str]] = None,
           output_file: Optional[pulumi.Input[str]] = None,
           opts: Optional[InvokeOptions] = None) -> Output[GroupsResult]func Groups(ctx *Context, args *GroupsArgs, opts ...InvokeOption) (*GroupsResult, error)
func GroupsOutput(ctx *Context, args *GroupsOutputArgs, opts ...InvokeOption) GroupsResultOutputpublic static class Groups 
{
    public static Task<GroupsResult> InvokeAsync(GroupsArgs args, InvokeOptions? opts = null)
    public static Output<GroupsResult> Invoke(GroupsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GroupsResult> groups(GroupsArgs args, InvokeOptions options)
public static Output<GroupsResult> groups(GroupsArgs args, InvokeOptions options)
fn::invoke:
  function: volcengine:cloud_identity:Groups
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Display
Name string - The display name of cloud identity group.
 - Group
Name string - The name of cloud identity group.
 - Join
Type string - The join type of cloud identity group. Valid values: 
Auto,Manual. - Name
Regex string - A Name Regex of Resource.
 - Output
File string - File name where to save data source results.
 
- Display
Name string - The display name of cloud identity group.
 - Group
Name string - The name of cloud identity group.
 - Join
Type string - The join type of cloud identity group. Valid values: 
Auto,Manual. - Name
Regex string - A Name Regex of Resource.
 - Output
File string - File name where to save data source results.
 
- display
Name String - The display name of cloud identity group.
 - group
Name String - The name of cloud identity group.
 - join
Type String - The join type of cloud identity group. Valid values: 
Auto,Manual. - name
Regex String - A Name Regex of Resource.
 - output
File String - File name where to save data source results.
 
- display
Name string - The display name of cloud identity group.
 - group
Name string - The name of cloud identity group.
 - join
Type string - The join type of cloud identity group. Valid values: 
Auto,Manual. - name
Regex string - A Name Regex of Resource.
 - output
File string - File name where to save data source results.
 
- display_
name str - The display name of cloud identity group.
 - group_
name str - The name of cloud identity group.
 - join_
type str - The join type of cloud identity group. Valid values: 
Auto,Manual. - name_
regex str - A Name Regex of Resource.
 - output_
file str - File name where to save data source results.
 
- display
Name String - The display name of cloud identity group.
 - group
Name String - The name of cloud identity group.
 - join
Type String - The join type of cloud identity group. Valid values: 
Auto,Manual. - name
Regex String - A Name Regex of Resource.
 - output
File String - File name where to save data source results.
 
Groups Result
The following output properties are available:
- Groups
List<Groups
Group>  - The collection of query.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Total
Count int - The total count of query.
 - Display
Name string - The display name of the cloud identity group.
 - Group
Name string - The name of the cloud identity group.
 - Join
Type string - The email of the cloud identity group.
 - Name
Regex string - Output
File string 
- Groups
[]Groups
Group  - The collection of query.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Total
Count int - The total count of query.
 - Display
Name string - The display name of the cloud identity group.
 - Group
Name string - The name of the cloud identity group.
 - Join
Type string - The email of the cloud identity group.
 - Name
Regex string - Output
File string 
- groups
List<Groups
Group>  - The collection of query.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - total
Count Integer - The total count of query.
 - display
Name String - The display name of the cloud identity group.
 - group
Name String - The name of the cloud identity group.
 - join
Type String - The email of the cloud identity group.
 - name
Regex String - output
File String 
- groups
Groups
Group[]  - The collection of query.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - total
Count number - The total count of query.
 - display
Name string - The display name of the cloud identity group.
 - group
Name string - The name of the cloud identity group.
 - join
Type string - The email of the cloud identity group.
 - name
Regex string - output
File string 
- groups
Sequence[Groups
Group]  - The collection of query.
 - id str
 - The provider-assigned unique ID for this managed resource.
 - total_
count int - The total count of query.
 - display_
name str - The display name of the cloud identity group.
 - group_
name str - The name of the cloud identity group.
 - join_
type str - The email of the cloud identity group.
 - name_
regex str - output_
file str 
- groups List<Property Map>
 - The collection of query.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - total
Count Number - The total count of query.
 - display
Name String - The display name of the cloud identity group.
 - group
Name String - The name of the cloud identity group.
 - join
Type String - The email of the cloud identity group.
 - name
Regex String - output
File String 
Supporting Types
GroupsGroup 
- Created
Time string - The created time of the cloud identity group.
 - Description string
 - The description of the cloud identity group.
 - Display
Name string - The display name of cloud identity group.
 - Group
Id string - The id of the cloud identity group.
 - Group
Name string - The name of cloud identity group.
 - Id string
 - The id of the cloud identity group.
 - Join
Type string - The join type of cloud identity group. Valid values: 
Auto,Manual. - Source string
 - The source of the cloud identity group.
 - Updated
Time string - The updated time of the cloud identity group.
 
- Created
Time string - The created time of the cloud identity group.
 - Description string
 - The description of the cloud identity group.
 - Display
Name string - The display name of cloud identity group.
 - Group
Id string - The id of the cloud identity group.
 - Group
Name string - The name of cloud identity group.
 - Id string
 - The id of the cloud identity group.
 - Join
Type string - The join type of cloud identity group. Valid values: 
Auto,Manual. - Source string
 - The source of the cloud identity group.
 - Updated
Time string - The updated time of the cloud identity group.
 
- created
Time String - The created time of the cloud identity group.
 - description String
 - The description of the cloud identity group.
 - display
Name String - The display name of cloud identity group.
 - group
Id String - The id of the cloud identity group.
 - group
Name String - The name of cloud identity group.
 - id String
 - The id of the cloud identity group.
 - join
Type String - The join type of cloud identity group. Valid values: 
Auto,Manual. - source String
 - The source of the cloud identity group.
 - updated
Time String - The updated time of the cloud identity group.
 
- created
Time string - The created time of the cloud identity group.
 - description string
 - The description of the cloud identity group.
 - display
Name string - The display name of cloud identity group.
 - group
Id string - The id of the cloud identity group.
 - group
Name string - The name of cloud identity group.
 - id string
 - The id of the cloud identity group.
 - join
Type string - The join type of cloud identity group. Valid values: 
Auto,Manual. - source string
 - The source of the cloud identity group.
 - updated
Time string - The updated time of the cloud identity group.
 
- created_
time str - The created time of the cloud identity group.
 - description str
 - The description of the cloud identity group.
 - display_
name str - The display name of cloud identity group.
 - group_
id str - The id of the cloud identity group.
 - group_
name str - The name of cloud identity group.
 - id str
 - The id of the cloud identity group.
 - join_
type str - The join type of cloud identity group. Valid values: 
Auto,Manual. - source str
 - The source of the cloud identity group.
 - updated_
time str - The updated time of the cloud identity group.
 
- created
Time String - The created time of the cloud identity group.
 - description String
 - The description of the cloud identity group.
 - display
Name String - The display name of cloud identity group.
 - group
Id String - The id of the cloud identity group.
 - group
Name String - The name of cloud identity group.
 - id String
 - The id of the cloud identity group.
 - join
Type String - The join type of cloud identity group. Valid values: 
Auto,Manual. - source String
 - The source of the cloud identity group.
 - updated
Time String - The updated time of the cloud identity group.
 
Package Details
- Repository
 - volcengine volcengine/pulumi-volcengine
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
volcengineTerraform Provider.