1. Packages
  2. Packages
  3. OVH
  4. API Docs
  5. getCloudKeyManagerContainers
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 containers 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.getCloudKeyManagerContainers({
        serviceName: "Public cloud project ID",
    });
    export const containerIds = all.then(all => .map(c => (c.id)));
    
    import pulumi
    import pulumi_ovh as ovh
    
    all = ovh.get_cloud_key_manager_containers(service_name="Public cloud project ID")
    pulumi.export("containerIds", [c.id for c in all.containers])
    
    Example coming soon!
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var all = Ovh.GetCloudKeyManagerContainers.Invoke(new()
        {
            ServiceName = "Public cloud project ID",
        });
    
        return new Dictionary<string, object?>
        {
            ["containerIds"] = .Select(c => 
            {
                return c.Id;
            }).ToList(),
        };
    });
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    

    Using getCloudKeyManagerContainers

    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 getCloudKeyManagerContainers(args: GetCloudKeyManagerContainersArgs, opts?: InvokeOptions): Promise<GetCloudKeyManagerContainersResult>
    function getCloudKeyManagerContainersOutput(args: GetCloudKeyManagerContainersOutputArgs, opts?: InvokeOptions): Output<GetCloudKeyManagerContainersResult>
    def get_cloud_key_manager_containers(service_name: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetCloudKeyManagerContainersResult
    def get_cloud_key_manager_containers_output(service_name: pulumi.Input[Optional[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetCloudKeyManagerContainersResult]
    func GetCloudKeyManagerContainers(ctx *Context, args *GetCloudKeyManagerContainersArgs, opts ...InvokeOption) (*GetCloudKeyManagerContainersResult, error)
    func GetCloudKeyManagerContainersOutput(ctx *Context, args *GetCloudKeyManagerContainersOutputArgs, opts ...InvokeOption) GetCloudKeyManagerContainersResultOutput

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

    public static class GetCloudKeyManagerContainers 
    {
        public static Task<GetCloudKeyManagerContainersResult> InvokeAsync(GetCloudKeyManagerContainersArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudKeyManagerContainersResult> Invoke(GetCloudKeyManagerContainersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudKeyManagerContainersResult> getCloudKeyManagerContainers(GetCloudKeyManagerContainersArgs args, InvokeOptions options)
    public static Output<GetCloudKeyManagerContainersResult> getCloudKeyManagerContainers(GetCloudKeyManagerContainersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:index/getCloudKeyManagerContainers:getCloudKeyManagerContainers
      arguments:
        # arguments dictionary
    data "ovh_get_cloud_key_manager_containers" "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.

    getCloudKeyManagerContainers Result

    The following output properties are available:

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

    Supporting Types

    GetCloudKeyManagerContainersContainer

    Checksum string
    Computed hash representing the current resource state.
    CreatedAt string
    Creation date of the container.
    CurrentState GetCloudKeyManagerContainersContainerCurrentState
    Current state of the container as reported by OpenStack Barbican:
    Id string
    ID of the container.
    Location GetCloudKeyManagerContainersContainerLocation
    Location of the container:
    Name string
    Name of the secret reference.
    ResourceStatus string
    Container readiness status.
    Type string
    Type of the container. Possible values: CERTIFICATE, GENERIC, RSA.
    UpdatedAt string
    Last update date of the container.
    Checksum string
    Computed hash representing the current resource state.
    CreatedAt string
    Creation date of the container.
    CurrentState GetCloudKeyManagerContainersContainerCurrentState
    Current state of the container as reported by OpenStack Barbican:
    Id string
    ID of the container.
    Location GetCloudKeyManagerContainersContainerLocation
    Location of the container:
    Name string
    Name of the secret reference.
    ResourceStatus string
    Container readiness status.
    Type string
    Type of the container. Possible values: CERTIFICATE, GENERIC, RSA.
    UpdatedAt string
    Last update date of the container.
    checksum string
    Computed hash representing the current resource state.
    created_at string
    Creation date of the container.
    current_state object
    Current state of the container as reported by OpenStack Barbican:
    id string
    ID of the container.
    location object
    Location of the container:
    name string
    Name of the secret reference.
    resource_status string
    Container readiness status.
    type string
    Type of the container. Possible values: CERTIFICATE, GENERIC, RSA.
    updated_at string
    Last update date of the container.
    checksum String
    Computed hash representing the current resource state.
    createdAt String
    Creation date of the container.
    currentState GetCloudKeyManagerContainersContainerCurrentState
    Current state of the container as reported by OpenStack Barbican:
    id String
    ID of the container.
    location GetCloudKeyManagerContainersContainerLocation
    Location of the container:
    name String
    Name of the secret reference.
    resourceStatus String
    Container readiness status.
    type String
    Type of the container. Possible values: CERTIFICATE, GENERIC, RSA.
    updatedAt String
    Last update date of the container.
    checksum string
    Computed hash representing the current resource state.
    createdAt string
    Creation date of the container.
    currentState GetCloudKeyManagerContainersContainerCurrentState
    Current state of the container as reported by OpenStack Barbican:
    id string
    ID of the container.
    location GetCloudKeyManagerContainersContainerLocation
    Location of the container:
    name string
    Name of the secret reference.
    resourceStatus string
    Container readiness status.
    type string
    Type of the container. Possible values: CERTIFICATE, GENERIC, RSA.
    updatedAt string
    Last update date of the container.
    checksum str
    Computed hash representing the current resource state.
    created_at str
    Creation date of the container.
    current_state GetCloudKeyManagerContainersContainerCurrentState
    Current state of the container as reported by OpenStack Barbican:
    id str
    ID of the container.
    location GetCloudKeyManagerContainersContainerLocation
    Location of the container:
    name str
    Name of the secret reference.
    resource_status str
    Container readiness status.
    type str
    Type of the container. Possible values: CERTIFICATE, GENERIC, RSA.
    updated_at str
    Last update date of the container.
    checksum String
    Computed hash representing the current resource state.
    createdAt String
    Creation date of the container.
    currentState Property Map
    Current state of the container as reported by OpenStack Barbican:
    id String
    ID of the container.
    location Property Map
    Location of the container:
    name String
    Name of the secret reference.
    resourceStatus String
    Container readiness status.
    type String
    Type of the container. Possible values: CERTIFICATE, GENERIC, RSA.
    updatedAt String
    Last update date of the container.

    GetCloudKeyManagerContainersContainerCurrentState

    ContainerRef string
    OpenStack reference URL for the container.
    Location GetCloudKeyManagerContainersContainerCurrentStateLocation
    Location of the container:
    Name string
    Name of the secret reference.
    SecretRefs List<GetCloudKeyManagerContainersContainerCurrentStateSecretRef>
    List of secret references:
    Status string
    Status of the container. Possible values: ACTIVE, ERROR.
    Type string
    Type of the container. Possible values: CERTIFICATE, GENERIC, RSA.
    ContainerRef string
    OpenStack reference URL for the container.
    Location GetCloudKeyManagerContainersContainerCurrentStateLocation
    Location of the container:
    Name string
    Name of the secret reference.
    SecretRefs []GetCloudKeyManagerContainersContainerCurrentStateSecretRef
    List of secret references:
    Status string
    Status of the container. Possible values: ACTIVE, ERROR.
    Type string
    Type of the container. Possible values: CERTIFICATE, GENERIC, RSA.
    container_ref string
    OpenStack reference URL for the container.
    location object
    Location of the container:
    name string
    Name of the secret reference.
    secret_refs list(object)
    List of secret references:
    status string
    Status of the container. Possible values: ACTIVE, ERROR.
    type string
    Type of the container. Possible values: CERTIFICATE, GENERIC, RSA.
    containerRef String
    OpenStack reference URL for the container.
    location GetCloudKeyManagerContainersContainerCurrentStateLocation
    Location of the container:
    name String
    Name of the secret reference.
    secretRefs List<GetCloudKeyManagerContainersContainerCurrentStateSecretRef>
    List of secret references:
    status String
    Status of the container. Possible values: ACTIVE, ERROR.
    type String
    Type of the container. Possible values: CERTIFICATE, GENERIC, RSA.
    containerRef string
    OpenStack reference URL for the container.
    location GetCloudKeyManagerContainersContainerCurrentStateLocation
    Location of the container:
    name string
    Name of the secret reference.
    secretRefs GetCloudKeyManagerContainersContainerCurrentStateSecretRef[]
    List of secret references:
    status string
    Status of the container. Possible values: ACTIVE, ERROR.
    type string
    Type of the container. Possible values: CERTIFICATE, GENERIC, RSA.
    container_ref str
    OpenStack reference URL for the container.
    location GetCloudKeyManagerContainersContainerCurrentStateLocation
    Location of the container:
    name str
    Name of the secret reference.
    secret_refs Sequence[GetCloudKeyManagerContainersContainerCurrentStateSecretRef]
    List of secret references:
    status str
    Status of the container. Possible values: ACTIVE, ERROR.
    type str
    Type of the container. Possible values: CERTIFICATE, GENERIC, RSA.
    containerRef String
    OpenStack reference URL for the container.
    location Property Map
    Location of the container:
    name String
    Name of the secret reference.
    secretRefs List<Property Map>
    List of secret references:
    status String
    Status of the container. Possible values: ACTIVE, ERROR.
    type String
    Type of the container. Possible values: CERTIFICATE, GENERIC, RSA.

    GetCloudKeyManagerContainersContainerCurrentStateLocation

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

    GetCloudKeyManagerContainersContainerCurrentStateSecretRef

    Name string
    Name of the secret reference.
    SecretId string
    ID of the referenced secret.
    Name string
    Name of the secret reference.
    SecretId string
    ID of the referenced secret.
    name string
    Name of the secret reference.
    secret_id string
    ID of the referenced secret.
    name String
    Name of the secret reference.
    secretId String
    ID of the referenced secret.
    name string
    Name of the secret reference.
    secretId string
    ID of the referenced secret.
    name str
    Name of the secret reference.
    secret_id str
    ID of the referenced secret.
    name String
    Name of the secret reference.
    secretId String
    ID of the referenced secret.

    GetCloudKeyManagerContainersContainerLocation

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

    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