Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Use this data source to retrieve data associated with a KMS credential, such as the PEM encoded certificate.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const kms = ovh.Okms.getOkmsCredential({
okmsId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
});
import pulumi
import pulumi_ovh as ovh
kms = ovh.Okms.get_okms_credential(okms_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/okms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := okms.GetOkmsCredential(ctx, &okms.GetOkmsCredentialArgs{
OkmsId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
Id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var kms = Ovh.Okms.GetOkmsCredential.Invoke(new()
{
OkmsId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
Id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.Okms.OkmsFunctions;
import com.pulumi.ovh.Okms.inputs.GetOkmsCredentialArgs;
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 kms = OkmsFunctions.getOkmsCredential(GetOkmsCredentialArgs.builder()
.okmsId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
.id("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
.build());
}
}
variables:
kms:
fn::invoke:
function: ovh:Okms:getOkmsCredential
arguments:
okmsId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Using getOkmsCredential
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 getOkmsCredential(args: GetOkmsCredentialArgs, opts?: InvokeOptions): Promise<GetOkmsCredentialResult>
function getOkmsCredentialOutput(args: GetOkmsCredentialOutputArgs, opts?: InvokeOptions): Output<GetOkmsCredentialResult>def get_okms_credential(id: Optional[str] = None,
okms_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOkmsCredentialResult
def get_okms_credential_output(id: Optional[pulumi.Input[str]] = None,
okms_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOkmsCredentialResult]func GetOkmsCredential(ctx *Context, args *GetOkmsCredentialArgs, opts ...InvokeOption) (*GetOkmsCredentialResult, error)
func GetOkmsCredentialOutput(ctx *Context, args *GetOkmsCredentialOutputArgs, opts ...InvokeOption) GetOkmsCredentialResultOutput> Note: This function is named GetOkmsCredential in the Go SDK.
public static class GetOkmsCredential
{
public static Task<GetOkmsCredentialResult> InvokeAsync(GetOkmsCredentialArgs args, InvokeOptions? opts = null)
public static Output<GetOkmsCredentialResult> Invoke(GetOkmsCredentialInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetOkmsCredentialResult> getOkmsCredential(GetOkmsCredentialArgs args, InvokeOptions options)
public static Output<GetOkmsCredentialResult> getOkmsCredential(GetOkmsCredentialArgs args, InvokeOptions options)
fn::invoke:
function: ovh:Okms/getOkmsCredential:getOkmsCredential
arguments:
# arguments dictionaryThe following arguments are supported:
getOkmsCredential Result
The following output properties are available:
- Certificate
Pem string - (String) PEM encoded certificate of the credential
- Certificate
Type string - (String) Type of certificate key (
ECDSAorRSA). - Created
At string - (String) Creation time of the credential
- Description string
- (String) Description of the credential
- Expired
At string - (String) Expiration time of the credential
- From
Csr bool - (Boolean) Is the credential generated from CSR
- Id string
- Identity
Urns List<string> - (List of String) List of identity URNs associated with the credential
- Name string
- (String) Name of the credential
- Okms
Id string - Status string
- (String) Status of the credential
- Certificate
Pem string - (String) PEM encoded certificate of the credential
- Certificate
Type string - (String) Type of certificate key (
ECDSAorRSA). - Created
At string - (String) Creation time of the credential
- Description string
- (String) Description of the credential
- Expired
At string - (String) Expiration time of the credential
- From
Csr bool - (Boolean) Is the credential generated from CSR
- Id string
- Identity
Urns []string - (List of String) List of identity URNs associated with the credential
- Name string
- (String) Name of the credential
- Okms
Id string - Status string
- (String) Status of the credential
- certificate
Pem String - (String) PEM encoded certificate of the credential
- certificate
Type String - (String) Type of certificate key (
ECDSAorRSA). - created
At String - (String) Creation time of the credential
- description String
- (String) Description of the credential
- expired
At String - (String) Expiration time of the credential
- from
Csr Boolean - (Boolean) Is the credential generated from CSR
- id String
- identity
Urns List<String> - (List of String) List of identity URNs associated with the credential
- name String
- (String) Name of the credential
- okms
Id String - status String
- (String) Status of the credential
- certificate
Pem string - (String) PEM encoded certificate of the credential
- certificate
Type string - (String) Type of certificate key (
ECDSAorRSA). - created
At string - (String) Creation time of the credential
- description string
- (String) Description of the credential
- expired
At string - (String) Expiration time of the credential
- from
Csr boolean - (Boolean) Is the credential generated from CSR
- id string
- identity
Urns string[] - (List of String) List of identity URNs associated with the credential
- name string
- (String) Name of the credential
- okms
Id string - status string
- (String) Status of the credential
- certificate_
pem str - (String) PEM encoded certificate of the credential
- certificate_
type str - (String) Type of certificate key (
ECDSAorRSA). - created_
at str - (String) Creation time of the credential
- description str
- (String) Description of the credential
- expired_
at str - (String) Expiration time of the credential
- from_
csr bool - (Boolean) Is the credential generated from CSR
- id str
- identity_
urns Sequence[str] - (List of String) List of identity URNs associated with the credential
- name str
- (String) Name of the credential
- okms_
id str - status str
- (String) Status of the credential
- certificate
Pem String - (String) PEM encoded certificate of the credential
- certificate
Type String - (String) Type of certificate key (
ECDSAorRSA). - created
At String - (String) Creation time of the credential
- description String
- (String) Description of the credential
- expired
At String - (String) Expiration time of the credential
- from
Csr Boolean - (Boolean) Is the credential generated from CSR
- id String
- identity
Urns List<String> - (List of String) List of identity URNs associated with the credential
- name String
- (String) Name of the credential
- okms
Id String - status String
- (String) Status of the credential
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.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
