1. Packages
  2. Packages
  3. OVH
  4. API Docs
  5. getCloudKeyManagerContainerConsumers
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 list all consumers registered on a Barbican Key Manager container.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const consumers = ovh.getCloudKeyManagerContainerConsumers({
        serviceName: "Public cloud project ID",
        containerId: "00000000-0000-0000-0000-000000000000",
    });
    export const consumerServices = consumers.then(consumers => .map(c => (c.service)));
    
    import pulumi
    import pulumi_ovh as ovh
    
    consumers = ovh.get_cloud_key_manager_container_consumers(service_name="Public cloud project ID",
        container_id="00000000-0000-0000-0000-000000000000")
    pulumi.export("consumerServices", [c.service for c in consumers.consumers])
    
    Example coming soon!
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var consumers = Ovh.GetCloudKeyManagerContainerConsumers.Invoke(new()
        {
            ServiceName = "Public cloud project ID",
            ContainerId = "00000000-0000-0000-0000-000000000000",
        });
    
        return new Dictionary<string, object?>
        {
            ["consumerServices"] = .Select(c => 
            {
                return c.Service;
            }).ToList(),
        };
    });
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    

    Using getCloudKeyManagerContainerConsumers

    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 getCloudKeyManagerContainerConsumers(args: GetCloudKeyManagerContainerConsumersArgs, opts?: InvokeOptions): Promise<GetCloudKeyManagerContainerConsumersResult>
    function getCloudKeyManagerContainerConsumersOutput(args: GetCloudKeyManagerContainerConsumersOutputArgs, opts?: InvokeOptions): Output<GetCloudKeyManagerContainerConsumersResult>
    def get_cloud_key_manager_container_consumers(container_id: Optional[str] = None,
                                                  service_name: Optional[str] = None,
                                                  opts: Optional[InvokeOptions] = None) -> GetCloudKeyManagerContainerConsumersResult
    def get_cloud_key_manager_container_consumers_output(container_id: pulumi.Input[Optional[str]] = None,
                                                  service_name: pulumi.Input[Optional[str]] = None,
                                                  opts: Optional[InvokeOptions] = None) -> Output[GetCloudKeyManagerContainerConsumersResult]
    func GetCloudKeyManagerContainerConsumers(ctx *Context, args *GetCloudKeyManagerContainerConsumersArgs, opts ...InvokeOption) (*GetCloudKeyManagerContainerConsumersResult, error)
    func GetCloudKeyManagerContainerConsumersOutput(ctx *Context, args *GetCloudKeyManagerContainerConsumersOutputArgs, opts ...InvokeOption) GetCloudKeyManagerContainerConsumersResultOutput

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

    public static class GetCloudKeyManagerContainerConsumers 
    {
        public static Task<GetCloudKeyManagerContainerConsumersResult> InvokeAsync(GetCloudKeyManagerContainerConsumersArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudKeyManagerContainerConsumersResult> Invoke(GetCloudKeyManagerContainerConsumersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudKeyManagerContainerConsumersResult> getCloudKeyManagerContainerConsumers(GetCloudKeyManagerContainerConsumersArgs args, InvokeOptions options)
    public static Output<GetCloudKeyManagerContainerConsumersResult> getCloudKeyManagerContainerConsumers(GetCloudKeyManagerContainerConsumersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:index/getCloudKeyManagerContainerConsumers:getCloudKeyManagerContainerConsumers
      arguments:
        # arguments dictionary
    data "ovh_get_cloud_key_manager_container_consumers" "name" {
        # arguments
    }

    The following arguments are supported:

    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.
    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.
    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.
    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.
    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.
    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.
    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.

    getCloudKeyManagerContainerConsumers Result

    The following output properties are available:

    Consumers List<GetCloudKeyManagerContainerConsumersConsumer>
    List of consumers registered on the container. Each consumer has the following attributes:
    ContainerId string
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceName string
    Consumers []GetCloudKeyManagerContainerConsumersConsumer
    List of consumers registered on the container. Each consumer has the following attributes:
    ContainerId string
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceName string
    consumers list(object)
    List of consumers registered on the container. Each consumer has the following attributes:
    container_id string
    id string
    The provider-assigned unique ID for this managed resource.
    service_name string
    consumers List<GetCloudKeyManagerContainerConsumersConsumer>
    List of consumers registered on the container. Each consumer has the following attributes:
    containerId String
    id String
    The provider-assigned unique ID for this managed resource.
    serviceName String
    consumers GetCloudKeyManagerContainerConsumersConsumer[]
    List of consumers registered on the container. Each consumer has the following attributes:
    containerId string
    id string
    The provider-assigned unique ID for this managed resource.
    serviceName string
    consumers Sequence[GetCloudKeyManagerContainerConsumersConsumer]
    List of consumers registered on the container. Each consumer has the following attributes:
    container_id str
    id str
    The provider-assigned unique ID for this managed resource.
    service_name str
    consumers List<Property Map>
    List of consumers registered on the container. Each consumer has the following attributes:
    containerId String
    id String
    The provider-assigned unique ID for this managed resource.
    serviceName String

    Supporting Types

    GetCloudKeyManagerContainerConsumersConsumer

    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.
    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.
    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.
    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.
    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.
    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.
    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.

    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