1. Packages
  2. Packages
  3. Akeyless Provider
  4. API Docs
  5. getPkiCertificate
Viewing docs for akeyless 2.0.1
published on Monday, Apr 27, 2026 by akeyless-community
Viewing docs for akeyless 2.0.1
published on Monday, Apr 27, 2026 by akeyless-community

    Generates PKI certificate data source

    Using getPkiCertificate

    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 getPkiCertificate(args: GetPkiCertificateArgs, opts?: InvokeOptions): Promise<GetPkiCertificateResult>
    function getPkiCertificateOutput(args: GetPkiCertificateOutputArgs, opts?: InvokeOptions): Output<GetPkiCertificateResult>
    def get_pki_certificate(alt_names: Optional[str] = None,
                            cert_issuer_name: Optional[str] = None,
                            common_name: Optional[str] = None,
                            csr_data_base64: Optional[str] = None,
                            extended_key_usage: Optional[str] = None,
                            id: Optional[str] = None,
                            key_data_base64: Optional[str] = None,
                            ttl: Optional[float] = None,
                            uri_sans: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetPkiCertificateResult
    def get_pki_certificate_output(alt_names: pulumi.Input[Optional[str]] = None,
                            cert_issuer_name: pulumi.Input[Optional[str]] = None,
                            common_name: pulumi.Input[Optional[str]] = None,
                            csr_data_base64: pulumi.Input[Optional[str]] = None,
                            extended_key_usage: pulumi.Input[Optional[str]] = None,
                            id: pulumi.Input[Optional[str]] = None,
                            key_data_base64: pulumi.Input[Optional[str]] = None,
                            ttl: pulumi.Input[Optional[float]] = None,
                            uri_sans: pulumi.Input[Optional[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetPkiCertificateResult]
    func GetPkiCertificate(ctx *Context, args *GetPkiCertificateArgs, opts ...InvokeOption) (*GetPkiCertificateResult, error)
    func GetPkiCertificateOutput(ctx *Context, args *GetPkiCertificateOutputArgs, opts ...InvokeOption) GetPkiCertificateResultOutput

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

    public static class GetPkiCertificate 
    {
        public static Task<GetPkiCertificateResult> InvokeAsync(GetPkiCertificateArgs args, InvokeOptions? opts = null)
        public static Output<GetPkiCertificateResult> Invoke(GetPkiCertificateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPkiCertificateResult> getPkiCertificate(GetPkiCertificateArgs args, InvokeOptions options)
    public static Output<GetPkiCertificateResult> getPkiCertificate(GetPkiCertificateArgs args, InvokeOptions options)
    
    fn::invoke:
      function: akeyless:index/getPkiCertificate:getPkiCertificate
      arguments:
        # arguments dictionary
    data "akeyless_getpkicertificate" "name" {
        # arguments
    }

    The following arguments are supported:

    CertIssuerName string
    The name of the PKI certificate issuer
    AltNames string
    The Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    CommonName string
    The common name to be included in the PKI certificate
    CsrDataBase64 string
    Certificate Signing Request contents encoded in base64 to generate the certificate with
    ExtendedKeyUsage string
    A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth', 'codesigning'.
    Id string
    The ID of this resource.
    KeyDataBase64 string
    pki key file contents encoded using Base64
    Ttl double
    Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL)
    UriSans string
    The URI Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    CertIssuerName string
    The name of the PKI certificate issuer
    AltNames string
    The Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    CommonName string
    The common name to be included in the PKI certificate
    CsrDataBase64 string
    Certificate Signing Request contents encoded in base64 to generate the certificate with
    ExtendedKeyUsage string
    A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth', 'codesigning'.
    Id string
    The ID of this resource.
    KeyDataBase64 string
    pki key file contents encoded using Base64
    Ttl float64
    Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL)
    UriSans string
    The URI Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    cert_issuer_name string
    The name of the PKI certificate issuer
    alt_names string
    The Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    common_name string
    The common name to be included in the PKI certificate
    csr_data_base64 string
    Certificate Signing Request contents encoded in base64 to generate the certificate with
    extended_key_usage string
    A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth', 'codesigning'.
    id string
    The ID of this resource.
    key_data_base64 string
    pki key file contents encoded using Base64
    ttl number
    Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL)
    uri_sans string
    The URI Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    certIssuerName String
    The name of the PKI certificate issuer
    altNames String
    The Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    commonName String
    The common name to be included in the PKI certificate
    csrDataBase64 String
    Certificate Signing Request contents encoded in base64 to generate the certificate with
    extendedKeyUsage String
    A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth', 'codesigning'.
    id String
    The ID of this resource.
    keyDataBase64 String
    pki key file contents encoded using Base64
    ttl Double
    Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL)
    uriSans String
    The URI Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    certIssuerName string
    The name of the PKI certificate issuer
    altNames string
    The Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    commonName string
    The common name to be included in the PKI certificate
    csrDataBase64 string
    Certificate Signing Request contents encoded in base64 to generate the certificate with
    extendedKeyUsage string
    A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth', 'codesigning'.
    id string
    The ID of this resource.
    keyDataBase64 string
    pki key file contents encoded using Base64
    ttl number
    Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL)
    uriSans string
    The URI Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    cert_issuer_name str
    The name of the PKI certificate issuer
    alt_names str
    The Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    common_name str
    The common name to be included in the PKI certificate
    csr_data_base64 str
    Certificate Signing Request contents encoded in base64 to generate the certificate with
    extended_key_usage str
    A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth', 'codesigning'.
    id str
    The ID of this resource.
    key_data_base64 str
    pki key file contents encoded using Base64
    ttl float
    Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL)
    uri_sans str
    The URI Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    certIssuerName String
    The name of the PKI certificate issuer
    altNames String
    The Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    commonName String
    The common name to be included in the PKI certificate
    csrDataBase64 String
    Certificate Signing Request contents encoded in base64 to generate the certificate with
    extendedKeyUsage String
    A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth', 'codesigning'.
    id String
    The ID of this resource.
    keyDataBase64 String
    pki key file contents encoded using Base64
    ttl Number
    Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL)
    uriSans String
    The URI Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)

    getPkiCertificate Result

    The following output properties are available:

    CertDisplayId string
    The certificate display ID
    CertIssuerName string
    The name of the PKI certificate issuer
    CertItemId double
    The certificate item ID
    Data string
    The certificate data
    Id string
    The ID of this resource.
    ParentCert string
    The parent certificate
    Path string
    The path of the certificate
    ReadingToken string
    The reading token
    AltNames string
    The Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    CommonName string
    The common name to be included in the PKI certificate
    CsrDataBase64 string
    Certificate Signing Request contents encoded in base64 to generate the certificate with
    ExtendedKeyUsage string
    A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth', 'codesigning'.
    KeyDataBase64 string
    pki key file contents encoded using Base64
    Ttl double
    Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL)
    UriSans string
    The URI Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    CertDisplayId string
    The certificate display ID
    CertIssuerName string
    The name of the PKI certificate issuer
    CertItemId float64
    The certificate item ID
    Data string
    The certificate data
    Id string
    The ID of this resource.
    ParentCert string
    The parent certificate
    Path string
    The path of the certificate
    ReadingToken string
    The reading token
    AltNames string
    The Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    CommonName string
    The common name to be included in the PKI certificate
    CsrDataBase64 string
    Certificate Signing Request contents encoded in base64 to generate the certificate with
    ExtendedKeyUsage string
    A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth', 'codesigning'.
    KeyDataBase64 string
    pki key file contents encoded using Base64
    Ttl float64
    Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL)
    UriSans string
    The URI Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    cert_display_id string
    The certificate display ID
    cert_issuer_name string
    The name of the PKI certificate issuer
    cert_item_id number
    The certificate item ID
    data string
    The certificate data
    id string
    The ID of this resource.
    parent_cert string
    The parent certificate
    path string
    The path of the certificate
    reading_token string
    The reading token
    alt_names string
    The Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    common_name string
    The common name to be included in the PKI certificate
    csr_data_base64 string
    Certificate Signing Request contents encoded in base64 to generate the certificate with
    extended_key_usage string
    A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth', 'codesigning'.
    key_data_base64 string
    pki key file contents encoded using Base64
    ttl number
    Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL)
    uri_sans string
    The URI Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    certDisplayId String
    The certificate display ID
    certIssuerName String
    The name of the PKI certificate issuer
    certItemId Double
    The certificate item ID
    data String
    The certificate data
    id String
    The ID of this resource.
    parentCert String
    The parent certificate
    path String
    The path of the certificate
    readingToken String
    The reading token
    altNames String
    The Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    commonName String
    The common name to be included in the PKI certificate
    csrDataBase64 String
    Certificate Signing Request contents encoded in base64 to generate the certificate with
    extendedKeyUsage String
    A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth', 'codesigning'.
    keyDataBase64 String
    pki key file contents encoded using Base64
    ttl Double
    Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL)
    uriSans String
    The URI Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    certDisplayId string
    The certificate display ID
    certIssuerName string
    The name of the PKI certificate issuer
    certItemId number
    The certificate item ID
    data string
    The certificate data
    id string
    The ID of this resource.
    parentCert string
    The parent certificate
    path string
    The path of the certificate
    readingToken string
    The reading token
    altNames string
    The Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    commonName string
    The common name to be included in the PKI certificate
    csrDataBase64 string
    Certificate Signing Request contents encoded in base64 to generate the certificate with
    extendedKeyUsage string
    A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth', 'codesigning'.
    keyDataBase64 string
    pki key file contents encoded using Base64
    ttl number
    Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL)
    uriSans string
    The URI Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    cert_display_id str
    The certificate display ID
    cert_issuer_name str
    The name of the PKI certificate issuer
    cert_item_id float
    The certificate item ID
    data str
    The certificate data
    id str
    The ID of this resource.
    parent_cert str
    The parent certificate
    path str
    The path of the certificate
    reading_token str
    The reading token
    alt_names str
    The Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    common_name str
    The common name to be included in the PKI certificate
    csr_data_base64 str
    Certificate Signing Request contents encoded in base64 to generate the certificate with
    extended_key_usage str
    A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth', 'codesigning'.
    key_data_base64 str
    pki key file contents encoded using Base64
    ttl float
    Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL)
    uri_sans str
    The URI Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    certDisplayId String
    The certificate display ID
    certIssuerName String
    The name of the PKI certificate issuer
    certItemId Number
    The certificate item ID
    data String
    The certificate data
    id String
    The ID of this resource.
    parentCert String
    The parent certificate
    path String
    The path of the certificate
    readingToken String
    The reading token
    altNames String
    The Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
    commonName String
    The common name to be included in the PKI certificate
    csrDataBase64 String
    Certificate Signing Request contents encoded in base64 to generate the certificate with
    extendedKeyUsage String
    A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth', 'codesigning'.
    keyDataBase64 String
    pki key file contents encoded using Base64
    ttl Number
    Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL)
    uriSans String
    The URI Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)

    Package Details

    Repository
    akeyless akeyless-community/terraform-provider-akeyless
    License
    Notes
    This Pulumi package is based on the akeyless Terraform Provider.
    Viewing docs for akeyless 2.0.1
    published on Monday, Apr 27, 2026 by akeyless-community
      Try Pulumi Cloud free. Your team will thank you.