1. Packages
  2. Packages
  3. Akeyless Provider
  4. API Docs
  5. ClassicKey
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

    Classic Key resource

    Create ClassicKey Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ClassicKey(name: string, args: ClassicKeyArgs, opts?: CustomResourceOptions);
    @overload
    def ClassicKey(resource_name: str,
                   args: ClassicKeyArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def ClassicKey(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   alg: Optional[str] = None,
                   auto_rotate: Optional[str] = None,
                   cert_file_data: Optional[str] = None,
                   certificate_common_name: Optional[str] = None,
                   certificate_country: Optional[str] = None,
                   certificate_digest_algo: Optional[str] = None,
                   certificate_format: Optional[str] = None,
                   certificate_locality: Optional[str] = None,
                   certificate_organization: Optional[str] = None,
                   certificate_province: Optional[str] = None,
                   certificate_ttl: Optional[float] = None,
                   classic_key_id: Optional[str] = None,
                   conf_file_data: Optional[str] = None,
                   delete_protection: Optional[str] = None,
                   description: Optional[str] = None,
                   expiration_event_ins: Optional[Sequence[str]] = None,
                   generate_self_signed_certificate: Optional[bool] = None,
                   gpg_alg: Optional[str] = None,
                   hash_algorithm: Optional[str] = None,
                   item_custom_fields: Optional[Mapping[str, str]] = None,
                   key_data: Optional[str] = None,
                   name: Optional[str] = None,
                   protection_key_name: Optional[str] = None,
                   rotation_event_ins: Optional[Sequence[str]] = None,
                   rotation_interval: Optional[str] = None,
                   tags: Optional[Sequence[str]] = None)
    func NewClassicKey(ctx *Context, name string, args ClassicKeyArgs, opts ...ResourceOption) (*ClassicKey, error)
    public ClassicKey(string name, ClassicKeyArgs args, CustomResourceOptions? opts = null)
    public ClassicKey(String name, ClassicKeyArgs args)
    public ClassicKey(String name, ClassicKeyArgs args, CustomResourceOptions options)
    
    type: akeyless:ClassicKey
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ClassicKeyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ClassicKeyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ClassicKeyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ClassicKeyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ClassicKeyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var classicKeyResource = new Akeyless.ClassicKey("classicKeyResource", new()
    {
        Alg = "string",
        AutoRotate = "string",
        CertFileData = "string",
        CertificateCommonName = "string",
        CertificateCountry = "string",
        CertificateDigestAlgo = "string",
        CertificateFormat = "string",
        CertificateLocality = "string",
        CertificateOrganization = "string",
        CertificateProvince = "string",
        CertificateTtl = 0,
        ClassicKeyId = "string",
        ConfFileData = "string",
        DeleteProtection = "string",
        Description = "string",
        ExpirationEventIns = new[]
        {
            "string",
        },
        GenerateSelfSignedCertificate = false,
        GpgAlg = "string",
        HashAlgorithm = "string",
        ItemCustomFields = 
        {
            { "string", "string" },
        },
        KeyData = "string",
        Name = "string",
        ProtectionKeyName = "string",
        RotationEventIns = new[]
        {
            "string",
        },
        RotationInterval = "string",
        Tags = new[]
        {
            "string",
        },
    });
    
    example, err := akeyless.NewClassicKey(ctx, "classicKeyResource", &akeyless.ClassicKeyArgs{
    	Alg:                     pulumi.String("string"),
    	AutoRotate:              pulumi.String("string"),
    	CertFileData:            pulumi.String("string"),
    	CertificateCommonName:   pulumi.String("string"),
    	CertificateCountry:      pulumi.String("string"),
    	CertificateDigestAlgo:   pulumi.String("string"),
    	CertificateFormat:       pulumi.String("string"),
    	CertificateLocality:     pulumi.String("string"),
    	CertificateOrganization: pulumi.String("string"),
    	CertificateProvince:     pulumi.String("string"),
    	CertificateTtl:          pulumi.Float64(0),
    	ClassicKeyId:            pulumi.String("string"),
    	ConfFileData:            pulumi.String("string"),
    	DeleteProtection:        pulumi.String("string"),
    	Description:             pulumi.String("string"),
    	ExpirationEventIns: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	GenerateSelfSignedCertificate: pulumi.Bool(false),
    	GpgAlg:                        pulumi.String("string"),
    	HashAlgorithm:                 pulumi.String("string"),
    	ItemCustomFields: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	KeyData:           pulumi.String("string"),
    	Name:              pulumi.String("string"),
    	ProtectionKeyName: pulumi.String("string"),
    	RotationEventIns: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	RotationInterval: pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var classicKeyResource = new ClassicKey("classicKeyResource", ClassicKeyArgs.builder()
        .alg("string")
        .autoRotate("string")
        .certFileData("string")
        .certificateCommonName("string")
        .certificateCountry("string")
        .certificateDigestAlgo("string")
        .certificateFormat("string")
        .certificateLocality("string")
        .certificateOrganization("string")
        .certificateProvince("string")
        .certificateTtl(0.0)
        .classicKeyId("string")
        .confFileData("string")
        .deleteProtection("string")
        .description("string")
        .expirationEventIns("string")
        .generateSelfSignedCertificate(false)
        .gpgAlg("string")
        .hashAlgorithm("string")
        .itemCustomFields(Map.of("string", "string"))
        .keyData("string")
        .name("string")
        .protectionKeyName("string")
        .rotationEventIns("string")
        .rotationInterval("string")
        .tags("string")
        .build());
    
    classic_key_resource = akeyless.ClassicKey("classicKeyResource",
        alg="string",
        auto_rotate="string",
        cert_file_data="string",
        certificate_common_name="string",
        certificate_country="string",
        certificate_digest_algo="string",
        certificate_format="string",
        certificate_locality="string",
        certificate_organization="string",
        certificate_province="string",
        certificate_ttl=float(0),
        classic_key_id="string",
        conf_file_data="string",
        delete_protection="string",
        description="string",
        expiration_event_ins=["string"],
        generate_self_signed_certificate=False,
        gpg_alg="string",
        hash_algorithm="string",
        item_custom_fields={
            "string": "string",
        },
        key_data="string",
        name="string",
        protection_key_name="string",
        rotation_event_ins=["string"],
        rotation_interval="string",
        tags=["string"])
    
    const classicKeyResource = new akeyless.ClassicKey("classicKeyResource", {
        alg: "string",
        autoRotate: "string",
        certFileData: "string",
        certificateCommonName: "string",
        certificateCountry: "string",
        certificateDigestAlgo: "string",
        certificateFormat: "string",
        certificateLocality: "string",
        certificateOrganization: "string",
        certificateProvince: "string",
        certificateTtl: 0,
        classicKeyId: "string",
        confFileData: "string",
        deleteProtection: "string",
        description: "string",
        expirationEventIns: ["string"],
        generateSelfSignedCertificate: false,
        gpgAlg: "string",
        hashAlgorithm: "string",
        itemCustomFields: {
            string: "string",
        },
        keyData: "string",
        name: "string",
        protectionKeyName: "string",
        rotationEventIns: ["string"],
        rotationInterval: "string",
        tags: ["string"],
    });
    
    type: akeyless:ClassicKey
    properties:
        alg: string
        autoRotate: string
        certFileData: string
        certificateCommonName: string
        certificateCountry: string
        certificateDigestAlgo: string
        certificateFormat: string
        certificateLocality: string
        certificateOrganization: string
        certificateProvince: string
        certificateTtl: 0
        classicKeyId: string
        confFileData: string
        deleteProtection: string
        description: string
        expirationEventIns:
            - string
        generateSelfSignedCertificate: false
        gpgAlg: string
        hashAlgorithm: string
        itemCustomFields:
            string: string
        keyData: string
        name: string
        protectionKeyName: string
        rotationEventIns:
            - string
        rotationInterval: string
        tags:
            - string
    

    ClassicKey Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ClassicKey resource accepts the following input properties:

    Alg string
    Classic Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096, EC256, EC384, GPG]
    AutoRotate string
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation [true/false]
    CertFileData string
    Certificate in a PEM format.
    CertificateCommonName string
    Common name for the generated certificate. Relevant only for generate-self-signed-certificate.
    CertificateCountry string
    Country name for the generated certificate. Relevant only for generate-self-signed-certificate.
    CertificateDigestAlgo string
    Digest algorithm to be used for the certificate key signing.
    CertificateFormat string
    The format of the returned certificate [pem/der]
    CertificateLocality string
    Locality for the generated certificate. Relevant only for generate-self-signed-certificate.
    CertificateOrganization string
    Organization name for the generated certificate. Relevant only for generate-self-signed-certificate.
    CertificateProvince string
    Province name for the generated certificate. Relevant only for generate-self-signed-certificate.
    CertificateTtl double
    TTL in days for the generated certificate. Required only for generate-self-signed-certificate.
    ClassicKeyId string
    The ID of this resource.
    ConfFileData string
    The csr config data in base64 encoding
    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    Description string
    Description of the object
    ExpirationEventIns List<string>
    How many days before the expiration of the certificate would you like to be notified.
    GenerateSelfSignedCertificate bool
    Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided.
    GpgAlg string
    gpg alg: Relevant only if GPG key type selected; options: [RSA1024, RSA2048, RSA3072, RSA4096, Ed25519]
    HashAlgorithm string
    Specifies the hash algorithm used for the encryption key's operations, available options: [SHA256, SHA384, SHA512]
    ItemCustomFields Dictionary<string, string>
    Additional custom fields to associate with the item
    KeyData string
    Base64-encoded classic key value
    Name string
    Classic key name
    ProtectionKeyName string
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    RotationEventIns List<string>
    How many days before the rotation of the item would you like to be notified
    RotationInterval string
    The number of days to wait between every automatic rotation (1-365)
    Tags List<string>
    Add tags attached to this object
    Alg string
    Classic Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096, EC256, EC384, GPG]
    AutoRotate string
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation [true/false]
    CertFileData string
    Certificate in a PEM format.
    CertificateCommonName string
    Common name for the generated certificate. Relevant only for generate-self-signed-certificate.
    CertificateCountry string
    Country name for the generated certificate. Relevant only for generate-self-signed-certificate.
    CertificateDigestAlgo string
    Digest algorithm to be used for the certificate key signing.
    CertificateFormat string
    The format of the returned certificate [pem/der]
    CertificateLocality string
    Locality for the generated certificate. Relevant only for generate-self-signed-certificate.
    CertificateOrganization string
    Organization name for the generated certificate. Relevant only for generate-self-signed-certificate.
    CertificateProvince string
    Province name for the generated certificate. Relevant only for generate-self-signed-certificate.
    CertificateTtl float64
    TTL in days for the generated certificate. Required only for generate-self-signed-certificate.
    ClassicKeyId string
    The ID of this resource.
    ConfFileData string
    The csr config data in base64 encoding
    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    Description string
    Description of the object
    ExpirationEventIns []string
    How many days before the expiration of the certificate would you like to be notified.
    GenerateSelfSignedCertificate bool
    Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided.
    GpgAlg string
    gpg alg: Relevant only if GPG key type selected; options: [RSA1024, RSA2048, RSA3072, RSA4096, Ed25519]
    HashAlgorithm string
    Specifies the hash algorithm used for the encryption key's operations, available options: [SHA256, SHA384, SHA512]
    ItemCustomFields map[string]string
    Additional custom fields to associate with the item
    KeyData string
    Base64-encoded classic key value
    Name string
    Classic key name
    ProtectionKeyName string
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    RotationEventIns []string
    How many days before the rotation of the item would you like to be notified
    RotationInterval string
    The number of days to wait between every automatic rotation (1-365)
    Tags []string
    Add tags attached to this object
    alg String
    Classic Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096, EC256, EC384, GPG]
    autoRotate String
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation [true/false]
    certFileData String
    Certificate in a PEM format.
    certificateCommonName String
    Common name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateCountry String
    Country name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateDigestAlgo String
    Digest algorithm to be used for the certificate key signing.
    certificateFormat String
    The format of the returned certificate [pem/der]
    certificateLocality String
    Locality for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateOrganization String
    Organization name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateProvince String
    Province name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateTtl Double
    TTL in days for the generated certificate. Required only for generate-self-signed-certificate.
    classicKeyId String
    The ID of this resource.
    confFileData String
    The csr config data in base64 encoding
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    description String
    Description of the object
    expirationEventIns List<String>
    How many days before the expiration of the certificate would you like to be notified.
    generateSelfSignedCertificate Boolean
    Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided.
    gpgAlg String
    gpg alg: Relevant only if GPG key type selected; options: [RSA1024, RSA2048, RSA3072, RSA4096, Ed25519]
    hashAlgorithm String
    Specifies the hash algorithm used for the encryption key's operations, available options: [SHA256, SHA384, SHA512]
    itemCustomFields Map<String,String>
    Additional custom fields to associate with the item
    keyData String
    Base64-encoded classic key value
    name String
    Classic key name
    protectionKeyName String
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    rotationEventIns List<String>
    How many days before the rotation of the item would you like to be notified
    rotationInterval String
    The number of days to wait between every automatic rotation (1-365)
    tags List<String>
    Add tags attached to this object
    alg string
    Classic Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096, EC256, EC384, GPG]
    autoRotate string
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation [true/false]
    certFileData string
    Certificate in a PEM format.
    certificateCommonName string
    Common name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateCountry string
    Country name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateDigestAlgo string
    Digest algorithm to be used for the certificate key signing.
    certificateFormat string
    The format of the returned certificate [pem/der]
    certificateLocality string
    Locality for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateOrganization string
    Organization name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateProvince string
    Province name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateTtl number
    TTL in days for the generated certificate. Required only for generate-self-signed-certificate.
    classicKeyId string
    The ID of this resource.
    confFileData string
    The csr config data in base64 encoding
    deleteProtection string
    Protection from accidental deletion of this object [true/false]
    description string
    Description of the object
    expirationEventIns string[]
    How many days before the expiration of the certificate would you like to be notified.
    generateSelfSignedCertificate boolean
    Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided.
    gpgAlg string
    gpg alg: Relevant only if GPG key type selected; options: [RSA1024, RSA2048, RSA3072, RSA4096, Ed25519]
    hashAlgorithm string
    Specifies the hash algorithm used for the encryption key's operations, available options: [SHA256, SHA384, SHA512]
    itemCustomFields {[key: string]: string}
    Additional custom fields to associate with the item
    keyData string
    Base64-encoded classic key value
    name string
    Classic key name
    protectionKeyName string
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    rotationEventIns string[]
    How many days before the rotation of the item would you like to be notified
    rotationInterval string
    The number of days to wait between every automatic rotation (1-365)
    tags string[]
    Add tags attached to this object
    alg str
    Classic Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096, EC256, EC384, GPG]
    auto_rotate str
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation [true/false]
    cert_file_data str
    Certificate in a PEM format.
    certificate_common_name str
    Common name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificate_country str
    Country name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificate_digest_algo str
    Digest algorithm to be used for the certificate key signing.
    certificate_format str
    The format of the returned certificate [pem/der]
    certificate_locality str
    Locality for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificate_organization str
    Organization name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificate_province str
    Province name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificate_ttl float
    TTL in days for the generated certificate. Required only for generate-self-signed-certificate.
    classic_key_id str
    The ID of this resource.
    conf_file_data str
    The csr config data in base64 encoding
    delete_protection str
    Protection from accidental deletion of this object [true/false]
    description str
    Description of the object
    expiration_event_ins Sequence[str]
    How many days before the expiration of the certificate would you like to be notified.
    generate_self_signed_certificate bool
    Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided.
    gpg_alg str
    gpg alg: Relevant only if GPG key type selected; options: [RSA1024, RSA2048, RSA3072, RSA4096, Ed25519]
    hash_algorithm str
    Specifies the hash algorithm used for the encryption key's operations, available options: [SHA256, SHA384, SHA512]
    item_custom_fields Mapping[str, str]
    Additional custom fields to associate with the item
    key_data str
    Base64-encoded classic key value
    name str
    Classic key name
    protection_key_name str
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    rotation_event_ins Sequence[str]
    How many days before the rotation of the item would you like to be notified
    rotation_interval str
    The number of days to wait between every automatic rotation (1-365)
    tags Sequence[str]
    Add tags attached to this object
    alg String
    Classic Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096, EC256, EC384, GPG]
    autoRotate String
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation [true/false]
    certFileData String
    Certificate in a PEM format.
    certificateCommonName String
    Common name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateCountry String
    Country name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateDigestAlgo String
    Digest algorithm to be used for the certificate key signing.
    certificateFormat String
    The format of the returned certificate [pem/der]
    certificateLocality String
    Locality for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateOrganization String
    Organization name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateProvince String
    Province name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateTtl Number
    TTL in days for the generated certificate. Required only for generate-self-signed-certificate.
    classicKeyId String
    The ID of this resource.
    confFileData String
    The csr config data in base64 encoding
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    description String
    Description of the object
    expirationEventIns List<String>
    How many days before the expiration of the certificate would you like to be notified.
    generateSelfSignedCertificate Boolean
    Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided.
    gpgAlg String
    gpg alg: Relevant only if GPG key type selected; options: [RSA1024, RSA2048, RSA3072, RSA4096, Ed25519]
    hashAlgorithm String
    Specifies the hash algorithm used for the encryption key's operations, available options: [SHA256, SHA384, SHA512]
    itemCustomFields Map<String>
    Additional custom fields to associate with the item
    keyData String
    Base64-encoded classic key value
    name String
    Classic key name
    protectionKeyName String
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    rotationEventIns List<String>
    How many days before the rotation of the item would you like to be notified
    rotationInterval String
    The number of days to wait between every automatic rotation (1-365)
    tags List<String>
    Add tags attached to this object

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ClassicKey resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ClassicKey Resource

    Get an existing ClassicKey resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ClassicKeyState, opts?: CustomResourceOptions): ClassicKey
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alg: Optional[str] = None,
            auto_rotate: Optional[str] = None,
            cert_file_data: Optional[str] = None,
            certificate_common_name: Optional[str] = None,
            certificate_country: Optional[str] = None,
            certificate_digest_algo: Optional[str] = None,
            certificate_format: Optional[str] = None,
            certificate_locality: Optional[str] = None,
            certificate_organization: Optional[str] = None,
            certificate_province: Optional[str] = None,
            certificate_ttl: Optional[float] = None,
            classic_key_id: Optional[str] = None,
            conf_file_data: Optional[str] = None,
            delete_protection: Optional[str] = None,
            description: Optional[str] = None,
            expiration_event_ins: Optional[Sequence[str]] = None,
            generate_self_signed_certificate: Optional[bool] = None,
            gpg_alg: Optional[str] = None,
            hash_algorithm: Optional[str] = None,
            item_custom_fields: Optional[Mapping[str, str]] = None,
            key_data: Optional[str] = None,
            name: Optional[str] = None,
            protection_key_name: Optional[str] = None,
            rotation_event_ins: Optional[Sequence[str]] = None,
            rotation_interval: Optional[str] = None,
            tags: Optional[Sequence[str]] = None) -> ClassicKey
    func GetClassicKey(ctx *Context, name string, id IDInput, state *ClassicKeyState, opts ...ResourceOption) (*ClassicKey, error)
    public static ClassicKey Get(string name, Input<string> id, ClassicKeyState? state, CustomResourceOptions? opts = null)
    public static ClassicKey get(String name, Output<String> id, ClassicKeyState state, CustomResourceOptions options)
    resources:  _:    type: akeyless:ClassicKey    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Alg string
    Classic Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096, EC256, EC384, GPG]
    AutoRotate string
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation [true/false]
    CertFileData string
    Certificate in a PEM format.
    CertificateCommonName string
    Common name for the generated certificate. Relevant only for generate-self-signed-certificate.
    CertificateCountry string
    Country name for the generated certificate. Relevant only for generate-self-signed-certificate.
    CertificateDigestAlgo string
    Digest algorithm to be used for the certificate key signing.
    CertificateFormat string
    The format of the returned certificate [pem/der]
    CertificateLocality string
    Locality for the generated certificate. Relevant only for generate-self-signed-certificate.
    CertificateOrganization string
    Organization name for the generated certificate. Relevant only for generate-self-signed-certificate.
    CertificateProvince string
    Province name for the generated certificate. Relevant only for generate-self-signed-certificate.
    CertificateTtl double
    TTL in days for the generated certificate. Required only for generate-self-signed-certificate.
    ClassicKeyId string
    The ID of this resource.
    ConfFileData string
    The csr config data in base64 encoding
    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    Description string
    Description of the object
    ExpirationEventIns List<string>
    How many days before the expiration of the certificate would you like to be notified.
    GenerateSelfSignedCertificate bool
    Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided.
    GpgAlg string
    gpg alg: Relevant only if GPG key type selected; options: [RSA1024, RSA2048, RSA3072, RSA4096, Ed25519]
    HashAlgorithm string
    Specifies the hash algorithm used for the encryption key's operations, available options: [SHA256, SHA384, SHA512]
    ItemCustomFields Dictionary<string, string>
    Additional custom fields to associate with the item
    KeyData string
    Base64-encoded classic key value
    Name string
    Classic key name
    ProtectionKeyName string
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    RotationEventIns List<string>
    How many days before the rotation of the item would you like to be notified
    RotationInterval string
    The number of days to wait between every automatic rotation (1-365)
    Tags List<string>
    Add tags attached to this object
    Alg string
    Classic Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096, EC256, EC384, GPG]
    AutoRotate string
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation [true/false]
    CertFileData string
    Certificate in a PEM format.
    CertificateCommonName string
    Common name for the generated certificate. Relevant only for generate-self-signed-certificate.
    CertificateCountry string
    Country name for the generated certificate. Relevant only for generate-self-signed-certificate.
    CertificateDigestAlgo string
    Digest algorithm to be used for the certificate key signing.
    CertificateFormat string
    The format of the returned certificate [pem/der]
    CertificateLocality string
    Locality for the generated certificate. Relevant only for generate-self-signed-certificate.
    CertificateOrganization string
    Organization name for the generated certificate. Relevant only for generate-self-signed-certificate.
    CertificateProvince string
    Province name for the generated certificate. Relevant only for generate-self-signed-certificate.
    CertificateTtl float64
    TTL in days for the generated certificate. Required only for generate-self-signed-certificate.
    ClassicKeyId string
    The ID of this resource.
    ConfFileData string
    The csr config data in base64 encoding
    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    Description string
    Description of the object
    ExpirationEventIns []string
    How many days before the expiration of the certificate would you like to be notified.
    GenerateSelfSignedCertificate bool
    Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided.
    GpgAlg string
    gpg alg: Relevant only if GPG key type selected; options: [RSA1024, RSA2048, RSA3072, RSA4096, Ed25519]
    HashAlgorithm string
    Specifies the hash algorithm used for the encryption key's operations, available options: [SHA256, SHA384, SHA512]
    ItemCustomFields map[string]string
    Additional custom fields to associate with the item
    KeyData string
    Base64-encoded classic key value
    Name string
    Classic key name
    ProtectionKeyName string
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    RotationEventIns []string
    How many days before the rotation of the item would you like to be notified
    RotationInterval string
    The number of days to wait between every automatic rotation (1-365)
    Tags []string
    Add tags attached to this object
    alg String
    Classic Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096, EC256, EC384, GPG]
    autoRotate String
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation [true/false]
    certFileData String
    Certificate in a PEM format.
    certificateCommonName String
    Common name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateCountry String
    Country name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateDigestAlgo String
    Digest algorithm to be used for the certificate key signing.
    certificateFormat String
    The format of the returned certificate [pem/der]
    certificateLocality String
    Locality for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateOrganization String
    Organization name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateProvince String
    Province name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateTtl Double
    TTL in days for the generated certificate. Required only for generate-self-signed-certificate.
    classicKeyId String
    The ID of this resource.
    confFileData String
    The csr config data in base64 encoding
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    description String
    Description of the object
    expirationEventIns List<String>
    How many days before the expiration of the certificate would you like to be notified.
    generateSelfSignedCertificate Boolean
    Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided.
    gpgAlg String
    gpg alg: Relevant only if GPG key type selected; options: [RSA1024, RSA2048, RSA3072, RSA4096, Ed25519]
    hashAlgorithm String
    Specifies the hash algorithm used for the encryption key's operations, available options: [SHA256, SHA384, SHA512]
    itemCustomFields Map<String,String>
    Additional custom fields to associate with the item
    keyData String
    Base64-encoded classic key value
    name String
    Classic key name
    protectionKeyName String
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    rotationEventIns List<String>
    How many days before the rotation of the item would you like to be notified
    rotationInterval String
    The number of days to wait between every automatic rotation (1-365)
    tags List<String>
    Add tags attached to this object
    alg string
    Classic Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096, EC256, EC384, GPG]
    autoRotate string
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation [true/false]
    certFileData string
    Certificate in a PEM format.
    certificateCommonName string
    Common name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateCountry string
    Country name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateDigestAlgo string
    Digest algorithm to be used for the certificate key signing.
    certificateFormat string
    The format of the returned certificate [pem/der]
    certificateLocality string
    Locality for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateOrganization string
    Organization name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateProvince string
    Province name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateTtl number
    TTL in days for the generated certificate. Required only for generate-self-signed-certificate.
    classicKeyId string
    The ID of this resource.
    confFileData string
    The csr config data in base64 encoding
    deleteProtection string
    Protection from accidental deletion of this object [true/false]
    description string
    Description of the object
    expirationEventIns string[]
    How many days before the expiration of the certificate would you like to be notified.
    generateSelfSignedCertificate boolean
    Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided.
    gpgAlg string
    gpg alg: Relevant only if GPG key type selected; options: [RSA1024, RSA2048, RSA3072, RSA4096, Ed25519]
    hashAlgorithm string
    Specifies the hash algorithm used for the encryption key's operations, available options: [SHA256, SHA384, SHA512]
    itemCustomFields {[key: string]: string}
    Additional custom fields to associate with the item
    keyData string
    Base64-encoded classic key value
    name string
    Classic key name
    protectionKeyName string
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    rotationEventIns string[]
    How many days before the rotation of the item would you like to be notified
    rotationInterval string
    The number of days to wait between every automatic rotation (1-365)
    tags string[]
    Add tags attached to this object
    alg str
    Classic Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096, EC256, EC384, GPG]
    auto_rotate str
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation [true/false]
    cert_file_data str
    Certificate in a PEM format.
    certificate_common_name str
    Common name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificate_country str
    Country name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificate_digest_algo str
    Digest algorithm to be used for the certificate key signing.
    certificate_format str
    The format of the returned certificate [pem/der]
    certificate_locality str
    Locality for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificate_organization str
    Organization name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificate_province str
    Province name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificate_ttl float
    TTL in days for the generated certificate. Required only for generate-self-signed-certificate.
    classic_key_id str
    The ID of this resource.
    conf_file_data str
    The csr config data in base64 encoding
    delete_protection str
    Protection from accidental deletion of this object [true/false]
    description str
    Description of the object
    expiration_event_ins Sequence[str]
    How many days before the expiration of the certificate would you like to be notified.
    generate_self_signed_certificate bool
    Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided.
    gpg_alg str
    gpg alg: Relevant only if GPG key type selected; options: [RSA1024, RSA2048, RSA3072, RSA4096, Ed25519]
    hash_algorithm str
    Specifies the hash algorithm used for the encryption key's operations, available options: [SHA256, SHA384, SHA512]
    item_custom_fields Mapping[str, str]
    Additional custom fields to associate with the item
    key_data str
    Base64-encoded classic key value
    name str
    Classic key name
    protection_key_name str
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    rotation_event_ins Sequence[str]
    How many days before the rotation of the item would you like to be notified
    rotation_interval str
    The number of days to wait between every automatic rotation (1-365)
    tags Sequence[str]
    Add tags attached to this object
    alg String
    Classic Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096, EC256, EC384, GPG]
    autoRotate String
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation [true/false]
    certFileData String
    Certificate in a PEM format.
    certificateCommonName String
    Common name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateCountry String
    Country name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateDigestAlgo String
    Digest algorithm to be used for the certificate key signing.
    certificateFormat String
    The format of the returned certificate [pem/der]
    certificateLocality String
    Locality for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateOrganization String
    Organization name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateProvince String
    Province name for the generated certificate. Relevant only for generate-self-signed-certificate.
    certificateTtl Number
    TTL in days for the generated certificate. Required only for generate-self-signed-certificate.
    classicKeyId String
    The ID of this resource.
    confFileData String
    The csr config data in base64 encoding
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    description String
    Description of the object
    expirationEventIns List<String>
    How many days before the expiration of the certificate would you like to be notified.
    generateSelfSignedCertificate Boolean
    Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided.
    gpgAlg String
    gpg alg: Relevant only if GPG key type selected; options: [RSA1024, RSA2048, RSA3072, RSA4096, Ed25519]
    hashAlgorithm String
    Specifies the hash algorithm used for the encryption key's operations, available options: [SHA256, SHA384, SHA512]
    itemCustomFields Map<String>
    Additional custom fields to associate with the item
    keyData String
    Base64-encoded classic key value
    name String
    Classic key name
    protectionKeyName String
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    rotationEventIns List<String>
    How many days before the rotation of the item would you like to be notified
    rotationInterval String
    The number of days to wait between every automatic rotation (1-365)
    tags List<String>
    Add tags attached to this object

    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.