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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const consumers = ovh.getCloudKeyManagerSecretConsumers({
        serviceName: "Public cloud project ID",
        secretId: "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_secret_consumers(service_name="Public cloud project ID",
        secret_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.GetCloudKeyManagerSecretConsumers.Invoke(new()
        {
            ServiceName = "Public cloud project ID",
            SecretId = "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 getCloudKeyManagerSecretConsumers

    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 getCloudKeyManagerSecretConsumers(args: GetCloudKeyManagerSecretConsumersArgs, opts?: InvokeOptions): Promise<GetCloudKeyManagerSecretConsumersResult>
    function getCloudKeyManagerSecretConsumersOutput(args: GetCloudKeyManagerSecretConsumersOutputArgs, opts?: InvokeOptions): Output<GetCloudKeyManagerSecretConsumersResult>
    def get_cloud_key_manager_secret_consumers(secret_id: Optional[str] = None,
                                               service_name: Optional[str] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetCloudKeyManagerSecretConsumersResult
    def get_cloud_key_manager_secret_consumers_output(secret_id: pulumi.Input[Optional[str]] = None,
                                               service_name: pulumi.Input[Optional[str]] = None,
                                               opts: Optional[InvokeOptions] = None) -> Output[GetCloudKeyManagerSecretConsumersResult]
    func GetCloudKeyManagerSecretConsumers(ctx *Context, args *GetCloudKeyManagerSecretConsumersArgs, opts ...InvokeOption) (*GetCloudKeyManagerSecretConsumersResult, error)
    func GetCloudKeyManagerSecretConsumersOutput(ctx *Context, args *GetCloudKeyManagerSecretConsumersOutputArgs, opts ...InvokeOption) GetCloudKeyManagerSecretConsumersResultOutput

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

    public static class GetCloudKeyManagerSecretConsumers 
    {
        public static Task<GetCloudKeyManagerSecretConsumersResult> InvokeAsync(GetCloudKeyManagerSecretConsumersArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudKeyManagerSecretConsumersResult> Invoke(GetCloudKeyManagerSecretConsumersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudKeyManagerSecretConsumersResult> getCloudKeyManagerSecretConsumers(GetCloudKeyManagerSecretConsumersArgs args, InvokeOptions options)
    public static Output<GetCloudKeyManagerSecretConsumersResult> getCloudKeyManagerSecretConsumers(GetCloudKeyManagerSecretConsumersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:index/getCloudKeyManagerSecretConsumers:getCloudKeyManagerSecretConsumers
      arguments:
        # arguments dictionary
    data "ovh_get_cloud_key_manager_secret_consumers" "name" {
        # arguments
    }

    The following arguments are supported:

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

    getCloudKeyManagerSecretConsumers Result

    The following output properties are available:

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

    Supporting Types

    GetCloudKeyManagerSecretConsumersConsumer

    Id string
    Computed consumer identifier.
    ResourceId string
    UUID of the resource consuming the secret.
    ResourceType string
    Type of the resource consuming the secret.
    Service string
    OpenStack service type of the consumer.
    Id string
    Computed consumer identifier.
    ResourceId string
    UUID of the resource consuming the secret.
    ResourceType string
    Type of the resource consuming the secret.
    Service string
    OpenStack service type of the consumer.
    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.
    service string
    OpenStack service type of the consumer.
    id String
    Computed consumer identifier.
    resourceId String
    UUID of the resource consuming the secret.
    resourceType String
    Type of the resource consuming the secret.
    service String
    OpenStack service type of the consumer.
    id string
    Computed consumer identifier.
    resourceId string
    UUID of the resource consuming the secret.
    resourceType string
    Type of the resource consuming the secret.
    service string
    OpenStack service type of the consumer.
    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.
    service str
    OpenStack service type of the consumer.
    id String
    Computed consumer identifier.
    resourceId String
    UUID of the resource consuming the secret.
    resourceType String
    Type of the resource consuming the secret.
    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