1. Packages
  2. OVH
  3. API Docs
  4. Okms
  5. getOkmsCredential
OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud

ovh.Okms.getOkmsCredential

Explore with Pulumi AI

OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud

Use this data source to retrieve data associated with a KMS credential, such as the PEM encoded certificate.

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
variables:
  kms:
    fn::invoke:
      function: ovh:Okms:getOkmsResource
      arguments:
        id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
        okmsId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Copy

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>
Copy
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]
Copy
func GetOkmsCredential(ctx *Context, args *GetOkmsCredentialArgs, opts ...InvokeOption) (*GetOkmsCredentialResult, error)
func GetOkmsCredentialOutput(ctx *Context, args *GetOkmsCredentialOutputArgs, opts ...InvokeOption) GetOkmsCredentialResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetOkmsCredentialResult> getOkmsCredential(GetOkmsCredentialArgs args, InvokeOptions options)
public static Output<GetOkmsCredentialResult> getOkmsCredential(GetOkmsCredentialArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ovh:Okms/getOkmsCredential:getOkmsCredential
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
ID of the credential
OkmsId This property is required. string
ID of the KMS
Id This property is required. string
ID of the credential
OkmsId This property is required. string
ID of the KMS
id This property is required. String
ID of the credential
okmsId This property is required. String
ID of the KMS
id This property is required. string
ID of the credential
okmsId This property is required. string
ID of the KMS
id This property is required. str
ID of the credential
okms_id This property is required. str
ID of the KMS
id This property is required. String
ID of the credential
okmsId This property is required. String
ID of the KMS

getOkmsCredential Result

The following output properties are available:

CertificatePem string
(String) PEM encoded certificate of the credential
CreatedAt string
(String) Creation time of the credential
Description string
(String) Description of the credential
ExpiredAt string
(String) Expiration time of the credential
FromCsr bool
(Boolean) Is the credential generated from CSR
Id string
IdentityUrns List<string>
(List of String) List of identity URNs associated with the credential
Name string
(String) Name of the credential
OkmsId string
Status string
(String) Status of the credential
CertificatePem string
(String) PEM encoded certificate of the credential
CreatedAt string
(String) Creation time of the credential
Description string
(String) Description of the credential
ExpiredAt string
(String) Expiration time of the credential
FromCsr bool
(Boolean) Is the credential generated from CSR
Id string
IdentityUrns []string
(List of String) List of identity URNs associated with the credential
Name string
(String) Name of the credential
OkmsId string
Status string
(String) Status of the credential
certificatePem String
(String) PEM encoded certificate of the credential
createdAt String
(String) Creation time of the credential
description String
(String) Description of the credential
expiredAt String
(String) Expiration time of the credential
fromCsr Boolean
(Boolean) Is the credential generated from CSR
id String
identityUrns List<String>
(List of String) List of identity URNs associated with the credential
name String
(String) Name of the credential
okmsId String
status String
(String) Status of the credential
certificatePem string
(String) PEM encoded certificate of the credential
createdAt string
(String) Creation time of the credential
description string
(String) Description of the credential
expiredAt string
(String) Expiration time of the credential
fromCsr boolean
(Boolean) Is the credential generated from CSR
id string
identityUrns string[]
(List of String) List of identity URNs associated with the credential
name string
(String) Name of the credential
okmsId string
status string
(String) Status of the credential
certificate_pem str
(String) PEM encoded certificate of the credential
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
certificatePem String
(String) PEM encoded certificate of the credential
createdAt String
(String) Creation time of the credential
description String
(String) Description of the credential
expiredAt String
(String) Expiration time of the credential
fromCsr Boolean
(Boolean) Is the credential generated from CSR
id String
identityUrns List<String>
(List of String) List of identity URNs associated with the credential
name String
(String) Name of the credential
okmsId 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 ovh Terraform Provider.
OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud