1. Packages
  2. OVH
  3. API Docs
  4. CloudProject
  5. getOpenSearchUser
OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud

ovh.CloudProject.getOpenSearchUser

Explore with Pulumi AI

OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud

Use this data source to get information about a user of a opensearch cluster associated with a public cloud project.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const osUser = ovh.CloudProject.getOpenSearchUser({
    serviceName: "XXX",
    clusterId: "YYY",
    name: "ZZZ",
});
export const osUserAcls = osUser.then(osUser => osUser.acls);
Copy
import pulumi
import pulumi_ovh as ovh

os_user = ovh.CloudProject.get_open_search_user(service_name="XXX",
    cluster_id="YYY",
    name="ZZZ")
pulumi.export("osUserAcls", os_user.acls)
Copy
package main

import (
	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/cloudproject"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		osUser, err := cloudproject.GetOpenSearchUser(ctx, &cloudproject.GetOpenSearchUserArgs{
			ServiceName: "XXX",
			ClusterId:   "YYY",
			Name:        "ZZZ",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("osUserAcls", osUser.Acls)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var osUser = Ovh.CloudProject.GetOpenSearchUser.Invoke(new()
    {
        ServiceName = "XXX",
        ClusterId = "YYY",
        Name = "ZZZ",
    });

    return new Dictionary<string, object?>
    {
        ["osUserAcls"] = osUser.Apply(getOpenSearchUserResult => getOpenSearchUserResult.Acls),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProject.CloudProjectFunctions;
import com.pulumi.ovh.CloudProject.inputs.GetOpenSearchUserArgs;
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 osUser = CloudProjectFunctions.getOpenSearchUser(GetOpenSearchUserArgs.builder()
            .serviceName("XXX")
            .clusterId("YYY")
            .name("ZZZ")
            .build());

        ctx.export("osUserAcls", osUser.acls());
    }
}
Copy
variables:
  osUser:
    fn::invoke:
      function: ovh:CloudProject:getOpenSearchUser
      arguments:
        serviceName: XXX
        clusterId: YYY
        name: ZZZ
outputs:
  osUserAcls: ${osUser.acls}
Copy

Using getOpenSearchUser

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 getOpenSearchUser(args: GetOpenSearchUserArgs, opts?: InvokeOptions): Promise<GetOpenSearchUserResult>
function getOpenSearchUserOutput(args: GetOpenSearchUserOutputArgs, opts?: InvokeOptions): Output<GetOpenSearchUserResult>
Copy
def get_open_search_user(cluster_id: Optional[str] = None,
                         name: Optional[str] = None,
                         service_name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetOpenSearchUserResult
def get_open_search_user_output(cluster_id: Optional[pulumi.Input[str]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         service_name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetOpenSearchUserResult]
Copy
func GetOpenSearchUser(ctx *Context, args *GetOpenSearchUserArgs, opts ...InvokeOption) (*GetOpenSearchUserResult, error)
func GetOpenSearchUserOutput(ctx *Context, args *GetOpenSearchUserOutputArgs, opts ...InvokeOption) GetOpenSearchUserResultOutput
Copy

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

public static class GetOpenSearchUser 
{
    public static Task<GetOpenSearchUserResult> InvokeAsync(GetOpenSearchUserArgs args, InvokeOptions? opts = null)
    public static Output<GetOpenSearchUserResult> Invoke(GetOpenSearchUserInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetOpenSearchUserResult> getOpenSearchUser(GetOpenSearchUserArgs args, InvokeOptions options)
public static Output<GetOpenSearchUserResult> getOpenSearchUser(GetOpenSearchUserArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ovh:CloudProject/getOpenSearchUser:getOpenSearchUser
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ClusterId This property is required. string
Cluster ID
Name This property is required. string
Name of the user.
ServiceName This property is required. string
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
ClusterId This property is required. string
Cluster ID
Name This property is required. string
Name of the user.
ServiceName This property is required. string
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
clusterId This property is required. String
Cluster ID
name This property is required. String
Name of the user.
serviceName This property is required. String
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
clusterId This property is required. string
Cluster ID
name This property is required. string
Name of the user.
serviceName This property is required. string
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
cluster_id This property is required. str
Cluster ID
name This property is required. str
Name of the user.
service_name This property is required. str
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
clusterId This property is required. String
Cluster ID
name This property is required. String
Name of the user.
serviceName This property is required. String
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

getOpenSearchUser Result

The following output properties are available:

Acls List<GetOpenSearchUserAcl>
Acls of the user.
ClusterId string
See Argument Reference above.
CreatedAt string
Date of the creation of the user.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Name of the user.
ServiceName string
Current status of the user.
Status string
Current status of the user.
Acls []GetOpenSearchUserAcl
Acls of the user.
ClusterId string
See Argument Reference above.
CreatedAt string
Date of the creation of the user.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Name of the user.
ServiceName string
Current status of the user.
Status string
Current status of the user.
acls List<GetOpenSearchUserAcl>
Acls of the user.
clusterId String
See Argument Reference above.
createdAt String
Date of the creation of the user.
id String
The provider-assigned unique ID for this managed resource.
name String
Name of the user.
serviceName String
Current status of the user.
status String
Current status of the user.
acls GetOpenSearchUserAcl[]
Acls of the user.
clusterId string
See Argument Reference above.
createdAt string
Date of the creation of the user.
id string
The provider-assigned unique ID for this managed resource.
name string
Name of the user.
serviceName string
Current status of the user.
status string
Current status of the user.
acls Sequence[cloudproject.GetOpenSearchUserAcl]
Acls of the user.
cluster_id str
See Argument Reference above.
created_at str
Date of the creation of the user.
id str
The provider-assigned unique ID for this managed resource.
name str
Name of the user.
service_name str
Current status of the user.
status str
Current status of the user.
acls List<Property Map>
Acls of the user.
clusterId String
See Argument Reference above.
createdAt String
Date of the creation of the user.
id String
The provider-assigned unique ID for this managed resource.
name String
Name of the user.
serviceName String
Current status of the user.
status String
Current status of the user.

Supporting Types

GetOpenSearchUserAcl

Pattern This property is required. string
Pattern of the ACL.
Permission This property is required. string
Permission of the ACL.
Pattern This property is required. string
Pattern of the ACL.
Permission This property is required. string
Permission of the ACL.
pattern This property is required. String
Pattern of the ACL.
permission This property is required. String
Permission of the ACL.
pattern This property is required. string
Pattern of the ACL.
permission This property is required. string
Permission of the ACL.
pattern This property is required. str
Pattern of the ACL.
permission This property is required. str
Permission of the ACL.
pattern This property is required. String
Pattern of the ACL.
permission This property is required. String
Permission of the ACL.

Package Details

Repository
ovh ovh/pulumi-ovh
License
Apache-2.0
Notes
This Pulumi package is based on the ovh Terraform Provider.
OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud