Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
published on Friday, Jul 17, 2026 by OVHcloud
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
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 dictionarydata "ovh_get_cloud_key_manager_secret_consumer" "name" {
# arguments
}The following arguments are supported:
- Consumer
Id string - Consumer identifier, as returned in the
idattribute of theovh.CloudKeyManagerSecretConsumerresource and theidfield of theovh.getCloudKeyManagerSecretConsumersdata 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_SERVICEenvironment variable is used.
- Consumer
Id string - Consumer identifier, as returned in the
idattribute of theovh.CloudKeyManagerSecretConsumerresource and theidfield of theovh.getCloudKeyManagerSecretConsumersdata 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_SERVICEenvironment variable is used.
- consumer_
id string - Consumer identifier, as returned in the
idattribute of theovh.CloudKeyManagerSecretConsumerresource and theidfield of theovh.getCloudKeyManagerSecretConsumersdata 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_SERVICEenvironment variable is used.
- consumer
Id String - Consumer identifier, as returned in the
idattribute of theovh.CloudKeyManagerSecretConsumerresource and theidfield of theovh.getCloudKeyManagerSecretConsumersdata 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_SERVICEenvironment variable is used.
- consumer
Id string - Consumer identifier, as returned in the
idattribute of theovh.CloudKeyManagerSecretConsumerresource and theidfield of theovh.getCloudKeyManagerSecretConsumersdata 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_SERVICEenvironment variable is used.
- consumer_
id str - Consumer identifier, as returned in the
idattribute of theovh.CloudKeyManagerSecretConsumerresource and theidfield of theovh.getCloudKeyManagerSecretConsumersdata 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_SERVICEenvironment variable is used.
- consumer
Id String - Consumer identifier, as returned in the
idattribute of theovh.CloudKeyManagerSecretConsumerresource and theidfield of theovh.getCloudKeyManagerSecretConsumersdata 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_SERVICEenvironment variable is used.
getCloudKeyManagerSecretConsumer Result
The following output properties are available:
- 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
- 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
- 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
- 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
- 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
- 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
- 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
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovhTerraform Provider.
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
published on Friday, Jul 17, 2026 by OVHcloud