Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Get the user details of a previously created public cloud project user.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const projectUsers = ovh.CloudProject.getUsers({
serviceName: "XXX",
});
// Get the user ID of a previously created user with the description "S3-User"
const users = projectUsers.then(projectUsers => .filter(user => user.description == "S3-User").map(user => (user.userId)));
const s3UserId = users[0];
const myUser = Promise.all([projectUsers, s3UserId]).then(([projectUsers, s3UserId]) => ovh.CloudProject.getUser({
serviceName: projectUsers.serviceName,
userId: s3UserId,
}));
import pulumi
import pulumi_ovh as ovh
project_users = ovh.CloudProject.get_users(service_name="XXX")
# Get the user ID of a previously created user with the description "S3-User"
users = [user.user_id for user in project_users.users if user.description == "S3-User"]
s3_user_id = users[0]
my_user = ovh.CloudProject.get_user(service_name=project_users.service_name,
user_id=s3_user_id)
Example coming soon!
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var projectUsers = Ovh.CloudProject.GetUsers.Invoke(new()
{
ServiceName = "XXX",
});
// Get the user ID of a previously created user with the description "S3-User"
var users = .Where(user => user.Description == "S3-User").Select(user =>
{
return user.UserId;
}).ToList();
var s3UserId = users[0];
var myUser = Ovh.CloudProject.GetUser.Invoke(new()
{
ServiceName = projectUsers.Apply(getUsersResult => getUsersResult.ServiceName),
UserId = s3UserId,
});
});
Example coming soon!
Example coming soon!
Using getUser
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 getUser(args: GetUserArgs, opts?: InvokeOptions): Promise<GetUserResult>
function getUserOutput(args: GetUserOutputArgs, opts?: InvokeOptions): Output<GetUserResult>def get_user(service_name: Optional[str] = None,
user_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserResult
def get_user_output(service_name: Optional[pulumi.Input[str]] = None,
user_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserResult]func LookupUser(ctx *Context, args *LookupUserArgs, opts ...InvokeOption) (*LookupUserResult, error)
func LookupUserOutput(ctx *Context, args *LookupUserOutputArgs, opts ...InvokeOption) LookupUserResultOutput> Note: This function is named LookupUser in the Go SDK.
public static class GetUser
{
public static Task<GetUserResult> InvokeAsync(GetUserArgs args, InvokeOptions? opts = null)
public static Output<GetUserResult> Invoke(GetUserInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
public static Output<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
fn::invoke:
function: ovh:CloudProject/getUser:getUser
arguments:
# arguments dictionaryThe following arguments are supported:
- Service
Name string - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. - User
Id string - The ID of a public cloud project's user.
- Service
Name string - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. - User
Id string - The ID of a public cloud project's user.
- service
Name String - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. - user
Id String - The ID of a public cloud project's user.
- service
Name string - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. - user
Id string - The ID of a public cloud project's user.
- service_
name str - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. - user_
id str - The ID of a public cloud project's user.
- service
Name String - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. - user
Id String - The ID of a public cloud project's user.
getUser Result
The following output properties are available:
- Creation
Date string - the date the user was created.
- Description string
- description of the role
- Id string
- The provider-assigned unique ID for this managed resource.
- Roles
List<Get
User Role> - A list of roles associated with the user.
- Service
Name string - Status string
- the status of the user. should be normally set to 'ok'.
- User
Id string - Username string
- the username generated for the user. This username can be used with the Openstack API.
- Creation
Date string - the date the user was created.
- Description string
- description of the role
- Id string
- The provider-assigned unique ID for this managed resource.
- Roles
[]Get
User Role - A list of roles associated with the user.
- Service
Name string - Status string
- the status of the user. should be normally set to 'ok'.
- User
Id string - Username string
- the username generated for the user. This username can be used with the Openstack API.
- creation
Date String - the date the user was created.
- description String
- description of the role
- id String
- The provider-assigned unique ID for this managed resource.
- roles
List<Get
User Role> - A list of roles associated with the user.
- service
Name String - status String
- the status of the user. should be normally set to 'ok'.
- user
Id String - username String
- the username generated for the user. This username can be used with the Openstack API.
- creation
Date string - the date the user was created.
- description string
- description of the role
- id string
- The provider-assigned unique ID for this managed resource.
- roles
Get
User Role[] - A list of roles associated with the user.
- service
Name string - status string
- the status of the user. should be normally set to 'ok'.
- user
Id string - username string
- the username generated for the user. This username can be used with the Openstack API.
- creation_
date str - the date the user was created.
- description str
- description of the role
- id str
- The provider-assigned unique ID for this managed resource.
- roles
Sequence[Get
User Role] - A list of roles associated with the user.
- service_
name str - status str
- the status of the user. should be normally set to 'ok'.
- user_
id str - username str
- the username generated for the user. This username can be used with the Openstack API.
- creation
Date String - the date the user was created.
- description String
- description of the role
- id String
- The provider-assigned unique ID for this managed resource.
- roles List<Property Map>
- A list of roles associated with the user.
- service
Name String - status String
- the status of the user. should be normally set to 'ok'.
- user
Id String - username String
- the username generated for the user. This username can be used with the Openstack API.
Supporting Types
GetUserRole
- Description string
- description of the role
- Id string
- id of the role
- Name string
- name of the role
- Permissions List<string>
- list of permissions associated with the role
- Description string
- description of the role
- Id string
- id of the role
- Name string
- name of the role
- Permissions []string
- list of permissions associated with the role
- description String
- description of the role
- id String
- id of the role
- name String
- name of the role
- permissions List<String>
- list of permissions associated with the role
- description string
- description of the role
- id string
- id of the role
- name string
- name of the role
- permissions string[]
- list of permissions associated with the role
- description str
- description of the role
- id str
- id of the role
- name str
- name of the role
- permissions Sequence[str]
- list of permissions associated with the role
- description String
- description of the role
- id String
- id of the role
- name String
- name of the role
- permissions List<String>
- list of permissions associated with the role
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovhTerraform Provider.
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
