1. Packages
  2. Packages
  3. OVH
  4. API Docs
  5. getCloudKeyManagerContainerConsumer
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 container.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const consumer = ovh.getCloudKeyManagerContainerConsumer({
        serviceName: "Public cloud project ID",
        containerId: "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_container_consumer(service_name="Public cloud project ID",
        container_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.LookupCloudKeyManagerContainerConsumer(ctx, &ovh.LookupCloudKeyManagerContainerConsumerArgs{
    			ServiceName: "Public cloud project ID",
    			ContainerId: "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.GetCloudKeyManagerContainerConsumer.Invoke(new()
        {
            ServiceName = "Public cloud project ID",
            ContainerId = "00000000-0000-0000-0000-000000000000",
            ConsumerId = "Q09NUFVURTpJTlNUQU5DRToxMTExMTExMS0xMTExLTExMTEtMTExMS0xMTExMTExMTExMTE",
        });
    
        return new Dictionary<string, object?>
        {
            ["consumerService"] = consumer.Apply(getCloudKeyManagerContainerConsumerResult => getCloudKeyManagerContainerConsumerResult.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.GetCloudKeyManagerContainerConsumerArgs;
    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.getCloudKeyManagerContainerConsumer(GetCloudKeyManagerContainerConsumerArgs.builder()
                .serviceName("Public cloud project ID")
                .containerId("00000000-0000-0000-0000-000000000000")
                .consumerId("Q09NUFVURTpJTlNUQU5DRToxMTExMTExMS0xMTExLTExMTEtMTExMS0xMTExMTExMTExMTE")
                .build());
    
            ctx.export("consumerService", consumer.service());
        }
    }
    
    variables:
      consumer:
        fn::invoke:
          function: ovh:getCloudKeyManagerContainerConsumer
          arguments:
            serviceName: Public cloud project ID
            containerId: 00000000-0000-0000-0000-000000000000
            consumerId: Q09NUFVURTpJTlNUQU5DRToxMTExMTExMS0xMTExLTExMTEtMTExMS0xMTExMTExMTExMTE
    outputs:
      consumerService: ${consumer.service}
    
    Example coming soon!
    

    Using getCloudKeyManagerContainerConsumer

    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 getCloudKeyManagerContainerConsumer(args: GetCloudKeyManagerContainerConsumerArgs, opts?: InvokeOptions): Promise<GetCloudKeyManagerContainerConsumerResult>
    function getCloudKeyManagerContainerConsumerOutput(args: GetCloudKeyManagerContainerConsumerOutputArgs, opts?: InvokeOptions): Output<GetCloudKeyManagerContainerConsumerResult>
    def get_cloud_key_manager_container_consumer(consumer_id: Optional[str] = None,
                                                 container_id: Optional[str] = None,
                                                 service_name: Optional[str] = None,
                                                 opts: Optional[InvokeOptions] = None) -> GetCloudKeyManagerContainerConsumerResult
    def get_cloud_key_manager_container_consumer_output(consumer_id: pulumi.Input[Optional[str]] = None,
                                                 container_id: pulumi.Input[Optional[str]] = None,
                                                 service_name: pulumi.Input[Optional[str]] = None,
                                                 opts: Optional[InvokeOptions] = None) -> Output[GetCloudKeyManagerContainerConsumerResult]
    func LookupCloudKeyManagerContainerConsumer(ctx *Context, args *LookupCloudKeyManagerContainerConsumerArgs, opts ...InvokeOption) (*LookupCloudKeyManagerContainerConsumerResult, error)
    func LookupCloudKeyManagerContainerConsumerOutput(ctx *Context, args *LookupCloudKeyManagerContainerConsumerOutputArgs, opts ...InvokeOption) LookupCloudKeyManagerContainerConsumerResultOutput

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

    public static class GetCloudKeyManagerContainerConsumer 
    {
        public static Task<GetCloudKeyManagerContainerConsumerResult> InvokeAsync(GetCloudKeyManagerContainerConsumerArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudKeyManagerContainerConsumerResult> Invoke(GetCloudKeyManagerContainerConsumerInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudKeyManagerContainerConsumerResult> getCloudKeyManagerContainerConsumer(GetCloudKeyManagerContainerConsumerArgs args, InvokeOptions options)
    public static Output<GetCloudKeyManagerContainerConsumerResult> getCloudKeyManagerContainerConsumer(GetCloudKeyManagerContainerConsumerArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:index/getCloudKeyManagerContainerConsumer:getCloudKeyManagerContainerConsumer
      arguments:
        # arguments dictionary
    data "ovh_get_cloud_key_manager_container_consumer" "name" {
        # arguments
    }

    The following arguments are supported:

    ConsumerId string
    Consumer identifier, as returned in the id attribute of the ovh.CloudKeyManagerContainerConsumer resource and the id field of the ovh.getCloudKeyManagerContainerConsumers data source (the base64 identifier expected by the get-one endpoint).
    ContainerId string
    UUID of the container.
    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.CloudKeyManagerContainerConsumer resource and the id field of the ovh.getCloudKeyManagerContainerConsumers data source (the base64 identifier expected by the get-one endpoint).
    ContainerId string
    UUID of the container.
    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.CloudKeyManagerContainerConsumer resource and the id field of the ovh.getCloudKeyManagerContainerConsumers data source (the base64 identifier expected by the get-one endpoint).
    container_id string
    UUID of the container.
    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.CloudKeyManagerContainerConsumer resource and the id field of the ovh.getCloudKeyManagerContainerConsumers data source (the base64 identifier expected by the get-one endpoint).
    containerId String
    UUID of the container.
    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.CloudKeyManagerContainerConsumer resource and the id field of the ovh.getCloudKeyManagerContainerConsumers data source (the base64 identifier expected by the get-one endpoint).
    containerId string
    UUID of the container.
    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.CloudKeyManagerContainerConsumer resource and the id field of the ovh.getCloudKeyManagerContainerConsumers data source (the base64 identifier expected by the get-one endpoint).
    container_id str
    UUID of the container.
    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.CloudKeyManagerContainerConsumer resource and the id field of the ovh.getCloudKeyManagerContainerConsumers data source (the base64 identifier expected by the get-one endpoint).
    containerId String
    UUID of the container.
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

    getCloudKeyManagerContainerConsumer Result

    The following output properties are available:

    ConsumerId string
    ContainerId string
    Id string
    Computed consumer identifier.
    ResourceId string
    UUID of the resource consuming the container.
    ResourceType string
    Type of the resource consuming the container.
    Service string
    OpenStack service type of the consumer.
    ServiceName string
    ConsumerId string
    ContainerId string
    Id string
    Computed consumer identifier.
    ResourceId string
    UUID of the resource consuming the container.
    ResourceType string
    Type of the resource consuming the container.
    Service string
    OpenStack service type of the consumer.
    ServiceName string
    consumer_id string
    container_id string
    id string
    Computed consumer identifier.
    resource_id string
    UUID of the resource consuming the container.
    resource_type string
    Type of the resource consuming the container.
    service string
    OpenStack service type of the consumer.
    service_name string
    consumerId String
    containerId String
    id String
    Computed consumer identifier.
    resourceId String
    UUID of the resource consuming the container.
    resourceType String
    Type of the resource consuming the container.
    service String
    OpenStack service type of the consumer.
    serviceName String
    consumerId string
    containerId string
    id string
    Computed consumer identifier.
    resourceId string
    UUID of the resource consuming the container.
    resourceType string
    Type of the resource consuming the container.
    service string
    OpenStack service type of the consumer.
    serviceName string
    consumer_id str
    container_id str
    id str
    Computed consumer identifier.
    resource_id str
    UUID of the resource consuming the container.
    resource_type str
    Type of the resource consuming the container.
    service str
    OpenStack service type of the consumer.
    service_name str
    consumerId String
    containerId String
    id String
    Computed consumer identifier.
    resourceId String
    UUID of the resource consuming the container.
    resourceType String
    Type of the resource consuming the container.
    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