1. Packages
  2. OVH
  3. API Docs
  4. Me
  5. getIdentityUsers
OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud

ovh.Me.getIdentityUsers

Explore with Pulumi AI

ovh logo
OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud

    Use this data source to retrieve list of user logins of the account’s identity users.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@pulumi/ovh";
    
    const users = ovh.Me.getIdentityUsers({});
    
    import pulumi
    import pulumi_ovh as ovh
    
    users = ovh.Me.get_identity_users()
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/Me"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Me.GetIdentityUsers(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var users = Ovh.Me.GetIdentityUsers.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.Me.MeFunctions;
    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 users = MeFunctions.getIdentityUsers();
    
        }
    }
    
    variables:
      users:
        fn::invoke:
          Function: ovh:Me:getIdentityUsers
          Arguments: {}
    

    Using getIdentityUsers

    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 getIdentityUsers(opts?: InvokeOptions): Promise<GetIdentityUsersResult>
    function getIdentityUsersOutput(opts?: InvokeOptions): Output<GetIdentityUsersResult>
    def get_identity_users(opts: Optional[InvokeOptions] = None) -> GetIdentityUsersResult
    def get_identity_users_output(opts: Optional[InvokeOptions] = None) -> Output[GetIdentityUsersResult]
    func GetIdentityUsers(ctx *Context, opts ...InvokeOption) (*GetIdentityUsersResult, error)
    func GetIdentityUsersOutput(ctx *Context, opts ...InvokeOption) GetIdentityUsersResultOutput

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

    public static class GetIdentityUsers 
    {
        public static Task<GetIdentityUsersResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetIdentityUsersResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIdentityUsersResult> getIdentityUsers(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: ovh:Me/getIdentityUsers:getIdentityUsers
      arguments:
        # arguments dictionary

    getIdentityUsers Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Users List<string>
    The list of the user's logins of all the identity users.
    Id string
    The provider-assigned unique ID for this managed resource.
    Users []string
    The list of the user's logins of all the identity users.
    id String
    The provider-assigned unique ID for this managed resource.
    users List<String>
    The list of the user's logins of all the identity users.
    id string
    The provider-assigned unique ID for this managed resource.
    users string[]
    The list of the user's logins of all the identity users.
    id str
    The provider-assigned unique ID for this managed resource.
    users Sequence[str]
    The list of the user's logins of all the identity users.
    id String
    The provider-assigned unique ID for this managed resource.
    users List<String>
    The list of the user's logins of all the identity users.

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud