1. Packages
  2. Packages
  3. OVH
  4. API Docs
  5. getCloudKeyManagerSecretConsumer
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
ovh logo
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud

    Use this data source to get information about a single consumer registered on a Barbican Key Manager secret.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const consumer = ovh.getCloudKeyManagerSecretConsumer({
        serviceName: "Public cloud project ID",
        secretId: "00000000-0000-0000-0000-000000000000",
        consumerId: "Q09NUFVURTpJTlNUQU5DRToxMTExMTExMS0xMTExLTExMTEtMTExMS0xMTExMTExMTExMTE",
    });
    export const consumerService = consumer.then(consumer => consumer.service);
    
    import pulumi
    import pulumi_ovh as ovh
    
    consumer = ovh.get_cloud_key_manager_secret_consumer(service_name="Public cloud project ID",
        secret_id="00000000-0000-0000-0000-000000000000",
        consumer_id="Q09NUFVURTpJTlNUQU5DRToxMTExMTExMS0xMTExLTExMTEtMTExMS0xMTExMTExMTExMTE")
    pulumi.export("consumerService", consumer.service)
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		consumer, err := ovh.LookupCloudKeyManagerSecretConsumer(ctx, &ovh.LookupCloudKeyManagerSecretConsumerArgs{
    			ServiceName: "Public cloud project ID",
    			SecretId:    "00000000-0000-0000-0000-000000000000",
    			ConsumerId:  "Q09NUFVURTpJTlNUQU5DRToxMTExMTExMS0xMTExLTExMTEtMTExMS0xMTExMTExMTExMTE",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("consumerService", consumer.Service)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var consumer = Ovh.GetCloudKeyManagerSecretConsumer.Invoke(new()
        {
            ServiceName = "Public cloud project ID",
            SecretId = "00000000-0000-0000-0000-000000000000",
            ConsumerId = "Q09NUFVURTpJTlNUQU5DRToxMTExMTExMS0xMTExLTExMTEtMTExMS0xMTExMTExMTExMTE",
        });
    
        return new Dictionary<string, object?>
        {
            ["consumerService"] = consumer.Apply(getCloudKeyManagerSecretConsumerResult => getCloudKeyManagerSecretConsumerResult.Service),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.OvhFunctions;
    import com.pulumi.ovh.inputs.GetCloudKeyManagerSecretConsumerArgs;
    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 consumer = OvhFunctions.getCloudKeyManagerSecretConsumer(GetCloudKeyManagerSecretConsumerArgs.builder()
                .serviceName("Public cloud project ID")
                .secretId("00000000-0000-0000-0000-000000000000")
                .consumerId("Q09NUFVURTpJTlNUQU5DRToxMTExMTExMS0xMTExLTExMTEtMTExMS0xMTExMTExMTExMTE")
                .build());
    
            ctx.export("consumerService", consumer.service());
        }
    }
    
    variables:
      consumer:
        fn::invoke:
          function: ovh:getCloudKeyManagerSecretConsumer
          arguments:
            serviceName: Public cloud project ID
            secretId: 00000000-0000-0000-0000-000000000000
            consumerId: Q09NUFVURTpJTlNUQU5DRToxMTExMTExMS0xMTExLTExMTEtMTExMS0xMTExMTExMTExMTE
    outputs:
      consumerService: ${consumer.service}
    
    Example coming soon!
    

    Using getCloudKeyManagerSecretConsumer

    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 getCloudKeyManagerSecretConsumer(args: GetCloudKeyManagerSecretConsumerArgs, opts?: InvokeOptions): Promise<GetCloudKeyManagerSecretConsumerResult>
    function getCloudKeyManagerSecretConsumerOutput(args: GetCloudKeyManagerSecretConsumerOutputArgs, opts?: InvokeOptions): Output<GetCloudKeyManagerSecretConsumerResult>
    def get_cloud_key_manager_secret_consumer(consumer_id: Optional[str] = None,
                                              secret_id: Optional[str] = None,
                                              service_name: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetCloudKeyManagerSecretConsumerResult
    def get_cloud_key_manager_secret_consumer_output(consumer_id: pulumi.Input[Optional[str]] = None,
                                              secret_id: pulumi.Input[Optional[str]] = None,
                                              service_name: pulumi.Input[Optional[str]] = None,
                                              opts: Optional[InvokeOptions] = None) -> Output[GetCloudKeyManagerSecretConsumerResult]
    func LookupCloudKeyManagerSecretConsumer(ctx *Context, args *LookupCloudKeyManagerSecretConsumerArgs, opts ...InvokeOption) (*LookupCloudKeyManagerSecretConsumerResult, error)
    func LookupCloudKeyManagerSecretConsumerOutput(ctx *Context, args *LookupCloudKeyManagerSecretConsumerOutputArgs, opts ...InvokeOption) LookupCloudKeyManagerSecretConsumerResultOutput

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

    public static class GetCloudKeyManagerSecretConsumer 
    {
        public static Task<GetCloudKeyManagerSecretConsumerResult> InvokeAsync(GetCloudKeyManagerSecretConsumerArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudKeyManagerSecretConsumerResult> Invoke(GetCloudKeyManagerSecretConsumerInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudKeyManagerSecretConsumerResult> getCloudKeyManagerSecretConsumer(GetCloudKeyManagerSecretConsumerArgs args, InvokeOptions options)
    public static Output<GetCloudKeyManagerSecretConsumerResult> getCloudKeyManagerSecretConsumer(GetCloudKeyManagerSecretConsumerArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:index/getCloudKeyManagerSecretConsumer:getCloudKeyManagerSecretConsumer
      arguments:
        # arguments dictionary
    data "ovh_get_cloud_key_manager_secret_consumer" "name" {
        # arguments
    }

    The following arguments are supported:

    ConsumerId string
    Consumer identifier, as returned in the id attribute of the ovh.CloudKeyManagerSecretConsumer resource and the id field of the ovh.getCloudKeyManagerSecretConsumers data source (the base64 identifier expected by the get-one endpoint).
    SecretId string
    UUID of the secret.
    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    ConsumerId string
    Consumer identifier, as returned in the id attribute of the ovh.CloudKeyManagerSecretConsumer resource and the id field of the ovh.getCloudKeyManagerSecretConsumers data source (the base64 identifier expected by the get-one endpoint).
    SecretId string
    UUID of the secret.
    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    consumer_id string
    Consumer identifier, as returned in the id attribute of the ovh.CloudKeyManagerSecretConsumer resource and the id field of the ovh.getCloudKeyManagerSecretConsumers data source (the base64 identifier expected by the get-one endpoint).
    secret_id string
    UUID of the secret.
    service_name string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    consumerId String
    Consumer identifier, as returned in the id attribute of the ovh.CloudKeyManagerSecretConsumer resource and the id field of the ovh.getCloudKeyManagerSecretConsumers data source (the base64 identifier expected by the get-one endpoint).
    secretId String
    UUID of the secret.
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    consumerId string
    Consumer identifier, as returned in the id attribute of the ovh.CloudKeyManagerSecretConsumer resource and the id field of the ovh.getCloudKeyManagerSecretConsumers data source (the base64 identifier expected by the get-one endpoint).
    secretId string
    UUID of the secret.
    serviceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    consumer_id str
    Consumer identifier, as returned in the id attribute of the ovh.CloudKeyManagerSecretConsumer resource and the id field of the ovh.getCloudKeyManagerSecretConsumers data source (the base64 identifier expected by the get-one endpoint).
    secret_id str
    UUID of the secret.
    service_name str
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    consumerId String
    Consumer identifier, as returned in the id attribute of the ovh.CloudKeyManagerSecretConsumer resource and the id field of the ovh.getCloudKeyManagerSecretConsumers data source (the base64 identifier expected by the get-one endpoint).
    secretId String
    UUID of the secret.
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

    getCloudKeyManagerSecretConsumer Result

    The following output properties are available:

    ConsumerId string
    Id string
    Computed consumer identifier.
    ResourceId string
    UUID of the resource consuming the secret.
    ResourceType string
    Type of the resource consuming the secret.
    SecretId string
    Service string
    OpenStack service type of the consumer.
    ServiceName string
    ConsumerId string
    Id string
    Computed consumer identifier.
    ResourceId string
    UUID of the resource consuming the secret.
    ResourceType string
    Type of the resource consuming the secret.
    SecretId string
    Service string
    OpenStack service type of the consumer.
    ServiceName string
    consumer_id string
    id string
    Computed consumer identifier.
    resource_id string
    UUID of the resource consuming the secret.
    resource_type string
    Type of the resource consuming the secret.
    secret_id string
    service string
    OpenStack service type of the consumer.
    service_name string
    consumerId String
    id String
    Computed consumer identifier.
    resourceId String
    UUID of the resource consuming the secret.
    resourceType String
    Type of the resource consuming the secret.
    secretId String
    service String
    OpenStack service type of the consumer.
    serviceName String
    consumerId string
    id string
    Computed consumer identifier.
    resourceId string
    UUID of the resource consuming the secret.
    resourceType string
    Type of the resource consuming the secret.
    secretId string
    service string
    OpenStack service type of the consumer.
    serviceName string
    consumer_id str
    id str
    Computed consumer identifier.
    resource_id str
    UUID of the resource consuming the secret.
    resource_type str
    Type of the resource consuming the secret.
    secret_id str
    service str
    OpenStack service type of the consumer.
    service_name str
    consumerId String
    id String
    Computed consumer identifier.
    resourceId String
    UUID of the resource consuming the secret.
    resourceType String
    Type of the resource consuming the secret.
    secretId String
    service String
    OpenStack service type of the consumer.
    serviceName String

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    Viewing docs for OVHCloud v2.17.0
    published on Friday, Jul 17, 2026 by OVHcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial