1. Packages
  2. OVH
  3. API Docs
  4. Okms
  5. getOkmsCredential
OVHCloud v0.50.0 published on Friday, Sep 20, 2024 by OVHcloud

ovh.Okms.getOkmsCredential

Explore with Pulumi AI

ovh logo
OVHCloud v0.50.0 published on Friday, Sep 20, 2024 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!
    
    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.GetOkmsResourceArgs;
    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.getOkmsResource(GetOkmsResourceArgs.builder()
                .id("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
                .okmsId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
                .build());
    
        }
    }
    
    variables:
      kms:
        fn::invoke:
          Function: ovh:Okms:getOkmsResource
          Arguments:
            id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
            okmsId: 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: ovh:Okms/getOkmsCredential:getOkmsCredential
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ID of the credential
    OkmsId string
    ID of the KMS
    Id string
    ID of the credential
    OkmsId string
    ID of the KMS
    id String
    ID of the credential
    okmsId String
    ID of the KMS
    id string
    ID of the credential
    okmsId string
    ID of the KMS
    id str
    ID of the credential
    okms_id str
    ID of the KMS
    id String
    ID of the credential
    okmsId 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.
    ovh logo
    OVHCloud v0.50.0 published on Friday, Sep 20, 2024 by OVHcloud