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 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 dictionarydata "ovh_get_cloud_key_manager_secret_consumers" "name" {
# arguments
}The following arguments are supported:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
getCloudKeyManagerSecretConsumers Result
The following output properties are available:
- Consumers
List<Get
Cloud Key Manager Secret Consumers Consumer> - 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
[]Get
Cloud Key Manager Secret Consumers Consumer - 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(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<Get
Cloud Key Manager Secret Consumers Consumer> - 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
Get
Cloud Key Manager Secret Consumers Consumer[] - 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
Sequence[Get
Cloud Key Manager Secret Consumers Consumer] - 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.
- secret
Id String - service
Name String
Supporting Types
GetCloudKeyManagerSecretConsumersConsumer
- 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.
- 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.
- 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.
- 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.
- 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 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.
- 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.
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