1. Packages
  2. Packages
  3. OVH
  4. API Docs
  5. getCloudKeyManagerContainer
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 get information about a single container in the Barbican Key Manager service.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const container = ovh.getCloudKeyManagerContainer({
        serviceName: "Public cloud project ID",
        containerId: "00000000-0000-0000-0000-000000000000",
    });
    export const containerName = container.then(container => container.name);
    
    import pulumi
    import pulumi_ovh as ovh
    
    container = ovh.get_cloud_key_manager_container(service_name="Public cloud project ID",
        container_id="00000000-0000-0000-0000-000000000000")
    pulumi.export("containerName", container.name)
    
    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 {
    		container, err := ovh.LookupCloudKeyManagerContainer(ctx, &ovh.LookupCloudKeyManagerContainerArgs{
    			ServiceName: "Public cloud project ID",
    			ContainerId: "00000000-0000-0000-0000-000000000000",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("containerName", container.Name)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var container = Ovh.GetCloudKeyManagerContainer.Invoke(new()
        {
            ServiceName = "Public cloud project ID",
            ContainerId = "00000000-0000-0000-0000-000000000000",
        });
    
        return new Dictionary<string, object?>
        {
            ["containerName"] = container.Apply(getCloudKeyManagerContainerResult => getCloudKeyManagerContainerResult.Name),
        };
    });
    
    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.GetCloudKeyManagerContainerArgs;
    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 container = OvhFunctions.getCloudKeyManagerContainer(GetCloudKeyManagerContainerArgs.builder()
                .serviceName("Public cloud project ID")
                .containerId("00000000-0000-0000-0000-000000000000")
                .build());
    
            ctx.export("containerName", container.name());
        }
    }
    
    variables:
      container:
        fn::invoke:
          function: ovh:getCloudKeyManagerContainer
          arguments:
            serviceName: Public cloud project ID
            containerId: 00000000-0000-0000-0000-000000000000
    outputs:
      containerName: ${container.name}
    
    Example coming soon!
    

    Using getCloudKeyManagerContainer

    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 getCloudKeyManagerContainer(args: GetCloudKeyManagerContainerArgs, opts?: InvokeOptions): Promise<GetCloudKeyManagerContainerResult>
    function getCloudKeyManagerContainerOutput(args: GetCloudKeyManagerContainerOutputArgs, opts?: InvokeOptions): Output<GetCloudKeyManagerContainerResult>
    def get_cloud_key_manager_container(container_id: Optional[str] = None,
                                        service_name: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetCloudKeyManagerContainerResult
    def get_cloud_key_manager_container_output(container_id: pulumi.Input[Optional[str]] = None,
                                        service_name: pulumi.Input[Optional[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetCloudKeyManagerContainerResult]
    func LookupCloudKeyManagerContainer(ctx *Context, args *LookupCloudKeyManagerContainerArgs, opts ...InvokeOption) (*LookupCloudKeyManagerContainerResult, error)
    func LookupCloudKeyManagerContainerOutput(ctx *Context, args *LookupCloudKeyManagerContainerOutputArgs, opts ...InvokeOption) LookupCloudKeyManagerContainerResultOutput

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

    public static class GetCloudKeyManagerContainer 
    {
        public static Task<GetCloudKeyManagerContainerResult> InvokeAsync(GetCloudKeyManagerContainerArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudKeyManagerContainerResult> Invoke(GetCloudKeyManagerContainerInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudKeyManagerContainerResult> getCloudKeyManagerContainer(GetCloudKeyManagerContainerArgs args, InvokeOptions options)
    public static Output<GetCloudKeyManagerContainerResult> getCloudKeyManagerContainer(GetCloudKeyManagerContainerArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:index/getCloudKeyManagerContainer:getCloudKeyManagerContainer
      arguments:
        # arguments dictionary
    data "ovh_get_cloud_key_manager_container" "name" {
        # arguments
    }

    The following arguments are supported:

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

    getCloudKeyManagerContainer Result

    The following output properties are available:

    Checksum string
    Computed hash representing the current resource state.
    ContainerId string
    CreatedAt string
    Creation date of the container.
    CurrentState GetCloudKeyManagerContainerCurrentState
    Current state of the container as reported by OpenStack Barbican:
    Id string
    ID of the container.
    Location GetCloudKeyManagerContainerLocation
    Location of the container:
    Name string
    Name of the secret reference.
    ResourceStatus string
    Container readiness status.
    ServiceName string
    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.
    ContainerId string
    CreatedAt string
    Creation date of the container.
    CurrentState GetCloudKeyManagerContainerCurrentState
    Current state of the container as reported by OpenStack Barbican:
    Id string
    ID of the container.
    Location GetCloudKeyManagerContainerLocation
    Location of the container:
    Name string
    Name of the secret reference.
    ResourceStatus string
    Container readiness status.
    ServiceName string
    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.
    container_id string
    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.
    service_name string
    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.
    containerId String
    createdAt String
    Creation date of the container.
    currentState GetCloudKeyManagerContainerCurrentState
    Current state of the container as reported by OpenStack Barbican:
    id String
    ID of the container.
    location GetCloudKeyManagerContainerLocation
    Location of the container:
    name String
    Name of the secret reference.
    resourceStatus String
    Container readiness status.
    serviceName String
    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.
    containerId string
    createdAt string
    Creation date of the container.
    currentState GetCloudKeyManagerContainerCurrentState
    Current state of the container as reported by OpenStack Barbican:
    id string
    ID of the container.
    location GetCloudKeyManagerContainerLocation
    Location of the container:
    name string
    Name of the secret reference.
    resourceStatus string
    Container readiness status.
    serviceName string
    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.
    container_id str
    created_at str
    Creation date of the container.
    current_state GetCloudKeyManagerContainerCurrentState
    Current state of the container as reported by OpenStack Barbican:
    id str
    ID of the container.
    location GetCloudKeyManagerContainerLocation
    Location of the container:
    name str
    Name of the secret reference.
    resource_status str
    Container readiness status.
    service_name str
    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.
    containerId String
    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.
    serviceName String
    type String
    Type of the container. Possible values: CERTIFICATE, GENERIC, RSA.
    updatedAt String
    Last update date of the container.

    Supporting Types

    GetCloudKeyManagerContainerCurrentState

    ContainerRef string
    OpenStack reference URL.
    Location GetCloudKeyManagerContainerCurrentStateLocation
    Location of the container:
    Name string
    Name of the secret reference.
    SecretRefs List<GetCloudKeyManagerContainerCurrentStateSecretRef>
    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.
    Location GetCloudKeyManagerContainerCurrentStateLocation
    Location of the container:
    Name string
    Name of the secret reference.
    SecretRefs []GetCloudKeyManagerContainerCurrentStateSecretRef
    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.
    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.
    location GetCloudKeyManagerContainerCurrentStateLocation
    Location of the container:
    name String
    Name of the secret reference.
    secretRefs List<GetCloudKeyManagerContainerCurrentStateSecretRef>
    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.
    location GetCloudKeyManagerContainerCurrentStateLocation
    Location of the container:
    name string
    Name of the secret reference.
    secretRefs GetCloudKeyManagerContainerCurrentStateSecretRef[]
    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.
    location GetCloudKeyManagerContainerCurrentStateLocation
    Location of the container:
    name str
    Name of the secret reference.
    secret_refs Sequence[GetCloudKeyManagerContainerCurrentStateSecretRef]
    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.
    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.

    GetCloudKeyManagerContainerCurrentStateLocation

    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.

    GetCloudKeyManagerContainerCurrentStateSecretRef

    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.

    GetCloudKeyManagerContainerLocation

    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