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 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 dictionarydata "ovh_get_cloud_key_manager_container_consumer" "name" {
# arguments
}The following arguments are supported:
- Consumer
Id string - Consumer identifier, as returned in the
idattribute of theovh.CloudKeyManagerContainerConsumerresource and theidfield of theovh.getCloudKeyManagerContainerConsumersdata 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_SERVICEenvironment variable is used.
- Consumer
Id string - Consumer identifier, as returned in the
idattribute of theovh.CloudKeyManagerContainerConsumerresource and theidfield of theovh.getCloudKeyManagerContainerConsumersdata 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_SERVICEenvironment variable is used.
- consumer_
id string - Consumer identifier, as returned in the
idattribute of theovh.CloudKeyManagerContainerConsumerresource and theidfield of theovh.getCloudKeyManagerContainerConsumersdata 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_SERVICEenvironment variable is used.
- consumer
Id String - Consumer identifier, as returned in the
idattribute of theovh.CloudKeyManagerContainerConsumerresource and theidfield of theovh.getCloudKeyManagerContainerConsumersdata 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_SERVICEenvironment variable is used.
- consumer
Id string - Consumer identifier, as returned in the
idattribute of theovh.CloudKeyManagerContainerConsumerresource and theidfield of theovh.getCloudKeyManagerContainerConsumersdata 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_SERVICEenvironment variable is used.
- consumer_
id str - Consumer identifier, as returned in the
idattribute of theovh.CloudKeyManagerContainerConsumerresource and theidfield of theovh.getCloudKeyManagerContainerConsumersdata 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_SERVICEenvironment variable is used.
- consumer
Id String - Consumer identifier, as returned in the
idattribute of theovh.CloudKeyManagerContainerConsumerresource and theidfield of theovh.getCloudKeyManagerContainerConsumersdata 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_SERVICEenvironment variable is used.
getCloudKeyManagerContainerConsumer Result
The following output properties are available:
- 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
- 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
- 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
- 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
- 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
- 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
- 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
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