1. Packages
  2. Outscale Provider
  3. API Docs
  4. getUserGroupsPerUser
outscale 1.1.0 published on Thursday, Apr 3, 2025 by outscale

outscale.getUserGroupsPerUser

Explore with Pulumi AI

Provides information about groups that a specified user belongs to.

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 userGroupsPerUser01 = outscale.getUserGroupsPerUser({
    userName: "user_name",
    userPath: "/",
});
Copy
import pulumi
import pulumi_outscale as outscale

user_groups_per_user01 = outscale.get_user_groups_per_user(user_name="user_name",
    user_path="/")
Copy
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.GetUserGroupsPerUser(ctx, &outscale.GetUserGroupsPerUserArgs{
			UserName: "user_name",
			UserPath: pulumi.StringRef("/"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var userGroupsPerUser01 = Outscale.GetUserGroupsPerUser.Invoke(new()
    {
        UserName = "user_name",
        UserPath = "/",
    });

});
Copy
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.GetUserGroupsPerUserArgs;
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 userGroupsPerUser01 = OutscaleFunctions.getUserGroupsPerUser(GetUserGroupsPerUserArgs.builder()
            .userName("user_name")
            .userPath("/")
            .build());

    }
}
Copy
variables:
  userGroupsPerUser01:
    fn::invoke:
      function: outscale:getUserGroupsPerUser
      arguments:
        userName: user_name
        userPath: /
Copy

Using getUserGroupsPerUser

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 getUserGroupsPerUser(args: GetUserGroupsPerUserArgs, opts?: InvokeOptions): Promise<GetUserGroupsPerUserResult>
function getUserGroupsPerUserOutput(args: GetUserGroupsPerUserOutputArgs, opts?: InvokeOptions): Output<GetUserGroupsPerUserResult>
Copy
def get_user_groups_per_user(id: Optional[str] = None,
                             user_name: Optional[str] = None,
                             user_path: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetUserGroupsPerUserResult
def get_user_groups_per_user_output(id: Optional[pulumi.Input[str]] = None,
                             user_name: Optional[pulumi.Input[str]] = None,
                             user_path: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetUserGroupsPerUserResult]
Copy
func GetUserGroupsPerUser(ctx *Context, args *GetUserGroupsPerUserArgs, opts ...InvokeOption) (*GetUserGroupsPerUserResult, error)
func GetUserGroupsPerUserOutput(ctx *Context, args *GetUserGroupsPerUserOutputArgs, opts ...InvokeOption) GetUserGroupsPerUserResultOutput
Copy

> Note: This function is named GetUserGroupsPerUser in the Go SDK.

public static class GetUserGroupsPerUser 
{
    public static Task<GetUserGroupsPerUserResult> InvokeAsync(GetUserGroupsPerUserArgs args, InvokeOptions? opts = null)
    public static Output<GetUserGroupsPerUserResult> Invoke(GetUserGroupsPerUserInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetUserGroupsPerUserResult> getUserGroupsPerUser(GetUserGroupsPerUserArgs args, InvokeOptions options)
public static Output<GetUserGroupsPerUserResult> getUserGroupsPerUser(GetUserGroupsPerUserArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: outscale:index/getUserGroupsPerUser:getUserGroupsPerUser
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

UserName This property is required. string
The name of the user.
Id string
UserPath string
The path to the user (by default, /).
UserName This property is required. string
The name of the user.
Id string
UserPath string
The path to the user (by default, /).
userName This property is required. String
The name of the user.
id String
userPath String
The path to the user (by default, /).
userName This property is required. string
The name of the user.
id string
userPath string
The path to the user (by default, /).
user_name This property is required. str
The name of the user.
id str
user_path str
The path to the user (by default, /).
userName This property is required. String
The name of the user.
id String
userPath String
The path to the user (by default, /).

getUserGroupsPerUser Result

The following output properties are available:

Supporting Types

GetUserGroupsPerUserUserGroup

CreationDate This property is required. string
The date and time (UTC) of creation of the user group.
LastModificationDate This property is required. string
The date and time (UTC) of the last modification of the user group.
Orn This property is required. string
The Outscale Resource Name (ORN) of the user group. For more information, see Resource Identifiers.
Path This property is required. string
The path to the user group.
UserGroupId This property is required. string
The ID of the user group.
UserGroupName This property is required. string
CreationDate This property is required. string
The date and time (UTC) of creation of the user group.
LastModificationDate This property is required. string
The date and time (UTC) of the last modification of the user group.
Orn This property is required. string
The Outscale Resource Name (ORN) of the user group. For more information, see Resource Identifiers.
Path This property is required. string
The path to the user group.
UserGroupId This property is required. string
The ID of the user group.
UserGroupName This property is required. string
creationDate This property is required. String
The date and time (UTC) of creation of the user group.
lastModificationDate This property is required. String
The date and time (UTC) of the last modification of the user group.
orn This property is required. String
The Outscale Resource Name (ORN) of the user group. For more information, see Resource Identifiers.
path This property is required. String
The path to the user group.
userGroupId This property is required. String
The ID of the user group.
userGroupName This property is required. String
creationDate This property is required. string
The date and time (UTC) of creation of the user group.
lastModificationDate This property is required. string
The date and time (UTC) of the last modification of the user group.
orn This property is required. string
The Outscale Resource Name (ORN) of the user group. For more information, see Resource Identifiers.
path This property is required. string
The path to the user group.
userGroupId This property is required. string
The ID of the user group.
userGroupName This property is required. string
creation_date This property is required. str
The date and time (UTC) of creation of the user group.
last_modification_date This property is required. str
The date and time (UTC) of the last modification of the user group.
orn This property is required. str
The Outscale Resource Name (ORN) of the user group. For more information, see Resource Identifiers.
path This property is required. str
The path to the user group.
user_group_id This property is required. str
The ID of the user group.
user_group_name This property is required. str
creationDate This property is required. String
The date and time (UTC) of creation of the user group.
lastModificationDate This property is required. String
The date and time (UTC) of the last modification of the user group.
orn This property is required. String
The Outscale Resource Name (ORN) of the user group. For more information, see Resource Identifiers.
path This property is required. String
The path to the user group.
userGroupId This property is required. String
The ID of the user group.
userGroupName This property is required. String

Package Details

Repository
outscale outscale/terraform-provider-outscale
License
Notes
This Pulumi package is based on the outscale Terraform Provider.