1. Packages
  2. Packages
  3. OVH
  4. API Docs
  5. getCloudKeyManagerSecrets
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 secrets in the Barbican Key Manager service for a public cloud project.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const all = ovh.getCloudKeyManagerSecrets({
        serviceName: "Public cloud project ID",
    });
    export const secretIds = all.then(all => .map(s => (s.id)));
    
    import pulumi
    import pulumi_ovh as ovh
    
    all = ovh.get_cloud_key_manager_secrets(service_name="Public cloud project ID")
    pulumi.export("secretIds", [s.id for s in all.secrets])
    
    Example coming soon!
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var all = Ovh.GetCloudKeyManagerSecrets.Invoke(new()
        {
            ServiceName = "Public cloud project ID",
        });
    
        return new Dictionary<string, object?>
        {
            ["secretIds"] = .Select(s => 
            {
                return s.Id;
            }).ToList(),
        };
    });
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    

    Using getCloudKeyManagerSecrets

    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 getCloudKeyManagerSecrets(args: GetCloudKeyManagerSecretsArgs, opts?: InvokeOptions): Promise<GetCloudKeyManagerSecretsResult>
    function getCloudKeyManagerSecretsOutput(args: GetCloudKeyManagerSecretsOutputArgs, opts?: InvokeOptions): Output<GetCloudKeyManagerSecretsResult>
    def get_cloud_key_manager_secrets(service_name: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetCloudKeyManagerSecretsResult
    def get_cloud_key_manager_secrets_output(service_name: pulumi.Input[Optional[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetCloudKeyManagerSecretsResult]
    func GetCloudKeyManagerSecrets(ctx *Context, args *GetCloudKeyManagerSecretsArgs, opts ...InvokeOption) (*GetCloudKeyManagerSecretsResult, error)
    func GetCloudKeyManagerSecretsOutput(ctx *Context, args *GetCloudKeyManagerSecretsOutputArgs, opts ...InvokeOption) GetCloudKeyManagerSecretsResultOutput

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

    public static class GetCloudKeyManagerSecrets 
    {
        public static Task<GetCloudKeyManagerSecretsResult> InvokeAsync(GetCloudKeyManagerSecretsArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudKeyManagerSecretsResult> Invoke(GetCloudKeyManagerSecretsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudKeyManagerSecretsResult> getCloudKeyManagerSecrets(GetCloudKeyManagerSecretsArgs args, InvokeOptions options)
    public static Output<GetCloudKeyManagerSecretsResult> getCloudKeyManagerSecrets(GetCloudKeyManagerSecretsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:index/getCloudKeyManagerSecrets:getCloudKeyManagerSecrets
      arguments:
        # arguments dictionary
    data "ovh_get_cloud_key_manager_secrets" "name" {
        # arguments
    }

    The following arguments are supported:

    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    service_name string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    serviceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    service_name str
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

    getCloudKeyManagerSecrets Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Secrets List<GetCloudKeyManagerSecretsSecret>
    List of secrets. Each secret has the following attributes:
    ServiceName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Secrets []GetCloudKeyManagerSecretsSecret
    List of secrets. Each secret has the following attributes:
    ServiceName string
    id string
    The provider-assigned unique ID for this managed resource.
    secrets list(object)
    List of secrets. Each secret has the following attributes:
    service_name string
    id String
    The provider-assigned unique ID for this managed resource.
    secrets List<GetCloudKeyManagerSecretsSecret>
    List of secrets. Each secret has the following attributes:
    serviceName String
    id string
    The provider-assigned unique ID for this managed resource.
    secrets GetCloudKeyManagerSecretsSecret[]
    List of secrets. Each secret has the following attributes:
    serviceName string
    id str
    The provider-assigned unique ID for this managed resource.
    secrets Sequence[GetCloudKeyManagerSecretsSecret]
    List of secrets. Each secret has the following attributes:
    service_name str
    id String
    The provider-assigned unique ID for this managed resource.
    secrets List<Property Map>
    List of secrets. Each secret has the following attributes:
    serviceName String

    Supporting Types

    GetCloudKeyManagerSecretsSecret

    Checksum string
    Computed hash representing the current resource state.
    CreatedAt string
    Creation date of the secret.
    CurrentState GetCloudKeyManagerSecretsSecretCurrentState
    Current state of the secret as reported by OpenStack Barbican.
    Id string
    ID of the secret.
    Location GetCloudKeyManagerSecretsSecretLocation
    Location of the secret:
    Name string
    Name of the secret.
    ResourceStatus string
    Secret readiness status.
    SecretType string
    Type of the secret.
    UpdatedAt string
    Last update date of the secret.
    Checksum string
    Computed hash representing the current resource state.
    CreatedAt string
    Creation date of the secret.
    CurrentState GetCloudKeyManagerSecretsSecretCurrentState
    Current state of the secret as reported by OpenStack Barbican.
    Id string
    ID of the secret.
    Location GetCloudKeyManagerSecretsSecretLocation
    Location of the secret:
    Name string
    Name of the secret.
    ResourceStatus string
    Secret readiness status.
    SecretType string
    Type of the secret.
    UpdatedAt string
    Last update date of the secret.
    checksum string
    Computed hash representing the current resource state.
    created_at string
    Creation date of the secret.
    current_state object
    Current state of the secret as reported by OpenStack Barbican.
    id string
    ID of the secret.
    location object
    Location of the secret:
    name string
    Name of the secret.
    resource_status string
    Secret readiness status.
    secret_type string
    Type of the secret.
    updated_at string
    Last update date of the secret.
    checksum String
    Computed hash representing the current resource state.
    createdAt String
    Creation date of the secret.
    currentState GetCloudKeyManagerSecretsSecretCurrentState
    Current state of the secret as reported by OpenStack Barbican.
    id String
    ID of the secret.
    location GetCloudKeyManagerSecretsSecretLocation
    Location of the secret:
    name String
    Name of the secret.
    resourceStatus String
    Secret readiness status.
    secretType String
    Type of the secret.
    updatedAt String
    Last update date of the secret.
    checksum string
    Computed hash representing the current resource state.
    createdAt string
    Creation date of the secret.
    currentState GetCloudKeyManagerSecretsSecretCurrentState
    Current state of the secret as reported by OpenStack Barbican.
    id string
    ID of the secret.
    location GetCloudKeyManagerSecretsSecretLocation
    Location of the secret:
    name string
    Name of the secret.
    resourceStatus string
    Secret readiness status.
    secretType string
    Type of the secret.
    updatedAt string
    Last update date of the secret.
    checksum str
    Computed hash representing the current resource state.
    created_at str
    Creation date of the secret.
    current_state GetCloudKeyManagerSecretsSecretCurrentState
    Current state of the secret as reported by OpenStack Barbican.
    id str
    ID of the secret.
    location GetCloudKeyManagerSecretsSecretLocation
    Location of the secret:
    name str
    Name of the secret.
    resource_status str
    Secret readiness status.
    secret_type str
    Type of the secret.
    updated_at str
    Last update date of the secret.
    checksum String
    Computed hash representing the current resource state.
    createdAt String
    Creation date of the secret.
    currentState Property Map
    Current state of the secret as reported by OpenStack Barbican.
    id String
    ID of the secret.
    location Property Map
    Location of the secret:
    name String
    Name of the secret.
    resourceStatus String
    Secret readiness status.
    secretType String
    Type of the secret.
    updatedAt String
    Last update date of the secret.

    GetCloudKeyManagerSecretsSecretCurrentState

    Algorithm string
    BitLength int
    Expiration string
    Location GetCloudKeyManagerSecretsSecretCurrentStateLocation
    Location of the secret:
    Metadata Dictionary<string, string>
    Mode string
    Name string
    Name of the secret.
    PayloadContentType string
    SecretRef string
    SecretType string
    Type of the secret.
    Status string
    Algorithm string
    BitLength int
    Expiration string
    Location GetCloudKeyManagerSecretsSecretCurrentStateLocation
    Location of the secret:
    Metadata map[string]string
    Mode string
    Name string
    Name of the secret.
    PayloadContentType string
    SecretRef string
    SecretType string
    Type of the secret.
    Status string
    algorithm string
    bit_length number
    expiration string
    location object
    Location of the secret:
    metadata map(string)
    mode string
    name string
    Name of the secret.
    payload_content_type string
    secret_ref string
    secret_type string
    Type of the secret.
    status string
    algorithm String
    bitLength Integer
    expiration String
    location GetCloudKeyManagerSecretsSecretCurrentStateLocation
    Location of the secret:
    metadata Map<String,String>
    mode String
    name String
    Name of the secret.
    payloadContentType String
    secretRef String
    secretType String
    Type of the secret.
    status String
    algorithm string
    bitLength number
    expiration string
    location GetCloudKeyManagerSecretsSecretCurrentStateLocation
    Location of the secret:
    metadata {[key: string]: string}
    mode string
    name string
    Name of the secret.
    payloadContentType string
    secretRef string
    secretType string
    Type of the secret.
    status string
    algorithm str
    bit_length int
    expiration str
    location GetCloudKeyManagerSecretsSecretCurrentStateLocation
    Location of the secret:
    metadata Mapping[str, str]
    mode str
    name str
    Name of the secret.
    payload_content_type str
    secret_ref str
    secret_type str
    Type of the secret.
    status str
    algorithm String
    bitLength Number
    expiration String
    location Property Map
    Location of the secret:
    metadata Map<String>
    mode String
    name String
    Name of the secret.
    payloadContentType String
    secretRef String
    secretType String
    Type of the secret.
    status String

    GetCloudKeyManagerSecretsSecretCurrentStateLocation

    AvailabilityZone string
    Availability zone of the secret.
    Region string
    Region of the secret.
    AvailabilityZone string
    Availability zone of the secret.
    Region string
    Region of the secret.
    availability_zone string
    Availability zone of the secret.
    region string
    Region of the secret.
    availabilityZone String
    Availability zone of the secret.
    region String
    Region of the secret.
    availabilityZone string
    Availability zone of the secret.
    region string
    Region of the secret.
    availability_zone str
    Availability zone of the secret.
    region str
    Region of the secret.
    availabilityZone String
    Availability zone of the secret.
    region String
    Region of the secret.

    GetCloudKeyManagerSecretsSecretLocation

    AvailabilityZone string
    Availability zone of the secret.
    Region string
    Region of the secret.
    AvailabilityZone string
    Availability zone of the secret.
    Region string
    Region of the secret.
    availability_zone string
    Availability zone of the secret.
    region string
    Region of the secret.
    availabilityZone String
    Availability zone of the secret.
    region String
    Region of the secret.
    availabilityZone string
    Availability zone of the secret.
    region string
    Region of the secret.
    availability_zone str
    Availability zone of the secret.
    region str
    Region of the secret.
    availabilityZone String
    Availability zone of the secret.
    region String
    Region of the secret.

    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