outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale
outscale.getUserGroups
Explore with Pulumi AI
Provides information about user groups.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const usegroups01 = outscale.getUserGroups({
filters: [
{
name: "user_group_ids",
values: [
"XXXXXXXXX",
"YYYYYYYYYY",
],
},
{
name: "path_prefix",
values: ["/"],
},
],
});
import pulumi
import pulumi_outscale as outscale
usegroups01 = outscale.get_user_groups(filters=[
{
"name": "user_group_ids",
"values": [
"XXXXXXXXX",
"YYYYYYYYYY",
],
},
{
"name": "path_prefix",
"values": ["/"],
},
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := outscale.GetUserGroups(ctx, &outscale.GetUserGroupsArgs{
Filters: []outscale.GetUserGroupsFilter{
{
Name: "user_group_ids",
Values: []string{
"XXXXXXXXX",
"YYYYYYYYYY",
},
},
{
Name: "path_prefix",
Values: []string{
"/",
},
},
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() =>
{
var usegroups01 = Outscale.GetUserGroups.Invoke(new()
{
Filters = new[]
{
new Outscale.Inputs.GetUserGroupsFilterInputArgs
{
Name = "user_group_ids",
Values = new[]
{
"XXXXXXXXX",
"YYYYYYYYYY",
},
},
new Outscale.Inputs.GetUserGroupsFilterInputArgs
{
Name = "path_prefix",
Values = new[]
{
"/",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.inputs.GetUserGroupsArgs;
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 usegroups01 = OutscaleFunctions.getUserGroups(GetUserGroupsArgs.builder()
.filters(
GetUserGroupsFilterArgs.builder()
.name("user_group_ids")
.values(
"XXXXXXXXX",
"YYYYYYYYYY")
.build(),
GetUserGroupsFilterArgs.builder()
.name("path_prefix")
.values("/")
.build())
.build());
}
}
variables:
usegroups01:
fn::invoke:
function: outscale:getUserGroups
arguments:
filters:
- name: user_group_ids
values:
- XXXXXXXXX
- YYYYYYYYYY
- name: path_prefix
values:
- /
Using getUserGroups
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 getUserGroups(args: GetUserGroupsArgs, opts?: InvokeOptions): Promise<GetUserGroupsResult>
function getUserGroupsOutput(args: GetUserGroupsOutputArgs, opts?: InvokeOptions): Output<GetUserGroupsResult>
def get_user_groups(filters: Optional[Sequence[GetUserGroupsFilter]] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserGroupsResult
def get_user_groups_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetUserGroupsFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserGroupsResult]
func GetUserGroups(ctx *Context, args *GetUserGroupsArgs, opts ...InvokeOption) (*GetUserGroupsResult, error)
func GetUserGroupsOutput(ctx *Context, args *GetUserGroupsOutputArgs, opts ...InvokeOption) GetUserGroupsResultOutput
> Note: This function is named GetUserGroups
in the Go SDK.
public static class GetUserGroups
{
public static Task<GetUserGroupsResult> InvokeAsync(GetUserGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetUserGroupsResult> Invoke(GetUserGroupsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUserGroupsResult> getUserGroups(GetUserGroupsArgs args, InvokeOptions options)
public static Output<GetUserGroupsResult> getUserGroups(GetUserGroupsArgs args, InvokeOptions options)
fn::invoke:
function: outscale:index/getUserGroups:getUserGroups
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
[]Get
User Groups Filter - Id string
- filters
Get
User Groups Filter[] - id string
- filters List<Property Map>
- id String
getUserGroups Result
The following output properties are available:
- Id string
- User
Groups List<GetUser Groups User Group> - A list of user groups.
- Filters
List<Get
User Groups Filter>
- Id string
- User
Groups []GetUser Groups User Group - A list of user groups.
- Filters
[]Get
User Groups Filter
- id String
- user
Groups List<GetUser Groups User Group> - A list of user groups.
- filters
List<Get
User Groups Filter>
- id string
- user
Groups GetUser Groups User Group[] - A list of user groups.
- filters
Get
User Groups Filter[]
- id str
- user_
groups Sequence[GetUser Groups User Group] - A list of user groups.
- filters
Sequence[Get
User Groups Filter]
- id String
- user
Groups List<Property Map> - A list of user groups.
- filters List<Property Map>
Supporting Types
GetUserGroupsFilter
GetUserGroupsUserGroup
- Creation
Date string - The date and time (UTC) of creation of the user group.
- Last
Modification stringDate - The date and time (UTC) of the last modification of the user group.
- Orn string
- The Outscale Resource Name (ORN) of the user group. For more information, see Resource Identifiers.
- Path string
- The path to the user group.
- User
Group stringId - The ID of the user group.
- User
Group stringName
- Creation
Date string - The date and time (UTC) of creation of the user group.
- Last
Modification stringDate - The date and time (UTC) of the last modification of the user group.
- Orn string
- The Outscale Resource Name (ORN) of the user group. For more information, see Resource Identifiers.
- Path string
- The path to the user group.
- User
Group stringId - The ID of the user group.
- User
Group stringName
- creation
Date String - The date and time (UTC) of creation of the user group.
- last
Modification StringDate - The date and time (UTC) of the last modification of the user group.
- orn String
- The Outscale Resource Name (ORN) of the user group. For more information, see Resource Identifiers.
- path String
- The path to the user group.
- user
Group StringId - The ID of the user group.
- user
Group StringName
- creation
Date string - The date and time (UTC) of creation of the user group.
- last
Modification stringDate - The date and time (UTC) of the last modification of the user group.
- orn string
- The Outscale Resource Name (ORN) of the user group. For more information, see Resource Identifiers.
- path string
- The path to the user group.
- user
Group stringId - The ID of the user group.
- user
Group stringName
- creation_
date str - The date and time (UTC) of creation of the user group.
- last_
modification_ strdate - The date and time (UTC) of the last modification of the user group.
- orn str
- The Outscale Resource Name (ORN) of the user group. For more information, see Resource Identifiers.
- path str
- The path to the user group.
- user_
group_ strid - The ID of the user group.
- user_
group_ strname
- creation
Date String - The date and time (UTC) of creation of the user group.
- last
Modification StringDate - The date and time (UTC) of the last modification of the user group.
- orn String
- The Outscale Resource Name (ORN) of the user group. For more information, see Resource Identifiers.
- path String
- The path to the user group.
- user
Group StringId - The ID of the user group.
- user
Group StringName
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the
outscale
Terraform Provider.