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 secret in the Barbican Key Manager service.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const secret = ovh.getCloudKeyManagerSecret({
serviceName: "Public cloud project ID",
secretId: "00000000-0000-0000-0000-000000000000",
});
export const secretName = secret.then(secret => secret.name);
import pulumi
import pulumi_ovh as ovh
secret = ovh.get_cloud_key_manager_secret(service_name="Public cloud project ID",
secret_id="00000000-0000-0000-0000-000000000000")
pulumi.export("secretName", secret.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 {
secret, err := ovh.LookupCloudKeyManagerSecret(ctx, &ovh.LookupCloudKeyManagerSecretArgs{
ServiceName: "Public cloud project ID",
SecretId: "00000000-0000-0000-0000-000000000000",
}, nil)
if err != nil {
return err
}
ctx.Export("secretName", secret.Name)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var secret = Ovh.GetCloudKeyManagerSecret.Invoke(new()
{
ServiceName = "Public cloud project ID",
SecretId = "00000000-0000-0000-0000-000000000000",
});
return new Dictionary<string, object?>
{
["secretName"] = secret.Apply(getCloudKeyManagerSecretResult => getCloudKeyManagerSecretResult.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.GetCloudKeyManagerSecretArgs;
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 secret = OvhFunctions.getCloudKeyManagerSecret(GetCloudKeyManagerSecretArgs.builder()
.serviceName("Public cloud project ID")
.secretId("00000000-0000-0000-0000-000000000000")
.build());
ctx.export("secretName", secret.name());
}
}
variables:
secret:
fn::invoke:
function: ovh:getCloudKeyManagerSecret
arguments:
serviceName: Public cloud project ID
secretId: 00000000-0000-0000-0000-000000000000
outputs:
secretName: ${secret.name}
Example coming soon!
Using getCloudKeyManagerSecret
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 getCloudKeyManagerSecret(args: GetCloudKeyManagerSecretArgs, opts?: InvokeOptions): Promise<GetCloudKeyManagerSecretResult>
function getCloudKeyManagerSecretOutput(args: GetCloudKeyManagerSecretOutputArgs, opts?: InvokeOptions): Output<GetCloudKeyManagerSecretResult>def get_cloud_key_manager_secret(secret_id: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudKeyManagerSecretResult
def get_cloud_key_manager_secret_output(secret_id: pulumi.Input[Optional[str]] = None,
service_name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudKeyManagerSecretResult]func LookupCloudKeyManagerSecret(ctx *Context, args *LookupCloudKeyManagerSecretArgs, opts ...InvokeOption) (*LookupCloudKeyManagerSecretResult, error)
func LookupCloudKeyManagerSecretOutput(ctx *Context, args *LookupCloudKeyManagerSecretOutputArgs, opts ...InvokeOption) LookupCloudKeyManagerSecretResultOutput> Note: This function is named LookupCloudKeyManagerSecret in the Go SDK.
public static class GetCloudKeyManagerSecret
{
public static Task<GetCloudKeyManagerSecretResult> InvokeAsync(GetCloudKeyManagerSecretArgs args, InvokeOptions? opts = null)
public static Output<GetCloudKeyManagerSecretResult> Invoke(GetCloudKeyManagerSecretInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCloudKeyManagerSecretResult> getCloudKeyManagerSecret(GetCloudKeyManagerSecretArgs args, InvokeOptions options)
public static Output<GetCloudKeyManagerSecretResult> getCloudKeyManagerSecret(GetCloudKeyManagerSecretArgs args, InvokeOptions options)
fn::invoke:
function: ovh:index/getCloudKeyManagerSecret:getCloudKeyManagerSecret
arguments:
# arguments dictionarydata "ovh_get_cloud_key_manager_secret" "name" {
# arguments
}The following arguments are supported:
- Secret
Id string - ID 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 - ID 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 - ID 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 - ID 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 - ID 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 - ID 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 - ID of the secret.
- service
Name String - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
getCloudKeyManagerSecret Result
The following output properties are available:
- Checksum string
- Computed hash representing the current resource state.
- Created
At string - Creation date of the secret.
- Current
State GetCloud Key Manager Secret Current State - Current state of the secret as reported by OpenStack Barbican:
- Id string
- ID of the secret.
- Location
Get
Cloud Key Manager Secret Location - Location of the secret:
- Metadata Dictionary<string, string>
- Key-value metadata.
- Name string
- Name of the secret.
- Resource
Status string - Secret readiness status.
- Secret
Id string - Secret
Type string - Type of the secret.
- Service
Name string - Updated
At 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 GetCloud Key Manager Secret Current State - Current state of the secret as reported by OpenStack Barbican:
- Id string
- ID of the secret.
- Location
Get
Cloud Key Manager Secret Location - Location of the secret:
- Metadata map[string]string
- Key-value metadata.
- Name string
- Name of the secret.
- Resource
Status string - Secret readiness status.
- Secret
Id string - Secret
Type string - Type of the secret.
- Service
Name string - Updated
At 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:
- metadata map(string)
- Key-value metadata.
- name string
- Name of the secret.
- resource_
status string - Secret readiness status.
- secret_
id string - secret_
type string - Type of the secret.
- service_
name string - updated_
at 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 GetCloud Key Manager Secret Current State - Current state of the secret as reported by OpenStack Barbican:
- id String
- ID of the secret.
- location
Get
Cloud Key Manager Secret Location - Location of the secret:
- metadata Map<String,String>
- Key-value metadata.
- name String
- Name of the secret.
- resource
Status String - Secret readiness status.
- secret
Id String - secret
Type String - Type of the secret.
- service
Name String - updated
At 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 GetCloud Key Manager Secret Current State - Current state of the secret as reported by OpenStack Barbican:
- id string
- ID of the secret.
- location
Get
Cloud Key Manager Secret Location - Location of the secret:
- metadata {[key: string]: string}
- Key-value metadata.
- name string
- Name of the secret.
- resource
Status string - Secret readiness status.
- secret
Id string - secret
Type string - Type of the secret.
- service
Name string - updated
At 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 GetCloud Key Manager Secret Current State - Current state of the secret as reported by OpenStack Barbican:
- id str
- ID of the secret.
- location
Get
Cloud Key Manager Secret Location - Location of the secret:
- metadata Mapping[str, str]
- Key-value metadata.
- name str
- Name of the secret.
- resource_
status str - Secret readiness status.
- secret_
id str - secret_
type str - Type of the secret.
- service_
name str - updated_
at str - 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 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:
- metadata Map<String>
- Key-value metadata.
- name String
- Name of the secret.
- resource
Status String - Secret readiness status.
- secret
Id String - secret
Type String - Type of the secret.
- service
Name String - updated
At String - Last update date of the secret.
Supporting Types
GetCloudKeyManagerSecretCurrentState
- Algorithm string
- Algorithm of the secret.
- Bit
Length int - Bit length of the secret.
- Expiration string
- Expiration date.
- Location
Get
Cloud Key Manager Secret Current State Location - Location of the secret:
- Metadata Dictionary<string, string>
- Key-value metadata.
- Mode string
- Mode of the secret algorithm.
- Name string
- Name of the secret.
- Payload
Content stringType - Content type of the payload.
- Secret
Ref string - OpenStack reference URL.
- Secret
Type string - Type of the secret.
- Status string
- Status of the secret.
- Algorithm string
- Algorithm of the secret.
- Bit
Length int - Bit length of the secret.
- Expiration string
- Expiration date.
- Location
Get
Cloud Key Manager Secret Current State Location - Location of the secret:
- Metadata map[string]string
- Key-value metadata.
- Mode string
- Mode of the secret algorithm.
- Name string
- Name of the secret.
- Payload
Content stringType - Content type of the payload.
- Secret
Ref string - OpenStack reference URL.
- Secret
Type string - Type of the secret.
- Status string
- Status of the secret.
- algorithm string
- Algorithm of the secret.
- bit_
length number - Bit length of the secret.
- expiration string
- Expiration date.
- location object
- Location of the secret:
- metadata map(string)
- Key-value metadata.
- mode string
- Mode of the secret algorithm.
- name string
- Name of the secret.
- payload_
content_ stringtype - Content type of the payload.
- secret_
ref string - OpenStack reference URL.
- secret_
type string - Type of the secret.
- status string
- Status of the secret.
- algorithm String
- Algorithm of the secret.
- bit
Length Integer - Bit length of the secret.
- expiration String
- Expiration date.
- location
Get
Cloud Key Manager Secret Current State Location - Location of the secret:
- metadata Map<String,String>
- Key-value metadata.
- mode String
- Mode of the secret algorithm.
- name String
- Name of the secret.
- payload
Content StringType - Content type of the payload.
- secret
Ref String - OpenStack reference URL.
- secret
Type String - Type of the secret.
- status String
- Status of the secret.
- algorithm string
- Algorithm of the secret.
- bit
Length number - Bit length of the secret.
- expiration string
- Expiration date.
- location
Get
Cloud Key Manager Secret Current State Location - Location of the secret:
- metadata {[key: string]: string}
- Key-value metadata.
- mode string
- Mode of the secret algorithm.
- name string
- Name of the secret.
- payload
Content stringType - Content type of the payload.
- secret
Ref string - OpenStack reference URL.
- secret
Type string - Type of the secret.
- status string
- Status of the secret.
- algorithm str
- Algorithm of the secret.
- bit_
length int - Bit length of the secret.
- expiration str
- Expiration date.
- location
Get
Cloud Key Manager Secret Current State Location - Location of the secret:
- metadata Mapping[str, str]
- Key-value metadata.
- mode str
- Mode of the secret algorithm.
- name str
- Name of the secret.
- payload_
content_ strtype - Content type of the payload.
- secret_
ref str - OpenStack reference URL.
- secret_
type str - Type of the secret.
- status str
- Status of the secret.
- algorithm String
- Algorithm of the secret.
- bit
Length Number - Bit length of the secret.
- expiration String
- Expiration date.
- location Property Map
- Location of the secret:
- metadata Map<String>
- Key-value metadata.
- mode String
- Mode of the secret algorithm.
- name String
- Name of the secret.
- payload
Content StringType - Content type of the payload.
- secret
Ref String - OpenStack reference URL.
- secret
Type String - Type of the secret.
- status String
- Status of the secret.
GetCloudKeyManagerSecretCurrentStateLocation
- Availability
Zone 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.
- availability_
zone 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.
- availability
Zone 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.
- availability
Zone String - Availability zone of the secret.
- region String
- Region of the secret.
GetCloudKeyManagerSecretLocation
- Availability
Zone 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.
- availability_
zone 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.
- availability
Zone 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.
- availability
Zone 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
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